A Page Object is a reusable set of actions. You can create a Page Object by using Architect or from an Instruction, a set of actions within an already existing test case. Once you create the Page Object, you can find it under the Page Object tab on the Test Listing page for future use.
In order to create a Page Object, your test case must have Instructions which group actions in a sequence. Instructions can be added directly from the Test Details page or the Slider View.
Creating a New Page Object Within an Existing Test Case
- Open a Test Case
- Open the Setting menu and select Create Page Object
- Select the Instruction to make into a Page Object and click Update
- Give the Page Object a meaningful name and description, then click Submit
- Your Instruction is now a Page Object, denoted by the dark border
Adding an Existing Page Object with Architect
Once a Page Object, Reusable Element, has been created, it can be added at any time during test creation in Architect. Page Objects, once created, are stored in the Page Objects tab on the Testing Listing page
- To add an existing Page Object to a test during creation, launch Architect for the application under test
- To add the Page Object, click on the + in Architect to open Architect Advanced Actions
- Select Page Objects under the Control section
- Choose from the list of available Page Objects
- This will open and display the list of test actions related to this Page Object
- Click Add to include this page object in the test actions
- The page object has now been added to the test, indicated by the green PO tag
- Proceed as usual, recording the steps for the test
When test creation is complete, Save and name the test which now includes the Page Object
Note: The only Test Type available will be Test Case since this test already includes a Page Object and Functionize does not currently allow nested Page Objects.