Import Actions Overview
Users can bring in specific actions from Page Objects and other test cases in the same Project with the Import Action feature.
Importing a Page Object
Steps to Import a Page Object:
-
Open your Test
-
Click on the Import Actions button
-
Select the Source Type of your import:
- Choose "Page Object" from the drop-down menu.
- Choose "Page Object" from the drop-down menu.
-
Select the Page Object from the drop-down menu
- The left panel will display the selected Page Object as a high-level, single tile without the detailed Page Object steps.
- The left panel will display the selected Page Object as a high-level, single tile without the detailed Page Object steps.
-
Drag the Page Object from the left panel to the desired location on the right panel
- Note: The Page Object can only be dropped between Instructions, not between Steps.
-
Release the Action and make adjustments as needed
-
Click Save
-
Modify Parameters (optional)
- A pop-up appears where the user can add Parameterization to the Page Object if needed, or just click Cancel if parameterization is not required.
- A pop-up appears where the user can add Parameterization to the Page Object if needed, or just click Cancel if parameterization is not required.
-
Completion
- The Page Object has been added with a new tag to the Test for the upcoming execution.
- The Page Object has been added with a new tag to the Test for the upcoming execution.
Importing Actions from a Test Case
Steps to Import Actions from a Test Case:
-
Open your Test
-
Click on the Import Actions button
-
Select the Source Type of your import:
- Choose "Test Cases" from the drop-down menu.
- Choose "Test Cases" from the drop-down menu.
-
Select the Test Case from the drop-down menu
- The left panel will display the selected test's action log.
- The left panel will display the selected test's action log.
-
Scroll through each test to find the Action you want to import
- Determine where you want to insert it on the right panel.
-
Drag the Action from the left panel to the desired location on the right panel
-
Release the Action and make adjustments as needed
-
Click Save
- A new action is now added with a NEW tag into the test for the next execution.
Summary
The Import Actions feature in Functionize allows users to streamline their testing process by reusing existing Page Objects and Actions from other test cases. This enhances efficiency and ensures consistency across tests within the same project.