Consider a scenario where there are two action sheets say
action 1 and action 2. Can Action 1 take values from action
2 data sheet or vice versa. If so, how?
Answers were Sorted based on User's Feedback
Answer / rashmi
Yes. you can use data from "Action1" data sheet
in "Action2" or vice versa.
use DataTable.GetSheet("Action1").GetParameter.....
in "Action2". (To use data from "Action1" data sheet
in "Action2")
| Is This Answer Correct ? | 7 Yes | 2 No |
Answer / arif aman
well dats really a simply scenerio.
lets take,
name of the main action is "driver"
name of the called action is "action"
now we want to pass values from driver to action...
step1:
right click on the driver>goto action properties>select
output properties(select the variable you want to pass).click Ok
step2:
go to action>right click>go to action properties>select
input properties(select the same varible to took step1)>click OK
it is just like you are sending a variable out of driver and
catching the same from action as a input parameter.
dats it
thanks
ARIF AMAN
| Is This Answer Correct ? | 3 Yes | 0 No |
Answer / kiran
use global data sheet this enables you to pass the values
between actions
Assume that there are two actions
1. Action1
2.Action2
make action 1 as re-usable action and use global data
sheet for parameteraization
Then Open Action2 and call action1.Automatically action2
global data sheet is updated with glodal data sheet values
of action1
| Is This Answer Correct ? | 2 Yes | 1 No |
Answer / sdfds
By Parameters.
In Reusable Action1-
Declare -
name=Parameter ("name")
In Calling Action2-
Call RunAction ["Action1"],name
Here, the Action2 will take value of the variable -name
from Action1. The conditions are:
Parameter("name")- Should be declared in Reusable Action1.
| Is This Answer Correct ? | 4 Yes | 4 No |
Answer / sudheer kumar putsala (mphasis
Yes it's possible.
You have to make one Action as a Reusble Action and call
that action in your Present action. For example Main one is
Action1 and Action2 is a reusble action and if you want to
use the Action2 data in Action1 u have to call like this.
DataTable.Value("name",dtlocalsheet)= DataTable.Value
("name","Action2 [REU_Action2]")
| Is This Answer Correct ? | 0 Yes | 3 No |
Answer / sreekanth
Just in the Action1 give the following :
x=datatable("place","Action2")
msgbox x
In the Action2 give the following:
y=datatable("name","Action1")
msgbox y
Just try & see ...i hope we can do it....
if not just let me know ...i will get back to u ...
| Is This Answer Correct ? | 0 Yes | 3 No |
what is vss and cvs what is main difference b/w these two
How to count the no of objects in XML file(QTP)
Consider one application is open, clicking one menu will open another application in another browser. QTP does not catch the URL of the second browser(second application). can we capture it ?
I have two For loop, first For loop does is creates a customer and input the customer info and then the second for loop within the first for loop does the follows which is capture the customer name and verify the with the data within the datatable. The problem I am coming across is that when it goes through the second time creating another customer and then verify the second customer then it creates the following during runtime. I want is to have the customer2 below Customer1 under the Customer_from_Apps. Any help will be greatly appreciate it. Customer Customer_from_Apps Customer_from_Apps1 Customer1 Customer 1 Customer2 Customer2 Window("Customer Desktop").Window("Customer Tracking (Privacy").WinObject("TreeView20WndClass").Click 92,244 runtimevalue = .VbTreeView("vbname:=AppServerTree").GetROProperty("Selectio n") Customer_Val= Datatable.GlobalSheet.AddParameter ("Customer_from_Apps",runtimevalue) row=datatable.getsheet("Global").GetRowCount For x=1 to row datatable.SetCurrentRow(x) Data_Val=Datatable.Value("Customer",dtGlobalSheet) If (trim(Customer_Val)=trim(Data_Val)) Then Reporter.ReportEvent micPass, "Customer validation successful", "Actual Value: " &Data_Val&vbcrlf& "Customer Value: " &Customer_Val else Reporter.ReportEvent micFail, "Cusotmer validation unsuccessful", "Actual Value: " &Data_Val&vbcrlf& "Customer Value: " &Customer_Val End If Next
Can i get a simple example exercise for update run mode for sample flight application......... In qtp when i try to run the test in update mode.. Auotmation> update option is disabled............ Pls let me know ................. Thanks in advance.....
What is the extension for Recovery scenario?
In a flight window we have to enter the name and meal request for every passenger.In that window if we give Total passengers=1 then the Psngr1 name field and psngr1 meal request field will reflects.if we give Total passengers=2 then Psngr1 name field and psngr1 meal request field,Psngr2 name field and psngr2 meal request field and so on. how we can handle this scenerio thru Descriptive programming?
What is the syntax to call one action in another?
Hi am New to Automation Testing , any one can you help me what are the basic questiion are asked an interview?
hi, can u tell me the QTP TEsting process in present real time companies?(beware of this... now a days Recording is not using,, only DP) and don't tell note book answers like step 1 spep2....like this .......post answer with professional skills in simple english words) thank u
What is qtp window?
Other than using import sheet statement for importing the data from excel sheet, is there any other method that can be used?