Scripting problem in LoadRunner

How would you solve this scripting problem so that it runs correctly:The user logins in with ID and Password click the change password buttonthe user is asked to enter current password then enter new password twiceclick ok and then the user Logs out. you cannot repeat the same password for 6 iterations* you would need the newly created password at the next iteration

Questions by BenTest   answers by BenTest

Showing Answers 1 - 12 of 12 Answers

papayamilkshake

  • Sep 17th, 2007
 

This is a basic question.The key answer is parameterization with ensuring the parameter is been used at the next iteration.  Therefore much of the configuration is done at the parameter level.  Check out the documentation on parameterization and the settings available. This will help.

Regards
papayamilkshake
LoadRunner TnT @ loadrunnertnt . com

  Was this answer useful?  Yes

spicemit

  • Dec 6th, 2007
 

There are lot of ways to solve this problem.

1) Iterate 6 times manually for each user and change password. Put all the 6 passwords in a file for each user. Next time while running check yur new password with each entry. This is very complicated and I wont even induldge in doing this.

2) Create a very big param file for passwords and set unique values for each iteration in the parameter properties. Chances are it would run 95% correctly but between each scenario run, it might pick up a value which was published in the previous scenario run.

3) Most ideal way to deal with this situation is put a dynamic field which would keep on changing e.g put something like Date parameter. It would work perfect for single user. For multi user (running test in controller) put {VUserID} + {Date} parameter and it works 100% correctly...

  Was this answer useful?  Yes

thambi3

  • Feb 20th, 2008
 

Hi,

We need to do parametrisation for this situation.

start recording. First enter current password then enter new password twice click ok and then the user Logs out. This is first itration. Now in the "Vugen" click the  view option and then click tree view. In that tree select where u want to parametrise. i think it is "change password" then double click on it. The submit data dialog box opens. The abc icons on the left side showing the arguments are constants.

From that box select the old . new and retype password and double click on it. The parameter properties box will open here u can put 5 different type of passwords for 6 itrations. Click ok. Replay the script.

  Was this answer useful?  Yes

This is the situation we need to go for PARAMETERIZATION
Create one CSV or dat file as data file and do the parameterization for the fields.
There are 4 situations we need to go for the PARAMETERIZATION
1) When the application needs Unique data(Like username)
2)Data dependency(Like Passwords)
3) Data Cache
4)Date Constraints 

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions