Can I use datatable of Action1 in the Action2.
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / abcde
Yes we can.Use the following code
Datatable.value("column_name",sheet_id)
Here Sheet_id is action2
eg: Datatable.value("c1",3)
3=action2 datasheet
| Is This Answer Correct ? | 0 Yes | 0 No |
Where the text version of script file located in file system?
how can we know the program is testing by multiple test data in data driven frame work?
How to create an instance in QTP?
Write a script to print below pattern 5 4 3 2 1 5 4 3 2 5 4 3 5 4 5
Explain about the Test Fusion Report of QTP?
can any one tell me what is syntax error in line msgexist=Browser("title:=Gmail: Email.*").Page( "title:=Gmail: Email .*").WebElement(innertext=&msg).exist 'code ************** Call login("lal="," " ) wait(5) Call errormsg("Invalid email address. [?]" ) Function errormsg(msg) msgexist=Browser("title:=Gmail: Email.*").Page( "title:=Gmail: Email .*").WebElement(innertext=&msg).exist if msgexist then Reporter.ReportEvent micPass,"enter valid username or pwd ",msg else Reporter.ReportEvent micFail, "entered valid uname and pwd",msg end if End Function
How to capture the text from the application using QTP?
how do find current links in webpage for ex: in yahoowebsite today mainpage is having 50 links and next day same page is having 60 links. if i run same programe it should display total links in webpage ?
What r types of parametarizations?
What is the difference between action & script?
How to find Operating system information using QTP script?
How can i get QTP 9.2 software or any webside where i can download ? can anyone help me out , i want to be expert in QTP ,but i don't have the software