CN106776349B - Method and system for setting interface detection flow - Google Patents

Method and system for setting interface detection flow Download PDF

Info

Publication number
CN106776349B
CN106776349B CN201710066473.5A CN201710066473A CN106776349B CN 106776349 B CN106776349 B CN 106776349B CN 201710066473 A CN201710066473 A CN 201710066473A CN 106776349 B CN106776349 B CN 106776349B
Authority
CN
China
Prior art keywords
interface
detection
unit
parameters
parameter
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
CN201710066473.5A
Other languages
Chinese (zh)
Other versions
CN106776349A (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.)
Wuhan Douyu Network Technology Co Ltd
Original Assignee
Wuhan Douyu Network Technology 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 Wuhan Douyu Network Technology Co Ltd filed Critical Wuhan Douyu Network Technology Co Ltd
Priority to CN201710066473.5A priority Critical patent/CN106776349B/en
Publication of CN106776349A publication Critical patent/CN106776349A/en
Application granted granted Critical
Publication of CN106776349B publication Critical patent/CN106776349B/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/3684Test management for test design, e.g. generating new test cases

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)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention discloses a method and a system for setting an interface detection process, wherein the setting method comprises the following steps: adding data of the detection interface, drawing a detection flow chart of the detection interface, logically identifying the detection flow chart and storing an identification result. Each detection interface is connected through a set of detection process, so that the interface detection has stronger logicality and the range of interface detection is enlarged. The complex logic required by the detection interface is visually converted, so that the user can achieve the visual purpose when the user uses the invention to add the complex interface test, the structure is clear, the error is not easy to occur, and the purpose of logically connecting the interface test can be achieved only according to simple graphs.

Description

