Automatic testing method for page objects
A technology for automated testing and page objects, applied in software testing/debugging, error detection/correction, instrumentation, etc., to solve problems such as inconvenient maintenance and modification, poor readability of test programs, and difficulty in loading
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Examples
Embodiment Construction
[0038] In order to make the technical solutions of the present invention clearer and clearer to those skilled in the art, the present invention will be further described in detail below in conjunction with examples, but the embodiments of the present invention are not limited thereto.
[0039] A method for automated testing of page objects provided in this embodiment includes the following steps:
[0040] S1: Design each page as a Class;
[0041] S2: Obtain page elements by calling the page class in the Selenium test page;
[0042] S3: read test instructions from page elements;
[0043] S4: According to the test instruction, call the page code file of the page to be tested, and use the Class that does not perform the page element search operation to create a page object instance;
[0044] S5: call the page operation-related Class specified by the test instruction for testing the page object instance;
[0045] S6: Call the page element in the page operation-related Class to ...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More