How can i add a action (external action) programatically?

Showing Answers 1 - 4 of 4 Answers

sunil

  • Nov 14th, 2005
 

hi,

if action is reusable then only u can call only in other test with "runaction" command and in folder option u hv to gv information regarding test from where u r takin action.u can do it programatically also.

  Was this answer useful?  Yes

RambhupalReddy

  • Nov 18th, 2005
 

Hai,

=====

You can add an external Action programatically using the Command

RunAction ActionName, [IterationMode , IterationRange]

Before you can use the RunAction statement in the Expert View for an external action, you must first call or copy the external action into your test by choosing Insert > Copy of Action or Call to Action. If the external action does not exist in your test, the RunAction statement is not recognized.

Example

The following example calls the SearchFlight action, and runs all iterations of the action.

Call RunAction "SearchFlight", rngIterations, rngAll

============

I hope it is sufficient Answer for ur Question

 

We cannot add an action programatically because it is going to maintain a internal logic while using an external or reusable action.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions