Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Selecting a field in database for a loop
#1
Solved: 10 Years, 9 Months, 1 Week 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 922 03-19-2019, 09:13 AM
Last Post: learning
  QTP not selecting appropriate webelement from the webtable..Need Solution satishkumarm 11 21,062 03-23-2016, 12:47 PM
Last Post: Swetha_Bayya
  Selecting values from drop down using QTP. prempujaripati 2 46,384 06-26-2014, 06:06 PM
Last Post: rasmirani
  Selecting file saved in a location excellentpawan 1 3,834 02-25-2014, 02:05 PM
Last Post: guin.anirban
  Selecting a value from a Dropdown qtpbeginner78 12 17,547 06-10-2013, 11:10 AM
Last Post: basanth27

Forum Jump:


Users browsing this thread: 1 Guest(s)