Action Sharing
You define an Action with an Origin Context. By default, the action is available only from its Origin Context. When you are building a Scenario, an Action shows up only if the previous step in the Scenario results the application to navigate to its Origin Context.
In case there is a need to make this Action available in other Contexts, you can setup sharing. Action becomes available in multiple Contexts, while still centralizing the logic, element identification and other resources.
Example,
On an e-commerce application, “Navigate to Home Page” or "Verify Footer Links" may be available on all the application pages. In such cases, you can define the Action in one Context and share it with other applicable Contexts, hence avoiding duplication of logic.
How to share an Action
On the Action Editor view, click "Sharing" tab on the sidebar. Click the button to start sharing.
You can decide to either share with a list of given context names or share globally with all contexts in the Project.
Note: It is important to carefully consider the sharing needs. If not done judiciously, it could create confusion downstream when you are building Scenarios. Especially with share-all option, pay extra attention to make sure of the requirement.
Comments
0 comments
Please sign in to leave a comment.