Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to control the rows in Global data table?
#1
Solved: 11 Years, 3 Months, 3 Weeks ago
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

Reply
#2
Solved: 11 Years, 3 Months, 3 Weeks ago
Hi Uma,

DataTable.SetCurrentRow(i) ' i is the row number

Reply
#3
Solved: 11 Years, 3 Months, 3 Weeks ago
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
Reply
#4
Solved: 11 Years, 3 Months, 3 Weeks ago
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
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Reading Global Sheet's DataTable Value Bhuvana 0 1,632 01-05-2020, 10:03 PM
Last Post: Bhuvana
  Multiple rows of test data Bhuvana 0 1,334 01-03-2020, 09:30 PM
Last Post: Bhuvana
  Error as Global Not defined while trying to retrieve value from Datatable siddharth1609 0 955 09-11-2019, 02:52 PM
Last Post: siddharth1609
  data table use uft_usr 1 2,232 06-29-2016, 05:23 PM
Last Post: Ankesh
  Writing to Run time data table Neetha 5 12,152 08-27-2015, 10:18 AM
Last Post: supputuri

Forum Jump:


Users browsing this thread: 1 Guest(s)