Method and system for setting interface detection flow
Technical Field
The invention relates to the field of interface detection of data terminals, in particular to a method and a system for setting an interface detection flow.
Background
The program interface test is a test for testing interfaces among components of a system, along with the development of the internet technology, more and more software project projects are developed, and the interface test is a very important test link in the software project projects. The interface test mainly tests the interfaces provided by the software project engineering (or understood as a software system) to the outside so as to verify the correctness and stability of the interfaces. The key point of the interface test is to check the exchange of data, specifically, the interface test is completed by transmitting the test parameters of the interface to the server, receiving the returned result returned by the server, and verifying the correctness of the returned result.
In the existing distributed interface test scheme, each test can only be performed on one interface, and the test logic is too single. If some situations are met that logic is needed or return data of the previous interface needs to be used for sending a request to the next interface, the prior art scheme cannot well meet the requirements.
Disclosure of Invention
The invention aims to provide a method and a system for setting an interface detection flow, which are used for connecting detection interfaces through a set of detection flows, so that the interface detection has stronger logicality and the range of interface detection is enlarged. In the preparation stage, the setting work of the interface detection flow is finished by drawing a visual flow chart, and after the drawing is finished, the system converts the drawn detection flow logic into data and stores the detection flow data into a database; and in the interface detection stage, reading detection flow data from the database, and finishing detection work according to the formulated detection flow. The complex logic required by the detection interface is visually converted, so that the user can achieve the visual purpose when the user uses the invention to add the complex interface test, the structure is clear, the error is not easy to occur, and the purpose of logically connecting the interface test can be achieved only according to simple graphs.
The technical scheme adopted by the invention is as follows:
a method for setting an interface detection process is characterized in that the method comprises the following steps: step S101, adding data of a detection interface; step S102, drawing a detection flow chart of a detection interface; step S103, logic identification of the detection flow chart and storage of identification results.
Preferably, the data of the added detection interface specifically includes: and simultaneously adding data of the detection interface, wherein the data comprises a URL (Uniform resource locator), an interface name, a request parameter and a returned data template, the process setting system carries out validity verification on the request parameter and verifies whether data json of the returned data template is correct or not, after the data addition is finished and the verification is passed, the process setting system generates a unique ID number according to the URL of the detection interface and stores the ID number in a storage unit, and the ID number is an MD5 character string.
Preferably, the detection flowchart for drawing the detection interface specifically includes: logging in a man-machine interaction interface of a process setting system by using an account and a password with drawing authority, reading the stored detection interface data from a storage unit by the process setting system according to account information, and loading the detection interface data in an operation interface; the process setting system analyzes the loaded detection interface data, obtains ID numbers corresponding to the interface data, generates graphic modules corresponding to the ID numbers, distinguishes the graphic modules corresponding to different interfaces through different ID numbers, and loads the URL, the interface name, the request parameters and the return data template of the interface into the module attributes of the graphic modules; connecting one or more graphic modules in a human-computer interaction interface according to the logical sequence of interface detection, judging whether a detection interface corresponding to each graphic module needs to transmit parameters from a previous detection interface according to the attribute of each graphic module by the human-computer interaction interface when each graphic module is connected, wherein the transmitted parameters are determined according to the request parameters, if the parameters need to be transmitted, popping up a dialog box on the human-computer interaction interface to prompt, and selecting the parameters of the previous detection interface as the transmitted parameters; and analyzing a returned data template of the last detection interface to obtain the parameter of the last interface, putting the obtained parameter of the last interface into a pop-up dialog box, and selecting the required incoming parameter in the pop-up dialog box to complete the parameter transmission between the mutually connected detection interfaces.
Preferably, the graphics module is generated using a graphics generation unit developed based on jquery.
Preferably, the logic identification of the detection flowchart and the storage of the identification result specifically include: the flow setting system generates corresponding character strings according to the relationship among the detection interfaces, wherein the character strings contain all the logical relationships in the flow chart, and the character strings comprise the names of the detection flows, various units included in the detection flows, parameters required by the various units and the logical relationships among the various units; the various units comprise a detection unit and a parameter unit, the parameters of the detection unit comprise the name of the detection unit and the unique ID of the detection unit, and the parameters of the parameter unit comprise the ID number of the detection interface corresponding to the parameter unit, the name for requesting parameter acquisition and the name for requesting parameter.
A setting system of an interface detection process is characterized by comprising: the adding module is used for adding data of the detection interface; the drawing module is used for drawing a detection flow chart of the detection interface; and the identification and storage module is used for detecting the logic identification of the flow chart and storing the identification result.
Preferably, the adding module specifically includes: the adding unit is used for simultaneously adding data of the detection interface, including a URL (uniform resource locator), an interface name, a request parameter and a returned data template; the verification unit is used for verifying the legality of the request parameters and verifying whether the json of the returned data template is correct or not; and the generating unit is used for generating a unique ID number according to the URL of the detection interface after the data addition is completed and the verification is passed, wherein the ID number is an MD5 character string.
Preferably, the drawing module specifically includes: the login and loading unit is used for logging in a human-computer interaction interface of the process setting system by using an account and a password with drawing authority, the setting system reads the stored detection interface data from the storage module according to the account information, and the detection interface data is loaded in the operation interface; the flow setting system analyzes the loaded detection interface data, acquires an ID number corresponding to the interface data and generates a graphic module corresponding to the ID number, the graphic modules corresponding to different interfaces are distinguished by different ID numbers, and the URL, the interface name, the request parameter and the returned data template of the interface are loaded into the module attribute of the graphic module; the judging and connecting unit is used for connecting one or more graphic modules in a human-computer interaction interface according to the logical sequence of interface detection, when each graphic module is connected, the human-computer interaction interface judges whether the corresponding detection interface needs to transmit parameters from the previous detection interface according to the attribute of each graphic module, the transmitted parameters are determined according to the request parameters, if the parameters need to be transmitted, a dialog box is popped up on the human-computer interaction interface to prompt, and the parameters of the previous detection interface need to be selected as the transmitted parameters; and the selection unit is used for obtaining the parameter of the previous interface by analyzing the returned data template of the previous detection interface, putting the obtained parameter of the previous interface into a pop-up dialog box, and completing the parameter transmission between the mutually connected detection interfaces by selecting the required incoming parameter in the pop-up dialog box.
Preferably, the acquiring and generating unit generates the graphic module using jquery.
Preferably, the identification and storage module specifically includes: the logic identification unit generates corresponding character strings according to the relationship among the detection interfaces, the character strings contain all the logic relationships in the flow chart, and the character strings comprise the names of the detection flows, various units included in the detection flows, parameters required by the various units and the logic relationships among the various units; the various units comprise a detection unit and a parameter unit, the parameters of the detection unit comprise the name of the detection unit and the unique ID of the detection unit, and the parameters of the parameter unit comprise the ID number of the detection interface corresponding to the parameter unit, the name for requesting parameter acquisition and the name for requesting parameter; and a storage unit for storing the generated character string.
The technical scheme of the invention can obtain the following beneficial effects: the invention can realize the visual purpose when the user adds the complex interface test, the structure is clear, the error is not easy to occur, and the purpose of logically connecting the interface test can be realized only by simple graph connection.
Drawings
Fig. 1 is a schematic flow chart of the interface detection flow setting method;
fig. 2 is a schematic flow chart of interface data addition in the interface detection flow setting method;
FIG. 3 is a schematic diagram of a graphic module drawn by a flow chart in the interface detection flow setting method;
fig. 4 is a schematic flow chart of the interface detection flow setting method;
FIG. 5 is a final flowchart of the interface detection flow setup method;
fig. 6 is a block diagram showing the configuration of the interface detection flow setting system.
Detailed Description
For better illustrating the present invention, the technical solution will be further described with reference to the specific embodiments and the drawings attached to the specification. Although the present invention has been described in detail with reference to the embodiments, it should be understood that various changes, substitutions and alterations can be made herein without departing from the spirit and scope of the invention as defined by the appended claims.
The flow diagram of the interface detection flow setting method is shown in fig. 1, and the setting method is completed by corresponding operations performed by a user on a flow setting system. The setting method mainly comprises the following steps of data adding of the detection interface, flow chart drawing of the detection interface, logic identification of the flow chart of the detection interface and storage of a logic identification result. The method comprises the steps that a user adds an interface needing to be detected, a process setting system analyzes information of the detected one or more interfaces after receiving the one or more interfaces needing to be detected, which are added by the user, carries out graphical processing on the one or more interfaces, and displays the graphically processed one or more interfaces to the user. And drawing the detection flow chart by the user based on the displayed one or more graphical detection interfaces, and submitting the drawn detection flow chart to the flow setting system. The flow setting system analyzes the detection flow chart, generates detection interface flow data and stores the data in the storage unit.
A schematic flow diagram of interface data addition in the interface detection flow setting method is shown in fig. 2, where when adding interface data, contents to be filled in by a user include: the URL, the interface name, the request parameter and the return data template, which are all necessary for completing the interface detection, therefore, the addition of the interface data can be completed after the completion of the contents is simultaneously filled. The process setting system can carry out validity verification on the request parameters input by the user and verify whether the data json of the returned data template input by the user is correct or not. After the data addition is complete and the verification passes, the flow setup system generates a unique ID number that is an MD5 string generated from the URL of the interface, holding the interface data. When a user draws a detection flow chart, each different detection interface in the detection flow chart has different ID numbers, and the flow setting system can find corresponding interface data through the ID numbers and analyze the interface data required by the interface detection. After completing one or more interface data additions, the user may begin to detect the flow chart rendering of the interface.
After the user adds all the interfaces to be detected, drawing a flow chart of the detection interfaces according to a set detection logic sequence, finishing the drawing work on an operation interface provided by a flow setting system, such as a web page, logging in a human-computer interaction interface on the flow setting system by the user by using an account and a password with drawing authority, reading the stored interface data from a storage unit by the flow setting system according to the account information input by the user, and loading the interface data in the operation interface, wherein the interface data of different interfaces correspond to different ID numbers. The operation interface reads the database by using ajax technology, interacts a foreground page with a background PHP, requests a PHP interface, takes out data from the database by the PHP interface and returns the data to the foreground page, and the data in the database can be acquired without refreshing.
After the data is acquired, the process setting system firstly analyzes the ID corresponding to the interface data, generates a graphic module corresponding to the ID, and loads the URL, the interface name, the request parameter and the return data template of the corresponding interface into the module attribute of the graphic module after the graphic module is generated. The graphic module is the minimum unit in the flow chart, each graphic module is a data test unit of the detection interface represented by the corresponding ID number, and the detection of the data interface is executed by executing the graphic module.
In the process of drawing the flow chart, a graph generator developed based on jquery is used by the graph generation module, the generator can enable a graphical interface to be datamation, a user can convert the drawn graph into a json object after drawing the graph on the interface, and corresponding flow data can be obtained by analyzing the json object. After the data is analyzed, the process setting system waits for the user to draw the flow chart. When a user draws a flow chart, the user puts one or more graphic modules needing to be detected into a human-computer interaction interface, and the interface systems can be automatically taken out from the database when the interface is initialized and drawn into the interface. A schematic diagram of a graphic module drawn by a flowchart in the interface detection flow setting method is shown in fig. 3.
When connecting each graphic module, the man-machine interaction interface judges whether the currently connected interface needs to transmit parameters according to the attribute of each detection interface, the transmitted parameters are determined by acquiring the request parameters from a database, each request parameter is stored in the database according to a key value pair, and if the return value of the previous interface is judged to be needed as a parameter, a dialog box is popped up to allow a user to select which parameters of the previous interface are needed as the request values. The parameters of the previous interface are obtained by analyzing the return data template of the previous interface, and the return data template tested by each interface is json data. If the interface needs to input parameters when being connected, the returned information template of the previous interface is analyzed, all parameter information is put into a pop-up window, and the user selects the parameters needing to be input in the window to complete parameter transmission between the interfaces. A flow diagram drawn by the flow chart in the interface detection flow setting method is shown in fig. 4.
After the user edits the flow chart of the detection interface, the flow setting system generates a group of corresponding character strings according to the relationship between each detection interface, wherein the character strings contain all the logical relationships in the flow chart.
The string is divided into three major parts. The first part is the name of the process; the second part is all test cells of the test flow, and parameters that may be required for each cell. The id of this unit is contained in each unit. The type of the interface distinguishes whether the unit is an interface test unit or a parameter unit. If the unit is a test unit, the test unit name is contained, the unique ID of the test unit is contained, and the specific information of the test interface can be inquired in a database according to the ID. If the unit is a parameter unit, the unit comprises an interface ID corresponding to the parameter unit, a name for requesting parameter acquisition and a name for requesting parameter; the third part is the relationship between each unit. The flow of each test cell is included, including the ID that connects the two modules.
The flow setting system generates a json character string from the flow corresponding to the graph, and the character string is as follows:
Figure BDA0001221239100000071
Figure BDA0001221239100000081
Figure BDA0001221239100000091
fig. 5 is a final flowchart completed by the interface detection flow setting method. In the figure, a first interface is a test interface 1, a second interface is a test interface 2, when the test interface 2 is detected, 2 parameters need to be transmitted from the test interface 1 to complete a request of the test interface 2, two graphic frames are arranged below the test interface 2, the two graphic frames are two corresponding parameters in the selected test interface 1, the front of the two graphic frames is a request parameter name in the test interface 2, and the rear of the two graphic frames is a name of a returned information parameter in the test interface 1. When the interface test is carried out, the required parameters in the first interface are taken out through the request parameter name, and the detection of the second interface is realized. The arrows connecting the various graphical blocks in the figure show the sequence of the interface test execution flow.
When the interface detection is carried out, the process setting system reads out corresponding detection process diagram information from the storage unit and analyzes the detection process diagram information, and the analyzed data comprises all interface data of the process; the association between each interface; the interface is bound with the parameters which may exist in the interface, namely, the corresponding relation between the name of the required data in the previous interface request return information and the name of the required parameters of the next request interface. And storing the data into a database, wherein the process name, the ID of the interface module to be tested and the data linked among the modules are required to be stored. And the user sends an execution instruction to the flow setting system, and the flow setting system completes the detection of the interface according to the setting in the detection flow chart.
Fig. 6 is a block diagram showing the configuration of the interface detection flow setting system. The setting system of the interface detection process comprises: the adding module is used for adding data of the detection interface; the drawing module is used for drawing a detection flow chart of the detection interface; and the identification and storage module is used for detecting the logic identification of the flow chart and storing the identification result.
The adding module specifically comprises: the adding unit is used for simultaneously adding data of the detection interface, including a URL (uniform resource locator), an interface name, a request parameter and a returned data template; the verification unit is used for verifying the legality of the request parameters and verifying whether the json of the returned data template is correct or not; and the generating unit is used for generating a unique ID number according to the URL of the detection interface after the data addition is completed and the verification is passed, wherein the ID number is an MD5 character string.
The drawing module specifically comprises: the login and loading unit is used for logging in a human-computer interaction interface of the process setting system by using an account and a password with drawing authority, the setting system reads the stored detection interface data from the storage module according to the account information, and the detection interface data is loaded in the operation interface; the flow setting system analyzes the loaded detection interface data, acquires an ID number corresponding to the interface data and generates a graphic module corresponding to the ID number, the graphic modules corresponding to different interfaces are distinguished by different ID numbers, and the URL, the interface name, the request parameter and the returned data template of the interface are loaded into the module attribute of the graphic module; the judging and connecting unit is used for connecting one or more graphic modules in a human-computer interaction interface according to the logical sequence of interface detection, when each graphic module is connected, the human-computer interaction interface judges whether the corresponding detection interface needs to transmit parameters from the previous detection interface according to the attribute of each graphic module, the transmitted parameters are determined according to the request parameters, if the parameters need to be transmitted, a dialog box is popped up on the human-computer interaction interface to prompt, and the parameters of the previous detection interface need to be selected as the transmitted parameters; and the selection unit is used for obtaining the parameter of the previous interface by analyzing the returned data template of the previous detection interface, putting the obtained parameter of the previous interface into a pop-up dialog box, and completing the parameter transmission between the mutually connected detection interfaces by selecting the required incoming parameter in the pop-up dialog box.
The acquisition and generation unit generates a graphics module using jquery.
The identification and storage module specifically comprises: the logic identification unit generates corresponding character strings according to the relationship among the detection interfaces, the character strings contain all the logic relationships in the flow chart, and the character strings comprise the names of the detection flows, various units included in the detection flows, parameters required by the various units and the logic relationships among the various units; the various units comprise a detection unit and a parameter unit, the parameters of the detection unit comprise the name of the detection unit and the unique ID of the detection unit, and the parameters of the parameter unit comprise the ID number of the detection interface corresponding to the parameter unit, the name for requesting parameter acquisition and the name for requesting parameter; and a storage unit for storing the generated character string.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.

