NRG Global Forum
NRG Global Forum
>
ScenarioBuilder
I need to paramaterize my data.
Welcome, Guest

I need to paramaterize my data.
Post I need to paramaterize my data.
by Nat on Dec, 24.2009

My database does not allow duplicate data and also I can't login all users with same username and password. How can parameterize so that each user has unique username/password and data to enter in the application?


Nat

Nat

Registered

Posts: 4

View all users posts


Re: I need to paramaterize my data.
Post Re: I need to paramaterize my data.
by Nat on Dec, 24.2009

How to parameterize data?

1. Create a csv file in excel or notepad in the following manner:

a.First row in the CSV file contains the variable names

b.All other lines contain rows of data

For example
Username,password,DOB
User1,user1,10/10/2000
User2,user2,03/20/1985
User3,user3,05/10/1994

Then save the CSV file in an appropriate location relative to the scenario folder.


2. Call the CSV file in the scenario. You can call the variables file in the scenario tab properties or block tab properties:

a.If you need to call more than one CSV file in your scenario then you can call each CSV in the block which uses that CSV's variables.

b.If you are using a sub scenario which is called from a parent scenario, then call the CSV file in the parent scenario.


3. Call the variables inside the block or scenario: Call the variable using KeyBoardTypeText action. Make sure your Type Text action is highlighted in the middle pane. In the right Properties pane (Text field), right click to see all available variables or simply type your Variable Name surrounded by % signs. For example, if your Variable Name is username, you should enter: %username%


You can find detailed documentation with screenshots on how to use Variables in Scenario Builder's built in guide.


Nat

Nat

Registered

Posts: 4

View all users posts