Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Selecting a field in database for a loop
#1
Solved: 11 Years, 3 Months, 3 Weeks ago
This is a total newbie question and I apology that: but if I have values in datatable fields A1 - A10 (which I want to run in QTP), but want to start he counting from A2 field, how do I do it? This script is for QTP flight demo:

Code:
For i = 1 to datatable.GetRowCount
Dialog("Login").WinEdit("Agent Name:").Set DataTable("A", dtGlobalSheet)
Dialog("Login").WinEdit("Password:").Set DataTable("B", dtGlobalSheet)
wait 2
datatable.SetNextRow
Next
Dialog("Login").WinButton("Cancel").Click
ExitRun
How should I modify this? I know I should somehow add GetParameter("A").ValueByRow(3), but couldn't get it to work. Thanks for your answers!
Reply


Messages In This Thread
Selecting a field in database for a loop - by HeZma - 02-14-2012, 11:32 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  getting the value from the field learning 0 1,037 03-19-2019, 09:13 AM
Last Post: learning
  QTP not selecting appropriate webelement from the webtable..Need Solution satishkumarm 11 21,628 03-23-2016, 12:47 PM
Last Post: Swetha_Bayya
  Selecting values from drop down using QTP. prempujaripati 2 46,753 06-26-2014, 06:06 PM
Last Post: rasmirani
  Selecting file saved in a location excellentpawan 1 4,063 02-25-2014, 02:05 PM
Last Post: guin.anirban
  Selecting a value from a Dropdown qtpbeginner78 12 18,373 06-10-2013, 11:10 AM
Last Post: basanth27

Forum Jump:


Users browsing this thread: 1 Guest(s)