13 years ago
Handling dynamic http requests instead of hardcoded http requests
I'm creating a 50 users load test on a JSF web application which is a healthcare based system.
I record a scenario for one user ( a doctor, in my case) who logs in, adds a few patients to the patients database and schedules appointments for the newly added patients.
After recording the scenario, the recorded test contains http requests and data that particularly belongs to the user which was used for recording.
At the time of running the test for 50 unique virtual users, the recorded test sends http requests and data which was in the recorded scenario. But in our application, the http requests depend upon the data that is present after the user logs in. So how do I handle such situations in LoadComplete when it comes to methods being called depending upon the existence or non-existence of data after logging in?
I record a scenario for one user ( a doctor, in my case) who logs in, adds a few patients to the patients database and schedules appointments for the newly added patients.
After recording the scenario, the recorded test contains http requests and data that particularly belongs to the user which was used for recording.
At the time of running the test for 50 unique virtual users, the recorded test sends http requests and data which was in the recorded scenario. But in our application, the http requests depend upon the data that is present after the user logs in. So how do I handle such situations in LoadComplete when it comes to methods being called depending upon the existence or non-existence of data after logging in?