CN104615534A - Interface test method and device - Google Patents

Interface test method and device Download PDF

Info

Publication number
CN104615534A
CN104615534A CN201510043490.8A CN201510043490A CN104615534A CN 104615534 A CN104615534 A CN 104615534A CN 201510043490 A CN201510043490 A CN 201510043490A CN 104615534 A CN104615534 A CN 104615534A
Authority
CN
China
Prior art keywords
code file
test code
test
independent
public
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
CN201510043490.8A
Other languages
Chinese (zh)
Other versions
CN104615534B (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.)
Guangzhou Kugou Computer Technology Co Ltd
Original Assignee
Guangzhou Kugou Computer 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 Guangzhou Kugou Computer Technology Co Ltd filed Critical Guangzhou Kugou Computer Technology Co Ltd
Priority to CN201510043490.8A priority Critical patent/CN104615534B/en
Publication of CN104615534A publication Critical patent/CN104615534A/en
Application granted granted Critical
Publication of CN104615534B publication Critical patent/CN104615534B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The invention discloses an interface test method and device and belongs to the field of testing technology. The method includes the step of calling an independent test code file corresponding to a target interface needing to be tested; the step of calling a public test code file through the independent test code file and transmitting test parameters and an interface path corresponding to the target interface to the public test code file; the step of generating request data through the public test code file according to the test parameters and public test parameters and generating a request address according to the interface path and a test environment address; the step of testing the target interface through the public test code file according to the request data and the request address. The problem that the reuse rate of test codes is low when interface testing is conducted through correlation techniques is solved; different independent test code files and the same public test code file are configured for different interfaces, and test codes needed for different interfaces are planned and managed in a unified mode, so that the reuse rate of the test codes is increased.

Description