Claims (7)

1. A method for setting an interface detection process is characterized in that the method comprises the following steps:
step S101, adding a URL (Uniform resource locator) of an interface to be detected, an interface name, a request parameter and a returned data template, carrying out validity verification on the request parameter by a process setting system, verifying whether json data of the returned data template is correct or not, generating a unique ID number according to the URL of the detection interface by the process setting system after the data addition is completed and the verification is passed, and storing the ID number, wherein the ID number is an MD5 character string;
step S102, logging in a human-computer interaction interface of a process setting system by using an account and a password with drawing authority, reading stored detection interface data from a storage unit by the process setting system according to account information, and loading the detection interface data in an operation interface; the process setting system analyzes the loaded interface data to be detected, obtains an ID number corresponding to the interface data, generates a graphic module corresponding to the ID number, distinguishes the graphic modules corresponding to different interfaces through different ID numbers, and loads the URL, the interface name, the request parameter and the returned data template of the loaded interface to be detected into the module attribute of the graphic module corresponding to the interface to be detected; connecting one or more graphic modules in a human-computer interaction interface according to the logical sequence of interface detection, judging whether the corresponding detection interface needs to transmit parameters from the last detection interface or not by the process setting system according to the attribute of each graphic module when each graphic module is connected, if the parameters need to be transmitted, popping up a dialog box on the human-computer interaction interface to prompt, and selecting the parameters of the last detection interface as the transmitted parameters; analyzing a returned data template of a previous detection interface to obtain an incoming parameter of the selected previous interface, putting the obtained incoming parameter of the previous interface into a pop-up dialog box, and selecting a required incoming parameter in the pop-up dialog box to complete parameter transmission between the mutually connected detection interfaces;
step S103, the process setting system generates corresponding character strings according to the logical connection relation among the detection interfaces, wherein the character strings comprise the names of the detection processes, various units included in the detection processes, parameters required by the various units and the logical connection relation among the various units; the various units comprise a detection unit and a parameter unit, the parameters of the detection unit comprise the name of the detection unit and the unique ID of the detection unit, and the parameters of the parameter unit comprise the ID number of the detection interface corresponding to the parameter unit, the name for requesting parameter acquisition and the name for requesting parameter.
2. The setting method according to claim 1, characterized in that: the graphics module is created by a parsing and generation unit.
3. A setting system for the setting method of the interface detection flow according to claim 1, characterized in that the setting system comprises:
the adding module is used for adding data of the detection interface;
the drawing module is used for drawing a detection flow chart of the detection interface;
and the identification and storage module is used for detecting the logic identification of the flow chart and storing the identification result.
4. The setting system according to claim 3, wherein the adding module specifically comprises:
the adding unit is used for simultaneously adding data of the detection interface, including a URL (uniform resource locator), an interface name, a request parameter and a returned data template;
the verification unit is used for verifying the legality of the request parameters and verifying whether the json of the returned data template is correct or not;
and the generating unit is used for generating a unique ID number according to the URL of the detection interface after the data addition is completed and the verification is passed, wherein the ID number is an MD5 character string.
5. The setup system according to claim 3, wherein the rendering module specifically comprises:
the login and loading unit is used for logging in a human-computer interaction interface of the process setting system by using an account and a password with drawing authority, reading the stored detection interface data from the storage module by the setting system according to the account information, and loading the detection interface data in an operation interface by the setting system;
the flow setting system analyzes the loaded interface data to be detected, acquires an ID number corresponding to the interface data, and generates a graphic module corresponding to the ID number, the graphic modules corresponding to different interfaces are distinguished by different ID numbers, and the loaded URL, interface name, request parameter and returned data template of the interface to be detected are loaded into the module attribute of the graphic module;
the judging and connecting unit is used for connecting one or more graphic modules in the human-computer interaction interface according to the logical sequence of interface detection, when each graphic module is connected, the human-computer interaction interface judges whether the corresponding detection interface needs to transmit parameters from the last detection interface according to the attribute of each graphic module, if the parameters need to be transmitted, a dialog box pops up on the human-computer interaction interface to prompt, and the parameters of the last detection interface need to be selected as the transmitted parameters;
and the selection unit is used for obtaining the incoming parameters of the selected previous interface by analyzing the returned data template of the previous detection interface, putting the obtained incoming parameters of the previous interface into a pop-up dialog box, and completing the parameter transmission between the mutually connected detection interfaces by selecting the required incoming parameters in the pop-up dialog box.
6. The setup system of claim 5, wherein: the graphics module is created by a parsing and generation unit.
7. The setup system according to claim 3, wherein the identification and storage module specifically comprises:
the logic identification unit generates corresponding character strings according to the logic connection relation among the detection interfaces, wherein the character strings comprise the names of the detection processes, various units included in the detection processes, parameters required by the various units and the logic connection relation among the various units;
the various units comprise a detection unit and a parameter unit, the parameters of the detection unit comprise the name of the detection unit and the unique ID of the detection unit, and the parameters of the parameter unit comprise the ID number of the detection interface corresponding to the parameter unit, the name for requesting parameter acquisition and the name for requesting parameter;
and a storage unit for storing the generated character string.
CN201710066473.5A 2017-02-07 2017-02-07 Method and system for setting interface detection flow Active CN106776349B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710066473.5A CN106776349B (en) 2017-02-07 2017-02-07 Method and system for setting interface detection flow

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710066473.5A CN106776349B (en) 2017-02-07 2017-02-07 Method and system for setting interface detection flow

