[go: up one dir, main page]

CN109062801A - Software interface automated conversion system - Google Patents

Software interface automated conversion system Download PDF

Info

Publication number
CN109062801A
CN109062801A CN201810863488.9A CN201810863488A CN109062801A CN 109062801 A CN109062801 A CN 109062801A CN 201810863488 A CN201810863488 A CN 201810863488A CN 109062801 A CN109062801 A CN 109062801A
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.)
Granted
Application number
CN201810863488.9A
Other languages
Chinese (zh)
Other versions
CN109062801B (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

Classifications

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

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

It the present invention relates to computer software testing technical field, solves at present for the software systems of not interface document, its interface document is obtained by manual analysis message and is wasted time, the technical issues of low efficiency.Technical solution is summarized are as follows: test case interface automated conversion system, message acquisition module acquires all messages of goal systems in a network, interface identification module is based on preset a large amount of interface samples, message content and interface sample are compared, identify the interface message of outgoing packet, interface processing module is according to the interface message and message content identified, obtained result, is finally converted to the interface document of specified format by the design parameter value for obtaining each parameter in interface message by document output module.The present invention obtains the interface message of message by comparing message and interface sample, and saves time, interface document high conversion efficiency to parameter value automatically.Interface conversion especially suitable for different types of new, old software systems.

Description

Software interface automated conversion system
Technical field
The present invention relates to computer software testing technical fields, in particular to software automated testing technical field.
Background technique
Software test be improve software quality an important means, and automatic test this be improve Efficiency of Software Testing An important directions.At present during automatic test, can encounter more outmoded software systems does not have interface document, When carrying out automation use-case conversion, needs manually to remove crawl and analysis interface message, obtain the interface message of message, wave It is time-consuming, if encountering the more interface of parameter, more times can be also expended, cause interface document transformation efficiency low.
Summary of the invention
The invention solves the software systems at present for not interface document, are connect by manual analysis message to obtain it The technical issues of mouth document wastes time, low efficiency, provides a kind of software interface automated conversion system.
In order to solve the above technical problems, the technical solution adopted by the present invention is that: software interface automated conversion system, including report Literary acquisition module, interface identification module, interface processing module and document output module;
The message acquisition module is used to acquire all messages for the software systems for needing to carry out interface conversion, and will acquisition To message be sent to interface identification module;
The interface identification module includes interface sample database, the message and interface sample that interface identification module is used to receive Interface sample in this library compares, and the interface type, interface structure and interface parameters of message is identified, if message is identified as Function then sends interface processing module for the interface type, interface structure and interface parameters that identify successful message and the message, If message recognition failures, any information is not sent to interface processing module;
The interface processing module is used for interface type, interface structure and interface according to the message and the message received Parameter, obtains the design parameter value of each parameter, and by the interface type of the message, interface structure, interface parameters and each The design parameter value of a parameter is sent to document output module;
The document output module is used for according to the interface type of the message that receives, interface structure, interface parameters and every The design parameter value of one parameter, generates the interface document of specified format.
As advanced optimizing, the message acquisition module disposes progress message acquisition in a network in a manner of bypassing. It can be acquired in this way in the case where not influencing related software system message normal transmission.
As advanced optimizing, the interface identification module, interface processing module and document output module installation are beyond the clouds On server.It is mounted on cloud server, user does not need to increase hardware resource investment, as long as through cloud service supplier Provided service can obtain rapidly in a short period of time and service and come into operation immediately, not only save the cost, but also make It uses convenient and efficient.
It include common interfaces sample and/or self defined interface sample in the interface sample database as advanced optimizing.Root According to the particularity of known interface, customized interface sample can be added in sample database, avoids message recognition failures, improved Discrimination.
As advanced optimizing, if message recognition failures in the interface identification module, interface identification module issues report Alert information.Warning message is sent to user by interface identification module, prompts user's recognition failures, and user can be to corresponding identification The message of failure is checked, can be according to the message self defined interface sample.
As advanced optimizing, the document output module support md (Machine Description) file and/or Pdf file and/or word document output.Using file format commonly used in the art, called convenient for technical staff.
Beneficial effect is: the present invention can automatically grab message, by interface sample a large amount of in message and interface sample database Compare, obtain the interface message of message, and automatically to parameter value, relative to manually analyzed greatly saved when Between, interface document transformation efficiency improves.The present invention is especially suitable for the interface conversions of different types of new, old software systems.
Detailed description of the invention
Fig. 1 is system construction drawing of the invention.
Specific embodiment
Technical solution of the present invention is further illustrated with reference to the accompanying drawing.
As shown in Figure 1, software interface automated conversion system of the invention, including message acquisition module, interface identification module, Interface processing module and document output module, wherein message acquisition module, interface identification module, interface processing module and document are defeated Module can be installed on the server in the form of application software respectively out;
The message acquisition module is used to acquire all messages for the software systems for needing to carry out interface conversion, and will acquisition To message be sent to interface identification module;
The interface identification module includes interface sample database, the message and interface sample that interface identification module is used to receive Interface sample in this library compares, and the interface type, interface structure and interface parameters of message is identified, if message is identified as Function then sends interface processing module for the interface type, interface structure and interface parameters that identify successful message and the message, If message recognition failures, any information is not sent to interface processing module;
The interface processing module is used for interface type, interface structure and interface according to the message and the message received Parameter, obtains the design parameter value of each parameter, and by the interface type of the message, interface structure, interface parameters and each The design parameter value of a parameter is sent to document output module;
The document output module is used for according to the interface type of the message that receives, interface structure, interface parameters and every The design parameter value of one parameter, generates the interface document of specified format.
By message acquisition module in the present invention, all messages of goal systems in a network are acquired, and will be collected Message passes to interface identification module, and interface identification module is based on preset a large amount of interface samples, by message content and interface sample Originally it compares, identifies the interface message of outgoing packet, message and the interface message identified are then passed into interface processing mould Block, interface processing module obtain the specific of each parameter in interface message according to the interface message and message content identified Obtained result is finally converted to the interface document of specified format by parameter value by document output module.
The analysis processing mode of above-mentioned modules is advanced optimized, the side that message acquisition module can be bypassed Formula deployment in a network carry out message acquisition, in this way can in the case where not influencing related software system message normal transmission into Row acquisition.Interface identification module, interface processing module and document output module can be mounted on cloud server, by these The module being analyzed and processed is mounted on cloud server, and user does not need to increase hardware resource investment, as long as through cloud Service provided by service provider, can obtain rapidly in a short period of time and service and come into operation immediately, not only save Cost, and it is quick to be easy to use.It can store common interfaces sample and self defined interface sample in interface sample database, For the more special interface that some users have known, customized interface sample can be first added in sample database, is kept away Exempt from corresponding message recognition failures, improves discrimination.If message recognition failures in interface identification module, interface identification module can be sent out Warning message prompts user out, and user can check the message of recognition failures, judges whether to need to add new connect Mouth sample, then re-starts identification.Document output module can support the output of multiple format, such as md file, pdf file Or word document.Wherein, it when interface processing module obtains the design parameter value of each parameter, can be carried out using various ways Value, such as in python, value can be carried out by the methods of tuple, list and dictionary.

Claims (6)

1. software interface automated conversion system, it is characterised in that: including message acquisition module, interface identification module, interface processing Module and document output module;
The message acquisition module is used to acquire all messages for the software systems for needing to carry out interface conversion, and will be collected Message is sent to interface identification module;
The interface identification module includes interface sample database, the message and interface sample database that interface identification module is used to receive In interface sample compare, identify the interface type, interface structure and interface parameters of message, if message identifies successfully, Interface processing module is sent by the interface type, interface structure and interface parameters that identify successful message and the message, if report Literary recognition failures then do not send any information to interface processing module;
The interface processing module is used for interface type, interface structure and the interface ginseng according to the message and the message received Number, obtains the design parameter value of each parameter, and by the interface type of the message, interface structure, interface parameters and each The design parameter value of parameter is sent to document output module;
The document output module be used for according to the interface type of the message that receives, interface structure, interface parameters and each The design parameter value of parameter, generates the interface document of specified format.
2. software interface automated conversion system as described in claim 1, it is characterised in that: the message acquisition module is to bypass Mode dispose in a network progress message acquisition.
3. software interface automated conversion system as described in claim 1, it is characterised in that: the interface identification module, interface Processing module and document output module are mounted on cloud server.
4. software interface automated conversion system as described in claim 1, it is characterised in that: include normal in the interface sample database With interface sample and/or self defined interface sample.
5. software interface automated conversion system as described in claim 1, it is characterised in that: if being reported in the interface identification module Literary recognition failures, then interface identification module alert.
6. software interface automated conversion system as described in claim 1, it is characterised in that: the document output module supports md File and/or the output of pdf file and/or word document.
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 true CN109062801A (en) 2018-12-21
CN109062801B 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)

