A webpage-based automated testing method and device
A technology for automated testing and web pages, applied in software testing/debugging, special data processing applications, instruments, etc., to solve problems such as time-consuming and labor-intensive, inability to guarantee the accuracy of test results, and boring work.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0229] This embodiment provides a webpage-based automated testing method, which is automatically executed by the test system according to the project root directory figure 1 steps shown. Specifically, the project root directory includes startup scripts, project configuration files, test classes, test data files, command key-value pair files, and page element files.
[0230] Step 101, receiving a command to start a test.
[0231] Step 102, read the pre-added test class name in the startup script to form a test class list.
[0232] The startup script is the general entrance of the webpage automation test, and specifies the test class to be executed.
[0233] For example, in this embodiment, there are two test class names in the startup script: the login test class name and the token management test class name, and there are two test class names in the formed test class list.
[0234] Step 103, obtain a test class name that has not been obtained in the test class list, and sea...
Embodiment 2
[0485] This embodiment provides a webpage-based automated testing device, such as Image 6 shown, including:
[0486] Storage module 11, is used for storing project configuration file, startup script, test class, operation command file, test report file, test data file and page element file;
[0487] The test class list generation module 12 is used to read the test class name preset in the startup script stored in the storage module 11 to form a test class list;
[0488] Obtain a test class module 13, which is used to obtain a test class name that has not been acquired in the test class list formed by the test class list generation module 12;
[0489] The test case list generation module 14 is used to search the corresponding test class as the current test class in the storage module 11 according to the test class name obtained by the test class module 13, and reads the test case name in the current test class to form a test list of use cases;
[0490] Get test case module ...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


