Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

UI automated test method, computing device and storage medium

A technology of automated testing and computing equipment, applied in the field of Internet testing, can solve the problems of selenium's lack of functions, unsuccessful playback, and long time.

Inactive Publication Date: 2019-01-04
BEIJING CHESHANGHUI SOFTWARE
View PDF6 Cites 15 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] At present, Selenium is more representative of UI automation testing software. This software has many shortcomings. For example, the recording script is heavily dependent on the structure of the web page. The action method, which relies heavily on the js parsing capabilities of each browser, will take a long time to execute a task; different browsers need to be installed on the execution machine to perform the corresponding task. In this case, it cannot support no The interface is a linux server; in reality, due to the rapid system upgrade iterations and frequent changes in the page structure, the reuse rate of scripts is low, and each revision requires technicians to re-record the scripts, which is a heavy workload; other programming languages ​​are needed For example, python is used to achieve screenshots; most of the webpage content is loaded asynchronously. For such webpages, selenium does not have a corresponding page loading waiting mechanism; similar DOM-based positioning strategies are adopted, such as: xpath, id, name, identifier and other page element identification, however, in reality, the elements of the page are not as clear as expected
When testing the user interface, like the server interface, it is also necessary to mock the page elements (in the test, for some objects that are not easy to obtain, a method of creating a virtual object for testing), In order to quickly simulate the scene that needs to be tested, but selenium lacks this function, so that when performing automatic testing, the tester needs to enter various scene data in the tested system in advance, which not only increases the workload of the tester, but also There is intrusion into the test data; it only solves the problem of testing, but does not solve the need for automatic monitoring. In actual business, the stable operation of the online system depends on various middleware and third-party services, and the uncertainty is relatively large. The test function before going online is normal, but functional errors often occur online, and the technicians cannot know it at the first time, resulting in losses for the company
[0005] Therefore, a UI automation testing solution is needed, which can solve the automation testing and monitoring problems of different web pages and different businesses

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
  • UI automated test method, computing device and storage medium
  • UI automated test method, computing device and storage medium
  • UI automated test method, computing device and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0028] Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited by the embodiments set forth herein. Rather, these embodiments are provided for more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.

[0029] At present, the user interface UI automation test software is more representative of selenium, which needs to start a proxy server to handle the communication between the user and the test server. Selenium introduces a remote control server (Remote ControlServer), and JavaScript script injection and communication with the test server are performed through this proxy server. figure 1 Shows a schematic flow chart of the operat...

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 UI automatic test method, which is executed in a browser. The method comprises the following steps: configuring structured data corresponding to a test scene; mapping an instruction behavior of an operation instruction to a first key; mapping an expected type of assertion operation to a second key; executing operational instructions in the test scenario based on the structured data, the first keyword and the second keyword; and generating a test result report based on the expected type of assertion operation. The scheme solves the problem of automatic testing and monitoring of web system based on browser / server structure at UI level.

Description

technical field [0001] The invention relates to the technical field of Internet testing, in particular to a UI automatic testing method, computing equipment and a storage medium. Background technique [0002] Automated testing is a process of converting human-driven testing behavior into machine execution. Usually, after the test case is designed and passed the review, the tester executes the test step by step according to the procedure described in the test case, and compares the actual result with the expected result. In order to save manpower, time or hardware resources and improve test efficiency, the concept of automated testing is introduced. [0003] Among them, UI (user interface) automated testing is the entrance for users to use the product. All functions are provided to users through this layer, and most of the testing work is concentrated on this layer. Common testing tools include UFT, Robot Framework, Selenium, Appium, etc. [0004] At present, Selenium is mo...

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 Applications(China)
IPC IPC(8): G06F11/36
CPCG06F11/3688G06F11/3692
Inventor 冯岩
Owner BEIJING CHESHANGHUI SOFTWARE
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products