Unlock instant, AI-driven research and patent intelligence for your innovation.

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.

Active Publication Date: 2018-04-03
FEITIAN TECHNOLOGIES
View PDF7 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

At present, web-based testing mainly uses manual testing, which is time-consuming, labor-intensive, and boring; in the process of manual testing, it is difficult to reproduce test problems due to different test results due to different testers. The accuracy of the test results cannot be guaranteed

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • A webpage-based automated testing method and device
  • A webpage-based automated testing method and device
  • A webpage-based automated testing method and device

Examples

Experimental program
Comparison scheme
Effect test

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 ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a webpage-based automated testing method, which belongs to the field of automated testing. The method includes: the test system forms a test class list with preset test class names, reads the test class names in the test class list to find the corresponding test class, reads the test case names in the test class to form a test case list, and reads The test case name in the test case list searches for the corresponding test case, finds and operates the page element according to the test case and finds the preset page element on the tested page, and asserts the test result. The test system judges whether there are unread test case names in the test case list. If there are unread test class names, search for the corresponding test class, otherwise the test ends. The beneficial effect of the method is that the automatic test based on the webpage is realized.

Description

technical field [0001] The invention relates to the field of automated testing, in particular to a webpage-based automated testing method and device. Background technique [0002] Webpage-based testing is an important and cumbersome task. In webpage-based testing, it is not only necessary to check and verify whether the page can be executed normally according to the design requirements, but also to detect whether it can be displayed normally on different client terminals, and from the final Usability and security testing from the user's point of view. At present, web-based testing mainly uses manual testing, which is time-consuming, labor-intensive, and boring; in the process of manual testing, it is difficult to reproduce test problems due to different test results due to different testers. The accuracy of test results cannot be guaranteed. Contents of the invention [0003] The purpose of the present invention is to propose a webpage-based automated testing method in o...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): G06F11/36G06F17/30
Inventor 陆舟于华章
Owner FEITIAN TECHNOLOGIES