Interface test method and device
Technical field
The present invention relates to technical field of measurement and test, particularly a kind of interface test method and device.
Background technology
Interface testing refers to be tested the software interface of different system inter-module.Such as, one or more HTTP (Hypertext Transfer Protocol, HTML (Hypertext Markup Language)) service interface can be provided with in server, for providing web services to client.In order to guarantee service quality, need to test HTTP service interface.
Because different interfaces exists larger difference in function, agreement and operating specification etc., make to adopt general testing tool docking port to test.At present, in relevant interface test method, for different interfaces, tester is needed manually to write different test codes seriatim, to realize testing different interfaces.
But aforesaid way lacks unified planning and management to different test codes, cause the reusability of test code low.
Summary of the invention
In order to solve above-mentioned technology for the low problem of the reusability of the test code existed during interface testing, embodiments provide a kind of interface test method and device.Described technical scheme is as follows:
First aspect, provides a kind of interface test method, and described method comprises:
Call the independent test code file that the target interface of required test is corresponding, in described independent test code file, be previously provided with test parameter corresponding to described target interface and interface path;
Public test code file is called by described independent test code file, and described test parameter and described interface path are passed to described public test code file, be previously provided with public test parameter and test environment address in described public test code file;
Generate request msg by described public test code file according to described test parameter and described public test parameter, and generate request address according to described interface path and described test environment address;
Described target interface is tested according to described request data and described request address by described public test code file.
Optionally, described described target interface to be tested according to described request data and described request address by described public test code file after, also comprise:
By the return data of target interface described in described public test code file acquisition, described return data obtains after described target interface processes described request data;
Call described independent test code file by described public test code file, and described return data is passed to described independent test code file;
From described return data, extract actual result by described independent test code file, and described actual result and the expected result preset are compared and obtained test result.
Optionally, describedly from described return data, extract actual result by described independent test code file, and described actual result is compared with the expected result preset obtain test result, comprising:
When described independent test code file comprises the first independent test code file and the second independent test code file, and when being previously provided with expected result corresponding to described target interface in described first independent test code file,
From described return data, described actual result is extracted by described second independent test code file;
Call described first independent test code file by described second independent test code file, and described actual result is passed to described first independent test code file;
By described first independent test code file described actual result and described expected result compared and obtain described test result.
Optionally, describedly from described return data, extract actual result by described independent test code file, and after described actual result and the expected result preset are compared and obtained test result, also comprise:
Called by described independent test code file and perform ANT script, and described test result is passed to described ANT script;
Test report is generated according to described test result by described ANT script;
By described ANT script, described test report is sent.
Optionally, describedly call public test code file by described independent test code file, and described interface path and described test parameter passed to described public test code file, comprising:
When described independent test code file comprises the first independent test code file and the second independent test code file, and be previously provided with test parameter corresponding to described target interface in described first independent test code file, when being previously provided with interface path corresponding to described target interface in described second independent test code file
Call described second independent test code file by described first independent test code file, and described test parameter is passed to described second independent test code file;
Carry out pre-service by described second independent test code file to described test parameter, described pre-service comprises at least one item in sequence process, encryption, packing process;
Call described public test code file by described second independent test code file, and pretreated described test parameter and described interface path are passed to described public test code file.
Optionally, described public test code file, comprising:
First public test code file and the second public test code file;
Wherein, described first public test code file is used for testing the HTML (Hypertext Markup Language) HTTP service interface conducted interviews with post request method, and described second public test code file is used for testing the HTTP service interface conducted interviews with get request method.
Optionally, described in call independent test code file corresponding to the target interface of required test, comprising:
Called by the autoexec be pre-set in the Mission Planning Program of operating system and perform ANT script, described operating system is used for calling described autoexec according to presetting to call the moment and/or preset the cycle of calling;
Independent test code file corresponding to the described required target interface tested is called by described ANT script.
Second aspect, provides a kind of interface test device, and described device comprises:
First calling module, the independent test code file that the target interface for calling required test is corresponding, is previously provided with test parameter corresponding to described target interface and interface path in described independent test code file;
Second calling module, for calling public test code file by described independent test code file, and described test parameter and described interface path are passed to described public test code file, be previously provided with public test parameter and test environment address in described public test code file;
First generation module, for generating request msg by described public test code file according to described test parameter and described public test parameter, and generates request address according to described interface path and described test environment address;
Test module, for testing described target interface according to described request data and described request address by described public test code file.
Optionally, described device also comprises:
Acquisition module, for the return data by target interface described in described public test code file acquisition, described return data obtains after described target interface processes described request data;
3rd calling module, for calling described independent test code file by described public test code file, and passes to described independent test code file by described return data;
Extraction module, for extracting actual result by described independent test code file from described return data, and compares obtain test result to described actual result and the expected result preset.
Optionally, described extraction module, comprising: extraction unit, the first call unit and comparing unit;
Described extraction unit, for comprising the first independent test code file and the second independent test code file when described independent test code file, and when being previously provided with expected result corresponding to described target interface in described first independent test code file, from described return data, extract described actual result by described second independent test code file;
Described first call unit, for calling described first independent test code file by described second independent test code file, and passes to described first independent test code file by described actual result;
Described comparing unit, obtains described test result for being compared to described actual result and described expected result by described first independent test code file.
Optionally, described device also comprises:
4th calling module, is performed ANT script for being called by described independent test code file, and described test result is passed to described ANT script;
Second generation module, for generating test report by described ANT script according to described test result;
Sending module, for sending described test report by described ANT script.
Optionally, described second calling module, comprising: the second call unit, processing unit and the 3rd call unit;
Described second call unit, for comprising the first independent test code file and the second independent test code file when described independent test code file, and be previously provided with test parameter corresponding to described target interface in described first independent test code file, when being previously provided with interface path corresponding to described target interface in described second independent test code file, call described second independent test code file by described first independent test code file, and described test parameter is passed to described second independent test code file;
Described processing unit, for carrying out pre-service by described second independent test code file to described test parameter, described pre-service comprises at least one item in sequence process, encryption, packing process;
Described 3rd call unit, for calling described public test code file by described second independent test code file, and passes to described public test code file by pretreated described test parameter and described interface path.
Optionally, described public test code file, comprising:
First public test code file and the second public test code file;
Wherein, described first public test code file is used for testing the HTML (Hypertext Markup Language) HTTP service interface conducted interviews with post request method, and described second public test code file is used for testing the HTTP service interface conducted interviews with get request method.
Optionally, described first calling module, comprising: the 4th call unit and the 5th call unit;
Described 4th call unit, performs ANT script for being called by the autoexec be pre-set in the Mission Planning Program of operating system, and described operating system is used for calling described autoexec according to presetting to call the moment and/or preset the cycle of calling;
Described 5th call unit, the independent test code file that the target interface for being called described required test by described ANT script is corresponding.
The beneficial effect that the technical scheme that the embodiment of the present invention provides is brought comprises:
When testing target interface, first the independent test code file that invocation target interface is corresponding, public test code file is called by independent test code file, and test parameter corresponding for target interface and interface path are passed to public test code file, then request msg is generated by public test code file according to test parameter and public test parameter, and generate request address according to interface path and test environment address, and then realize testing target interface; Solve correlation technique for the low problem of the reusability of the test code existed during interface testing; By being the different independent test code file of different interface configuration and identical public test code file, unified planning and the test code of management needed for distinct interface, improve the reusability of test code.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme in the embodiment of the present invention, below the accompanying drawing used required in describing embodiment is briefly described, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the method flow diagram of the interface test method that one embodiment of the invention provides;
Fig. 2 is the method flow diagram of the interface test method that another embodiment of the present invention provides;
Fig. 3 is the method flow diagram of the interface test method that another embodiment of the present invention provides;
Fig. 4 is the method flow diagram of the interface test method that another embodiment of the present invention provides;
Fig. 5 is the method flow diagram of the interface test method that another embodiment of the present invention provides;
Fig. 6 is the method flow diagram of the interface test method that another embodiment of the present invention provides;
Fig. 7 is the block diagram of the interface test device that one embodiment of the invention provides;
Fig. 8 A is the block diagram of the interface test device that another embodiment of the present invention provides;
Fig. 8 B is the block diagram of the extraction module that another embodiment of the present invention relates to;
Fig. 8 C is the block diagram of the second calling module that another embodiment of the present invention relates to;
Fig. 8 D is the block diagram of the first calling module that another embodiment of the present invention relates to;
Fig. 9 is the structural representation of the electronic equipment that one embodiment of the invention provides.
Embodiment
For making the object, technical solutions and advantages of the present invention clearly, below in conjunction with accompanying drawing, embodiment of the present invention is described further in detail.
Please refer to Fig. 1, it illustrates the method flow diagram of the interface test method that one embodiment of the invention provides.This interface test method can be applicable in the electronic equipments such as such as mobile phone, panel computer, pocket computer on knee, desk-top computer.This interface test method can comprise following several step:
Step 102, calls the independent test code file that the target interface of required test is corresponding, is previously provided with test parameter corresponding to target interface and interface path in this independent test code file.
In the present embodiment, be the pre-configured different independent test code file of different interfaces.When needs are tested target interface, the independent test code file that invocation target interface is corresponding.In each independent test code file, tester arranges corresponding test parameter and interface path according to testing requirement in advance.Wherein, test parameter can be one group, also can be many groups, and the present embodiment does not do concrete restriction.
In addition, in the present embodiment, the interface related to refers to software interface.Such as, HTTP service interface.
Step 104, calls public test code file by independent test code file, and test parameter and interface path are passed to public test code file, is previously provided with public test parameter and test environment address in this public test code file.
In the present embodiment, in order to improve the reusability of test code, it is the pre-configured identical public test code file of different interfaces.In public test code file, tester arranges public test parameter and test environment address according to testing requirement in advance.
Optionally, when public test parameter needs to generate in real time, also generate by this public test code file.Such as, by public test code file acquisition access token and/or generation signature etc.
Step 106, generates request msg by public test code file according to test parameter and public test parameter, and generates request address according to interface path and test environment address.
Test parameter corresponding for target interface and public test parameter are integrated by public test code file, form request msg.Further, interface path corresponding for target interface and test environment address are integrated by public test code file, form request address.Request address can be URL (Uniform ResourceLocator, URL(uniform resource locator)).
Step 108, is tested target interface according to request msg and request address by public test code file.
Public test code file access request address, and request msg is sent to this request address.Accordingly, target interface processes request msg, thus realizes testing target interface.
In sum, the interface test method that the present embodiment provides, when testing target interface, first the independent test code file that invocation target interface is corresponding, public test code file is called by independent test code file, and test parameter corresponding for target interface and interface path are passed to public test code file, then request msg is generated by public test code file according to test parameter and public test parameter, and generate request address according to interface path and test environment address, and then realize testing target interface; Solve correlation technique for the low problem of the reusability of the test code existed during interface testing; By being the different independent test code file of different interface configuration and identical public test code file, unified planning and the test code of management needed for distinct interface, improve the reusability of test code.
Please refer to Fig. 2, it illustrates the process flow diagram of the interface test method that another embodiment of the present invention provides.In this interface test method, after step 108 embodiment illustrated in fig. 1, also comprise:
Step 110, by the return data of public test code file acquisition target interface, this return data obtains after target interface processes request msg.
After target interface processes request msg, generate return data according to result, and return data is fed back to public test code file.Accordingly, the return data of public test code file acquisition target interface.
Optionally, the data layout of return data can be JSON (JavaScript Object Notation, a kind of data interchange format of lightweight) form.
Step 112, calls independent test code file by public test code file, and return data is passed to independent test code file.
Step 114, extracts actual result by independent test code file from return data, and compares obtain test result to actual result and the expected result preset.
Independent test code file is resolved return data, from return data, extract actual result.Such as, when return data is JSON character string, independent test code file is resolved JSON character string, and therefrom extraction needs field.
In addition, in each independent test code file, tester pre-sets the expected result corresponding with test parameter.Independent test code file is compared to actual result and expected result, is obtained test result after extracting actual result.Such as, when actual result is identical with expected result, test is passed through; Otherwise when actual result is different from expected result, test is not passed through.
In sum, the interface test method that the present embodiment provides, also automatically actual result and default expected result are compared by independent test code file and obtain test result, judge whether test is passed through, compared to the manpower comparing generally adopted at present to test result, not only increase testing efficiency, also avoid artificial erroneous judgement, improve the accuracy of test result.
Please refer to Fig. 3/Fig. 4, it illustrates the process flow diagram of the interface test method that another embodiment of the present invention provides.In the present embodiment, independent test code file comprises the first independent test code file and the second independent test code file.Specifically:
As shown in Figure 3, when being previously provided with test parameter corresponding to target interface in the first independent test code file, when being previously provided with interface path corresponding to target interface in the second independent test code file, the step 104 in embodiment illustrated in fig. 1 can comprise following a few sub-steps:
Step 104a, calls the second independent test code file by the first independent test code file, and test parameter is passed to the second independent test code file.
When needs are tested target interface, first call the first independent test code file.In each first independent test code file, tester arranges corresponding test parameter according to testing requirement in advance.Afterwards, call the second independent test code file by the first independent test code file, and test parameter is passed to the second independent test code file.
Optionally, for the ease of management, can the filename of standardize naming first independent test code file.In a kind of possible embodiment, the file of the first independent test code file is called: interface name+Test.Such as, the file " LoginTest.java " by name of the first independent test code file that Login interface is corresponding.
Step 104b, carries out pre-service by the second independent test code file to test parameter.
Wherein, pre-service comprises at least one item in sequence process, encryption, packing process.It should be noted is that: pretreatment mode is that the interface protocol corresponding according to distinct interface carries out setting in advance.For different interfaces, the pretreatment mode adopted can be identical, also can be different.
Optionally, for the ease of management, can the filename of standardize naming second independent test code file.In a kind of possible embodiment, the file of the second independent test code file is called: interface name.Such as, the file " Login.java " by name of the second independent test code file that Login interface is corresponding.
Step 104c, calls public test code file by the second independent test code file, and pretreated test parameter and interface path are passed to public test code file.
In each second independent test code file, tester pre-sets corresponding interface path.Second independent test code file, after the test parameter imported into the first independent test code file completes pre-service, calls public test code file, and pretreated test parameter and interface path are passed to public test code file.
Optionally, as shown in Figure 4, when being previously provided with expected result corresponding to target interface in the first independent test code file, the step 114 in embodiment illustrated in fig. 2 can comprise following a few sub-steps:
Step 114a, extracts actual result by the second independent test code file from return data.
After the return data of public test code file acquisition target interface, call the second independent test code file, and return data is passed to the second independent test code file.Second independent test code file possesses data processing function, extracts actual result by the second independent test code file from return data.Leaching process by the agency of and the explanation in the embodiment depicted in figure 2 of actual result, does not repeat them here.
Step 114b, calls the first independent test code file by the second independent test code file, and actual result is passed to the first independent test code file.
Step 114c, to be compared to actual result and expected result by the first independent test code file and obtains test result.
In each first independent test code file, tester pre-sets the expected result corresponding with test parameter.First independent test code file is compared to actual result and expected result, is obtained test result after getting the actual result that the second independent test code file imports into.
In sum, the interface test method that the present embodiment provides, also by independent test code file being divided from functional angle, makes code structure more clear, uses more flexible, manages also more convenient.
Please refer to Fig. 5, it illustrates the process flow diagram of the interface test method that another embodiment of the present invention provides.In this interface test method, after step 114 embodiment illustrated in fig. 2, also comprise:
Step 116, is called by independent test code file and performs ANT script, and test result is passed to ANT script.
ANT is an automatized script engine based on Java, and script format is XML (ExtensibleMarkup Language, extend markup language).In the present embodiment, by ANT script applications in interface testing, generate test report by ANT script.
Optionally, when independent test code file comprises the first independent test code file and the second independent test code file, called by the first independent test code file and perform ANT script, and test result is passed to ANT script.
Step 118, generates test report by ANT script according to test result.
ANT script can generate the test report of HTML (Hypertext Markup Language, HTML (Hypertext Markup Language)) form according to test result.
Step 120, is sent test report by ANT script.
Test report is sent to dependence test personnel by ANT script, completes whole automatic test course.
Optionally, test report sends with mail he by ANT script.
In sum, the interface test method that the present embodiment provides, also generates test report by ANT script according to test result, and test report is sent to dependence test personnel, achieve and automatically generate test report, and be convenient to tester and obtain test report.
Please refer to Fig. 6, it illustrates the process flow diagram of the interface test method that another embodiment of the present invention provides.In this interface test method, above-mentioned steps 102 can comprise following a few sub-steps:
Step 102a, is called by the autoexec be pre-set in the Mission Planning Program of operating system and performs ANT script.
Wherein, operating system is used for calling autoexec according to presetting to call the moment and/or preset the cycle of calling.Tester can add autoexec in advance in the Mission Planning Program of operating system, and arranges the time of running and/or the cycle of operation.When meeting the time of running and/or the cycle of operation, operating system calls autoexec, and calls execution ANT script by autoexec.
Step 102b, calls independent test code file corresponding to the required target interface tested by ANT script.
In the present embodiment, ANT script also possesses the function calling independent test code file.Use ANT script definable, call the required independent test code file run.
Optionally, when independent test code file comprises the first independent test code file and the second independent test code file, call the first independent test code file corresponding to the required target interface tested by ANT script.
In sum, the interface test method that the present embodiment provides, also by pre-setting autoexec in the Mission Planning Program of operating system, and arranges the corresponding time of running and/or the cycle of operation, achieve automatically performing of testing process, more convenient, robotization.
Optionally, in any embodiment shown in above-mentioned Fig. 1, Fig. 2, Fig. 3, Fig. 4, Fig. 5 or Fig. 6, the public test code file related to, can comprise: the first public test code file and the second public test code file.Wherein, the first public test code file is used for testing the HTTP service interface conducted interviews with post request method, and the second public test code file is used for testing the HTTP service interface conducted interviews with get request method.
When public test code file comprises the first public test code file and the second public test code file, the request method that tester is corresponding according to distinct interface in advance, the public test code file called needed for arranging in each independent test code file.Such as, when the request method that target interface is corresponding is post request method, independent test code file calls the first public test code file, and test parameter corresponding for target interface and interface path is passed to this first public test code file.
Following is apparatus of the present invention embodiment, may be used for performing the inventive method embodiment.For the details do not disclosed in apparatus of the present invention embodiment, please refer to the inventive method embodiment.
Please refer to Fig. 7, it illustrates the block diagram of the interface test device that one embodiment of the invention provides.This interface test device realizes becoming the some or all of of electronic equipment by software, hardware or both combinations, and this electronic equipment can be mobile phone, panel computer, pocket computer on knee, desk-top computer etc.This interface test device can comprise: the first calling module 710, second calling module 720, first generation module 730 and test module 740.
First calling module 710, the independent test code file that the target interface for calling required test is corresponding, is previously provided with test parameter corresponding to described target interface and interface path in described independent test code file.
Second calling module 720, for calling public test code file by described independent test code file, and described test parameter and described interface path are passed to described public test code file, be previously provided with public test parameter and test environment address in described public test code file.
First generation module 730, for generating request msg by described public test code file according to described test parameter and described public test parameter, and generates request address according to described interface path and described test environment address.
Test module 740, for testing described target interface according to described request data and described request address by described public test code file.
In sum, the interface test device that the present embodiment provides, when testing target interface, first the independent test code file that invocation target interface is corresponding, public test code file is called by independent test code file, and test parameter corresponding for target interface and interface path are passed to public test code file, then request msg is generated by public test code file according to test parameter and public test parameter, and generate request address according to interface path and test environment address, and then realize testing target interface; Solve correlation technique for the low problem of the reusability of the test code existed during interface testing; By being the different independent test code file of different interface configuration and identical public test code file, unified planning and the test code of management needed for distinct interface, improve the reusability of test code.
Please refer to Fig. 8 A, it illustrates the block diagram of the interface test device that another embodiment of the present invention provides.This interface test device realizes becoming the some or all of of electronic equipment by software, hardware or both combinations, and this electronic equipment can be mobile phone, panel computer, pocket computer on knee, desk-top computer etc.This interface test device can comprise: the first calling module 710, second calling module 720, first generation module 730 and test module 740.
First calling module 710, the independent test code file that the target interface for calling required test is corresponding, is previously provided with test parameter corresponding to described target interface and interface path in described independent test code file.
Second calling module 720, for calling public test code file by described independent test code file, and described test parameter and described interface path are passed to described public test code file, be previously provided with public test parameter and test environment address in described public test code file.
First generation module 730, for generating request msg by described public test code file according to described test parameter and described public test parameter, and generates request address according to described interface path and described test environment address.
Test module 740, for testing described target interface according to described request data and described request address by described public test code file.
Optionally, described device also comprises: acquisition module 750, the 3rd calling module 760 and extraction module 770.
Acquisition module 750, for the return data by target interface described in described public test code file acquisition, described return data obtains after described target interface processes described request data.
3rd calling module 760, for calling described independent test code file by described public test code file, and passes to described independent test code file by described return data.
Extraction module 770, for extracting actual result by described independent test code file from described return data, and compares obtain test result to described actual result and the expected result preset.
As shown in Figure 8 B, in a kind of possible embodiment, described extraction module 770, comprising: extraction unit 770a, the first call unit 770b and comparing unit 770c.
Described extraction unit 770a, for comprising the first independent test code file and the second independent test code file when described independent test code file, and when being previously provided with expected result corresponding to described target interface in described first independent test code file, from described return data, extract described actual result by described second independent test code file.
Described first call unit 770b, for calling described first independent test code file by described second independent test code file, and passes to described first independent test code file by described actual result.
Described comparing unit 770c, obtains described test result for being compared to described actual result and described expected result by described first independent test code file.
Optionally, described device also comprises: the 4th calling module 782, second generation module 784 and sending module 786.
4th calling module 782, is performed ANT script for being called by described independent test code file, and described test result is passed to described ANT script.
Second generation module 784, for generating test report by described ANT script according to described test result.
Sending module 786, for sending described test report by described ANT script.
As shown in Figure 8 C, in a kind of possible embodiment, described second calling module 720, comprising: the second call unit 720a, processing unit 720b and the 3rd call unit 720c.
Described second call unit 720a, for comprising the first independent test code file and the second independent test code file when described independent test code file, and be previously provided with test parameter corresponding to described target interface in described first independent test code file, when being previously provided with interface path corresponding to described target interface in described second independent test code file, call described second independent test code file by described first independent test code file, and described test parameter is passed to described second independent test code file.
Described processing unit 720b, for carrying out pre-service by described second independent test code file to described test parameter, described pre-service comprises at least one item in sequence process, encryption, packing process.
Described 3rd call unit 720c, for calling described public test code file by described second independent test code file, and passes to described public test code file by pretreated described test parameter and described interface path.
Optionally, described public test code file, comprising:
First public test code file and the second public test code file;
Wherein, described first public test code file is used for testing the HTML (Hypertext Markup Language) HTTP service interface conducted interviews with post request method, and described second public test code file is used for testing the HTTP service interface conducted interviews with get request method.
As in fig. 8d, in a kind of possible embodiment, described first calling module 710, comprising: the 4th call unit 710a and the 5th call unit 710b.
Described 4th call unit 710a, perform ANT script for being called by the autoexec be pre-set in the Mission Planning Program of operating system, described operating system is used for calling described autoexec according to presetting to call the moment and/or preset the cycle of calling.
Described 5th call unit 710b, the independent test code file that the target interface for being called described required test by described ANT script is corresponding.
In sum, the interface test device that the present embodiment provides, when testing target interface, first the independent test code file that invocation target interface is corresponding, public test code file is called by independent test code file, and test parameter corresponding for target interface and interface path are passed to public test code file, then request msg is generated by public test code file according to test parameter and public test parameter, and generate request address according to interface path and test environment address, and then realize testing target interface; Solve correlation technique for the low problem of the reusability of the test code existed during interface testing; By being the different independent test code file of different interface configuration and identical public test code file, unified planning and the test code of management needed for distinct interface, improve the reusability of test code.
In addition, also automatically actual result and default expected result are compared by independent test code file and obtain test result, judge whether test is passed through, compared to the manpower comparing generally adopted at present to test result, not only increase testing efficiency, also avoid artificial erroneous judgement, improve the accuracy of test result.
In addition, also by independent test code file being divided from functional angle, making code structure more clear, using more flexible, manage also more convenient.
In addition, also by independent test code file being divided from functional angle, making code structure more clear, using more flexible, manage also more convenient.
In addition, also generate test report by ANT script according to test result, and test report is sent to dependence test personnel, achieve and automatically generate test report, and be convenient to tester and obtain test report.
In addition, also by pre-setting autoexec in the Mission Planning Program of operating system, and the corresponding time of running and/or the cycle of operation being set, achieving automatically performing of testing process, more convenient, robotization.
It should be noted that: the interface test device that above-described embodiment provides is when carrying out interface testing, only be illustrated with the division of above-mentioned each functional module, in practical application, can distribute as required and by above-mentioned functions and be completed by different functional modules, inner structure by equipment is divided into different functional modules, to complete all or part of function described above.In addition, the embodiment of the method for the interface test device that above-described embodiment provides and interface test method belongs to same design, and its specific implementation process refers to embodiment of the method, repeats no more here.
Please refer to Fig. 9, it illustrates the structural representation of the electronic equipment that one embodiment of the invention provides.This electronic equipment is for implementing the interface test method provided in above-described embodiment.Specifically:
Electronic equipment 900 can comprise RF (Radio Frequency, radio frequency) circuit 910, the storer 920 including one or more computer-readable recording mediums, input block 930, display unit 940, sensor 950, voicefrequency circuit 960, WiFi (wireless fidelity, Wireless Fidelity) module 970, include the parts such as processor 980 and power supply 990 that more than or processes core.It will be understood by those skilled in the art that the electronic devices structure shown in Fig. 9 does not form the restriction to electronic equipment, the parts more more or less than diagram can be comprised, or combine some parts, or different parts are arranged.Wherein:
RF circuit 910 can be used for receiving and sending messages or in communication process, the reception of signal and transmission, especially, after being received by the downlink information of base station, transfer to more than one or one processor 980 to process; In addition, base station is sent to by relating to up data.Usually, RF circuit 910 includes but not limited to antenna, at least one amplifier, tuner, one or more oscillator, subscriber identity module (SIM) card, transceiver, coupling mechanism, LNA (Low Noise Amplifier, low noise amplifier), diplexer etc.In addition, RF circuit 910 can also by radio communication and network and other devices communicatings.Described radio communication can use arbitrary communication standard or agreement, include but not limited to GSM (Global System of Mobile communication, global system for mobile communications), GPRS (General Packet Radio Service, general packet radio service), CDMA (Code Division Multiple Access, CDMA), WCDMA (Wideband CodeDivision Multiple Access, Wideband Code Division Multiple Access (WCDMA)), LTE (Long Term Evolution, Long Term Evolution), Email, SMS (Short Messaging Service, Short Message Service) etc.
Storer 920 can be used for storing software program and module, and processor 980 is stored in software program and the module of storer 920 by running, thus performs the application of various function and data processing.Storer 920 mainly can comprise storage program district and store data field, and wherein, storage program district can store operating system, application program (such as sound-playing function, image player function etc.) etc. needed at least one function; Store data field and can store the data (such as voice data, phone directory etc.) etc. created according to the use of electronic equipment 900.In addition, storer 920 can comprise high-speed random access memory, can also comprise nonvolatile memory, such as at least one disk memory, flush memory device or other volatile solid-state parts.Correspondingly, storer 920 can also comprise Memory Controller, to provide the access of processor 980 and input block 930 pairs of storeies 920.
Input block 930 can be used for the numeral or the character information that receive input, and produces and to arrange with user and function controls relevant keyboard, mouse, control lever, optics or trace ball signal and inputs.Particularly, input block 930 can comprise image input device 931 and other input equipments 932.Image input device 931 can be camera, also can be photoelectric scanning device.Except image input device 931, input block 930 can also comprise other input equipments 932.Particularly, other input equipments 932 can include but not limited to one or more in physical keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse, control lever etc.
Display unit 940 can be used for the various graphical user interface showing information or the information being supplied to user and the electronic equipment 900 inputted by user, and these graphical user interface can be made up of figure, text, icon, video and its combination in any.Display unit 940 can comprise display panel 941, optionally, the forms such as LCD (Liquid Crystal Display, liquid crystal display), OLED (Organic Light-EmittingDiode, Organic Light Emitting Diode) can be adopted to configure display panel 941.
Electronic equipment 900 also can comprise at least one sensor 950, such as optical sensor, motion sensor and other sensors.Particularly, optical sensor can comprise ambient light sensor and proximity transducer, and wherein, ambient light sensor the light and shade of environmentally light can regulate the brightness of display panel 941, proximity transducer when electronic equipment 900 moves in one's ear, can cut out display panel 941 and/or backlight.As the one of motion sensor, Gravity accelerometer can detect the size of all directions (are generally three axles) acceleration, size and the direction of gravity can be detected time static, can be used for identifying the application (such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating) of mobile phone attitude, Vibration identification correlation function (such as passometer, knock) etc.; As for electronic equipment 900 also other sensors such as configurable gyroscope, barometer, hygrometer, thermometer, infrared ray sensor, do not repeat them here.
Voicefrequency circuit 960, loudspeaker 961, microphone 962 can provide the audio interface between user and electronic equipment 900.Voicefrequency circuit 960 can by receive voice data conversion after electric signal, be transferred to loudspeaker 961, by loudspeaker 961 be converted to voice signal export; On the other hand, the voice signal of collection is converted to electric signal by microphone 962, voice data is converted to after being received by voicefrequency circuit 960, after again voice data output processor 980 being processed, through RF circuit 910 to send to such as another electronic equipment, or export voice data to storer 920 to process further.Voicefrequency circuit 960 also may comprise earphone jack, to provide the communication of peripheral hardware earphone and electronic equipment 900.
WiFi belongs to short range wireless transmission technology, and electronic equipment 900 can help user to send and receive e-mail by WiFi module 970, browse webpage and access streaming video etc., and its broadband internet wireless for user provides is accessed.Although Fig. 9 shows WiFi module 970, be understandable that, it does not belong to must forming of electronic equipment 900, can omit in the scope of essence not changing invention as required completely.
Processor 980 is control centers of electronic equipment 900, utilize the various piece of various interface and the whole mobile phone of connection, software program in storer 920 and/or module is stored in by running or performing, and call the data be stored in storer 920, perform various function and the process data of electronic equipment 900, thus integral monitoring is carried out to mobile phone.Optionally, processor 980 can comprise one or more process core; Preferably, processor 980 accessible site application processor and modem processor, wherein, application processor mainly processes operating system, user interface and application program etc., and modem processor mainly processes radio communication.Be understandable that, above-mentioned modem processor also can not be integrated in processor 980.
Electronic equipment 900 also comprises the power supply 990 (such as battery) of powering to all parts, preferably, power supply can be connected with processor 980 logic by power-supply management system, thus realizes the functions such as management charging, electric discharge and power managed by power-supply management system.Power supply 990 can also comprise one or more direct current or AC power, recharging system, power failure detection circuit, power supply changeover device or the random component such as inverter, power supply status indicator.
Although not shown, electronic equipment 900 can also comprise bluetooth module etc., does not repeat them here.
Concrete electronic equipment 900 also includes storer, and one or more than one program, and one of them or more than one program are stored in storer in the present embodiment, and is configured to be performed by more than one or one processor.Above-mentioned more than one or one routine package is containing the instruction for performing the interface test method in any embodiment as shown in above-mentioned Fig. 1 to Fig. 6.
Should be understood that, use in this article, unless context clearly supports exception, singulative " " (" a ", " an ", " the ") is intended to also comprise plural form.It is to be further understood that the "and/or" used in this article refers to comprise any of more than one or one project listed explicitly and likely combine.
The invention described above embodiment sequence number, just to describing, does not represent the quality of embodiment.
One of ordinary skill in the art will appreciate that all or part of step realizing above-described embodiment can have been come by hardware, the hardware that also can carry out instruction relevant by program completes, described program can be stored in a kind of computer-readable recording medium, the above-mentioned storage medium mentioned can be ROM (read-only memory), disk or CD etc.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, within the spirit and principles in the present invention all, any amendment done, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (14)

