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 |
Hi frnds, does anybody know if there is anything called "thin point" or something in qtp? thanks in advance.
Pls anyone, tell me the script in QTP to find the number of links, and images in a webpage. Verry very urgent. I shall really be very thankful
Qtp Automation Engineer , Can he login in VSS? What purpose he login In VSS? But Some companys are using CVS AND VSS ? some are Have log in in VSS Some Not login(not accessing) into VSS, not login persons are working on CVS? my doubt is, can Qtp automation engineer have loin in VSS or not? Where he store QTp Script?
A web Page has 2 frames. Find out the number of weblist items in the second frame of the page.
what is web application and client server application.is there any difference ?
Excepton Handling?
wht is Automation testing frame work. pls explain it
How u perform exception handling in QTp,what is other name for ths?
This is Karthic and my mail id is karthic.venkitapathi@gmail.com, please give me an idea to crack qtp 10
Dear All, How to generate Pass or Fail Report in QTP without using Reporter.Report Event Method ? Thanks Balaji
How do you script a nested loop in QTP? I am showing a snipet of my code. Any suggestions to help me get this to work would be great appreciated! STEP A - Customer Number: No loop - ISBN: Loop STEP B - Customer Number: Loop - ISBN: Nested Loop Here is the code I am using now. I am using i for the loop and j for the nested loop in STEP B of my script. =========================================== 'CREATE AN ADDITIONAL CUSTOMER Dim myNum, RowNum, RowCnt2, val2, total, i DataTable.ImportSheet "C:\QOE Data - UAT1.xls" ,"Data" ,"Global" RowCnt2 = DataTable.GetRowCount i = 1 DataTable.SetCurrentRow(i) ' Set row to one Do while Not i > RowCnt2 i=i+1 DataTable.SetNextRow MsgBox Datatable.Value("Customer_Num") Msgbox i Msgbox RowCnt2 If Not i > RowCnt2 then val2=datatable.Value("Customer_Num","Global") OracleFormWindow("Sales Order").SelectMenu "File->New" OracleFormWindow("Sales Order").OracleTabbedRegion("Order Information").OracleTextField("Customer Number").SetFocus OracleFormWindow("Sales Order").OracleTabbedRegion("Order Information").OracleTextField("Customer Number").Enter val2 End If 'CREATE SECOND ISBN LIST DataTable.ImportSheet "C:\QOE Data - UAT1.xls" ,"Data" ,"Global" Dim j, RowCnt3, val3 RowCnt3 = DataTable.GetRowCount For j = 1 To RowCnt3 DataTable.SetCurrentRow(i) ' datatable.getSheet("DataTable").setNextRow If Trim(DataTable("ISBN",dtGlobalSheet)) = "" Then j = j - 1 Exit For End If Next 'Define ISBN rows If RowCnt3 <> j Then RowCnt3 = j End If 'Loop through ISBN rows For j = 1 To RowCnt3 DataTable.SetCurrentRow(i) val3 = Datatable.Value("ISBN","Global") msgbox j If j = 1 Then OracleFormWindow("Sales Order").OracleTabbedRegion("Line Items").OracleTextField("Ordered Item").SetFocus OracleFormWindow("Sales Order").OracleTabbedRegion("Line Items").OracleTextField("Ordered Item").Enter val3 else If j < 16 Then OracleFormWindow("Sales Order").OracleTabbedRegion("Line Items").OracleTextField("Ordered Item_"&i).SetFocus OracleFormWindow("Sales Order").OracleTabbedRegion("Line Items").OracleTextField("Ordered Item_"&i).Enter val3 else If RowCnt1 => 16 Then OracleFormWindow("Sales Order").OracleTabbedRegion("Line Items").OracleTextField("Ordered Item_15").SetFocus OracleFormWindow("Sales Order").OracleTabbedRegion("Line Items").OracleTextField("Ordered Item_15").InvokeSoftkey "DOWN" OracleFormWindow("Sales Order").OracleTabbedRegion("Line Items").OracleTextField("Ordered Item_15").SetFocus OracleFormWindow("Sales Order").OracleTabbedRegion("Line Items").OracleTextField("Ordered Item_15").Enter val3 end if end if End If Next 'EXIT APP msgbox i loop Browser("Browser").Page("Oracle Applications 11i").Sync Browser("Browser").Close ========================================== It isn't working correctly in my nested loop in STEP B (for ISBN). Any ideas?? Thanks! SBsteve
keyword driven framework having how many folders? explain folders in detail?