I have 1 to 10 action are there, i want action1 output
becomes to action 10 input? pls any can give script for
this scenario?

Answers were Sorted based on User's Feedback



I have 1 to 10 action are there, i want action1 output becomes to action 10 input? pls any can giv..

Answer / pankajb

It's Very Simple

Just, get the output value store in the data table with
appropriate column name.
And when using it in another action just give the name of
the sheet and then name of the column where that output
value is stored.

pankaj_behl@hotmail.com

Is This Answer Correct ?    4 Yes 0 No

I have 1 to 10 action are there, i want action1 output becomes to action 10 input? pls any can giv..

Answer / pratap

We Can Use Environment Parameters to over come this
problem ,,
Ex : Environment("Name")="Pratap"
Think pratap is output of first action . If you declare
it as environment parameter you can use in any action.

Is This Answer Correct ?    1 Yes 0 No

I have 1 to 10 action are there, i want action1 output becomes to action 10 input? pls any can giv..

Answer / karunakar

Example:
Inpt1=RunAction Action1(OneIteration), here we get the
output of Action1 into Inpt1 and the same is used as
parameter for Action10.

RunAction Action10(OneIteration,Inpt1)

Is This Answer Correct ?    1 Yes 2 No

I have 1 to 10 action are there, i want action1 output becomes to action 10 input? pls any can giv..

Answer / christopher thirumaran

All above ans are wrong.

We need to create Action-Parameter for both Actions.

For eg.
in Action1_Properties:(Input-Parameter: InputName, Type)

'Assigning the InputName value to the Variable
in Action1_Script: Action1_Param=Parameter("InputName")

in Action10 properties (Output-Parameter: OutPutName,
Type)

THEN

RunAction "Action1", OneIteration
RunAction "Action10", OneIteration, OutPutName

Tats all.

Is This Answer Correct ?    0 Yes 1 No

I have 1 to 10 action are there, i want action1 output becomes to action 10 input? pls any can giv..

Answer / praveen

THATS WRONG ANSWER

Is This Answer Correct ?    0 Yes 2 No

Post New Answer

More QTP Interview Questions

If I change the object name in one action will it be updated in all the actions? Or not?

0 Answers  


Hi, When iam trying to import sheet to the QTP Global data table at the run time using the Importsheet method.It is able to import the sheet but no data is present after the import due to which the test is failing.Could anyone suggest what should be done. When I open the actual excel sheet data is present and is not corrupted.

2 Answers  


Can I import a excel sheet in Action1 datatable? How?

2 Answers   IBM,


How you debug your script?

0 Answers  


hi guys we r working in office...we write some scripts..suddenly we have a work(5min only) in out side..what will do now,,,used to system shut down or log off or lock or sleep mode,switch use or hibernate?

0 Answers  






What is Data driven Testing Frame work.Anybody can expain it in Detail.. Pls anybody can give the answer.. Thanks in advance...

1 Answers   Navis,


How to call actions in QTP?

2 Answers   Wipro,


For which type of project the iterative model is suitable?

0 Answers  


If you have given 1000 manual test scripts, what test you will do? and how?

2 Answers  


Does the Existing reusable action can be modified at the time of calling the action?? Please help me..

2 Answers  


Can anyone pls tell me in realtime (descriptive programming) how will the properties of the object be given to the test team. R they given in an excel sheet and is the same sheet also given to the development team and by whom is this given? Thanks a lot.

0 Answers  


How will you handle custom object in QTP?

2 Answers  


Categories