Recorded WebPerformance test runs OK while debugging and first batch of load (eg executes first 10 transactions for 10 VU test) but starts failing subsequently

Locked Recorded WebPerformance test runs OK while debugging and first batch of load (eg executes first 10 transactions for 10 VU test) but starts failing subsequently

  • Thursday, February 17, 2011 2:53 PM
     
     

    I have created a web prerformance test in VS 2010 with four transactions create a customers, add customer appointment, add insurance and  add  order. Data for is load test stored in a CSV file. This works fine when run as performance test (run once for each data item in file), but when I am running it as a load test it completes all transaction steps for first set of users ( 10 complete transactions of 10 VU test, 50 complete transactions  for 50 VU test) after that it starts giving exceptions (query string parameter(s) not found) after create customer transaction.

    I did read the post about debugging exceptions but could not resolve it. 

All Replies

  • Thursday, February 17, 2011 4:20 PM
     
     Proposed Answer

    Hi Ashu,

    I have seen similar issues before. Try changing the Percentage of New Users property in the loadtest scenario and set that to 100. If that passes multiple iterations, then the issue is 99% going to be a cookie value or something you are setting in the context that exists for the Vuser on subsequent iterations.

    Percentage of new users 100% will reset the cookies/contexts on subseqent itertaions for all vusers. So, if thats not done and that cookie is present, the app may behave differently on the next iteration. You will have to get to root cause on which one it is and code for the condition in your test if you cant run with percentage of new users 100.


    http://blogs.msdn.com/rogeorge
  • Thursday, February 17, 2011 7:25 PM
     
     

    Hi,

    I also feel that you issue seems to be related to data in the csv. Can you provide the descriptive error message. If your querystring parameters have data binding, please make sure that you have entries in the csv which are more than the number of virtual users.

    Thanks

    Anuj

  • Sunday, February 20, 2011 9:32 PM
     
     

    Thanks  George and Anup for reply

     

    have 10000 entries in CSV file and maximum number of users is 100. I was planning to run 250 users with 30-40 complete transactions each. I will try by setting 100% new user value and post the results.

  • Wednesday, February 23, 2011 10:01 AM
    Moderator
     
     

    Hello AshuNeo,

    Is your question resolved? If yes, welcome to share us your solution.

    Thanks,


    Vicky Song [MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.