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 |
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
What is expert view in qtp?
VB scrip has a special command named LBound, which returns the starting index of an arry. What are the possible indexes an array can start with? options are given below. and one only the correct answer. pl select it 1. any index 2. only even non-negative 3. only 0 4. any non-negative integer
Mention what are the different types of recording modes in qtp? Which will be used when?
Hi any body pls help me for QTP 11.0 software free demo version. i have to practice. Kindly send the link.or where i have to download.
How does qtp identify gui object?
requirement is for combo box your expected value is str= "Denver.Frankfurt.London.Los Angeles.Paris.Portland.San Francisco.Seattle.Sydney.Zurich" you must get the text in combo box and need to compare them how
How to set the function parameters as optional. Pls anybody can give the answer.. Thanks in advance...
write vbscript in qtp tool for senario, in the given sheet add each number in each row and each colunm and show result
how to write script in qtp(vbscript)..i mean with out application deployed..and how to call script1 into script2?
What are the advantages of Object Repository?
How many types of recording modes in qtp?