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

A method and device for realizing automated testing of web applications

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-07-16
云账户技术(天津)有限公司
View PDF3 Cites 0 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
  • A method and device for realizing automated testing of web applications
  • A method and device for realizing automated testing of web applications
  • A method and device for realizing automated testing of web applications

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 present invention provides a method and device for realizing automatic testing of WEB applications, including: receiving the editing operation of the test case file of the WEB application by the user; in response to the editing operation, calling the increase instruction function of playwright, in the test case file Add screenshot instructions and / or assertion instructions at the target test operation to get the edited test case file; execute the edited test case file by calling playwright's headless browser function to generate execution results, among which, execute the edited test When using the case file, execute the screenshot instruction and / or the assertion instruction at the target test operation; generate a test report according to the execution result. In the present invention, by calling the function of Playwright, the test case can be executed without calling the browser, and the test case can be executed on the server, and supports one-key addition of assertion and comparison of screenshots.

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
Patent Type & Authority Patents(China)
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