how do pass parameters from one action to another action
Answer Posted / 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 |
Post New Answer View All Answers
Explain how to use QTP to check broken links on a page?
When and why to use descriptive programming?
When ‘option explicit’ keyword is used in qtp?
How you can write contexts to text file in qtp?
your coming from electrical backgroung..but y ur coming to software side?
what are the limitations of smart identification in qtp 9.0
What kinds of security (firewalls, encryptions, passwords, etc.) will be required and what is it expected to do? How can it be tested?
how to find that tools work well with ur existing system?
Describe how Smart Identification is used
How to handle Java tree in QTP?
How do we handle run-time errors?
1--How many functions u develop 2--What is an array 3-- where is ur server 4--U involved in unit testing 5--how ur test the background colour using QTP
I want to open a Notepad window without recording a test and I do not want to use System utility Run command as well. How do I do this?
How to save your test using quicktest professional (qtp)?
when u script reveiwing in which area u more concentrates?