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 |
What is quicktest professional?
how qtp handles customised object
What is the main difference between desriptive programming and generic functions
write vb script code to delete the duplicate values in an array.
Hi All, I have QTP installed on my machine but the application under test (AUT) is on remote desktop (i.e. I first connect to remote desktop from my machine in order to run the application). I am able to record the script successfully with QTP running on my machine and application running on remote. However, when i run the recorded script, system fails to run it and indicates me that it does not identify the object. Is it possible to record and play while QTP and AUT are not on same machine?
can any one tell me the script to click on a button in the wintoolbar.
Explain synchronization types in QTP
IF THE GUI OF APPLICATION IS CHANGED THEN IS THERE ANY NECISSITY TO CHANGE OR UPDATE OUR TEST SCRIPTS
I AM TRYING PORT CODE FROM WINRUNNER TO QTP AND DON'T KNOW TO HOW TO CHECK THE ERRORS. IN WINRUNNER FUNCTION RETURNS EIGHER 0 OR -1 AGAINST WHICH RESULT CAN BE MADE PASS OR FAIL BUT IN QTP I DON'T SEE FUNCTIONS RETURNING ANY VALUE. APPRECIATE IF ANYONE COULD HELP ME CONVERTING FOLLWOING WINRUNNER CODE TO QTP. set_window("Customer Service"); rc = web_obj_get_text("Summary","#2","#4",ssn,""," ",1); if (rc != E_OK) { report_msg("[GetSubscriberSummary] Could Not get subscriber SSN; rc = "&rc); myRC = rc; } else { ssn = StripBlank(ssn); if (DEBUG) report_msg ("[GetSubscriberSummary] SSN: "&ssn); }
Hi guys i'm prepareing for interview question for qtp i don't have bayground for vb scipt language can any one tell me it is easy to do job in qtp without bayground.
Is text area check point supports for web applications?
What is the basic concept of quicktest professional (qtp)?