CN109062801B - Automatic conversion system for software interface - Google Patents

Automatic conversion system for software interface Download PDF

Info

Publication number
CN109062801B
CN109062801B CN201810863488.9A CN201810863488A CN109062801B CN 109062801 B CN109062801 B CN 109062801B CN 201810863488 A CN201810863488 A CN 201810863488A CN 109062801 B CN109062801 B CN 109062801B
Authority
CN
China
Prior art keywords
interface
message
module
document
software
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810863488.9A
Other languages
Chinese (zh)
Other versions
CN109062801A (en
Inventor
彭曦
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Sichuan Changhong Electric Co Ltd
Original Assignee
Sichuan Changhong Electric Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sichuan Changhong Electric Co Ltd filed Critical Sichuan Changhong Electric Co Ltd
Priority to CN201810863488.9A priority Critical patent/CN109062801B/en
Publication of CN109062801A publication Critical patent/CN109062801A/en
Application granted granted Critical
Publication of CN109062801B publication Critical patent/CN109062801B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3692Test management for test results analysis
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites

Abstract

The invention relates to the technical field of computer software testing, and solves the technical problems that time is wasted and efficiency is low when an interface document is acquired by manually analyzing a message for a software system without the interface document at present. The technical scheme is summarized as follows: the automatic conversion system of the test case interface comprises a message acquisition module, an interface identification module, an interface processing module and a document output module, wherein the message acquisition module acquires all messages of a target system in a network, the interface identification module compares the message content with interface samples based on a large number of preset interface samples to identify the interface information of the messages, the interface processing module acquires specific parameter values of each parameter in the interface information according to the identified interface information and the message content, and finally the obtained result is converted into an interface document with a specified format by the document output module. The invention obtains the interface information of the message by comparing the message with the interface sample, and automatically takes the value of the parameter, thereby saving time and having high interface document conversion efficiency. The method is particularly suitable for interface conversion of different types of new and old software systems.

Description

Automatic conversion system for software interface
Technical Field
The invention relates to the technical field of computer software testing, in particular to the technical field of software automation testing.
Background
Software testing is an important means for improving software quality, and automatic testing is an important direction for improving software testing efficiency. At present, in the process of automatic testing, an older software system does not have an interface document, when automatic case conversion is performed, interface messages need to be manually grabbed and analyzed to obtain interface information of the messages, time is wasted, and if interfaces with more parameters are encountered, more time is consumed, so that the conversion efficiency of the interface document is low.
Disclosure of Invention
The invention provides a software interface automatic conversion system, aiming at solving the technical problems that time is wasted and efficiency is low when an interface document is acquired by manually analyzing a message for a software system without the interface document.
In order to solve the technical problems, the invention adopts the technical scheme that: the software interface automatic conversion system comprises a message acquisition module, an interface identification module, an interface processing module and a document output module;
the message acquisition module is used for acquiring all messages of the software system needing interface conversion and sending the acquired messages to the interface identification module;
the interface identification module comprises an interface sample library, the interface identification module is used for comparing the received message with the interface samples in the interface sample library, identifying the interface type, the interface structure and the interface parameters of the message, if the message identification is successful, the successfully identified message and the interface type, the interface structure and the interface parameters of the message are sent to the interface processing module, and if the message identification is failed, no information is sent to the interface processing module;
the interface processing module is used for acquiring specific parameter values of each parameter according to the received message and the interface type, the interface structure and the interface parameters of the message, and sending the interface type, the interface structure, the interface parameters and the specific parameter values of each parameter of the message to the document output module;
the document output module is used for generating an interface document with a specified format according to the interface type, the interface structure, the interface parameters and the specific parameter values of each parameter of the received message.
As a further optimization, the message collection module is deployed in a network in a bypass manner to collect messages. Therefore, the collection can be carried out under the condition that the normal transmission of the message of the relevant software system is not influenced.
As a further optimization, the interface identification module, the interface processing module and the document output module are installed on the cloud server. The system is installed on a cloud server, a user does not need to increase hardware resource investment, and can quickly obtain service and immediately put into use in a short time only through the service provided by a cloud service provider, so that the cost is saved, and the system is convenient and quick to use.
As a further optimization, the interface sample library comprises common interface samples and/or custom interface samples. According to the particularity of the known interface, a user-defined interface sample can be added into the sample library, so that the failure of message identification is avoided, and the identification rate is improved.
As a further optimization, if the message identification fails in the interface identification module, the interface identification module sends alarm information. The interface identification module sends the alarm information to a user to prompt the user that the identification fails, and the user can review the message with the corresponding identification failure and can define an interface sample according to the message.
As a further optimization, the document output module supports the output of an md (machine description) file and/or a pdf file and/or a word file. And a file format commonly used in the field is adopted, so that the file format is convenient for technicians to call.
The beneficial effects are that: the invention can automatically capture the message, compare the message with a large number of interface samples in the interface sample library to obtain the interface information of the message, and automatically take the value of the parameter, thereby greatly saving the time compared with the manual analysis and improving the conversion efficiency of the interface document. The invention is especially suitable for interface conversion of different types of new and old software systems.
Drawings
FIG. 1 is a system block diagram of the present invention.
Detailed Description
The technical scheme of the invention is further explained by combining the attached drawings.
As shown in fig. 1, the software interface automatic conversion system of the present invention includes a message collection module, an interface identification module, an interface processing module and a document output module, wherein the message collection module, the interface identification module, the interface processing module and the document output module can be installed on a server in the form of application software respectively;
the message acquisition module is used for acquiring all messages of the software system needing interface conversion and sending the acquired messages to the interface identification module;
the interface identification module comprises an interface sample library, the interface identification module is used for comparing the received message with the interface samples in the interface sample library, identifying the interface type, the interface structure and the interface parameters of the message, if the message identification is successful, the successfully identified message and the interface type, the interface structure and the interface parameters of the message are sent to the interface processing module, and if the message identification is failed, no information is sent to the interface processing module;
the interface processing module is used for acquiring specific parameter values of each parameter according to the received message and the interface type, the interface structure and the interface parameters of the message, and sending the interface type, the interface structure, the interface parameters and the specific parameter values of each parameter of the message to the document output module;
the document output module is used for generating an interface document with a specified format according to the interface type, the interface structure, the interface parameters and the specific parameter values of each parameter of the received message.
The invention collects all messages of a target system in a network through a message collecting module, transmits the collected messages to an interface identifying module, the interface identifying module compares the message content with interface samples based on a large number of preset interface samples to identify the interface information of the messages, then transmits the messages and the identified interface information to an interface processing module, the interface processing module obtains the specific parameter value of each parameter in the interface information according to the identified interface information and the message content, and finally, a document output module converts the obtained result into an interface document with a specified format.
The analysis processing mode of each module is further optimized, and the message acquisition module can be deployed in a network in a bypass mode to acquire messages, so that the messages can be acquired under the condition of not influencing the normal transmission of the messages of the related software system. Can install interface identification module, interface processing module and document output module on the high in the clouds server, install these modules that carry out analysis processes on the high in the clouds server, the user need not increase the hardware resource input, as long as see through the service that the high in the clouds service provider provided, just can gain the service rapidly and put into use immediately in very short time, not only practices thrift the cost, uses convenient and fast moreover. Common interface samples and user-defined interface samples can be stored in the interface sample library, and for some special interfaces known by users, the user-defined interface samples can be added in the sample library firstly, so that corresponding message identification failure is avoided, and the identification rate is improved. If the message identification fails in the interface identification module, the interface identification module can send alarm information to prompt a user, and the user can review the message with the failed identification, judge whether a new interface sample needs to be added or not and then identify again. The document output module can support output in various formats, such as an md file, a pdf file, or a word file. When the interface processing module obtains the specific parameter value of each parameter, the value can be taken in various ways, for example, in python, the value can be taken through methods such as tuples, lists, dictionaries and the like.

Claims (6)

1. The automatic conversion system of the software interface is characterized in that: the system comprises a message acquisition module, an interface identification module, an interface processing module and a document output module;
the message acquisition module is used for acquiring all messages of the software system needing interface conversion and sending the acquired messages to the interface identification module;
the interface identification module comprises an interface sample library, the interface identification module is used for comparing the received message with the interface samples in the interface sample library, identifying the interface type, the interface structure and the interface parameters of the message, if the message identification is successful, the successfully identified message and the interface type, the interface structure and the interface parameters of the message are sent to the interface processing module, and if the message identification is failed, no information is sent to the interface processing module;
the interface processing module is used for acquiring specific parameter values of each parameter according to the received message and the interface type, the interface structure and the interface parameters of the message, and sending the interface type, the interface structure, the interface parameters and the specific parameter values of each parameter of the message to the document output module;
the document output module is used for generating an interface document with a specified format according to the interface type, the interface structure, the interface parameters and the specific parameter values of each parameter of the received message.
2. The software interface automatic conversion system of claim 1, wherein: the message acquisition module is deployed in a network in a bypass mode to acquire messages.
3. The software interface automatic conversion system of claim 1, wherein: the interface identification module, the interface processing module and the document output module are installed on the cloud server.
4. The software interface automatic conversion system of claim 1, wherein: the interface sample library comprises common interface samples and/or custom interface samples.
5. The software interface automatic conversion system of claim 1, wherein: and if the message identification fails in the interface identification module, the interface identification module sends alarm information.
6. The software interface automatic conversion system of claim 1, wherein: the document output module supports the output of an md file and/or a pdf file and/or a word file.
CN201810863488.9A 2018-08-01 2018-08-01 Automatic conversion system for software interface Active CN109062801B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810863488.9A CN109062801B (en) 2018-08-01 2018-08-01 Automatic conversion system for software interface

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810863488.9A CN109062801B (en) 2018-08-01 2018-08-01 Automatic conversion system for software interface

Publications (2)

Publication Number Publication Date
CN109062801A CN109062801A (en) 2018-12-21
CN109062801B true CN109062801B (en) 2021-09-14

Family

ID=64832282

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810863488.9A Active CN109062801B (en) 2018-08-01 2018-08-01 Automatic conversion system for software interface

Country Status (1)

Country Link
CN (1) CN109062801B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111628956B (en) * 2019-02-28 2022-11-25 阿里巴巴集团控股有限公司 Format conversion method, device and system for network request transmission data
CN111627171A (en) * 2020-04-28 2020-09-04 深圳壹账通智能科技有限公司 Test message conversion method, device, equipment and medium of ATMP system

Family Cites Families (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7958444B2 (en) * 2006-06-15 2011-06-07 Xerox Corporation Visualizing document annotations in the context of the source document
CN101499002A (en) * 2008-02-02 2009-08-05 阿里巴巴集团控股有限公司 Method, system and apparatus for generating interface document
CN101957759B (en) * 2010-10-21 2013-02-06 江苏科技大学 SDK interface conversion system and implementation method thereof
CN103473243B (en) * 2012-06-08 2017-03-01 富士通株式会社 The method and apparatus of generative semantics network service document
CN103473045A (en) * 2013-08-27 2013-12-25 广州华多网络科技有限公司 Method and device for generating interface documents
GB2527022A (en) * 2014-03-24 2015-12-16 Ram Manohar Tiwari System and methods for web based visual service modeling, code generation, metadata visualization and verification of odata services
CN104484216B (en) * 2014-12-29 2018-03-16 广州品唯软件有限公司 Service interface document and on-line testing instrument generation method, device
CN106533947B (en) * 2015-09-11 2019-10-08 新华三技术有限公司 Message processing method and device
PT3173965T (en) * 2015-11-26 2019-05-20 Tata Consultancy Services Ltd System and method for enablement of data masking for web documents
CN108268253B (en) * 2017-05-05 2020-01-03 平安科技(深圳)有限公司 Interface code generation method and terminal equipment
CN107463376A (en) * 2017-07-21 2017-12-12 珠海牛角科技有限公司 The method and device for automatically generating back end interface document based on Javadoc
CN107678942A (en) * 2017-08-30 2018-02-09 苏州朗动网络科技有限公司 A kind of API automated testing methods
CN108021353B (en) * 2017-12-11 2020-09-29 中盈优创资讯科技有限公司 Device, method, equipment and storage medium for generating description document of software product

Also Published As

Publication number Publication date
CN109062801A (en) 2018-12-21

Similar Documents

Publication Publication Date Title
CN110620790B (en) Network security device linkage processing method and device
CN108521339B (en) Feedback type node fault processing method and system based on cluster log
CN109359098B (en) System and method for monitoring scheduling data network behaviors
CN111274095B (en) Log data processing method, device, equipment and computer readable storage medium
CN102479113B (en) Abnormal self-adapting processing method and system
CN105868075A (en) System and method for monitoring and analyzing great deal of logs in real time
CN106530121B (en) Method and system for detecting safety protection compliance of power monitoring system
CN108965049B (en) Method, device, system and storage medium for providing cluster exception solution
CN109062801B (en) Automatic conversion system for software interface
CN105955876B (en) Data monitoring processing method and device
CN109446042B (en) Log management method and system for intelligent electric equipment
CN116594857A (en) Office software intelligent interaction management platform based on artificial intelligence
CN112612680A (en) Message warning method, system, computer equipment and storage medium
CN111061696A (en) Method and device for analyzing transaction message log
CN113110995A (en) System migration test method and device
CN111831637A (en) Automatic data cleaning system
CN111487595A (en) Radar remote maintenance system and use method thereof
CN111443258A (en) Power grid fault recording graph conversion method and device
CN116414717A (en) Automatic testing method, device, equipment, medium and product based on flow playback
CN116302989A (en) Pressure testing method and system, storage medium and computer equipment
CN115460072A (en) Log processing system integrating log collection, analysis, storage and service
CN114564469A (en) Method and system for processing collected data
CN110955551B (en) Intelligent fault diagnosis device based on tomcat middleware
CN111931012A (en) Data model self-adaption method and device based on fault management subsystem
CN114286203B (en) Electric meter nuclear data distribution processing system and method based on big data

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant