How do we ”Call to Existing Action” programmatically (without right-click then Call to Existing Action)?
Question ID: 106494
1
0

How do we "Call to Existing Action" programmatically (without right-click then Call to Existing Action)? In other words, we don’t know which existing action to be run at design time until the run time. Therefore, we need to find out how to dynamically load the action from ALM based on the path.

Marked as spam
Posted by (Questions: 424, Answers: 91)
Asked on October 29, 2015 2:51 pm
129 views
Answers (1)
1
Private answer

1) If calling Action from the same script, use the programmatic statement ''RunAction''.

2) If calling Action from another script, make sure the source Action is reusable, then insert a call to your reusable source action by either going to the GUI's Insert menu and selecting ''Call to Existing Action'' (or ''Call to Copy of Action'') or programmatically by using the statement ''LoadAndRunAction'' which loads the dedicated resources of a reusable action to the main test during run-time.

Marked as spam
Posted by (Questions: 0, Answers: 771)
Answered on October 29, 2015 2:51 pm
0
Using RunAction worked for me. Thanks.
( at October 29, 2015 2:51 pm)
EyeOnTesting

Welcome back to "EyeOnTesting" brought to you by Orasi Software, Inc.

X
Scroll to Top