CN109766262A - Interface data processing method, automated testing method, device, equipment and medium - Google Patents

Interface data processing method, automated testing method, device, equipment and medium Download PDF

Info

Publication number
CN109766262A
CN109766262A CN201811536551.4A CN201811536551A CN109766262A CN 109766262 A CN109766262 A CN 109766262A CN 201811536551 A CN201811536551 A CN 201811536551A CN 109766262 A CN109766262 A CN 109766262A
Authority
CN
China
Prior art keywords
interface
interface data
data
target
case
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
CN201811536551.4A
Other languages
Chinese (zh)
Other versions
CN109766262B (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.)
OneConnect Smart Technology Co Ltd
Original Assignee
OneConnect Smart 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 OneConnect Smart Technology Co Ltd filed Critical OneConnect Smart Technology Co Ltd
Priority to CN201811536551.4A priority Critical patent/CN109766262B/en
Publication of CN109766262A publication Critical patent/CN109766262A/en
Priority to PCT/CN2019/120593 priority patent/WO2020119434A1/en
Application granted granted Critical
Publication of CN109766262B publication Critical patent/CN109766262B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software

Abstract

The present invention discloses a kind of interface data processing method, automated testing method, device, equipment and medium.The interface data processing method includes: to obtain data grabber task, and data grabber task includes goal systems mark and target interface parameter;Using packet catcher from access database corresponding with goal systems mark, clean interface data corresponding with target interface parameter are grabbed, clean interface data are stored in clean interface library;Clean interface data in clean interface library and the standard interface data in interface document library are subjected to matching treatment, obtain matching treatment result;If matching treatment result is that matching is unsuccessful, it is stored in clean interface data as new standard interface data in interface document library.This method can realize that quick obtaining batch includes the clean interface data of more complete and specification interface parameters, improve the acquisition efficiency of clean interface data, and be conducive to safeguard the standard interface data in interface document library.

Description

Interface data processing method, automated testing method, device, equipment and medium
Technical field
The present invention relates to software test field more particularly to a kind of interface data processing method, automated testing method, dresses It sets, equipment and medium.
Background technique
In current automatic test platform, the realization needs of interface automation will need interface to be tested first to construct manually Out, the injection parameter then in interface instance, to complete test case.Since interface building process is more many and diverse, request header (header), a character malfunctions in request body (body) and cookie these interface parameters, will lead to and is formed based on interface Test case can not bring about the desired effect in test process.Therefore, hard work amount can be direct in interface building process Influence the formation efficiency of test case in automatic test course.In interface building process, it need to be connect using interface document record The exploitation of mouth and building process, maintenance interface document needs to expend developer or a large amount of energy of tester at present, leads Cause interface document maintenance cost larger.Therefore, practices well is to safeguard the interface of external interface and a small amount of core interface at present Document is unfavorable for realizing the maintenance to interface document.
Summary of the invention
The embodiment of the present invention provides a kind of interface data processing method, device, equipment and medium, to solve current interface structure Build the problem that process is many and diverse and interface document maintenance cost is big.
The embodiment of the present invention provides a kind of automated testing method, device, equipment and medium, is surveyed with solving current automation The lower problem of the formation efficiency of test case during examination.
A kind of interface data processing method, comprising:
Data grabber task is obtained, the data grabber task includes goal systems mark and target interface parameter;
Using packet catcher from access database corresponding with goal systems mark, crawl connects with the target The corresponding clean interface data of mouth parameter, the clean interface data are stored in clean interface library;
Clean interface data in the clean interface library are matched with the standard interface data in interface document library Processing obtains matching treatment result;
If the matching treatment result is that matching is unsuccessful, using the clean interface data as new standard interface number According to being stored in the interface document library.
A kind of interface data processing unit, comprising:
Data grabber task acquisition module, for obtaining data grabber task, the data grabber task includes target system System mark and target interface parameter;
Clean interface data acquisition module, for using packet catcher from access corresponding with goal systems mark In database, clean interface data corresponding with the target interface parameter are grabbed, the clean interface data are stored in In clean interface library;
Matching treatment result obtain module, for by the clean interface library clean interface data and interface document library In standard interface data carry out matching treatment, obtain matching treatment result;
Interface data memory module, if being that matching is unsuccessful for the matching treatment result, by the clean interface Data are stored in the interface document library as new standard interface data.
A kind of computer equipment, including memory, processor and storage are in the memory and can be in the processing The computer program run on device, the processor realize above-mentioned interface data processing method when executing the computer program Step.
A kind of computer readable storage medium, the computer-readable recording medium storage have computer program, the meter The step of calculation machine program realizes above-mentioned interface data processing method when being executed by processor.
A kind of automated testing method, comprising:
The use-case edit requests that client is sent are obtained, the use-case edit requests include interfacing order and at least one connects Mouth demand;
Based on interface requirements query interface document library described at least one, obtain corresponding with each interface requirements Standard interface data control the client and show the standard interface data;
It obtains the interface that client is sent and modifies request, the interface modification request includes that target interface mark and target are repaired Change parameter;
Based on the target modification parameter, the standard interface data corresponding with target interface mark are carried out Modification and debugging, obtain and debug successful target interface data;
At least one described target interface data is combined according to the interfacing order, forms target detection use-case.
A kind of automatic test device, comprising:
Use-case edit requests obtain module, and for obtaining the use-case edit requests of client transmission, the use-case editor is asked It asks including interfacing order and at least one interface requirements;
Standard interface data acquisition module is obtained for being based at least one described interface requirements query interface document library Standard interface data corresponding with each interface requirements, control the client and show the standard interface data;
Interface modifies request module, and for obtaining the interface modification request of client transmission, the interface modification is asked It asks including target interface mark and target modification parameter;
Target interface data acquisition module identifies phase to the target interface for being based on the target modification parameter The corresponding standard interface data are modified and are debugged, and are obtained and are debugged successful target interface data;
Target detection use-case formed module, for according to the interfacing order at least one described target interface data into Row combination, forms target detection use-case.
A kind of computer equipment, including memory, processor and storage are in the memory and can be in the processing The computer program run on device, the processor realize the step of above-mentioned automated testing method when executing the computer program Suddenly.
A kind of computer readable storage medium, the computer-readable recording medium storage have computer program, the meter The step of calculation machine program realizes above-mentioned automated testing method when being executed by processor.
In above-mentioned interface data processing method, device, equipment and medium, first crawl and target interface from access database The corresponding clean interface data of parameter realize that quick obtaining batch includes the clean interface of more complete and specification interface parameters Data improve the acquisition efficiency of clean interface data;By with the unsuccessful original of standard interface Data Matching in interface document library Beginning interface data is stored in interface document library as new standard interface data, to guarantee interface document library Plays number of ports According to uniqueness, be conducive to safeguard the standard interface data in interface document library.
It, can be according to interface requirements each in use-case edit requests in above-mentioned automated testing method, device, equipment and medium Interface document library is searched, corresponding standard interface data is quickly found, is connect without tester from the corresponding standard of edlin Mouth data, improve the acquisition efficiency of standard interface data.Also, request need to be only modified by interface to standard interface data middle part Point interface parameters is modified, and change content is less, and error probability is lower, to improve the acquisition of modified target interface data Efficiency and accuracy.Moreover, need to debug to the standard interface data of modification, it is based only on the successful target interface data of debugging Target detection use-case is generated, to improve automatic test efficiency.At least one target interface data is carried out based on interfacing order Combination can quickly form target detection use-case, improve the efficiency of target detection use-case.
Detailed description of the invention
In order to illustrate the technical solution of the embodiments of the present invention more clearly, below by institute in the description to the embodiment of the present invention Attached drawing to be used is needed to be briefly described, it should be apparent that, the accompanying drawings in the following description is only some implementations of the invention Example, for those of ordinary skill in the art, without any creative labor, can also be according to these attached drawings Obtain other attached drawings.
Fig. 1 is that an application environment of interface data processing method or automated testing method is illustrated in one embodiment of the invention Figure;
Fig. 2 is a flow chart of interface data processing method in one embodiment of the invention;
Fig. 3 is another flow chart of interface data processing method in one embodiment of the invention;
Fig. 4 is another flow chart of interface data processing method in one embodiment of the invention;
Fig. 5 is a flow chart of automated testing method in one embodiment of the invention;
Fig. 6 is another flow chart of automated testing method in one embodiment of the invention;
Fig. 7 is a schematic diagram of interface data processing unit in one embodiment of the invention;
Fig. 8 is a schematic diagram of automatic test device in one embodiment of the invention;
Fig. 9 is a schematic diagram of computer equipment in one embodiment of the invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are some of the embodiments of the present invention, instead of all the embodiments.Based on this hair Embodiment in bright, every other implementation obtained by those of ordinary skill in the art without making creative efforts Example, shall fall within the protection scope of the present invention.
The embodiment of the present invention provides a kind of interface data processing method, and interface data processing method method can be applicable to such as figure In application environment shown in 1.Specifically, which applies in automatic test platform, which surveys Trying platform includes client and server end as shown in Figure 1, and client and server is communicated by network, for real Standard interface data are now obtained automatically, and the standard interface data are stored in interface document library, to improve standard interface number According to acquisition efficiency, further increase the formation efficiency of follow-up test use-case.In the present embodiment, the automatic test platform is specific Platform can be automated with BIGAT interface.
Wherein, client is also known as user terminal, front end or browser end, refer to it is corresponding with server end, be client The program of local service is provided.Client it is mountable but be not limited to various personal computers, laptop, smart phone, On tablet computer and portable wearable device.Server end is also known as rear end, can be either more with independent server end The server end cluster of a server end composition is realized.
In one embodiment, it as shown in Fig. 2, providing a kind of interface data processing method, applies in Fig. 1 in this way It is illustrated, includes the following steps: for server end
S201: obtaining data grabber task, and data grabber task includes goal systems mark and target interface parameter.
Wherein, data grabber task is the task for trigger the server end crawl interface data.Goal systems identifies For distinguishing the mark of goal systems, which is this corresponding system of data grabber task interface data of being grabbed System.For example, if the automatic test platform need to be behind the logical client access rear end the logical APP of one account of safety or one account of safety When the access data of end, goal systems is one account way system of safety, which is identified as the corresponding mark of one account way system of safety Know.
Target interface parameter refers to that this data crawls the interface parameters of required by task crawl.In the present embodiment, target is connect Mouth parameter includes but is not limited to function description, requesting method (method), state, path (path), request header (head), request Body (body), request time, response body, cookies and Host etc., so that server end is based on the target interface parameter from target More complete clean interface data are grabbed in system, so that the subsequent standard for being directly based upon clean interface data formation Interface data generates target detection use-case, to improve the formation efficiency of test case in automatic test course.
S202: using packet catcher from access database corresponding with goal systems mark, crawl and target interface The corresponding clean interface data of parameter, clean interface data are stored in clean interface library.
Wherein, packet catcher is exactly a set of software designed according to the network transmission protocol of standard, for grabbing interface The tool of data, the packet catcher can be the packet catcher of open source.Access database corresponding with goal systems mark is For storing the database for identifying corresponding clean interface data with goal systems.Wherein, clean interface data refer in advance Communication between client and server, which is triggered, by a certain interface is formed by data.In the present embodiment, server end is used It is goal systems mark that packet catcher, which identifies the clean interface data grabbed in corresponding access database from goal systems, Corresponding goal systems develop and test or concrete application process formed interface data.
Due to these clean interface data be it is pre- first pass through exploitation and test, or carried out concrete application and be formed by Interface data, then these clean interface data include more complete and specification interface parameters, i.e. asking in clean interface data It asks head (header), the request interface parameters such as body (body) and cooki more complete and standardizes, the probability of character error is smaller, It therefore, can be using the clean interface data as the interface data of specification corresponding with goal systems, it is not necessary that interface is separately arranged The acquisition efficiency of clean interface data can be improved without specification detection is carried out in parameter, so that being based on these clean interface data The use-case of formation can produce expected effect during follow-up test.
Server end is after grabbing clean interface data corresponding with target interface parameter, by the clean interface number According in the clean interface library of storage, for realizing carrying out summarizing management to clean interface data, clean interface is based on so as to subsequent Data carry out interface data maintenance, ensure going on smoothly for automatic test.It is to be appreciated that by packet catcher from access data All clean interface data grabbed in library are stored in clean interface library, realize the management to clean interface data, are subsequent Clean interface data in clean interface library are synchronized to interface document library to be prepared, also can avoid outside because of environment or other When portion's factor is interfered and clean interface data and standard interface data is caused to be unable to complete successfully matching treatment, original need to be grabbed again The case where beginning interface data, occurs.Clean interface data in clean interface library are synchronized to interface document library by this, refer to execution Step S203 carries out the clean interface data in clean interface library and the standard interface data in interface document library at matching Reason, decides whether to be stored in interface document library for clean interface data as standard interface data according to matching treatment result In.
In the present embodiment, an a monitoring tools (concretely packet capturing work is provided in the server end of goal systems in advance Tool), for the back-end access data of monitor client access server end, and the back-end access data are stored in access data In library.After server end gets data grabber task, packet catcher crawl and target from access database can be used The back-end access data that interface parameters matches, determine it as clean interface data, to get more complete and specification original Beginning interface data.
In general, the access of client includes front-end access and back-end access.Wherein, front-end access refers to without passing through The access of interface access server end.For example, in the client that one account of safety leads to, in " my account is logical ", " silver that homepage is shown Jump procedure between row ", " insurance " and " investment " this four front end pages accesses server end by interface without access, Then it is front-end access.In general, preconfigured monitoring tools will not monitor and grab the visit of these front ends in server end The data asked.Due to during front-end access can not analog interface access server end operation, not in interface testing model Within farmland, it is stored in access database so front-end access will not be formed by data.Back-end access refers to by visitor Family end click or other are operated, and triggering client accesses server end by interface, to realize client and server The access of communication between end.For example, clicking " I on " my account is logical " this page in the client that one account of safety leads to Account " when, need to obtain corresponding account data from server end, that is, need to access server by preconfigured interface End, then clicking " my account " and being formed by access is back-end access, and the preconfigured monitoring tools of server end can monitor simultaneously This back-end access data is grabbed, and this back-end access data is stored in access database, so as to subsequent carry out interface The maintenance of data.
For example, the back-end access data stored in access database can be the related data in HTTP request, it is specific to wrap It includes but is not limited to following content: function description, requesting method (method), URL parameter, state, path (path), request header (head), body (body), request time, response body and cookies etc. are requested.Wherein, function description is used for the function of specification interface Can, such as login interface, payment interface and collection interface.Requesting method (method) is used for the side for illustrating to call third party's interface Method, such as GET, POST and PUT.URL parameter refers to the parameters (parameter) in URL, can for specify special parameter Option.State refers to that the corresponding HTTP status code of the back-end access data, such as 200 status codes indicate that request has succeeded, and requests Desired head response or data volume will be returned with this response.Path (path) is the character separated by zero or multiple "/" symbols String is generally used to indicate catalogue or file address.Request header (head) is for Tell server end, the related letter of client Breath, for example, Host is Tell server end, the host name of client wants access;Accept is Tell server end, client branch The data type held;Referer is Tell server end, and client is (general to use to access server end from which resource In door chain);Connection is Tell server end, is to close also to be to maintain link after having requested;User-Agent is to accuse Tell server end, the software environment of client;Accept-Encoding is Tell server end, the data pressure that client is supported Contracting format;Accept-Language is Tell server end, the language environment of client.Requesting body (body) is HTTP request In message body, the key assignments that the components values in a page table list are passed through param1=value1&param2=value2 by it To form coding at a format string, it carries the data of multiple required parameters.Request time be trigger HTTP request when Between.Response body is for telling that client, the relevant information of server end, such as Server are to tell client, server end Type, Content-Encoding is to tell client, and the compressed format that data use, Content-Length is to tell visitor Family end, the length of echo back data.Cookie is used for Tell server end, and client keeps in the information of server end.
S203: the clean interface data in clean interface library are matched with the standard interface data in interface document library Processing obtains matching treatment result.
Wherein, interface document library is the database for storing standard interface data.Standard interface data are to be stored in advance Interface data in interface document library.The standard interface data can exist with excel, word or other document forms, Interface document form can be stored into, so as to subsequent progress interface document maintenance.Specifically, any two mark in interface document library Quasi- interface data is not identical, that is, the standard interface data being stored in interface document library have uniqueness.
Specifically, server end using packet catcher from access database in get clean interface data (or will The clean interface data are stored in clean interface library) after, which need to be connect with the standard in interface document library Mouth data carry out matching treatment one by one, to determine that the clean interface data whether there is the standard interface data to match, to obtain Take matching treatment result.It is to be appreciated that if being stored with the standard interface to match with clean interface data in interface document library Data then obtain the matching treatment result of successful match;Match if not being stored in interface document library with clean interface data Standard interface data, then obtain the unsuccessful matching treatment result of matching.
In the present embodiment, clean interface data and standard interface data are subjected to matching treatment, to judge whether the two is right Same interface is answered, if same interface, then clean interface data and the success of standard interface Data Matching;If not conversely, same Interface, then clean interface data and standard interface Data Matching are unsuccessful.I.e. by by clean interface data and standard interface number According to matching treatment is carried out, according to matching treatment as a result, facilitating subsequent carry out duplicate removal processing, to guarantee to store in interface document library Standard interface data uniqueness, i.e., the corresponding interface of each standard interface data has uniqueness.
S204: if matching treatment result is that matching is unsuccessful, using clean interface data as new standard interface data It is stored in interface document library.
In the present embodiment, if matching treatment result be match it is unsuccessful, in specification interface document library there is no with it is original Interface data corresponds to the standard interface data of same interface, at this time can be using the clean interface data as new standard interface data It is stored in interface document library, to guarantee the uniqueness of interface document library Plays interface data, that is, avoids in interface document library There are duplicate standard interface data, is conducive to the standard interface data in maintenance interface document library and saves memory space, Be conducive to improve the efficiency for generating test case based on standard interface data.It is to be appreciated that being matching by matching treatment result Unsuccessful clean interface data are stored in interface document library as new standard interface data, to reach according to clean interface Standard interface data in data and interface document library carry out the matching treatment of matching treatment formation as a result, to interface text is stored in Standard interface data in shelves library carry out the purpose of duplicate removal processing.Moreover, each standard interface data packet in interface document library More complete and specification interface parameters is included, without constructing new interface by writing relevant interface parameter, reduces interface parameters The probability to malfunction in building process.
Correspondingly, if matching treatment result is successful match, exist and clean interface data in specification interface document library The standard interface data of corresponding same interface can make interface document if the clean interface data are stored in interface document library It is stored with the corresponding at least two standard interfaces data of same interface in library, increases the standard interface data in interface document library Safeguard complexity.For example, if there are three standard interface data A1, A2 and A3 for storage in the corresponding interface A of goal systems, subsequent When being safeguarded to the corresponding interface document of interface A, need while maintenance criterion interface data A1, A2 and A3 these three data Corresponding interface document causes the maintenance workload of its interface document to increase.
In interface data processing method provided by the present embodiment, first grabbed and target interface parameter from access database Corresponding clean interface data realize that quick obtaining batch includes the clean interface number of more complete and specification interface parameters According to improve the acquisition efficiency of clean interface data;After carrying out matching treatment with the standard interface data in interface document library, The clean interface data for obtaining the unsuccessful matching treatment result of matching are stored in interface document as new standard interface data In library, to guarantee the uniqueness of interface document library Plays interface data, be conducive to the standard interface number in interface document library According to being safeguarded.
In one embodiment, the data grabber task obtained in step S201 further includes task type, which uses In the type for limiting this data grabber task, it is specifically as follows real-time task and timed task two types.Correspondingly, step Use packet catcher from access database corresponding with goal systems mark in S202, crawl and target interface parameter phase Corresponding clean interface data, specifically comprise the following steps:
One is triggering packet catcher from visit corresponding with goal systems mark if task type is real-time task It asks in database, grabs clean interface data corresponding with target interface parameter.
Wherein, real-time task needs being handled at once for task after referring to received server-side to data grabber task. Specifically, server end often receives a data grabber task, if the task type in the data grabber task is real-time task, It then directlys adopt in the corresponding access database of packet catcher goal systems mark from the data grabber task, crawl packet Clean interface data containing all target interface parameters, to guarantee the real-time of clean interface data acquisition.
The second is whether triggered time monitoring tools monitoring system current time reaches if task type is timed task The clocked flip time carried into data grabber task, if reaching the clocked flip time, trigger packet catcher from target In the corresponding access database of system banner, clean interface data corresponding with target interface parameter are grabbed.
Wherein, timed task needs to wait in data grabber task after referring to received server-side to data grabber task The task that the clocked flip time of carrying just executes.The clocked flip time is to execute data grabber for limiting trigger the server end The time of operation.The clocked flip time is the time that user is independently arranged, for example, may be provided at a whole morning 9:00 weekly or Other times.Time monitoring tool is for obtaining the current time in system and whether the current time in system of judgement reaches clocked flip The tool of time (timing can be realized to monitor).For example, being provided on time monitoring tool for acquisition system current time Function.
Specifically, server end often receives a data grabber task, if the task type in the data grabber task is Timed task, then the preassembled time monitoring tool in trigger the server end is worked as with real-time monitoring system current time in system When the preceding time reaches the clocked flip time set in data grabber task, packet catcher is triggered from the data grabber task Goal systems identifies in corresponding access database, and crawl includes the clean interface data of all target interface parameters, with reality Clean interface data are now quickly grabbed, and grabs process and is not necessarily to manual intervention, are conducive to the crawl effect for improving clean interface data Rate.
In one embodiment, as shown in figure 3, in step S203 by the standard in clean interface data and interface document library Interface data carries out matching treatment, obtains matching treatment as a result, specifically comprising the following steps:
S301: using string matching algorithm, to the path and requesting method and interface document library in clean interface data In standard interface data in path and requesting method carry out matching treatment respectively.
Due to clean interface data and standard interface data include requesting method (method), state, path (path), Request header (head), request body (body), request time, response body, cookies and Host these interface parameters, and same Under goal systems, entrance is mirrored at the client call service device end of path (path) and requesting method (method) composition, because This, under same goal systems, path (path) and requesting method (method) is completely the same is taken as same interface.In order to The uniqueness for ensureing the standard interface data in interface document library needs when by the storage of clean interface data to interface document library Whether clean interface data are matched with the path (path) of each standard interface data and requesting method (method), that is, is judged Whether the path (path) of the two and requesting method (method) are identical, to determine whether it is same interface, to be gone It handles again.
Specifically, server end is using preconfigured string matching algorithm to clean interface data and standard interface number According to path (path) carry out matching treatment, with judge clean interface data and standard interface data path (path) whether phase Together;And matching treatment is carried out to the requesting method of clean interface data and standard interface data (method), to judge original connect Whether the requesting method (method) of mouth data and standard interface data is identical, to complete matching treatment process.The present embodiment In, string matching algorithm can be used but be not limited to Knuth-Morris-Pratt string matching algorithm (i.e. KMP algorithm).
S302: if path and requesting method are all the same, the matching treatment result of successful match is obtained.
In the present embodiment, if the path (path) of clean interface data and standard interface data is identical, and clean interface number It is identical according to the requesting method (method) with standard interface data, then assert clean interface data and standard interface data are target Same interface is formed by interface data under system, to obtain the matching treatment result of successful match.
S303: if path and/or requesting method be not identical, the unsuccessful matching treatment result of matching is obtained.
In the present embodiment, if the path (path) of clean interface data and standard interface data is not identical or original connects The requesting method (method) of mouthful data and standard interface data is not identical or clean interface data and standard interface data Path (path) and requesting method (method) be all different, then assert that clean interface data and standard interface data are not mesh Same interface is formed by interface data under mark system, obtains and matches unsuccessful matching treatment result.
In interface data processing method provided by the present embodiment, in all of clean interface data and standard interface data In interface parameters, the path (path) for combining the mapping entrance for forming client call service device end and requesting party are only chosen Method (method) carries out matching treatment, can effectively simplify its matching treatment process, without matching to total interface parameter, mention High matching treatment efficiency.
Specifically, interface document is stored in the form of interface document using clean interface data as new standard interface data In library, interface document can be also named according to corresponding interface name in the description of its function, so as to in interface document library Standard interface data carry out specification handles.
In one embodiment, since all standard interface data stored in interface document library include function description, ask Ask method (method), URL parameter, state, path (path), request header (head), request body (body), request time, sound These more complete interface parameters such as body and cookies are answered, are safeguarded being formed by interface document to standard interface data In the process, it can be achieved that carrying out interface transformation to the corresponding interface parameters of each standard interface data.As shown in figure 4, in realization pair During the corresponding interface of standard interface data is transformed, which includes the following steps:
S401: it obtains the interface that client is sent and request is transformed, interface transformation request includes path to be rebuilt and to be rebuilt Requesting method.
Wherein, interface transformation request is to change for trigger the server end to the standard interface data in interface document library The request made.The path to be rebuilt refers to the corresponding path of interface that needs are transformed, the requesting method to be rebuilt refer to need into The corresponding requesting method of interface of row transformation.Specifically, request, the interface is transformed in the interface that server end obtains that client is sent Transformation request specifically includes path to be rebuilt and requesting method to be rebuilt, since path and requesting method can uniquely determine one and connect Mouthful, therefore, the required interface being transformed can be uniquely determined according to the path to be rebuilt and requesting method to be rebuilt, which is For interface to be rebuilt.
S402: being based on path to be rebuilt and requesting method query interface document library to be rebuilt, obtain interface data to be rebuilt, And interface data to be rebuilt is shown on the client.
Specifically, server end is based on path to be rebuilt and requesting method query interface document library to be rebuilt, due to interface Each interface in document library can determine by its path and requesting method, therefore, according to the path to be rebuilt and to be rebuilt can ask Method is asked to determine its corresponding interface to be rebuilt, it will standard interface data corresponding with path to be rebuilt and requesting method to be rebuilt It is determined as the corresponding interface data to be rebuilt of the interface to be rebuilt.In the present embodiment, server end to be rebuilt connects acquired Mouth data are shown on the interface editing interface of client, so that developer can be to be rebuilt to showing on the interface editing interface Interface data is modified.
S403: obtaining the parameter modification request that client is formed based on interface data to be rebuilt, and parameter modification request includes Parameter name to be modified and parameter value to be modified.
Wherein, parameter name to be modified specifically refers to the title of interface parameters for needing to modify, and such as URL parameter or asks Seek body etc..Parameter value to be modified specifically refers to need the numerical value for the interface parameters modified.Specifically, client show to Can be shown when interface data is transformed, on the interface editing interface of the client display interface title, host, status code, request body, These interface parameters of parameter, process code and file path corresponding parameter input frame defaults display in the parameter input frame The corresponding interface parameters of standard interface data, developer can repair the interface parameters that display is defaulted in parameter input frame Change, to input corresponding parameter modification request, to realize the quick modification to interface data to be rebuilt.It is to be appreciated that being based on The interface parameters to be rebuilt that client is shown forms parameter modification request and improves so that modification content is less during its modification Modify efficiency.
S404: being based on parameter name query specification database to be modified, obtains interface ginseng corresponding with parameter name to be modified Number editor's rule.
Wherein, normative database is the database for storing the corresponding editor's rule of each interface parameters.Interface parameters is compiled Collecting rule is that server end is preconfigured for limiting the rule of the edit request of each interface parameters.Specifically, each interface The corresponding interface parameters editor rule of parameter, carries out standardized administration to each interface parameters to realize, guarantees to be based on interface parameters The enforceability of the interface data of formation.In the present embodiment, server is based on parameter name query specification database to be modified, obtains Interface parameters editor rule corresponding with the parameter name to be modified, so as to based on interface parameters editor rule to ginseng to be modified Several corresponding interface parameters carry out specification detection, to guarantee the executable of the update interface parameters formed after interface transformation Property.
S405: specification detection is carried out to parameter value to be modified using interface parameters editor rule, obtains specification testing result.
Specifically, server is using interface parameters editor rule corresponding with parameter name to be modified to parameter value to be modified Specification detection is carried out, to determine whether the parameter value to be modified meets the requirement of corresponding interface parameters editor rule, if meeting It is required that then obtaining the specification testing result that detection passes through;If it does not meet the requirements, then the unacceptable specification detection knot of detection is obtained Fruit.In the present embodiment, each interface parameters editor rule is pre-configured with one for realizing the regular expression of specification detection, is based on The regular expression configured in interface parameters editor's rule carries out specification detection to parameter value to be modified, to determine that this is to be modified Whether parameter value meets the requirement of interface parameters editor's rule.
S406: if specification testing result is that detection passes through, interface data to be rebuilt is carried out based on parameter value to be modified Modification, obtains improved update interface data.
In the present embodiment, if the specification testing result in step S405 is that detection passes through, illustrate the parameter value to be modified Meet the requirement of interface parameters editor's rule, at this point, can be modified based on the parameter value to be modified to interface parameters to be rebuilt, To obtain improved update interface data.It is to be appreciated that the update interface data, which refers to use, meets interface parameters editor The interface data that the interface parameters value to be modified of rule is formed after modifying to interface data to be rebuilt.Due to updating number of ports Each interface parameters in meets corresponding interface parameters editor rule, and error probability is lower during changing it, mentions The accuracy and enforceability of Gao Gengxin interface data.
S407: if specification testing result is that detection does not pass through, the prompting message of parameter irregularity is sent to client.
In the present embodiment, if the specification testing result in step S405 is that detection does not pass through, illustrate the parameter to be modified Value does not meet the requirement of interface parameters editor's rule, at this point, if being directly based upon the parameter value to be modified to interface parameters to be rebuilt It modifies, the enforceability of modified interface parameters to be rebuilt may be will affect, so that the probability to malfunction during change It is higher, therefore, the prompting message of parameter irregularity need to be sent, to client to remind developer to modify.
It is first true according to path to be rebuilt and requesting method to be rebuilt in interface data processing method provided by the present embodiment Its fixed corresponding interface data to be rebuilt, and the interface data to be rebuilt is shown on the client, so as to based on shown Interface data to be rebuilt is quickly modified.Determine that interface parameters editor advises according to the parameter name to be modified in parameter modification request Then, specification detection is carried out to parameter value to be modified using interface parameters editor rule, is that detection passes through in specification testing result When, it obtains and is modified based on the parameter value to be modified, obtain and update interface data, to guarantee to update the accuracy of interface data And enforceability.If specification testing result is that detection is obstructed out-of-date, client feedback prompting message is given, so that developer is based on The prompting message is modified, and is led to avoid being modified based on the parameter value to be modified for not meeting interface parameters editor's rule The problem that the error probability of cause is higher and enforceability is low.
Correspondingly, the embodiment of the present invention also provides a kind of automated testing method, which can be applicable to In application environment as shown in Figure 1.Specifically, use-case generation just goes to apply in automatic test platform, which surveys Trying platform includes client and server end as shown in Figure 1, and client and server is communicated by network, for real Now based on the standard interface data in interface document library, quick obtaining target detection use-case, to improve the test of automatic test Efficiency.
In one embodiment, as shown in figure 5, providing a kind of automated testing method, which includes certainly Metaplasia is moved at test case, for improving the formation efficiency of test case, for applying the server end in Fig. 5 in this way It is illustrated, includes the following steps:
S501: the use-case edit requests that client is sent are obtained, use-case edit requests include interfacing order and at least one Interface requirements.
Wherein, use-case edit requests are that the request of test case editor is carried out for trigger the server end.Use-case editor Request is specially HTTP request.Interface requirements is to be included for the test case of editor needed for describing this use-case edit requests Function demand.Interfacing order is the demand for limiting sequencing between two or more interface requirements.Example Such as, the test case of required editor is the login function of Taobao, then its interface requirements only has login demand;If the survey of required editor Example on probation is the payment function of Taobao, then its interface requirements is followed successively by login demand, article browsing demand, purchase vehicle demand, buys Five interface requirements such as square validation of information demand and payment demand.
S502: being based at least one interface requirements query interface document library, obtains mark corresponding with each interface requirements Quasi- interface data, control client show standard interface data.
Shown in embodiment as above, multiple standard interface data, each standard interface data pair are stored in interface document library An interface is answered, and each standard interface data can store into interface document form in interface document library, and retouch with its function It states corresponding interface name to be named interface document, to carry out at specification the standard interface data in interface document library Reason.
Specifically, server end is when receiving use-case edit requests, can connect according to each in the use-case edit requests Mouthful demand, with the presence or absence of the interface name to match with the interface requirements in query interface document library, if it exists with interface requirements The corresponding standard interface data of the interface name are then determined as the corresponding standard of the interface requirements and connect by the interface name to match Mouth data, and the use-case edit page for controlling client shows the standard interface data, so that tester would know that the standard The interface parameters of interface data, to modify.Correspondingly, the interface name to match if it does not exist with interface requirements, then Prompting message need to be sent to client, to remind tester to edit standard interface data corresponding with the interface requirements, and The standard interface data are stored in interface document library, to enrich interface document library.
S503: it obtains the interface that client is sent and modifies request, interface modification request includes target interface mark and target Modify parameter.
Wherein, interface modification request is that the request of interface parameters modification is carried out for trigger the server end.Interface modification Request is that the interface parameters in the standard interface data that tester shows use-case edit page by client is modified Request.Target interface mark refers to the corresponding mark of the target interface to be modified of this interface modification request.Target modification Parameter refers to the corresponding interface parameters of the target interface to be modified of this interface modification request.
Specifically, server end is getting standard interface number corresponding with each interface requirements from interface document library According to when, the use-case edit page that need to control client shows the standard interface data, so that tester would know that the standard connects The interface parameters of mouth data, to modify.For example, the interface of the standard interface data shown on use-case edit page is joined It, can display interface title, host, status code, request body, parameter, process code and file path these interface parameters when number Corresponding parameter input frame, the corresponding interface parameters of default display standard interface data in the parameter input frame, tester can It modifies to the interface parameters for defaulting display in parameter input frame, it is quick to realize to input corresponding interface modification request Modification.For example, needing the content to the request body in collection interface to modify according to testing requirement, then target interface identifies For the corresponding mark of collection interface, target modification parameter is the parameter that tester fills in request this parameter input frame of body Content, to realize quickly modification.In general, only when developer modifies the special circumstances such as the interface of server end, The interface parameters in manual intervention maintenance criterion interface data need to be carried out, corresponding standard interface data otherwise can be called directly and make For target interface data, to improve the acquisition efficiency of target interface data.
S504: be based on target modification parameter, modify to standard interface data corresponding with target interface mark and Debugging obtains and debugs successful target interface data.
Target interface data refer to standard interface data are modified and are debugged after, determine and debug successful target interface Data, for guaranteeing the subsequent test case generated based on target interface data when testing, test process is not by the mesh Mark the influence of the corresponding interface of interface data.Only debugging successful target interface data just can be generated test case, with Avoid the subsequent test case formed based on target interface data in automatic test course, because of the target interface of a certain interface Corrupt data causes the automatic test course of test case to malfunction, and influences automatic test efficiency and accuracy.
For example, it is different that different keyword removal search need to be inputted in the automatic test course that dotey's function is searched by Taobao Dotey's information, therefore, during generating corresponding target detection use-case, it is also desirable to be passed to different interface parameters to reach The purpose of scene covering, it is therefore desirable to the interface parameters in identified standard interface data is modified and debugged, so that Target detection use-case generated achievees the purpose that scene covers.Specifically, based on interface modification request, to target interface mark It includes following several situations that sensible corresponding standard interface data, which are modified with debugging process:
(1) data-> executes failure-> modification data are modified-> it runs succeeded, the successful target interface number of acquisition debugging According to;Or
(2) data-> run succeeded are modified, obtains and debugs successful target interface data;Or
(3) data-> execute failure-> modification data are modified-> execute failure-> modification data-> N number of circulation ... It runs succeeded, obtains and debug successful target interface data.
It is to be appreciated that server end is modified data based on target modification parameter, is held after obtaining interface modification request The modified data of row, obtain implementing result;If implementing result is to execute failure, repeats and repaired based on target modification parameter The step for changing data, executing modified data, obtain implementing result, until obtaining implementing result is the circulation to run succeeded Process is debugging process, and this debugging process can ensure that the accessed successful target interface data of each debugging are being formed Target detection use-case in automatic test course, will not cause to survey because of the corresponding individual interface reason of target interface data Examination failure, to ensure the efficiency and accuracy of automatic test.
In another example in the test case of analog subscriber register process, it is only necessary to it is corresponding to modify target interface mark Different username and password in target interface (i.e. login interface), and according to these target modification parameters pair of username and password Standard interface data are modified and are debugged, and so that it is logined successfully and (is debugged successfully), to obtain target interface data.Compared to In other similar products, the interface name that needs to show on its use-case editing interface, host, status code, request body, parameter, Process code and the corresponding parameter input frame of these interface parameters of file path are manually entered all interface parameters, this implementation The content of change need to only be inputted in example, since the content of change is few, the probability of error is smaller, and efficiency is also high, debugging The probability that process generally malfunctions also can be many less.
Further, it is based on target modification parameter, standard interface data corresponding with target interface mark are repaired Change and debug, specifically include: based on target modification parameter, specification detection being carried out to target modification parameter;If specification detection passes through, Then standard interface data corresponding with target interface mark are modified and debugged.It is to be appreciated that joining to target modification Number carries out specification detection so that target modification parameter comply with standard each interface parameters in interface data write specification, with guarantee Automatic test is gone on smoothly.
For example, during modifying to the request body in standard interface data specification inspection need to be carried out to request body It surveys, to guarantee going on smoothly for automatic test.Include following some contents carrying out specification detection to request body: one is, The type for requesting the structure type of body to state with request header is consistent, and if request header states json type, request body must be just Json type, otherwise, server end will return type exception prompting message, to remind tester to modify.Secondly It is to request the field of body consistent with the field that rear end requires, lacks necessary field or field name not clock synchronization, server end meeting The prompting message of field exception is returned to, to remind tester to modify.
S505: being combined at least one target interface data according to interfacing order, forms target detection use-case.
Specifically, server end is got according to the interfacing order in use-case edit requests to according to each interface requirements The successful target interface data of debugging be combined, with formed can be achieved specific function demand target detection use-case.It can be with Understand ground, server end can make every after forming target detection use-case by the target detection use case storage in case data library The corresponding use-case mark of one target detection use-case, quickly to find corresponding target detection use-case based on use-case mark.
Since standard interface data are stored in interface document library, the reusability of the standard interface data can be improved, only It need to once be directed into interface document library (standard interface data are stored in interface document library by step S201-S204), It can be repeated to quote by multiple target detection use-cases, and can be combined with other standards interface data and to form different target test use Example, to improve the formation efficiency of target detection use-case.Due to including function description, requesting method in standard interface data (method), URL parameter, state, path (path), request header (head), request body (body), request time, response body and The interface parameters such as cookies, these interface parameters construct an interface complete and that specification is executable, so that being based at least one The corresponding target interface data of interface requirements are combined according to its interfacing order, can be formed new target detection use-case, be mentioned The formation efficiency of high target detection use-case, helps to improve the efficiency of automatic test.
In automated testing method provided by the present embodiment, it can be searched according to interface requirements each in use-case edit requests Interface document library quickly finds corresponding standard interface data, is not necessarily to tester from the corresponding standard interface number of edlin According to the acquisition efficiency of raising standard interface data.Also, request need to be only modified by interface to tap in the middle part of standard interface data Mouth parameter is modified, and change content is less, and error probability is lower, to improve the acquisition efficiency of modified target interface data And accuracy.Moreover, need to be debugged to the standard interface data of modification, it is based only on the successful target interface data of debugging and generates Target detection use-case leads to the automatic test course for being formed by target detection use-case to avoid because of target interface corrupt data Error, to improve automatic test efficiency.At least one target interface data is combined based on interfacing order, it can be quick Target detection use-case is formed, the efficiency of target detection use-case is improved.
In another embodiment, after the step of forming target detection use-case, automated testing method further include: use Carry out static file filtering of the regular expression matching algorithm to each target interface data in target detection use-case obtains more New target detection use-case.
Specifically, server end is provided with the regular expressions for matching the static file in target interface data in advance Formula, based on the regular expression formed regular expression matching algorithm to target interface data each in target detection use-case into Row static file process, to remove the static file in target interface data, to obtain the target detection use-case of update To reduce the workload of data volume and follow-up maintenance in target detection use-case, and can make it is subsequent based on target detection use-case into In row automatic test course, the influence of static file is excluded, improves automatic test efficiency.For example, regular expressions can be used Formula matching algorithm is filtered the URL in target interface data, to remove static file present in target interface data.It should Static file refers to that web system is used to the file of Html, CSS and JS of the rendering client page etc.
In one embodiment, as shown in fig. 6, providing a kind of automated testing method, which includes base Automatic test course is carried out in test case, for improving automatic test efficiency.I.e. in the step for forming target detection use-case After rapid, automated testing method further includes following steps:
S601: obtaining the use-case test request that client is sent, and use-case test request includes target use-case mark.
Wherein, use-case test request is the request for the automatic implementation of test cases in trigger the server end.Use-case test Request is specially HTTP request.Target use-case mark is the mark for a certain target detection use-case of unique identification.Each use-case Identify corresponding target detection use-case.
S602: it based on target use-case mark inquiry case data library, obtains target corresponding with target use-case mark and surveys Example on probation, target detection use-case include interfacing order and at least one target interface data, each target interface data corresponding one Execute object.
Specifically, server end is used after receiving use-case test request based on the target in the use-case test request Example mark inquiry case data library, to obtain target detection use-case corresponding with target use-case mark.It is to be appreciated that use-case All target detection use-cases stored in database are according to target detection use-case acquired in step S501-S505, this includes Interfacing order and at least one target interface data, moreover, each target interface data corresponding one execute object.Wherein, it executes Object refers to the object for needing to access during performance objective test case.For example, in automatic test course, target detection The object accessed needed for use-case generally tests environment db, test environment service device end and platform script server end.Generally For, in automatic test course, the main effective object of target detection use-case is test environment service device end, and tests environment DB and platform script server end only assist (general manual construction as needed).
S603: according to interfacing order, successively performance objective interface data, from execution object corresponding with target interface data It is middle to obtain corresponding test data.
It, will since each clean interface data for using packet catcher to be grabbed in step S202 carry primary data Clean interface data carry out matching treatment with the standard interface data in interface document library and deposit as new standard interface data Storage is at interface document library, so that each standard interface data also carry primary data.Based on mark in step S501-S505 During quasi- interface data generates target detection use-case, if not modifying to standard interface data, the target of generation Test case carry out automatic test when will by the primary data of default load come in, with guarantee automatic test it is smooth into Row;If modifying according to the actual situation to standard interface data, server end carries out modified standard interface data Debugging is based only on the successful target interface data of debugging and forms target detection use-case, so that the target formed in debugging process connects Mouth data, which also carry, uses the corresponding primary data of target modification parameter, carries out automatic test in the target detection use-case that it is generated When will by the primary data of default load come in, to guarantee going on smoothly for automatic test.
In general, a Web system is made of front-end and back-end, and front end is usually client, and is below server End.As above, the access of client includes front-end access and back-end access, and server end is configured with a monitoring tools (concretely One packet catcher), back-end access data are formed by for grabbing back-end access.For example, during the test, user is in client The operation for the Back end data that accesses is held, server end is transmitted to by client to realize, then after this operation is formed by Access data in end can be grabbed by the monitoring tools that server end configures;Correspondingly, if user client clicked by Key is to trigger some of front end to operate without the movement for being triggered to access rear end, then these operations can not monitoring tools (tool Body can be a packet catcher) it grabs.
In interface automatic test course, main test object is to access the service of rear end, i.e., according to target detection Preconfigured interfacing order in use-case, according to performance objective interface data, complete analog subscriber client operation behavior, So that client is based on the operation behavior and generates corresponding data packet and pass to execution object corresponding with target interface data (i.e. rear end) obtains corresponding test data with the operation behavior of analog subscriber.So-called complete analog subscriber is in client Behavior refers to foundation interfacing order, successively performance objective interface data, can toward the data packet of rear end transmitting during execution It is completely the same with real user behavior to accomplish, to improve the efficiency of interface automatic test.This interface automatic test mistake Cheng Zhong needs the similar product of manual construction interface compared to other, usually only past to connect due to the workload problem of interface building The field that some keys are transmitted in mouthful, so that the data transmitted in data packet and user's operation that rear end receives are surrounded by larger difference It is different, so that accuracy is unable to get guarantee in test process.
It is to be appreciated that need to guarantee that each target in performance objective test case connects in interface automatic testing process The request body transmitted to the back-end in mouth data procedures, with the request for passing through client transmission to the back-end in user's actual mechanical process Body is identical, to realize that automatic performance objective test case and user's practical operation implementation procedure generate identical effect, to guarantee The formal property of test scene.
S604: being based on test data, obtains target detection report.
Specifically, server end is previously stored with test report template, which includes template framework, setting Test field and filling region corresponding with each test field in template framework.Server end is being based on step S603 After getting test data, which is filled into the corresponding filling region of test field corresponding thereto, with Target detection report is obtained, this process, which can automate, generates target detection report, is not necessarily to manual manufacture test report, improves effect Rate.
In automated testing method provided by the present embodiment, mesh is obtained from case data library according to target use-case mark Test case is marked, each target detection use-case includes interfacing order and at least one target interface data, to realize quick obtaining More complete and specification target interface data.According to interfacing order, successively performance objective interface data, with from target interface number According to corresponding test data is obtained in corresponding execution object, since target interface data are more complete and standardize, so that target connects The implementation procedure of mouth data is consistent with real user behavior to the data packet that object transmits is executed, to guarantee the accurate of test process Property and authenticity.Then, it obtains target detection report automatically based on test data, is not necessarily to manual manufacture test report, improve effect Rate.
It should be understood that the size of the serial number of each step is not meant that the order of the execution order in above-described embodiment, each process Execution sequence should be determined by its function and internal logic, the implementation process without coping with the embodiment of the present invention constitutes any limit It is fixed.
In one embodiment, a kind of interface data processing unit is provided, the interface data processing unit and above-described embodiment Middle interface data processing method corresponds.As shown in fig. 7, the interface data processing unit includes that data grabber task obtains mould Block 701, clean interface data acquisition module 702, matching treatment result obtain module 703 and interface data memory module 704.Respectively Detailed description are as follows for functional module:
Data grabber task acquisition module 701, for obtaining data grabber task, data grabber task includes goal systems Mark and target interface parameter.
Clean interface data acquisition module 702, for using packet catcher from access corresponding with goal systems mark In database, clean interface data corresponding with target interface parameter are grabbed, clean interface data are stored in clean interface In library.
Matching treatment result obtain module 703, for by clean interface library clean interface data and interface document library In standard interface data carry out matching treatment, obtain matching treatment result.
Interface data memory module 704 makees clean interface data if being that matching is unsuccessful for matching treatment result It is stored in interface document library for new standard interface data.
Preferably, data grabber task further includes task type.
Clean interface data acquisition module 702 includes the real-time acquiring unit of interface data and interface data timing acquisition list Member.
The real-time acquiring unit of interface data, if for task type be real-time task, trigger packet catcher from target In the corresponding access database of system banner, clean interface data corresponding with target interface parameter are grabbed.
Interface data timing acquisition unit, if being timed task, the monitoring of triggered time monitoring tools for task type Whether the current time in system reaches the clocked flip time carried in data grabber task is touched if reaching the clocked flip time Packet catcher is sent out from access database corresponding with goal systems mark, is grabbed corresponding with target interface parameter original Interface data.
Preferably, matching treatment result obtain module 703 include matching treatment unit, the first processing result acquiring unit and Second processing result acquiring unit.
Matching treatment unit, for use string matching algorithm, in clean interface data path and requesting method With in the standard interface data in interface document library path and requesting method carry out matching treatment respectively.
If first processing result acquiring unit obtains the matching of successful match all the same for path and requesting method Processing result.
It is unsuccessful to obtain matching if not identical for path and/or requesting method for second processing result acquiring unit Matching treatment result.
Preferably, after interface data memory module 704, interface data processing unit further includes that interface transformation request obtains Take unit, interface transformation request unit, parameter modification request unit, parameter editor's Rule unit, specification inspection It surveys result acquiring unit, update interface data acquiring unit and reminding information acquisition unit.
Request unit is transformed in interface, and for obtaining the interface transformation request of client transmission, request packet is transformed in interface Include path to be rebuilt and requesting method to be rebuilt.
Interface data display unit to be rebuilt, for being based on path to be rebuilt and requesting method query interface document to be rebuilt Library obtains interface data to be rebuilt, and interface data to be rebuilt is shown on the client.
Parameter modifies request unit, is asked for obtaining client based on the parameter modification that interface data to be rebuilt is formed It asks, parameter modification request includes parameter name to be modified and parameter value to be modified.
Parameter editor's Rule unit, for be based on parameter name query specification database to be modified, obtain with it is to be modified The corresponding interface parameters editor rule of parameter name.
Specification testing result acquiring unit, for carrying out specification inspection to parameter value to be modified using interface parameters editor rule It surveys, obtains specification testing result.
Interface data acquiring unit is updated, if being that detection passes through for specification testing result, is based on parameter value to be modified It modifies to interface data to be rebuilt, obtains improved update interface data.
Reminding information acquisition unit sends parameter not to client if being that detection does not pass through for specification testing result Close the prompting message of rule.
In one embodiment, a kind of automatic test device is provided, in the automatic test device and above-described embodiment certainly Dynamicization test method corresponds.As shown in figure 8, the automatic test device includes that use-case edit requests obtain module 801, mark Quasi- interface data obtains module 802, interface modification request module 803, target interface data acquisition module 804 and target and surveys Example on probation forms module 805.Detailed description are as follows for each functional module:
Use-case edit requests obtain module 801, for obtaining the use-case edit requests of client transmission, use-case edit requests Including interfacing order and at least one interface requirements.
Standard interface data acquisition module 802, for be based at least one interface requirements query interface document library, obtain with The corresponding standard interface data of each interface requirements, control client show standard interface data.
Interface modifies request module 803, for obtaining the interface modification request of client transmission, interface modification request Including target interface mark and target modification parameter.
Target interface data acquisition module 804, for being based on target modification parameter, to corresponding with target interface mark Standard interface data are modified and are debugged, and are obtained and are debugged successful target interface data.
Target detection use-case forms module 805, for carrying out group at least one target interface data according to interfacing order It closes, forms target detection use-case.
Preferably, after target interface data acquisition module 804, automatic test device further includes static file filtering Processing module, for quiet to the carry out of each target interface data in target detection use-case using regular expression matching algorithm State file filter obtains the target detection use-case of update.
After target interface data acquisition module 804, automatic test device further includes that use-case test request obtains mould Block, target detection use-case obtain module, test data obtains module and target detection report acquisition module.
Use-case test request obtains module, for obtaining the use-case test request of client transmission, use-case test request packet Include target use-case mark.
Target detection use-case obtains module, for obtaining and using with target based on target use-case mark inquiry case data library Example identifies corresponding target detection use-case, and target detection use-case includes interfacing order and at least one target interface data, often One target interface data corresponding one execute object.
Test data obtains module, for according to interfacing order, successively performance objective interface data, from target interface number According to obtaining corresponding test data in corresponding execution object.
Target detection report acquisition module obtains target detection report for being based on test data.
Specific restriction about interface data processing unit or automatic test device may refer to above for connecing The restriction of mouth data processing method or automated testing method, details are not described herein.Above-mentioned interface data processing unit or Modules in automatic test device can be realized fully or partially through software, hardware and combinations thereof.Above-mentioned each module It can be embedded in the form of hardware or independently of in the processor in computer equipment, computer can also be stored in a software form In memory in equipment, the corresponding operation of the above modules is executed in order to which processor calls.
In one embodiment, a kind of computer equipment is provided, which can be server end, inside Structure chart can be as shown in Figure 9.The computer equipment includes processor, the memory, network interface connected by system bus And database.Wherein, the processor of the computer equipment is for providing calculating and control ability.The memory of the computer equipment Including non-volatile memory medium, built-in storage.The non-volatile memory medium is stored with operating system, computer program sum number According to library.The built-in storage provides environment for the operation of operating system and computer program in non-volatile memory medium.The meter Calculate the database of machine equipment for store execute interface data processing method or automated testing method during apply or The data of generation, such as standard interface data.The network interface of the computer equipment is used to pass through network connection with external terminal Communication.When the computer program is executed by processor with realize interface data processing method provided by above-described embodiment or from Dynamicization test method.
In one embodiment, a kind of computer equipment is provided, including memory, processor and storage are on a memory And the computer program that can be run on a processor, processor realize interface data in above-described embodiment when executing computer program The step of processing method, such as step S201-S204 shown in Fig. 2 or step shown in Fig. 3, to avoid repeating, here not It repeats again.Alternatively, processor execute computer program when realize this embodiment of interface data processing unit in each module/it is mono- The function of member, for example, data grabber task acquisition module 701 shown in Fig. 7, clean interface data acquisition module 702, at matching The function that result obtains module 703 and interface data memory module 704 is managed, to avoid repeating, which is not described herein again.
In one embodiment, a kind of computer equipment is provided, including memory, processor and storage are on a memory And the computer program that can be run on a processor, processor are realized to automate in above-described embodiment when executing computer program and be surveyed The step of method for testing, such as step S501-S505 shown in fig. 5 or step shown in fig. 6, to avoid repeating, here no longer It repeats.Alternatively, processor realizes each module/unit in this embodiment of automatic test device when executing computer program Function, such as use-case edit requests shown in Fig. 8 obtain module 801, standard interface data acquisition module 802, interface and modify and ask It asks and obtains the function that module 803, target interface data acquisition module 804 and target detection use-case form module 805, to avoid weight Multiple, which is not described herein again.
In one embodiment, a computer readable storage medium is provided, meter is stored on the computer readable storage medium The step of calculation machine program, which realizes interface data processing method in above-described embodiment when being executed by processor, example Step S201-S204 or Fig. 3 as shown in Figure 2 and step shown in Fig. 4, to avoid repeating, which is not described herein again.Alternatively, The computer program realizes each module/unit in above-mentioned this embodiment of interface data processing unit when being executed by processor Function, such as data grabber task acquisition module 701 shown in Fig. 7, clean interface data acquisition module 702, matching treatment knot Fruit obtains the function of module 703 and interface data memory module 704, and to avoid repeating, which is not described herein again.
In one embodiment, a computer readable storage medium is provided, meter is stored on the computer readable storage medium The step of calculation machine program, which realizes automated testing method in above-described embodiment when being executed by processor, such as Step S501-S505 shown in fig. 5 or step shown in fig. 6, to avoid repeating, which is not described herein again.Alternatively, the calculating Machine program realizes the function of each module/unit in this embodiment of above-mentioned automatic test device, example when being executed by processor Use-case edit requests as shown in Figure 8 obtain module 801, standard interface data acquisition module 802, interface and modify request mould Block 803, target interface data acquisition module 804 and target detection use-case form the function of module 805, to avoid repeating, here It repeats no more.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with Relevant hardware is instructed to complete by computer program, the computer program can be stored in a non-volatile computer In read/write memory medium, the computer program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein, To any reference of memory, storage, database or other media used in each embodiment provided herein, Including non-volatile and/or volatile memory.Nonvolatile memory may include read-only memory (ROM), programming ROM (PROM), electrically programmable ROM (EPROM), electrically erasable ROM (EEPROM) or flash memory.Volatile memory may include Random access memory (RAM) or external cache.By way of illustration and not limitation, RAM is available in many forms, Such as static state RAM (SRAM), dynamic ram (DRAM), synchronous dram (SDRAM), double data rate sdram (DDRSDRAM), enhancing Type SDRAM (ESDRAM), synchronization link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic ram (DRDRAM) and memory bus dynamic ram (RDRAM) etc..
It is apparent to those skilled in the art that for convenience of description and succinctly, only with above-mentioned each function Can unit, module division progress for example, in practical application, can according to need and by above-mentioned function distribution by different Functional unit, module are completed, i.e., the internal structure of described device is divided into different functional unit or module, more than completing The all or part of function of description.
Embodiment described above is merely illustrative of the technical solution of the present invention, rather than its limitations;Although referring to aforementioned reality Applying example, invention is explained in detail, those skilled in the art should understand that: it still can be to aforementioned each Technical solution documented by embodiment is modified or equivalent replacement of some of the technical features;And these are modified Or replacement, the spirit and scope for technical solution of various embodiments of the present invention that it does not separate the essence of the corresponding technical solution should all It is included within protection scope of the present invention.

Claims (10)

1. a kind of interface data processing method characterized by comprising
Data grabber task is obtained, the data grabber task includes goal systems mark and target interface parameter;
Using packet catcher from access database corresponding with goal systems mark, crawl is joined with the target interface The corresponding clean interface data of number, the clean interface data are stored in clean interface library;
Clean interface data in the clean interface library and the standard interface data in interface document library are subjected to matching treatment, Obtain matching treatment result;
If the matching treatment result is that matching is unsuccessful, deposited the clean interface data as new standard interface data Storage is in the interface document library.
2. interface data processing method as described in claim 1, which is characterized in that it is described by the clean interface data with connect Standard interface data in mouth document library carry out matching treatment, obtain matching treatment result, comprising:
Using string matching algorithm, to the path and requesting method in the clean interface data and the mark in interface document library Path and requesting method in quasi- interface data carry out matching treatment respectively;
If the path and the requesting method are all the same, the matching treatment result of successful match is obtained;
If the path and/or the requesting method be not identical, the unsuccessful matching treatment result of matching is obtained.
3. interface data processing method as described in claim 1, which is characterized in that make the clean interface data described It is stored in for new standard interface data after the step in the interface document library, the interface data processing method also wraps It includes:
It obtains the interface that client is sent and request is transformed, the interface transformation request includes path to be rebuilt and requesting party to be rebuilt Method;
Based on the path to be rebuilt and the requesting method query interface document library to be rebuilt, interface data to be rebuilt is obtained, And the interface data to be rebuilt is shown in the client;
The parameter modification request that the client is formed based on the interface data to be rebuilt is obtained, the parameter modifies request packet Include parameter name to be modified and parameter value to be modified;
Based on the parameter name query specification database to be modified, interface parameters corresponding with the parameter name to be modified is obtained Editor's rule;
Specification detection is carried out to the parameter value to be modified using the interface parameters editor rule, obtains specification testing result;
If the specification testing result be detection pass through, based on the parameter value to be modified to the interface data to be rebuilt into Row modification, obtains improved update interface data;
If the specification testing result is that detection does not pass through, the prompting message of parameter irregularity is sent to the client.
4. a kind of automated testing method characterized by comprising
The use-case edit requests that client is sent are obtained, the use-case edit requests include that interfacing order and at least one interface need It asks;
Based on interface requirements query interface document library described at least one, standard corresponding with each interface requirements is obtained Interface data controls the client and shows the standard interface data;
It obtains the interface that client is sent and modifies request, the interface modification request includes target interface mark and target modification ginseng Number;
Based on the target modification parameter, modify to the standard interface data corresponding with target interface mark And debugging, it obtains and debugs successful target interface data;
At least one described target interface data is combined according to the interfacing order, forms target detection use-case.
5. automated testing method as claimed in claim 4, which is characterized in that the formation target detection use-case the step of Later, the automated testing method further include:
Using the static text of progress of the regular expression matching algorithm to each target interface data in the target detection use-case Part filtering, obtains the target detection use-case of update.
6. automated testing method as claimed in claim 4, which is characterized in that the formation target detection use-case the step of Later, the automated testing method further include:
The use-case test request that client is sent is obtained, the use-case test request includes target use-case mark;
Inquiry case data library is identified based on the target use-case, obtains target detection corresponding with the target use-case mark Use-case, the target detection use-case include interfacing order and at least one target interface data, each target interface data Corresponding one executes object;
According to the interfacing order, the target interface data are successively executed, from execution corresponding with the target interface data Corresponding test data is obtained in object;
Based on the test data, target detection report is obtained.
7. a kind of interface data processing unit characterized by comprising
Data grabber task acquisition module, for obtaining data grabber task, the data grabber task includes goal systems mark Know and target interface parameter;
Clean interface data acquisition module, for using packet catcher from access data corresponding with goal systems mark In library, clean interface data corresponding with the target interface parameter are grabbed, the clean interface data are stored in original In interface library;
Matching treatment result obtain module, for by the clean interface library clean interface data and interface document library in Standard interface data carry out matching treatment, obtain matching treatment result;
Interface data memory module, if being that matching is unsuccessful for the matching treatment result, by the clean interface data It is stored in the interface document library as new standard interface data.
8. a kind of automatic test device characterized by comprising
Use-case edit requests obtain module, for obtaining the use-case edit requests of client transmission, the use-case edit requests packet Include interfacing order and at least one interface requirements;
Standard interface data acquisition module obtains and every for being based at least one described interface requirements query interface document library The corresponding standard interface data of one interface requirements, control the client and show the standard interface data;
Interface modifies request module, and for obtaining the interface modification request of client transmission, the interface modifies request packet Include target interface mark and target modification parameter;
Target interface data acquisition module, for being based on the target modification parameter, to corresponding with target interface mark The standard interface data modify and debug, obtain and debug successful target interface data;
Target detection use-case forms module, for carrying out group at least one described target interface data according to the interfacing order It closes, forms target detection use-case.
9. a kind of computer equipment, including memory, processor and storage are in the memory and can be in the processor The computer program of upper operation, which is characterized in that the processor realized when executing the computer program as claim 1 to The step of any one of 3 interface data processing method or the processor are realized when executing the computer program as weighed Benefit requires the step of any one of 4 to 6 automated testing method.
10. a kind of computer readable storage medium, the computer-readable recording medium storage has computer program, and feature exists In realizing the interface data processing method as described in any one of claims 1 to 3 when the computer program is executed by processor The automatic test side as described in any one of claim 4 to 6 is realized when step or the computer program are executed by processor The step of method.
CN201811536551.4A 2018-12-15 2018-12-15 Interface data processing method, automatic testing method, device, equipment and medium Active CN109766262B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201811536551.4A CN109766262B (en) 2018-12-15 2018-12-15 Interface data processing method, automatic testing method, device, equipment and medium
PCT/CN2019/120593 WO2020119434A1 (en) 2018-12-15 2019-11-25 Method and apparatus for interface data processing, method and apparatus for automated testing, device, and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811536551.4A CN109766262B (en) 2018-12-15 2018-12-15 Interface data processing method, automatic testing method, device, equipment and medium

Publications (2)

Publication Number Publication Date
CN109766262A true CN109766262A (en) 2019-05-17
CN109766262B CN109766262B (en) 2022-05-06

Family

ID=66451902

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811536551.4A Active CN109766262B (en) 2018-12-15 2018-12-15 Interface data processing method, automatic testing method, device, equipment and medium

Country Status (2)

Country Link
CN (1) CN109766262B (en)
WO (1) WO2020119434A1 (en)

Cited By (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110377463A (en) * 2019-06-19 2019-10-25 深圳壹账通智能科技有限公司 Interface test method, device, terminal and computer readable storage medium
CN110750442A (en) * 2019-09-06 2020-02-04 平安医疗健康管理股份有限公司 Test case generation method, device, equipment and storage medium
CN111045895A (en) * 2019-12-16 2020-04-21 深圳市前海随手财富管理有限公司 Verification result monitoring processing method, device, equipment and storage medium
WO2020119434A1 (en) * 2018-12-15 2020-06-18 深圳壹账通智能科技有限公司 Method and apparatus for interface data processing, method and apparatus for automated testing, device, and medium
CN111338969A (en) * 2020-03-23 2020-06-26 深圳开源互联网安全技术有限公司 Method and system for dynamically matching and modifying request parameters based on regular pattern
CN111427774A (en) * 2020-03-09 2020-07-17 深圳开源互联网安全技术有限公司 Request parameter modification method and system for application program test case
WO2020233369A1 (en) * 2019-05-21 2020-11-26 深圳壹账通智能科技有限公司 Method for improving software integration system on basis of simulated port, and related device
CN112100058A (en) * 2020-08-19 2020-12-18 展讯半导体(南京)有限公司 Interface specification detection method and device
CN112287201A (en) * 2020-12-31 2021-01-29 北京精准沟通传媒科技股份有限公司 Method, device, medium and electronic equipment for removing duplicate of crawler request
CN112416419A (en) * 2020-11-16 2021-02-26 北京五八信息技术有限公司 Data processing method and device
CN112559350A (en) * 2020-12-16 2021-03-26 杭州数梦工场科技有限公司 Debugging method, device and equipment for front-end development page and storage medium
CN112612706A (en) * 2020-12-25 2021-04-06 深圳市彬讯科技有限公司 Automated testing method, computer device and storage medium
CN112711505A (en) * 2020-12-30 2021-04-27 招商局金融科技有限公司 Test data acquisition method and device, computer equipment and storage medium
CN113220584A (en) * 2021-05-26 2021-08-06 京东科技控股股份有限公司 Page testing method and device, computer equipment and readable storage medium
CN113360300A (en) * 2021-06-29 2021-09-07 平安普惠企业管理有限公司 Interface calling link generation method, device, equipment and readable storage medium
CN113704133A (en) * 2021-09-10 2021-11-26 广西东信易通科技有限公司 Interface test organization method and system and computer equipment
WO2022105494A1 (en) * 2020-11-17 2022-05-27 深圳壹账通智能科技有限公司 Automatic data backfilling method and apparatus, electronic device, and computer storage medium

Families Citing this family (38)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111723019A (en) * 2020-06-28 2020-09-29 深圳壹账通智能科技有限公司 Interface debugging method and system
CN111984713A (en) * 2020-06-29 2020-11-24 五八到家有限公司 Data processing method, device, equipment and storage medium
CN111625473B (en) * 2020-07-01 2023-08-22 北京字节跳动网络技术有限公司 Interface test case generation method and device, storage medium and electronic equipment
CN111984228B (en) * 2020-07-09 2023-12-12 招联消费金融有限公司 Interface document processing method and device, computer equipment and storage medium
CN111773728A (en) * 2020-07-09 2020-10-16 网易(杭州)网络有限公司 Data table testing method, device, equipment and storage medium
CN114077449B (en) * 2020-08-20 2023-08-01 网联清算有限公司 Database server testing method and device, electronic equipment and storage medium
CN114205273B (en) * 2020-08-26 2023-09-15 腾讯科技(深圳)有限公司 System test method, device and equipment and computer storage medium
CN112000579B (en) * 2020-08-26 2024-03-19 上海移远通信技术股份有限公司 Software interface testing method, system, equipment and medium
CN113760707A (en) * 2020-09-23 2021-12-07 北京沃东天骏信息技术有限公司 Interface testing method, device, equipment and computer readable storage medium
CN112291300B (en) * 2020-09-24 2022-12-06 南阳柯丽尔科技有限公司 Method and device for uploading rich text file
CN112115058B (en) * 2020-09-25 2024-03-29 建信金融科技有限责任公司 Test method and device, test case generation method and device and test system
CN112131127B (en) * 2020-09-28 2024-04-16 北京同邦卓益科技有限公司 Interface testing method, device and system and electronic equipment
CN112199300B (en) * 2020-11-13 2022-08-19 新华三大数据技术有限公司 Interface testing method and device, electronic equipment and storage medium
CN112506769A (en) * 2020-12-04 2021-03-16 数字广东网络建设有限公司 Interface document-based request body generation method and device and computer equipment
CN112711538B (en) * 2020-12-30 2024-03-19 招商局金融科技有限公司 Test system simulation method, device, computer equipment and storage medium
CN113760722A (en) * 2021-01-13 2021-12-07 北京京东振世信息技术有限公司 Test system and test method
CN112835809A (en) * 2021-03-22 2021-05-25 亿企赢网络科技有限公司 Test data setting method, device, equipment and medium based on browser
CN112948195B (en) * 2021-03-31 2023-04-25 建信金融科技有限责任公司 Interface testing method, device, electronic equipment and storage medium
CN113128192A (en) * 2021-04-06 2021-07-16 国网湖北省电力有限公司检修公司 Power transmission and transformation detection test data field interaction and centralized management and control method
CN113127347B (en) * 2021-04-14 2024-02-13 广联达科技股份有限公司 Interface testing method, device, equipment and readable storage medium
CN113470731B (en) * 2021-05-31 2023-11-21 成都佰维存储科技有限公司 APST function testing method and device, readable storage medium and electronic equipment
CN113407444B (en) * 2021-06-03 2022-11-25 中科曙光国际信息产业有限公司 Interface test case generation method, device, equipment and storage medium
CN113535832A (en) * 2021-06-10 2021-10-22 杭州未名信科科技有限公司 Method and device for acquiring cloud service data, electronic equipment and medium
CN113342664B (en) * 2021-06-16 2023-09-01 北京奇艺世纪科技有限公司 Dial testing method, device, storage medium and computer equipment
CN113342667A (en) * 2021-06-18 2021-09-03 杭州网易再顾科技有限公司 Data processing method, data processing device, electronic equipment and computer readable storage medium
CN113489650B (en) * 2021-06-30 2022-10-21 中国平安人寿保险股份有限公司 Routing method, device and equipment of client and storage medium
CN113726854A (en) * 2021-07-30 2021-11-30 联合汽车电子有限公司 Information processing method and device, storage medium, debugging equipment and vehicle
CN113806150B (en) * 2021-08-16 2024-02-13 济南浪潮数据技术有限公司 Method, system, equipment and storage medium for remote test of storage server
CN113704123B (en) * 2021-08-31 2024-04-23 平安银行股份有限公司 Interface testing method, device, equipment and storage medium
CN113672520A (en) * 2021-09-08 2021-11-19 京东科技控股股份有限公司 Test case generation method and device, electronic equipment and storage medium
CN114666258B (en) * 2022-03-22 2023-11-07 阿波罗智联(北京)科技有限公司 Interface testing method, device, electronic equipment and medium
CN114676062A (en) * 2022-04-06 2022-06-28 北京百度网讯科技有限公司 Method and device for testing difference data of interface, electronic equipment and medium
CN115065627B (en) * 2022-05-20 2024-04-12 北京奇艺世纪科技有限公司 Parameter modification method and device, electronic equipment and storage medium
CN114676067B (en) * 2022-05-26 2022-08-30 武汉迎风聚智科技有限公司 Parameterization processing method and device for test script
CN115809201B (en) * 2022-12-23 2023-10-20 广东保伦电子股份有限公司 Interface test control method, device, equipment and medium based on two-dimensional table
CN115665286B (en) * 2022-12-26 2023-03-28 深圳红途科技有限公司 Interface clustering method and device, computer equipment and storage medium
CN116881064B (en) * 2023-09-06 2023-12-15 Tcl通讯科技(成都)有限公司 Terminal test method, device, equipment and storage medium
CN117130941B (en) * 2023-10-24 2024-03-26 易方信息科技股份有限公司 Interface automation method, system, equipment and medium based on browser plug-in

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101499002A (en) * 2008-02-02 2009-08-05 阿里巴巴集团控股有限公司 Method, system and apparatus for generating interface document
CN103164270A (en) * 2011-12-12 2013-06-19 阿里巴巴集团控股有限公司 Java system application programming interface calling method and system using the same
EP2884393A1 (en) * 2013-12-10 2015-06-17 MBDA France Method and system for assisting with the verification and validation of a chain of algorithms
US20170223136A1 (en) * 2016-01-29 2017-08-03 AppDynamics, Inc. Any Web Page Reporting and Capture
CN107908542A (en) * 2017-07-26 2018-04-13 平安壹钱包电子商务有限公司 Test case creation method, apparatus, computer equipment and storage medium
CN107908540A (en) * 2017-07-26 2018-04-13 平安壹钱包电子商务有限公司 Test case creation method, apparatus, computer equipment and medium
CN108446190A (en) * 2017-02-16 2018-08-24 杭州海康威视数字技术股份有限公司 interface test method and device
CN108664665A (en) * 2018-05-22 2018-10-16 深圳壹账通智能科技有限公司 Data format method for transformation, device, equipment and readable storage medium storing program for executing
CN108710569A (en) * 2018-05-09 2018-10-26 深圳壹账通智能科技有限公司 Test cases generation method, data creation method, device, equipment and medium
CN108829574A (en) * 2018-04-13 2018-11-16 深圳壹账通智能科技有限公司 Test data laying method, testing service device and computer readable storage medium

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106991040B (en) * 2016-07-20 2020-05-05 平安科技(深圳)有限公司 Data interface testing method and device
CN108427631B (en) * 2017-02-14 2022-04-12 北京京东尚科信息技术有限公司 Application test system, method, electronic equipment and readable storage medium
CN109766262B (en) * 2018-12-15 2022-05-06 深圳壹账通智能科技有限公司 Interface data processing method, automatic testing method, device, equipment and medium

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101499002A (en) * 2008-02-02 2009-08-05 阿里巴巴集团控股有限公司 Method, system and apparatus for generating interface document
CN103164270A (en) * 2011-12-12 2013-06-19 阿里巴巴集团控股有限公司 Java system application programming interface calling method and system using the same
EP2884393A1 (en) * 2013-12-10 2015-06-17 MBDA France Method and system for assisting with the verification and validation of a chain of algorithms
US20170223136A1 (en) * 2016-01-29 2017-08-03 AppDynamics, Inc. Any Web Page Reporting and Capture
CN108446190A (en) * 2017-02-16 2018-08-24 杭州海康威视数字技术股份有限公司 interface test method and device
CN107908542A (en) * 2017-07-26 2018-04-13 平安壹钱包电子商务有限公司 Test case creation method, apparatus, computer equipment and storage medium
CN107908540A (en) * 2017-07-26 2018-04-13 平安壹钱包电子商务有限公司 Test case creation method, apparatus, computer equipment and medium
CN108829574A (en) * 2018-04-13 2018-11-16 深圳壹账通智能科技有限公司 Test data laying method, testing service device and computer readable storage medium
CN108710569A (en) * 2018-05-09 2018-10-26 深圳壹账通智能科技有限公司 Test cases generation method, data creation method, device, equipment and medium
CN108664665A (en) * 2018-05-22 2018-10-16 深圳壹账通智能科技有限公司 Data format method for transformation, device, equipment and readable storage medium storing program for executing

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
赵俊: "社交网络的数据采集与分析方法研究", 《中国优秀硕士学位论文全文数据库 信息科技辑》 *

Cited By (20)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020119434A1 (en) * 2018-12-15 2020-06-18 深圳壹账通智能科技有限公司 Method and apparatus for interface data processing, method and apparatus for automated testing, device, and medium
WO2020233369A1 (en) * 2019-05-21 2020-11-26 深圳壹账通智能科技有限公司 Method for improving software integration system on basis of simulated port, and related device
CN110377463A (en) * 2019-06-19 2019-10-25 深圳壹账通智能科技有限公司 Interface test method, device, terminal and computer readable storage medium
CN110750442A (en) * 2019-09-06 2020-02-04 平安医疗健康管理股份有限公司 Test case generation method, device, equipment and storage medium
CN111045895A (en) * 2019-12-16 2020-04-21 深圳市前海随手财富管理有限公司 Verification result monitoring processing method, device, equipment and storage medium
CN111045895B (en) * 2019-12-16 2024-02-23 深圳市前海随手财富管理有限公司 Monitoring processing method, device, equipment and storage medium for verification result
CN111427774A (en) * 2020-03-09 2020-07-17 深圳开源互联网安全技术有限公司 Request parameter modification method and system for application program test case
CN111338969A (en) * 2020-03-23 2020-06-26 深圳开源互联网安全技术有限公司 Method and system for dynamically matching and modifying request parameters based on regular pattern
CN112100058A (en) * 2020-08-19 2020-12-18 展讯半导体(南京)有限公司 Interface specification detection method and device
CN112416419A (en) * 2020-11-16 2021-02-26 北京五八信息技术有限公司 Data processing method and device
WO2022105494A1 (en) * 2020-11-17 2022-05-27 深圳壹账通智能科技有限公司 Automatic data backfilling method and apparatus, electronic device, and computer storage medium
CN112559350A (en) * 2020-12-16 2021-03-26 杭州数梦工场科技有限公司 Debugging method, device and equipment for front-end development page and storage medium
CN112612706A (en) * 2020-12-25 2021-04-06 深圳市彬讯科技有限公司 Automated testing method, computer device and storage medium
CN112711505A (en) * 2020-12-30 2021-04-27 招商局金融科技有限公司 Test data acquisition method and device, computer equipment and storage medium
CN112711505B (en) * 2020-12-30 2024-03-19 招商局金融科技有限公司 Test data acquisition method, device, computer equipment and storage medium
CN112287201A (en) * 2020-12-31 2021-01-29 北京精准沟通传媒科技股份有限公司 Method, device, medium and electronic equipment for removing duplicate of crawler request
CN113220584A (en) * 2021-05-26 2021-08-06 京东科技控股股份有限公司 Page testing method and device, computer equipment and readable storage medium
CN113360300A (en) * 2021-06-29 2021-09-07 平安普惠企业管理有限公司 Interface calling link generation method, device, equipment and readable storage medium
CN113360300B (en) * 2021-06-29 2023-10-24 北京思普艾斯科技有限公司 Interface call link generation method, device, equipment and readable storage medium
CN113704133A (en) * 2021-09-10 2021-11-26 广西东信易通科技有限公司 Interface test organization method and system and computer equipment

Also Published As

Publication number Publication date
CN109766262B (en) 2022-05-06
WO2020119434A1 (en) 2020-06-18

Similar Documents

Publication Publication Date Title
CN109766262A (en) Interface data processing method, automated testing method, device, equipment and medium
CN109766263A (en) Automatic test analysis and processing method, device, computer equipment and storage medium
CN106294614B (en) Method and apparatus for accessing business
CN105005532B (en) A kind of system and method for automatic test application programming interfaces stability
CN109522218A (en) Interface test method, device, computer equipment and storage medium
CN109857667A (en) Automatic interface testing method, test device, test equipment and storage medium
CN107402880A (en) A kind of method of testing and electronic equipment
US7917896B2 (en) Extensible execution language
CN108647141A (en) Automatic test approach, device, computer-readable medium and electronic equipment
CN102831218B (en) Method and device for determining data in thermodynamic chart
CN110069297A (en) Abnormality eliminating method, device, computer equipment and storage medium based on Spring MVC
CN105184575B (en) Transaction system construction method, transaction flow control device and third party transaction platform
CN110377325A (en) Interface allocation method, interface call method, device, equipment and storage medium
CN110471694A (en) Annotation information processing method, device, computer equipment and storage medium
CN109753434A (en) Performance test methods, device, electronic equipment and storage medium based on block chain
CN110489324A (en) Method, apparatus that test page jumps, storage medium, electronic device
CN109062925A (en) Automatically generate the method, apparatus, computer equipment and storage medium of insert sentence
CN110109656A (en) Interface analogy method, device, computer equipment and storage medium
CN110147495A (en) Page response method, apparatus, equipment and medium based on Configuration Online
CN111159014A (en) Response method and device for exploratory test, computer equipment and storage medium
CN110377283A (en) The realization of front end valid data and synchronous method when the separation exploitation of the front and back end Web
CN107113199B (en) Analysis device for analyzing and processing communication sequences
CN110750443A (en) Webpage testing method and device, computer equipment and storage medium
CN108460068A (en) Method, apparatus, storage medium and the terminal that report imports and exports
CN113918526A (en) Log processing method and device, computer equipment and storage medium

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