Looking to get advice on how to approach load testing using JMeter, My question is more about best practices since i am totally new to this tool.
I am confortable working with samplers, view results and thread groups components, was able to send requests and make assertions, get tokens, create variables etc... but i cannot figure out how to approach the following scenario for say 100 user concurrently:
- send login request
- use the returned token to talk to call the API endpoints
The problem occurs only when running the test for more than one user concurrently, not getting any issues running my thread solely
when executed concurrently,The first thread group instance always passes the auth step and run few requests but then as soon as other instances get triggered things go awry (e.g. a instance requests a token (not refresh) while the token exists already, or try to hit an endpoint when logged out...)
how do you organize your API testing?
if i am planning to test a 1000 users hitting the api concurrently, do i really need to provide 1000 account to authenticate them or are there any tips to follow?
for the same application, i've developed automated tests using js/ jasmine / protractor, is there any chance i can reuse my scenarios in jmeter? any library or plugin that may help integrate existing js tests into Jmeter?
also, is recording my interactions with the app using the recorder, the best way to approach load testing SPA applications?
any feedback is appreciated.
EDIT: i am not required to use JMeter, just gave it a try since it is widely used by QA professionals, i am open to suggestions on tools and ideas how to load and stress test our REST Api / AngularJS app. I've tried Locust.io a load testing python framework, and i liked it alot, but again i am trying to stick with Java and JS based tools since those are the only technologies we are using to build and test this app, and some people of my team aren't used to nor interested in python. Thanks