1. an interface test method, is characterized in that, described method comprises:
Call the independent test code file that the target interface of required test is corresponding, in described independent test code file, be previously provided with test parameter corresponding to described target interface and interface path;
Public test code file is called by described independent test code file, and described test parameter and described interface path are passed to described public test code file, be previously provided with public test parameter and test environment address in described public test code file;
Generate request msg by described public test code file according to described test parameter and described public test parameter, and generate request address according to described interface path and described test environment address;
Described target interface is tested according to described request data and described request address by described public test code file.
2. method according to claim 1, is characterized in that, described described target interface to be tested according to described request data and described request address by described public test code file after, also comprise:
By the return data of target interface described in described public test code file acquisition, described return data obtains after described target interface processes described request data;
Call described independent test code file by described public test code file, and described return data is passed to described independent test code file;
From described return data, extract actual result by described independent test code file, and described actual result and the expected result preset are compared and obtained test result.
3. method according to claim 2, is characterized in that, describedly from described return data, extracts actual result by described independent test code file, and to compare with the expected result preset to described actual result and obtain test result, comprising:
When described independent test code file comprises the first independent test code file and the second independent test code file, and when being previously provided with expected result corresponding to described target interface in described first independent test code file,
From described return data, described actual result is extracted by described second independent test code file;
Call described first independent test code file by described second independent test code file, and described actual result is passed to described first independent test code file;
By described first independent test code file described actual result and described expected result compared and obtain described test result.
4. method according to claim 2, is characterized in that, describedly from described return data, extracts actual result by described independent test code file, and after comparing obtain test result to described actual result and the expected result preset, also comprises:
Called by described independent test code file and perform ANT script, and described test result is passed to described ANT script;
Test report is generated according to described test result by described ANT script;
By described ANT script, described test report is sent.
5. method according to claim 1, is characterized in that, describedly calls public test code file by described independent test code file, and described interface path and described test parameter are passed to described public test code file, comprising:
When described independent test code file comprises the first independent test code file and the second independent test code file, and be previously provided with test parameter corresponding to described target interface in described first independent test code file, when being previously provided with interface path corresponding to described target interface in described second independent test code file
Call described second independent test code file by described first independent test code file, and described test parameter is passed to described second independent test code file;
Carry out pre-service by described second independent test code file to described test parameter, described pre-service comprises at least one item in sequence process, encryption, packing process;
Call described public test code file by described second independent test code file, and pretreated described test parameter and described interface path are passed to described public test code file.
6., according to the arbitrary described method of claim 1 to 5, it is characterized in that, described public test code file, comprising:
First public test code file and the second public test code file;
Wherein, described first public test code file is used for testing the HTML (Hypertext Markup Language) HTTP service interface conducted interviews with post request method, and described second public test code file is used for testing the HTTP service interface conducted interviews with get request method.
7., according to the arbitrary described method of claim 1 to 5, it is characterized in that, described in call independent test code file corresponding to the target interface of required test, comprising:
Called by the autoexec be pre-set in the Mission Planning Program of operating system and perform ANT script, described operating system is used for calling described autoexec according to presetting to call the moment and/or preset the cycle of calling;
Independent test code file corresponding to the described required target interface tested is called by described ANT script.
8. an interface test device, is characterized in that, described device comprises:
First calling module, the independent test code file that the target interface for calling required test is corresponding, is previously provided with test parameter corresponding to described target interface and interface path in described independent test code file;
Second calling module, for calling public test code file by described independent test code file, and described test parameter and described interface path are passed to described public test code file, be previously provided with public test parameter and test environment address in described public test code file;
First generation module, for generating request msg by described public test code file according to described test parameter and described public test parameter, and generates request address according to described interface path and described test environment address;
Test module, for testing described target interface according to described request data and described request address by described public test code file.
9. device according to claim 8, is characterized in that, described device also comprises:
Acquisition module, for the return data by target interface described in described public test code file acquisition, described return data obtains after described target interface processes described request data;
3rd calling module, for calling described independent test code file by described public test code file, and passes to described independent test code file by described return data;
Extraction module, for extracting actual result by described independent test code file from described return data, and compares obtain test result to described actual result and the expected result preset.
10. device according to claim 9, is characterized in that, described extraction module, comprising: extraction unit, the first call unit and comparing unit;
Described extraction unit, for comprising the first independent test code file and the second independent test code file when described independent test code file, and when being previously provided with expected result corresponding to described target interface in described first independent test code file, from described return data, extract described actual result by described second independent test code file;
Described first call unit, for calling described first independent test code file by described second independent test code file, and passes to described first independent test code file by described actual result;
Described comparing unit, obtains described test result for being compared to described actual result and described expected result by described first independent test code file.
11. devices according to claim 9, is characterized in that, described device also comprises:
4th calling module, is performed ANT script for being called by described independent test code file, and described test result is passed to described ANT script;
Second generation module, for generating test report by described ANT script according to described test result;
Sending module, for sending described test report by described ANT script.
12. devices according to claim 8, is characterized in that, described second calling module, comprising: the second call unit, processing unit and the 3rd call unit;
Described second call unit, for comprising the first independent test code file and the second independent test code file when described independent test code file, and be previously provided with test parameter corresponding to described target interface in described first independent test code file, when being previously provided with interface path corresponding to described target interface in described second independent test code file, call described second independent test code file by described first independent test code file, and described test parameter is passed to described second independent test code file;
Described processing unit, for carrying out pre-service by described second independent test code file to described test parameter, described pre-service comprises at least one item in sequence process, encryption, packing process;
Described 3rd call unit, for calling described public test code file by described second independent test code file, and passes to described public test code file by pretreated described test parameter and described interface path.
Device described in 13. according to Claim 8 to 12 are arbitrary, it is characterized in that, described public test code file, comprising:
First public test code file and the second public test code file;
Wherein, described first public test code file is used for testing the HTML (Hypertext Markup Language) HTTP service interface conducted interviews with post request method, and described second public test code file is used for testing the HTTP service interface conducted interviews with get request method.
Device described in 14. according to Claim 8 to 12 are arbitrary, it is characterized in that, described first calling module, comprising: the 4th call unit and the 5th call unit;
Described 4th call unit, performs ANT script for being called by the autoexec be pre-set in the Mission Planning Program of operating system, and described operating system is used for calling described autoexec according to presetting to call the moment and/or preset the cycle of calling;
Described 5th call unit, the independent test code file that the target interface for being called described required test by described ANT script is corresponding.
CN201510043490.8A 2015-01-28 2015-01-28 interface test method and device Active CN104615534B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510043490.8A CN104615534B (en) 2015-01-28 2015-01-28 interface test method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510043490.8A CN104615534B (en) 2015-01-28 2015-01-28 interface test method and device

