Posts: 90
Threads: 46
Joined: Jun 2011
Reputation:
0
09-14-2011, 02:48 AM
Hi,
I have a 2 environment-Staging and production.I have 2 different username and password.I Parmeterized the values.
My Question is if I select staging it needs to use ROW 1 user id and password value and If I select Production it needs to use ROW 2 value?
How to select the particular row,by default it is selecting row 1.
Any Help?
Thanks,
Uma
Posts: 107
Threads: 9
Joined: Apr 2011
Reputation:
0
09-14-2011, 08:19 AM
Hi Uma,
DataTable.SetCurrentRow(i) ' i is the row number
Posts: 6
Threads: 0
Joined: Sep 2011
Reputation:
0
09-14-2011, 12:34 PM
we handled it in 2 different ways in two different projects.
one was to evry time change the variable to "Stag" or "prod" before execution in your batch file or in your global excel ,so based on that variable it will fetch the prodURL or STageURl, so all your prod and stage variables can be in the very first row of your data sheet
second way was more tedious , to maintain than execute ,we maintained two different sets with almost same scripts but different datsheet ,
first set contained details of Prod
second contained sTAG,
the folder structure and every thing was named accordingly and we use to run different folder for different environments
Posts: 90
Threads: 46
Joined: Jun 2011
Reputation:
0
09-16-2011, 03:45 AM
(This post was last modified: 09-16-2011, 03:47 AM by Uma.)
Thank you Sailaja.I am using the first method what you said.
Uma
Thank you for both of u.
Sailaja's first method is suitable for my condition.I used it.
Uma