Cited By (2)

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

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070294614A1 (en) * 2006-06-15 2007-12-20 Thierry Jacquin 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
CN101957759A (en) * 2010-10-21 2011-01-26 江苏科技大学 SDK interface conversion system and implementation method thereof
CN103473045A (en) * 2013-08-27 2013-12-25 广州华多网络科技有限公司 Method and device for generating interface documents
CN103473243A (en) * 2012-06-08 2013-12-25 富士通株式会社 Method and device for generating semantic network service document
GB201405260D0 (en) * 2014-03-24 2014-05-07 Tiwari Ram M System and methods for web based visual service modeling,code generation,metadata visualization and verification of odata services
CN104484216A (en) * 2014-12-29 2015-04-01 广州唯品会网络技术有限公司 Method and device for generating service interface document and on-line test tool
CN106533947A (en) * 2015-09-11 2017-03-22 杭州华三通信技术有限公司 Message processing method and apparatus
US20170154021A1 (en) * 2015-11-26 2017-06-01 Tata Consultancy Services Limited System and method for enablement of data masking for web documents
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
CN108021353A (en) * 2017-12-11 2018-05-11 中盈优创资讯科技有限公司 Generating means, method, equipment and the storage medium of the explanation document of software product
CN108268253A (en) * 2017-05-05 2018-07-10 平安科技(深圳)有限公司 Interface code generation method and terminal device

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070294614A1 (en) * 2006-06-15 2007-12-20 Thierry Jacquin 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
CN101957759A (en) * 2010-10-21 2011-01-26 江苏科技大学 SDK interface conversion system and implementation method thereof
CN103473243A (en) * 2012-06-08 2013-12-25 富士通株式会社 Method and device for generating semantic network service document
CN103473045A (en) * 2013-08-27 2013-12-25 广州华多网络科技有限公司 Method and device for generating interface documents
GB201405260D0 (en) * 2014-03-24 2014-05-07 Tiwari Ram M System and methods for web based visual service modeling,code generation,metadata visualization and verification of odata services
CN104484216A (en) * 2014-12-29 2015-04-01 广州唯品会网络技术有限公司 Method and device for generating service interface document and on-line test tool
CN106533947A (en) * 2015-09-11 2017-03-22 杭州华三通信技术有限公司 Message processing method and apparatus
US20170154021A1 (en) * 2015-11-26 2017-06-01 Tata Consultancy Services Limited System and method for enablement of data masking for web documents
CN108268253A (en) * 2017-05-05 2018-07-10 平安科技(深圳)有限公司 Interface code generation method and terminal device
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
CN108021353A (en) * 2017-12-11 2018-05-11 中盈优创资讯科技有限公司 Generating means, method, equipment and the storage medium of the explanation document of software product

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
谢瑞麟: "基于J2EE的统一资源描述发现和集成系统", 《中国优秀硕士学位论文全文数据库 信息科技辑》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111628956A (en) * 2019-02-28 2020-09-04 阿里巴巴集团控股有限公司 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