Publications (2)

Publication Number Publication Date
CN104615534A true CN104615534A (en) 2015-05-13
CN104615534B CN104615534B (en) 2017-08-01

Family

ID=53149991

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510043490.8A Active CN104615534B (en) 2015-01-28 2015-01-28 interface test method and device

Country Status (1)

Country Link
CN (1) CN104615534B (en)

Cited By (21)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105516322A (en) * 2015-12-16 2016-04-20 方正宽带网络服务有限公司 Interface test method and device based on http protocol
CN105550083A (en) * 2015-12-09 2016-05-04 北京交控科技股份有限公司 MSS (maintenance support subsystem) automatic test method and system
CN105681126A (en) * 2015-12-30 2016-06-15 合一网络技术(北京)有限公司 Automatic test method and system based on protocol interface
CN106874174A (en) * 2015-12-11 2017-06-20 阿里巴巴集团控股有限公司 Interface testing and the implementation method and device of functional test
CN107026773A (en) * 2017-05-16 2017-08-08 四川长虹电器股份有限公司 Automatic correlation method for interface automatic test
CN107305528A (en) * 2016-04-25 2017-10-31 北京京东尚科信息技术有限公司 Application testing method and device
CN107678963A (en) * 2017-09-27 2018-02-09 国云科技股份有限公司 A kind of automatic interface testing method based on JAVA
CN107704386A (en) * 2017-09-25 2018-02-16 金蝶软件(中国)有限公司 Unit test method, device, computer equipment and the storage medium of operation flow
CN107748717A (en) * 2017-09-26 2018-03-02 深圳市牛鼎丰科技有限公司 Automatic interface testing method, device, storage medium and computer equipment
CN107908545A (en) * 2017-09-26 2018-04-13 深圳市牛鼎丰科技有限公司 Interface test method, device, computer equipment and storage medium
CN108241573A (en) * 2016-12-23 2018-07-03 北京国双科技有限公司 A kind of integration testing code generating method and device
WO2018120722A1 (en) * 2016-12-30 2018-07-05 上海壹账通金融科技有限公司 Asynchronous interface testing method, terminal, device, system, and storage medium
CN108628750A (en) * 2018-05-16 2018-10-09 无线生活(杭州)信息科技有限公司 A kind of test code process method and device
CN108900369A (en) * 2018-05-31 2018-11-27 武汉虹信技术服务有限责任公司 A kind of interface test method based on post request
CN109194609A (en) * 2018-07-20 2019-01-11 西安四叶草信息技术有限公司 A kind of method and device detecting loophole file
CN109828870A (en) * 2018-12-15 2019-05-31 中国平安人寿保险股份有限公司 Interface testing environmental management technique, device, electronic equipment and storage medium
CN109918126A (en) * 2019-01-28 2019-06-21 平安普惠企业管理有限公司 Method, apparatus, computer equipment and the storage medium of Code Edit
CN110377462A (en) * 2019-06-17 2019-10-25 中国平安人寿保险股份有限公司 Interface test method, device and terminal device
CN110858172A (en) * 2018-08-23 2020-03-03 北京京东尚科信息技术有限公司 Automatic test code generation method and device
CN113407229A (en) * 2020-03-17 2021-09-17 百度在线网络技术(北京)有限公司 Method and device for generating offline script
CN113472785A (en) * 2021-06-30 2021-10-01 中国工商银行股份有限公司 Data processing method and device, electronic equipment and readable storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1632747A (en) * 2003-12-22 2005-06-29 联想(北京)有限公司 Software interface testing method
CN1866221A (en) * 2006-02-27 2006-11-22 华为技术有限公司 Software interface testing method and apparatus
CN101247292A (en) * 2008-02-22 2008-08-20 中兴通讯股份有限公司 Test equipment and method based on universal test meter API
CN101266570A (en) * 2007-03-15 2008-09-17 中兴通讯股份有限公司 Software system test method and apparatus
EP2056202A1 (en) * 2007-10-31 2009-05-06 Siemens Aktiengesellschaft Method for testing of a COM interface
CN101576843A (en) * 2008-05-07 2009-11-11 阿里巴巴集团控股有限公司 Method and device for testing application program interface
CN101996132A (en) * 2009-08-14 2011-03-30 中兴通讯股份有限公司 Method and device for automatically testing common object request broker architecture (CORBA) interfaces

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1632747A (en) * 2003-12-22 2005-06-29 联想(北京)有限公司 Software interface testing method
CN1866221A (en) * 2006-02-27 2006-11-22 华为技术有限公司 Software interface testing method and apparatus
CN101266570A (en) * 2007-03-15 2008-09-17 中兴通讯股份有限公司 Software system test method and apparatus
EP2056202A1 (en) * 2007-10-31 2009-05-06 Siemens Aktiengesellschaft Method for testing of a COM interface
CN101247292A (en) * 2008-02-22 2008-08-20 中兴通讯股份有限公司 Test equipment and method based on universal test meter API
CN101576843A (en) * 2008-05-07 2009-11-11 阿里巴巴集团控股有限公司 Method and device for testing application program interface
CN101996132A (en) * 2009-08-14 2011-03-30 中兴通讯股份有限公司 Method and device for automatically testing common object request broker architecture (CORBA) interfaces

Cited By (32)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105550083A (en) * 2015-12-09 2016-05-04 北京交控科技股份有限公司 MSS (maintenance support subsystem) automatic test method and system
CN106874174A (en) * 2015-12-11 2017-06-20 阿里巴巴集团控股有限公司 Interface testing and the implementation method and device of functional test
CN105516322A (en) * 2015-12-16 2016-04-20 方正宽带网络服务有限公司 Interface test method and device based on http protocol
CN105516322B (en) * 2015-12-16 2019-03-05 方正宽带网络服务有限公司 A kind of interface test method and device based on http agreement
CN105681126A (en) * 2015-12-30 2016-06-15 合一网络技术(北京)有限公司 Automatic test method and system based on protocol interface
CN105681126B (en) * 2015-12-30 2019-07-26 合一网络技术(北京)有限公司 A kind of automated testing method and system based on protocol interface
CN107305528A (en) * 2016-04-25 2017-10-31 北京京东尚科信息技术有限公司 Application testing method and device
CN107305528B (en) * 2016-04-25 2020-09-01 北京京东尚科信息技术有限公司 Application testing method and device
CN108241573B (en) * 2016-12-23 2021-06-29 北京国双科技有限公司 Integrated test code generation method and device
CN108241573A (en) * 2016-12-23 2018-07-03 北京国双科技有限公司 A kind of integration testing code generating method and device
WO2018120722A1 (en) * 2016-12-30 2018-07-05 上海壹账通金融科技有限公司 Asynchronous interface testing method, terminal, device, system, and storage medium
CN107026773B (en) * 2017-05-16 2020-03-17 四川长虹电器股份有限公司 Automatic association method for interface automation test
CN107026773A (en) * 2017-05-16 2017-08-08 四川长虹电器股份有限公司 Automatic correlation method for interface automatic test
CN107704386B (en) * 2017-09-25 2020-10-30 金蝶软件(中国)有限公司 Unit testing method and device of business process, computer equipment and storage medium
CN107704386A (en) * 2017-09-25 2018-02-16 金蝶软件(中国)有限公司 Unit test method, device, computer equipment and the storage medium of operation flow
CN107748717A (en) * 2017-09-26 2018-03-02 深圳市牛鼎丰科技有限公司 Automatic interface testing method, device, storage medium and computer equipment
CN107908545A (en) * 2017-09-26 2018-04-13 深圳市牛鼎丰科技有限公司 Interface test method, device, computer equipment and storage medium
CN107678963A (en) * 2017-09-27 2018-02-09 国云科技股份有限公司 A kind of automatic interface testing method based on JAVA
CN108628750B (en) * 2018-05-16 2021-11-05 无线生活(杭州)信息科技有限公司 Test code processing method and device
CN108628750A (en) * 2018-05-16 2018-10-09 无线生活(杭州)信息科技有限公司 A kind of test code process method and device
CN108900369A (en) * 2018-05-31 2018-11-27 武汉虹信技术服务有限责任公司 A kind of interface test method based on post request
CN109194609B (en) * 2018-07-20 2021-07-27 西安四叶草信息技术有限公司 Method and device for detecting vulnerability file
CN109194609A (en) * 2018-07-20 2019-01-11 西安四叶草信息技术有限公司 A kind of method and device detecting loophole file
CN110858172A (en) * 2018-08-23 2020-03-03 北京京东尚科信息技术有限公司 Automatic test code generation method and device
CN109828870A (en) * 2018-12-15 2019-05-31 中国平安人寿保险股份有限公司 Interface testing environmental management technique, device, electronic equipment and storage medium
CN109918126A (en) * 2019-01-28 2019-06-21 平安普惠企业管理有限公司 Method, apparatus, computer equipment and the storage medium of Code Edit
CN110377462A (en) * 2019-06-17 2019-10-25 中国平安人寿保险股份有限公司 Interface test method, device and terminal device
CN110377462B (en) * 2019-06-17 2023-07-21 中国平安人寿保险股份有限公司 Interface testing method and device and terminal equipment
CN113407229A (en) * 2020-03-17 2021-09-17 百度在线网络技术(北京)有限公司 Method and device for generating offline script
CN113407229B (en) * 2020-03-17 2024-05-14 百度在线网络技术(北京)有限公司 Method and device for generating offline scripts
CN113472785A (en) * 2021-06-30 2021-10-01 中国工商银行股份有限公司 Data processing method and device, electronic equipment and readable storage medium
CN113472785B (en) * 2021-06-30 2022-10-04 中国工商银行股份有限公司 Data processing method and device, electronic equipment and readable storage medium

Also Published As

Publication number Publication date
CN104615534B (en) 2017-08-01

Similar Documents

Publication Publication Date Title
CN104615534A (en) Interface test method and device
CN105528297A (en) Method and device for testing web page
CN104598513A (en) Data flow control method and system based on webpage frame
CN105630685A (en) Method and device for testing program interface
CN104978176A (en) Application program interface calling method and device
CN104598263A (en) Application program operation method and configuration file generating method and device
CN104965842A (en) Search recommending method and apparatus
CN104954233B (en) Information-pushing method, device and system
CN104426962A (en) Multi-terminal binding method, binding server, terminal and multi-terminal binding system
CN104794396A (en) Cross-site script vulnerability detection method and device
CN103179026B (en) Communication means in user interactive system, system and server and client side
CN113365106B (en) Multimedia resource generation method and device, electronic equipment and storage medium
CN104965716A (en) Icon updating method, client apparatus, and terminal apparatus
CN104539571A (en) Information interaction method, identity authentication method, server and terminal
CN105049470A (en) Event confirming method, apparatus and system
CN105162591A (en) Equipment registration method and device
CN106294108A (en) Applied program testing method and device
CN104580177A (en) Resource supplying method, device and system
CN105847325A (en) Method and device for debugging application client side
CN104239332A (en) Webpage content processing method, webpage content processing device and browser client side
CN104967608A (en) Method of playing multimedia file, mobile terminal and fixing terminal
CN104378755A (en) Terminal interaction method and device
CN106293738A (en) The update method of a kind of facial expression image and device
CN103607431B (en) Mobile terminal resource processing method, device and equipment
CN104133693B (en) Installment state detection method, device and terminal

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP02 Change in the address of a patent holder
CP02 Change in the address of a patent holder

Address after: 510660 Guangzhou City, Guangzhou, Guangdong, Whampoa Avenue, No. 315, self - made 1-17

Patentee after: Guangzhou KuGou Networks Co., Ltd.

Address before: 510000 B1, building, No. 16, rhyme Road, Guangzhou, Guangdong, China 13F

Patentee before: Guangzhou KuGou Networks Co., Ltd.