how can we retrieve ten rows from the data table using loop
concept?
Answer Posted / uday kumar. a
Assume "Column1" is my column name in the Global Data
table, then use this code:
for i=1 to 10
datatable.setcurrentrow(i)
returnvalue=datatable.value("Column1","Global")
msgbox(returnvalue)
next
| Is This Answer Correct ? | 18 Yes | 4 No |
Post New Answer View All Answers
In qtp, how you can use xpath to identify objects?
any body can you help me what is the script to automate an comand promt
How can get count of list box?
Where can I find and view run-time data table?
What is the syntax to call one script from another?
What is meant by a Check Point in UFT? Also, explain the applicable Check Points.
How is a Step generator used in UFT?
desribe a situation where u faced a stressful situation and how did u cope with it
I used the below code to open QTP through VBscript?But i can unable to Invoke QTP...PLZ help me with the correct code to invoke QTP through VBS with description of the code aswell. Dim qtApp 'As QuickTest.Application 'Declare the Application object variable Dim qtTest 'As QuickTest.Test 'Declare a Test object variable Dim qtResultsOpt 'Declare a Run Results Options object variable Set qtApp = CreateObject("QuickTest.Application") 'Create the Application object qtApp.Launch 'Start QuickTest qtApp.Visible = False 'Make the QuickTest application visible qtApp.Open "C:\form", True 'Open the test in read-only mode 'set run settings for the test Set qtTest = qtApp.Test qtTest.Run 'Run the test 'WScript.StdOut.Write "Status is: " & qtTest.LastRunResults.Status 'Check the results of the test run qtTest.Close 'Close the test qtApp.quit 'Close QuickTest Pro Set qtResultsOpt = Nothing 'Release the Run Results Options object Set qtTest = Nothing 'Release the Test object Set qtApp = Nothing 'Release the Application object
What are the features and benefits of quick test pro (qtp 8.0)?
Which environments are supported by hp qtp?
What is the Difference between copy to action and call to action?
How can i initiate the objects to find uniquely in OR
After executing the script in qtp suppose i found some script execute successfully and found some error.So how to report the status for both (i.e pass and fail report)in test director. For "fail" We use "defect tab" in testdirector. But for "pass" how to report it to TL.what is the process plz anybody ans
How to test the login page in different ways in automation testing and i need code?