I want to test concurrency of application, I'm using apache Jmeter for that, the endpoint I'm requesting, needs to have authorization header for authentication, in apache Jmeter HTTP Header Manager i have added a header with the name Authorization with the token value, now lets say I have 5 number of threads (users), when the test runs all the 5 users request with the same authorization token, I want each thread to request with the different token, to simulate the different users and not multiple instances of one user, I hope the question makes sense, How can I make each thread request the api with different token? that is unique header value for each thread's request. Thanks love you guys.
How to set different header for the group thread request in apache jmeter?
3.8k Views Asked by Jawad At
1
There are 1 best solutions below
Related Questions in MULTITHREADING
- new thread blocks main thread
- WPF MessageBox Cancel checkbox check
- How to avoid concurrent access to a resource?
- run oncomplete event in async
- Threading Segfault when reading members
- Function timeouts in C and thread
- How are multiple requests to Task.Run handled from a resource management standpoint?
- Acumatica perfomance with threads
- Wait and Notify in Java threads for a given interval
- Different behavior of async with Visual Studio 2013(Windows8.1) and GCC 4.9(Ubuntu14.10)
- How to return blocking queue to the right object?
- background thread using Task.Run
- deletion and cleanup of worker thread in Qt crashes
- Pipeline-like operation using TChan
- implementing in app purchase on android
Related Questions in PERFORMANCE
- Slow performance on ipad erasing image
- Can Apache Ant be told to cache its XML files?
- What are the pros and cons of the picture element?
- DB candidate as CouchDB/Schema replacement
- python member str performance too slow
- Split a large query (2 days) into pieces to increase the speed in Postgres
- Use GUI displayed results of SQL query vs new queries?
- fastest way to map a large number of longs
- Bash regular expression execution hangs on long expressions
- Why is calling a function so slow in Javascript?
- Performance of element-compare in java collections
- "Capture GPU Frame" in XCode -- iOS only?
- Efficiency penalty of initializing a struct/class within a loop
- Change the rotating speed of the circle when the mouse moves using javascript
- Replace foreach to make loop into queryable
Related Questions in JMETER
- Jmeter JDBC Connection Configuration Parametrization of Database URL for accessing SQL Database
- html data after login to mail server
- JMeter Requests are concurrent requests or sequential requests?
- Why am I receiving Response code: Non HTTP response code: java.net.SocketException?
- Getting connection refused error when trying to communicate through HTTPS
- ELB generating 504 GATEWAY_TIMEOUTS w/ 2 EC2 instances - Packets not reaching Servers
- Using Jmeter OS Process Sampler to collect script data
- Clicking an email verification link using jmeter
- How to run Java code in in JMeter and pass vairables from java code to Jmeter script
- Error instantiating class:class:null java.lang.reflect.InvocationTargetException
- how to get an attribute value from a href link in Jmeter
- Token Parsing Error: Lexical error
- Do we need to use JMeter Tool for .jmx file generation or write java code using eclipse etc
- using JMeter proxy recorder behind company proxy with SSL manager
- Can anyone explain me following RandomString
Related Questions in LOAD-TESTING
- JMeter Requests are concurrent requests or sequential requests?
- PhantomJS load same page multiple times does not work, cannot clear cache
- ms loadtest from another project / dll
- Jmeter bottleneck
- Funkload Load Testing Implementation
- How to increase the request per second on amazon EC2 T2.micro instance?
- How to run Jmeter tests from bamboo?
- Advantages of Ultimate Thread group over normal thread group in jmeter
- Is there a way to automate Jmeter to run a number of testplans
- Which is the best performance testing tool when i dont know the client application behaviour. As i am going to have number of web based clients
- How can I simulate load/traffic on my local machine
- How to optimize the distribution of load created by Locust
- How to extract All of reg expression matches from html page via JMeter
- Is it possible to execute a load test, which uses a web test plugin by using MSTest command line?
- how to get transactions number reduced with Loadrunner Controller
Related Questions in DATABASE-CONCURRENCY
- Understanding Transaction Isolation Levels
- How To Minimize Likelihood of Database Contention During Update
- Concurrency problem with Redis in Node.js
- How to prevent Concurrency issues in ASP.NET Core Web API
- Concurrency violation: the UpdateCommand affected 0 of the expected 1 records, Error occurs for few tables in DB but not for all tables
- Apache Camel - Routing messages to JPA endpoint - keeping orders but splitting into pools based on a category header
- AWS RDS Concurrency Question (multi-user)
- Mysql and execute stored procedure in atomic way or select update atomically
- Getting "Invalid cursor state (0)" when running concurrent requests (SQLAlchemy & wsgi/python)
- How to implement row level locking
- PostgreSQL maximum connections based on api call or single app to db connection?
- How to set different header for the group thread request in apache jmeter?
- GAE pessimistic locking on CloudSQL
- While the server is under more strain, queries become slower
- How to avoid the concurrent problem in back-end when select-then-update from MySQL
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
If you have 5 different users - you need to have 5 different tokens. You can put the tokens into i.e. a CSV file and add CSV Data Set Config to your Test Plan
Once done you will be able to access each entry of the CSV file (which will be different for each thread/iteration) as
${token}in the HTTP Header ManagerCheck out JMeter Parameterization - The Complete Guide article to learn more about the concept of performing data-driven tests using various external data sources like CSV files, databases, etc.