Supercharge Your Innovation With Domain-Expert AI Agents!

Interface automation testing framework and method

An automated testing and interface technology, applied in software testing/debugging, error detection/correction, instruments, etc., can solve the problems of automated test management without program interface, unintuitiveness, single test report, etc., and achieve intuitive and functional test case writing. Powerful, code-saving effects

Active Publication Date: 2021-05-28
开工智合(江苏)数字技术有限公司
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] To sum up, the existing technology does not manage the interface automation test of the program, and has the following defects at the same time:
[0004] (1). After executing the use case, it cannot be combined with jenkins to automatically trigger the email notification;
[0005] (2). Does not meet the business scenario of the company's rapid iteration;
[0006] (3). The test report is single and not intuitive

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
  • Interface automation testing framework and method
  • Interface automation testing framework and method
  • Interface automation testing framework and method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0044] The technical solutions provided by the present invention will be described in detail below in conjunction with specific examples. It should be understood that the following specific embodiments are only used to illustrate the present invention and are not intended to limit the scope of the present invention. In addition, the steps shown in the flow diagrams of the figures may be performed in a computer system, such as a set of computer-executable instructions, and, although a logical order is shown in the flow diagrams, in some cases, the sequence may be different. The steps shown or described are performed in the order herein.

[0045] The interface automation testing framework provided by the present invention mainly includes test case, Jenkins batch execution module, initialization and restoration module, api request module, getToken request module, wherein, Jenkins batch execution module is used for batch execution test case, calls api request in the test case modu...

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 an interface automation testing framework and a corresponding testing method. The framework includes a test case, a Jenkins batch execution module, an initialization and restoration module, and an api request module. The Jenkins batch execution module executes the same directory in batches by executing the runtest.py file. Test case; the test case is set with "request connection", "request data" and "expected result", which calls the api request module, the api request module sends a request to the interface of the system under test, and receives the return value of the interface, and performs a test based on the result Assertion, and use cases are marked according to the assertion result; the initialization and restoration module is used to initialize and restore the system data under test. The invention encapsulates and calls the sending request function, saves codes, can realize rapid writing of interface automation test cases, and can automatically trigger mail notifications.

Description

technical field [0001] The invention belongs to the technical field of computer software, and relates to an interface automation testing framework and a corresponding testing method. Background technique [0002] Almost all the existing interface automation testing frameworks on the market directly use script code to write test cases. Using script code means that there are many lines of code in a test case, and there is a lot of redundancy. Some people also use third-party software such as postman and SoapUI to manage interface use cases, but the third-party tools do not have the ability to batch execute and generate test reports. [0003] To sum up, the existing technology does not manage the interface automation test of the program, and has the following defects at the same time: [0004] (1). After executing the use case, it cannot be combined with jenkins to automatically trigger the email notification; [0005] (2). Does not meet the business scenario of the company's...

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/3684
Inventor 方鑫
Owner 开工智合(江苏)数字技术有限公司
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More