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

Method and device for realizing automatic test of WEB application

A technology of automated testing and test cases, applied in software testing/debugging, error detection/correction, instruments, etc., can solve problems such as limitations of usage scenarios

Active Publication Date: 2021-06-18
云账户技术(天津)有限公司
View PDF3 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The present invention provides a method and device for realizing automated testing of WEB applications, which are used to solve the problem in the prior art that a browser needs to be called for testing when conducting UI automated testing, resulting in limited use scenarios

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
  • Method and device for realizing automatic test of WEB application
  • Method and device for realizing automatic test of WEB application
  • Method and device for realizing automatic test of WEB application

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0060] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are some of the embodiments of the present invention, but not all of them. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.

[0061] Please refer to figure 1 and figure 2 , the embodiment of the present invention provides a method for realizing automated testing of WEB applications, including:

[0062] Step 11: receiving the user's editing operation on the test case file of the WEB application, the test case file records multiple test operations of the user on the WEB application;

[0063] Step 12: In response to the editing operation, call the add instruction function of ...

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 provides a method and device for achieving WEB application automatic testing. The method comprises the steps that editing operation of a user on a test case file of a WEB application is received; in response to the editing operation, calling an instruction adding function of playwright, and adding a screenshot instruction and / or an assertion instruction at a target test operation position in a test case file to obtain an edited test case file; the edited test case file is executed by calling a headless browser function of the playwright, an execution result is generated, and when the edited test case file is executed, a screenshot instruction and / or an assertion instruction are / is executed at a target test operation position; and generating a test report according to the execution result. According to the method, the browser can be not called when the test case is executed by calling the Playwright function, the test case can be executed on the server, and one-key assertion increase and screenshot comparison are supported.

Description

technical field [0001] The invention relates to the field of automated testing, in particular to a method and device for realizing automated testing of WEB applications. Background technique [0002] In the testing of WEB (World Wide Web, global wide area network) projects, UI (User interface, user interface) automated testing is an important automated testing project, which can improve testing efficiency and reduce the time of manual regression testing, so the development of UI automated testing Tools are necessary. [0003] In the current technology, UI automation tools are mostly implemented based on Selenium. Selenium needs to operate the browser, and needs to install various driving software in the webpage. When actually executing the test case, it needs to call the browser. The usage scenarios have certain limitations and complexity. sex. Contents of the invention [0004] The present invention provides a method and device for realizing automated testing of WEB app...

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
IPC IPC(8): G06F11/36
CPCG06F11/3684G06F11/3688
Inventor 张颖孙飞刘敏娟邹永强杨晖
Owner 云账户技术(天津)有限公司
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