I have a Web Performance test created in VSTS Ultimate 2013 with Record feature of the tool. This test involves the below mentioned scenario:-
- Login to application
- Navigate to the Search Page
- Open Create New Page
- Enter Data and Save record (at this point an entry is created in Database too)
I have added Validation Rule (Finding Username, which is displayed on page header once record save operation is completes) in this test, just to make sure that record is saved and web test is working fine, all the test data (like Name, Address etc.) is coming from CSV file. Now, when I run this test it executes well and assertion (Find Username) works fine. Entry is there in Database too.
Now, I have created a load test in VSTS Ultimate which is using this web test and specified the user load as 5 with constant load pattern and Iteration count as 1, this test case still creates only 1 entry in Database while I have 5 rows with different dataset in CSV file. But if I increase the number of Iterations from 1 to 5, then it creates 5 records; which is a bit confusing. Why VSTS Ultimate is not creating 5 records with constant load as 5, why it is creating only 1 record for 5 user load.
First I thought that application might not be able to handle 2 concurrent user load but if that had been the case then I should get Assertion Failed error or some other error which is not there.
What could be the possible reason for this behavior of load pattern? Do I need to change anything or I'm missing something in my tests?