Can I use datatable of Action1 in the Action2.

Answers were Sorted based on User's Feedback



Can I use datatable of Action1 in the Action2...

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

Can I use datatable of Action1 in the Action2...

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

Post New Answer

More QTP Interview Questions

How you are developing the script? Using record and play back or manual?

0 Answers  


Give me some real time point of way where exactly we can conduct audits?

0 Answers   CTS,


In the application that I'm testing is having a WYSIWIYG editor.QTP is recording editor's body as web element. I want to add some data to this web Element at run time. The problem is that I cant find a method to add contents to this web Element. Can any one come up with an answer for this. Thankx.

0 Answers  


How to count no of edit boxes on the page?

3 Answers   IBM,


How to add multiple values in rows, under a single column of a run time datatable?

3 Answers   NIIT,






1) What is the diff Between GetRoproprty and Gettoproperty? 2)What is Redim?

5 Answers   STC,


Inserting a Call to Action is not importing all columns in Datatable of globalsheet. Why?

1 Answers   Crea,


What is the vb script when the url enter into the browser

2 Answers   Satyam,


Tel me what was the automation testing process you followed?

2 Answers  


some times we write user define functions.where we write main and sub program,how,where to insert the functions in qtp?

2 Answers   GE,


how to find that tools work well with your existing system?

0 Answers  


Sql questions to find second max salary and how to use joins

0 Answers   Deloitte,


Categories