Platform Details:
Loadrunner : HP Loadrunner 11.52 Licensed Version
Protocol Used for scripting: Web (HTTP/HTML)
Mode of Script Recording: HTML mode (tried with URL mode as well)
Load Generator : Conap
Number of Vuser's in scenario : 5000
Business flow : Login->Logout
Scenario Schedule :
Stat vusers : start 2 vusers per 1 second (120 Vusers per minute)
Duration : 60 min
stop : all vusers simultaneously
I tried running a performance test in my host server. The run was good but I had an issue in adjusting the thinktimes.
Suppose for example, If there are 5000 Vusers and and the ramp up speed is 120 vusers per min, it normally takes 3 minutes to complete the flow. So, the issue here is , th initial set of vusers were to able to complete the flow and log out but what about the last set of vusers(last 500 vusers) they don't get enough time to complete the flow. I wanted all the Vusers login simulatanelously and log out accordingly.
As I don't know, how much thinktime does each user should be assigned so that it will wait for the last set of vusers to complete the flow and wait to logout.
As of now, we have added a formula
int VUIDD; (Vuser Number)
int TT=50; (Total No of transactions in the flow)
int ThinkTime; (Random Numbers)
int Think; (this will be declared in think time statements)
if(VUIDD<200)
{
ThinkTime=1800;
}
else if(VUIDD<400)
{
ThinkTime=1750;
}
else if(VUIDD<600)
{
ThinkTime=1700;
}
else if(VUIDD<800)
{
ThinkTime=1650;
}
Think=ThinkTime/TT;
We wanted to find out if any one has better solution. In this solution we are looking each vuser be assigned with different think time based on when he was ramped up. So vusers ramped up at the end will be assigned less think time comparatively to vusers ramped up in the beginning. Has any one function where he makes note of the start time ( there are no global variable in loadrunner script. I am not sure how we can do this as well. We can pass start time in the general attributes . That is the only solution we are thinking. But if there is better solution we really appreciate if someone can share ) . Each vuser then can find out elapsed time since the beginning of the test and based on that we can determine how much think time can be assigned to each vuser. Does any one have scripted or coded any function.
P.S. This post has been splitted off from Performance Center Support and News Forum to LoadRunner Support Forum. - HP Forum Moderator