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 All As per the requirements i have to copy the data from word document to excel sheet using the QTP Note : Data in word document is in tabular format i.e there is 80 rows and 5 columns table Can any body provide code for this ? Thanks in advance Regards Test123Test
what is command for executing files?
what are the design objects in qtp
How to open a new test using quicktest professional (qtp)?
How can we use regular expressions for a table in web page, each cell in table having unique identification, Now I want to count number of rows in table and enter data in all cells of the table?
what's the difference in between function and sub and give some code as well
How do u fetch data from a database ?
Extract a word from a sentenece?
How will you handle custom object in QTP?
In how may ways we can use checkpoints to an application using QTP?
with out object repository i need to launch IE and then navigate to a login page and then operate the objects within the page. How will be the script?
Under what conditions would you recommend QTP for future projects?