Also Published As

Publication number Publication date
CN109062801B (en) 2021-09-14

Similar Documents

Publication Publication Date Title
CN111274095B (en) Log data processing method, device, equipment and computer readable storage medium
CN111866016B (en) Log analysis method and system
CN106209405B (en) Fault diagnosis method and device
CN105868075A (en) System and method for monitoring and analyzing large amount of logs in real time
CN112965871A (en) Vehicle fault prompt information acquisition method and device and storage medium
CN108964995A (en) Log correlation analysis method based on time shaft event
CN111858251A (en) Big data computing technology-based data security audit method and system
CN112468339B (en) Alarm processing method, system, device and storage medium
CN113364115A (en) Power cable information comprehensive processing system and method
CN112328567B (en) Processing method and device for Internet of things MME log data
CN111176680B (en) Enterprise terminal management method, system, equipment and medium based on Internet of things
CN111522947A (en) Method and system for processing complaint work order
KR102580364B1 (en) Apparatus and Method for Fuzzing Preprocessing for Automating Smart Network Fuzzing
CN116594857A (en) Office software intelligent interaction management platform based on artificial intelligence
CN109446042B (en) Log management method and system for intelligent electric equipment
CN118200113A (en) A network element fault processing method, device, storage medium and electronic device
CN117914786A (en) Smart IoT data processing method and management platform for cloud-edge collaboration
CN112612680A (en) Message warning method, system, computer equipment and storage medium
CN113032341A (en) Log processing method based on visual configuration
CN109062801A (en) Software interface automated conversion system
CN116414717A (en) Automatic testing method, device, equipment, medium and product based on flow playback
CN117040141A (en) Safety monitoring system and method for electric power intelligent gateway
CN117729576A (en) Alarm monitoring methods, devices, equipment and storage media
CN110856188A (en) Communication method, apparatus, system, and computer-readable storage medium
CN116600329B (en) Message error identification code delimitation method and device

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