how do pass parameters from one action to another action
Answers were Sorted based on User's Feedback
Answer / ravi_kanakam
We can pass parameters from one action to another action in
the following three different ways.
1. Datatable
2. Action parameters
3. Environment variables
Is This Answer Correct ? | 5 Yes | 2 No |
Answer / aarati borse
Whatever Ravi has mentioned it is true...
Practically we can do like this..
Here I am using Action Parameters...
REquirement in Flight Reservation Apps is
Name by which user is getting logged in by same name a new
order also should get inserted..
1)Record for login window.
2)Rename the action as login_name
3)Pass the op value in action parameters as "agent_name"
4)By using Getro property fetch the agent name value and
store it in parameter agent name itself.
code willbe
parameter("agent_name")=window("FR").........winedit("Agent
Name").getroproperty"text"
5)save the test.
6)Now record for the insert order in new test
and make changes as follow
Window("FR").winedit("Name").set parameter("agent_name")
7)Make this action reuasable and rename it as insert_name
8)Save all changes in the test.
9)Move to first test again that is in login_name action
10)Keep ur cursor at end and call the existing action i.e
insert_name.
11)In expert view u will get the statement as
RunAction "insert_agent",oneIteration
we need to add as
RunAction "insert_agent",oneIteration ,parameter
("agent_name")
12)save d changes again..
13)now run login_name action
It will work...
Is This Answer Correct ? | 1 Yes | 1 No |
hi Action 1 and action2 if we save it in C:, what folders will be created explain plz
Can you expect major bugs in Net banking Application?
What is difference between Recording time object identification and Run time (Execution) time.
what is the code in QTP to take screen shot?
The hybrid framework can be implemented for any application. Is it true?
What u say as experience(Interview) "TELL ME ABOUT UR SELf"? As a Fresher(interview) What u Say?
Deal All, Recently i face one interview question in one company. str="test12@#3456" In This i want to print like special character and numeric ,word in one script please tell me how to write the code for this Thanks Balaji
can we enable smart identification for test object
Does UNIX support QTP? If not what is the other tool used for Unix environment?
How do we connect QC by using QTP?
A web Page has a webtable with four columns and four rows. The first column is of ID and has values of 100,100A,A100,100y Find out the number of rows whose ID starts with 100. Similarly the last column is 'number of links'. Each row in the last column has values like link1,link2,link3 etc Find out the number of links where id is 100
Hi,All How to change background color of a cell in excel using qtp and that too with out using Excel Object.(I am importing the excel sheet by using ImportSheet method)