Supercharge Your Innovation With Domain-Expert AI Agents!

a method and a system for generating an interface test report based on Java

A technology for report generation and interface testing, which is applied in software testing/debugging, error detection/correction, instruments, etc. It can solve the problems of difficult expansion and high maintenance cost of test cases, and achieve the effect of easy maintenance, low cost and low maintenance cost

Active Publication Date: 2019-01-22
挖财网络技术有限公司
View PDF4 Cites 13 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0017] b. The test logic and test report logic are tightly coupled, and the maintenance cost of test cases is high
[0018] c. If it is necessary to increase the test report indicators, it will affect the whole body, and it is not easy to expand

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 a system for generating an interface test report based on Java
  • a method and a system for generating an interface test report based on Java
  • a method and a system for generating an interface test report based on Java

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0058] The preferred embodiments of this patent will be described in further detail below in conjunction with the accompanying drawings.

[0059] Such as figure 1 and figure 2 Shown is a Java-based interface test report generation method, which may include the following steps:

[0060] S1, define the class annotation @TestInterface for the interface, define the method annotation @TestMethod for a single test case, @TestInterface and @TestMethod include several parameters reflecting the test report information.

[0061] Java annotation is a code-level description, which is some meta-information attached to the code, which is used for parsing and using some tools when compiling and running, and functions as description and configuration. Commonly used are method (function) annotations and class annotations, which can be simply understood as a code form of annotations for classes and methods. An advantage of annotations is that they will not and cannot affect the actual logic ...

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 relates to a method and a system for generating an interface test report based on Java. The method comprises the following steps: S1, annotating @ TestInterface for interface definitionclass, annotating @ TestMethod for single test case definition method, @ TestInterface and @ TestMethod including several parameters reflecting test report information; S2, adding @ TestInterface and@ TestMethod to the test case, getting the currently executed test case @ TestMethod and the @ TestInterface in the test class before executing the test case, Parsing @ TestInterface and @ TestMethodto get the parameters that reflect the test report information and store them in the cache; 3, executing a test case and storing the test result in a cache; S4, generating a test report according to the information in the cache. The system comprises an annotation addition module, an annotation application module, a test case execution module and a test report generation module. The invention separates the test report information from the test case to the annotation, and separates the test report logic from the test script logic.

Description

technical field [0001] The invention relates to the field of software interface testing, in particular to a Java-based interface testing report generation method and system. Background technique [0002] In the category of IT, the concept of interface is mainly the part that interacts and interacts between subsystems. The software interface looks at various application APIs, hardware drivers, database system access interfaces, and http rest interfaces in terms of form. Although the forms of interfaces are different, from the perspective of testing, the content to be tested is roughly the same. Interface testing belongs to functional testing, and it can also be regarded as gray box testing that needs to understand part of the code. The test process is: 1. Write test cases according to the interface document (the use case writing method can be written according to the use case writing rules of black box testing, such as: boundary value, orthogonal table and other design meth...

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/3692
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