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


Please Help Members By Posting Answers For Below Questions

Explain how to use QTP to check broken links on a page?

581


When and why to use descriptive programming?

603


When ‘option explicit’ keyword is used in qtp?

744


How you can write contexts to text file in qtp?

588


your coming from electrical backgroung..but y ur coming to software side?

1384






what are the limitations of smart identification in qtp 9.0

1921


What kinds of security (firewalls, encryptions, passwords, etc.) will be required and what is it expected to do? How can it be tested?

633


how to find that tools work well with ur existing system?

1352


Describe how Smart Identification is used

1691


How to handle Java tree in QTP?

742


How do we handle run-time errors?

575


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

1539


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?

617


How to save your test using quicktest professional (qtp)?

590


when u script reveiwing in which area u more concentrates?

1416