GUI
Actions – Part 2
Inserting a call
We can insert a call to
- New action
- Existing action
- Copy of an action
Ways in which we can insert a call
1. From the Design menu
option
- From the Canvas/Keyword view
- Record toolbar
Call
to COPY of an Action
- the action is copied in its entirety, including checkpoints, parameterization, and the corresponding action tab in the Data Table into the calling test
- you can make changes to the copied action, and your changes will not affect nor be affected by any other test
- You can insert copies of both reusable and non-reusable actions
Call
to an EXISTING Action
- Calls to existing actions are read-only in the calling test
- can only be modified in the test in which they were created
- Enables you to use the same action in several tests and makes it easy to maintain tests
- You can make calls to only "Reusable" actions
LoadAndRunAction statement
We
can load and call actions dynamically using the LoadAndRunAction
statement.
Syntax
- LoadAndRunAction(TestPath, ActionName,
[Iteration], [Parameters])
TestPath - Type - Variant - absolute path of the action, ALM path or relative path
ActionName - Type - Variant - Name of the action
Iteration - Type - Variant - default value - one iteration or 0
alliterations or 1
range of iterations 1-7
TestPath - Type - Variant - absolute path of the action, ALM path or relative path
ActionName - Type - Variant - Name of the action
Iteration - Type - Variant - default value - one iteration or 0
alliterations or 1
range of iterations 1-7
Commands
to Exit Actions
ExitAction
– exits the current action regardless of its iteration attributes
ExitActionIteration
– exists the current iteration of the action
No comments:
Post a Comment