Can I use datatable of Action1 in the Action2.
Answer Posted / nagk24
we can use any table from any action
here is the login details in action1 calling from action2
record in action2:=
n=datatable.GetSheet("Action1").GetRowCount
For i=1 to n
systemutil.Run"C:\Program Files\HP\QuickTest
Professional\samples\flight\app\flight4a.exe"
datatable.SetCurrentRow(i)
Dialog("Login").WinEdit("Agent Name:").Set
datatable("A","Action1")
Dialog("Login").WinEdit("Agent Name:").Type micTab
Dialog("Login").WinEdit("Password:").SetSecure
datatable("B","Action1")
Dialog("Login").WinEdit("Password:").Type micReturn
Window("Flight Reservation").Close
Next
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
How do you convert manual test cases to automated test cases?
In qtp, how you can use xpath to identify objects?
How to use the object spy in quicktest professional (qtp) 8.0 version?
What is method name to compare two XML files.
What is the use of an object spy tool in qtp?
How to handle Java tree in QTP?
Is it possible to refer the same object for referring more than one object that are of different class using the descriptive programming approach? Suppose my code is 'To create the object named as obj Set obj=Description.Create() 'To define the values obj("title").value="IE" obj("type").value="text" obj("html tag").value="INPUT" 'To set the value Browser("IE").Page("Yahoo").WebEdit(obj).Set "xyz" Can I refer the "obj" object for the three objects like Browser,page and webedit objects? If so how?
Get the count of files of similar types from a folder.
How will you report the bug and explain the defect tracking sheet you handled?
How qtp recognizes the object?
if our qtp vb Script may be Currepted then What we want do?
How to interact tool & application build in QTP?
What is difference in global and action sheet in qtp?
Explain features of the latest version of qtp/ uft 12.1?
I hav installed QTP8.2, im working on webapplication, while running the script giving error msg like "QTPro.exe generated errors and will be closed by windows. You will restart the program. An error log is being created". Pls anybody what is the problem, what i have to do for this? Thanks...