Publications (2)

Publication Number Publication Date
CN106776349A CN106776349A (en) 2017-05-31
CN106776349B true CN106776349B (en) 2020-01-03

Family

ID=58955368

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710066473.5A Active CN106776349B (en) 2017-02-07 2017-02-07 Method and system for setting interface detection flow

Country Status (1)

Country Link
CN (1) CN106776349B (en)

Families Citing this family (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107832227B (en) * 2017-11-24 2020-04-10 平安科技(深圳)有限公司 Interface parameter testing method, device, equipment and storage medium of business system
CN108345527A (en) * 2017-12-29 2018-07-31 广州品唯软件有限公司 A kind of interface enters the analysis monitoring method and system of ginseng
CN109344050B (en) * 2018-08-20 2023-07-21 中国平安人寿保险股份有限公司 Interface parameter analysis method and device based on structure tree
CN109376064B (en) * 2018-09-03 2023-03-31 平安普惠企业管理有限公司 Method and equipment for generating interface test report
CN109558311A (en) * 2018-10-26 2019-04-02 深圳点猫科技有限公司 A kind of the automation interface method of calibration and electronic equipment of educational system
CN109857667B (en) * 2019-02-03 2021-10-08 苏州市龙测智能科技有限公司 Interface automation test method, test device, test equipment and storage medium
CN112468356B (en) * 2019-09-09 2023-11-03 北京奇虎科技有限公司 Router interface testing method, device, electronic equipment and storage medium
CN112905441A (en) * 2019-12-04 2021-06-04 阿里巴巴集团控股有限公司 Test case generation method, test method, device and equipment
CN111143866B (en) * 2019-12-27 2022-02-15 远光软件股份有限公司 Permission changing method, device, equipment and medium based on multi-scene mode
CN112101949B (en) * 2020-09-18 2022-12-16 支付宝(杭州)信息技术有限公司 Safe service request processing method and device
CN112416763A (en) * 2020-11-17 2021-02-26 杭州安恒信息技术股份有限公司 Method, device and equipment for automatically testing interface and storage medium
CN113535584B (en) * 2021-08-03 2022-04-05 创优数字科技(广东)有限公司 Flow testing method, platform, electronic equipment and storage medium
CN115629990B (en) * 2022-11-15 2023-04-07 四川无限智达科技有限公司 Service testing method and device, electronic equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101576843A (en) * 2008-05-07 2009-11-11 阿里巴巴集团控股有限公司 Method and device for testing application program interface
CN103136095A (en) * 2011-11-28 2013-06-05 阿里巴巴集团控股有限公司 Method, device and system of test application program interface
CN103208046A (en) * 2012-12-31 2013-07-17 广州奥凯信息咨询有限公司 Workflow engine architecture method and system based on interactive dynamic flow diagram
CN103235759A (en) * 2013-05-15 2013-08-07 百度在线网络技术(北京)有限公司 Method and device for generating test cases
CN105404949A (en) * 2014-09-12 2016-03-16 株洲南车时代电气股份有限公司 System and method for self-defining process

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130055028A1 (en) * 2011-08-31 2013-02-28 Ebay Inc. Methods and systems for creating software tests as executable resources

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101576843A (en) * 2008-05-07 2009-11-11 阿里巴巴集团控股有限公司 Method and device for testing application program interface
CN103136095A (en) * 2011-11-28 2013-06-05 阿里巴巴集团控股有限公司 Method, device and system of test application program interface
CN103208046A (en) * 2012-12-31 2013-07-17 广州奥凯信息咨询有限公司 Workflow engine architecture method and system based on interactive dynamic flow diagram
CN103235759A (en) * 2013-05-15 2013-08-07 百度在线网络技术(北京)有限公司 Method and device for generating test cases
CN105404949A (en) * 2014-09-12 2016-03-16 株洲南车时代电气股份有限公司 System and method for self-defining process

Also Published As

Publication number Publication date
CN106776349A (en) 2017-05-31

Similar Documents

Publication Publication Date Title
CN106776349B (en) Method and system for setting interface detection flow
CN108614770B (en) Automatic test assertion method, device, storage medium and equipment
CN106155891B (en) Interface test method, interface description data library generating method and device
US8745641B1 (en) Automatic verification and anomaly detection in a representational state transfer (REST) application programming interface
CN108897687B (en) API automatic testing method and system based on data driving
US8327029B1 (en) Unified software construct representing multiple synchronized hardware systems
CN104407976B (en) A kind of interface robustness testing case generation method and device
CN104572072B (en) A kind of language transfer method and equipment to the program based on MVC pattern
CN106990967B (en) Data processing method of rule engine
CN108628748B (en) Automatic test management method and automatic test management system
CN110096434A (en) A kind of interface test method and device
CN111078539B (en) Test method, device, system and computer readable storage medium
US10942841B2 (en) User assisted automated test case generation
US20070061641A1 (en) Apparatus and method for generating test driver
CN112187558B (en) Data verification method and device and electronic equipment
CN110990053A (en) Method for creating and using machine learning scheme template and device
CN107506190A (en) XML file amending method and device based on Spring frameworks
CN111752846A (en) Interface testing method and device
Satish et al. Extracting the combinatorial test parameters and values from UML sequence diagrams
CN110659870A (en) Business audit test method, device, equipment and storage medium
JP6310527B1 (en) Object analysis apparatus, object analysis method, and program
US20220229767A1 (en) Test script generation apparatus, test script generation method and program
CN109240923B (en) Interface test script generation method and computer readable storage medium
WO2021036697A1 (en) Commissioning method and apparatus, device and storage medium
Segura et al. Automated variability analysis and testing of an E-commerce site. an experience report

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