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

A method and a terminal for automatically comparing interface document differences

An automatic comparison and interface technology, applied in version control, software maintenance/management, etc., can solve the problems of interface code inconsistency and low efficiency in interface differences, document content, etc., so as to improve communication efficiency, reduce workload, and avoid inconsistencies.

Inactive Publication Date: 2019-05-03
FUJIAN TIANQUAN EDUCATION TECH LTD
View PDF5 Cites 7 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] At present, the interface difference document between different software versions is manually edited by the developer, and the interface difference document is provided to the tester, which is inefficient and may cause inconsistencies between the content of the interface difference document and the actual interface code

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 terminal for automatically comparing interface document differences
  • A method and a terminal for automatically comparing interface document differences
  • A method and a terminal for automatically comparing interface document differences

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0064] Please refer to figure 1 , a method for automatically comparing differences in interface documents, including steps:

[0065] Collect the interface document information of different versions of the software through the swagger framework;

[0066] S1. Extracting the first information of the interface documents of the two versions to be compared;

[0067] Wherein, the first information is json information;

[0068] S2. Automatically compare the first information of the interface documents of the two versions to be compared to obtain a comparison result;

[0069] Specifically, the first information of the two versions of the interface document to be compared is divided into first version information and second version information in chronological order;

[0070] Judging whether the interface address in the first version information exists in the second version information, if yes, the comparison result is that the interface address has not been changed; if not, the comp...

Embodiment 2

[0079] Apply the method described in Embodiment 1 to a specific scenario, in a java project:

[0080] Collect the interface documents generated by annotating the interface description through the swagger framework;

[0081] S1. Extracting the first information of the interface documents of the two versions to be compared;

[0082] Wherein, the first information is json information;

[0083] S2. Automatically compare the first information of the interface documents of the two versions to be compared to obtain a comparison result;

[0084] Specifically, a standard json document in swagger format is as follows:

[0085]

[0086]

[0087] Among them, the interface list is under the paths node, and the difference can be obtained by comparing the interface lists under the paths node of the two json documents. Specifically, the json information of the two versions of the interface documents to be compared is arranged in chronological order Divided into first version informat...

Embodiment 3

[0103] Please refer to figure 2 A terminal 1 for automatically comparing interface document differences, comprising a memory 2, a processor 3, and a computer program stored in the memory 2 and operable on the processor 3, when the processor 3 executes the computer program Each step in the first embodiment is realized.

[0104] To sum up, the present invention provides a method and terminal for automatically comparing interface document differences. By extracting the first information of the two versions of the interface documents to be compared, the two versions of the interface to be compared are automatically compared. The first information of the document, the comparison result is obtained, and the comparison result is displayed, which can realize the automatic display of the difference part of the interface document, and reduce the workload of developers manually sorting out the interface difference documents of different software versions. For interfaces with the same in...

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 method and a terminal for automatically comparing interface document differences. First information of interface documents of two versions to be compared is extracted; the first information of the interface documents of the two versions to be compared is automatically compared to obtain a comparison result; the comparison result is displayed. The method and the device have the advantages that interface document difference parts can be automatically displayed, workload of developers for manually sorting interface difference documents of different software versions is reduced, inconsistency of document contents and code definition formats is avoided, and communication efficiency of the developers and testers is improved.

Description

technical field [0001] The invention relates to the technical field of software engineering, in particular to a method and a terminal for automatically comparing interface document differences. Background technique [0002] With the popularity of agile development, the cycle of software version iterations is getting shorter and shorter. When testing each software version, testers need to understand the changes in the functions of this version, especially the changes in the interface of this version, in order to prepare test cases. and test scripts. [0003] At present, developers manually edit the interface difference documents between different software versions and provide the interface difference documents to testers. This is inefficient and may cause inconsistencies between the content of the interface difference documents and the actual interface code. Contents of the invention [0004] The technical problem to be solved by the present invention is to provide a metho...

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): G06F8/71
Inventor 刘德建郭玉湖罗陈珑黄良江颜建锦游路瑶
Owner FUJIAN TIANQUAN EDUCATION TECH LTD
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