They are careful and they are great professionals. I constantly learn from them. Indeed!
I want to thank Tim for his comment on getting unique file name in LoadRunner.
Sure, there is very simple way to generate unique file name in LoadRunner using LoadRunner parameters.
How to do that?
We have to create three different types LoadRunner parameters:
Summary:
Using of LoadRunner parameters is easy enough.
LoadRunner provides several useful types of parameters. We used three of them:
Simple and useful!
Related articles:
Have you got interested materials or your own thoughts on LoadRunner?
Let's share them and help each other to improve our skills and knowledge!
You can send them to my email:
Thank you in advance, dear readers.
--
Dmitry Motevich
We have to create three different types LoadRunner parameters:
- Vuser ID
- Iteration Number
- Date/Time
- Open "Parameter List" dialog from "Vuser/Parameter list...":
- Add new LoadRunner parameter of "Vuser ID" type:
- Then add second LoadRunner parameter of "Iteration" type:
- And add third LoadRunner parameter of "Date/Time" type:
Please, note that I added new Date/Time format - "%Y%m%d_%H%M%S.000".
I described the meanings of %Y, %m, etc in this post. Point and three zeros (".000") means using of milliseconds.
So, this Date/Time format produce a string like: 20080616_231514.953 - That's all. Now I add the following line of code:lr_output_message(lr_eval_string("{VuserID}_{Iteration}_{DateTime}"));The result of this line is:
As you can see, we generated unique string for the current LoadRunner virtual user. You can use it to save the current file, for example as "1_1_20080616_232322.940.pdf".
Summary:
Using of LoadRunner parameters is easy enough.
LoadRunner provides several useful types of parameters. We used three of them:
- Vuser ID
- Iteration Number
- Date/Time
Simple and useful!
Related articles:
- How to get unique file name in LoadRunner?
- LoadRunner VIDEO - How to record PDF file saving?
- LoadRunner - How to record a file saving, performed by user from browser page?
- LoadRunner VuGen scripting - How to automatically download file from server and save it to local disk?
- How to perform basic operations on LoadRunner parameters?
- All LoadRunner visual tutorials
Have you got interested materials or your own thoughts on LoadRunner?
Let's share them and help each other to improve our skills and knowledge!
You can send them to my email:
Thank you in advance, dear readers.
--
Dmitry Motevich
4 comments:
That’s really cool and helps me a lot. Let me tell you something I have created 15 folders and named them Vuser1, Vuser2, Vuser3……………..Vuser15. What I like to do is when I run 15 Virtual Users they should save the file in their define folder. Like Vuser1 should save the PDF file in Vuser1 folder, Vuser2 should save the file in Vuser2 folder and so forth.
Cheers
Ali from Sydney, Australia
If I create that test, I would create a File parameter, which contains values Vuser1, Vuser2,...Vuser15
Afther in the parameter settings I would assign one value for each vuser. And each vuser would be able to use the assigned folder to save files.
Thanx for the post. It helped me a lot.
Hi Dimitry,
I just looked the example given for tool tips of Images.
But i just applied to my application but its having issues .
1) I have an webtable inside i have a column which shows the status , its an Image ( red,green,yellow lights ) and the code example when i applied is getting me the list of images but not the one in the webtable ,
Can you guide me here ?.
Thanks in advance and regards
harsha
Post a Comment