CN107729243A - API automated testing method, system, equipment and storage medium - Google Patents

API automated testing method, system, equipment and storage medium Download PDF

Info

Publication number
CN107729243A
CN107729243A CN201710947871.8A CN201710947871A CN107729243A CN 107729243 A CN107729243 A CN 107729243A CN 201710947871 A CN201710947871 A CN 201710947871A CN 107729243 A CN107729243 A CN 107729243A
Authority
CN
China
Prior art keywords
test
data
test case
api
main body
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
CN201710947871.8A
Other languages
Chinese (zh)
Other versions
CN107729243B (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.)
Shanghai Ctrip Financial Information Service Ltd
Original Assignee
Shanghai Ctrip Financial Information Service 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 Shanghai Ctrip Financial Information Service Ltd filed Critical Shanghai Ctrip Financial Information Service Ltd
Priority to CN201710947871.8A priority Critical patent/CN107729243B/en
Publication of CN107729243A publication Critical patent/CN107729243A/en
Application granted granted Critical
Publication of CN107729243B publication Critical patent/CN107729243B/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
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3684Test management for test design, e.g. generating new test cases
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites

Abstract

The invention provides a kind of API automated testing method, system, equipment and storage medium, this method includes obtaining pending Excel file, test case data is obtained from Excel file according to preset format, test case data includes test name, API address of service, interface name, test mode, test request parameter and the verification mode corresponding to each test case;Each test case is performed according to test case data.Mode is write this invention simplifies test case, and tester only needs to use Excel to fill in the data of correspondence position, without understanding code in itself, you can realize writing for test case;Using the test packet of existing preset format, test packet corresponding to the data modification into each test case in Excel, test case conversion ratio is improved, and by the multiplexing of test packet, improve Reuse of Test Cases rate.

Description

API automated testing method, system, equipment and storage medium
Technical field
The present invention relates to interface testing technical field, more particularly to a kind of simplified test case to write mode and improve and test API automated testing method, system, equipment and the storage medium of efficiency.
Background technology
API (Application Programming Interface), i.e. API, can be described as applying journey again Sequence interface or application programming interface, it is some pre-defined functions, it is therefore an objective to which application program and developer's base are provided It is able to access the ability of one group of routine in certain software or hardware, and source code need not be accessed, or understands the thin of internal work mechanism Section.
API tests are the test and checking that the API provided for system carries out each side, such as On the premise of knowing input content and expected result, call the API and verify whether that desired knot can be returned Fruit.Nowadays being tested with API for task is more and more heavier, the requirement more and more higher of API tests, it is sometimes desirable to by test result essence Really to the second, in addition in view of test period it is short the problem of, manual test has been difficult the demand for solving existing API tests.
Although occurring some automatic tests API method in the prior art, existing method stills need to test User individually writes test case for each test assignment, then converts test cases to executable script.For some The indifferent situation of user written in code itself is tested, writing for test case is extremely wasted time and energy.In addition, other tests are used Family can not directly take over existing test case, and test case is also unable to reach multiplexing, cause API testing efficiencies always no To raising.
The content of the invention
For the problems of the prior art, it is an object of the invention to provide a kind of API automatic test side Method, system, equipment and storage medium, simplify test case and write mode, improve test case conversion ratio, improve test case and answer With rate, API testing efficiency is improved.
The embodiment of the present invention provides a kind of API automated testing method, and methods described comprises the following steps:
Pending Excel file is obtained, test case data is obtained from the Excel file according to preset format, The test case data includes test name, API address of service, the interface name corresponding to each test case Title, test mode, test request parameter and verification mode;
Each test case is performed according to the test case data, comprised the following steps:
According to API corresponding to the interface name from API address of service lookup;
According to API described in the test mode and test request parameter access, and obtain the application programming The response data that interface returns;
The response data is verified according to the verification mode, and obtains check results.Alternatively, the test Mode includes input data;
When the method for testing of one test case is input data, the test case data also includes the test case Corresponding main-body pathway, change main body parameter and the value for changing main body parameter;
The test packet of corresponding preset format is obtained according to the main-body pathway;
The value of main body parameter corresponding in the test packet is changed according to the value of the change main body parameter, is held Row message;
The execution message is input to corresponding API, and obtains the response that the application program returns Data.
Alternatively, the test mode includes obtaining data;
When the method for testing of one test case is obtains data, the test case data also includes the test case Corresponding required parameter;
Data corresponding to the required parameter are obtained from corresponding API, are returned as the application program Response data.
Alternatively, the Excel file includes at least one worksheet, at least one test of test case data The data of use-case group, the worksheet correspond with the test case group, the data storage of each test case group In corresponding worksheet.
Alternatively, each test case group is performed according to putting in order for the worksheet successively.
Alternatively, each worksheet includes gauge outfit part and test data part;
In the test data part, each row of data forms the data of a test case, and the worksheet includes Test name row, API address of service row, interface name row, test mode row, test request parameter row and school Proved recipe formula arranges;
Or, in the test data part, each column data form the data of a test case, are wrapped in the worksheet Include test name row, API address of service row, interface name row, test mode row, test request parameter line and Verification mode row.
Alternatively, in the test data part, when each row of data forms the data of a test case, according to each Row sequence number performs the test case successively corresponding to the test case;Or
In the test data part, when each column data form the data of a test case, according to each survey Row sequence number corresponding to example on probation performs the test case successively.
Alternatively, the table header of each worksheet point includes the email address of tester;Methods described also includes Following steps:
Excel file title and worksheet names therein are captured from the Excel file;
It is right to institute that worksheet names corresponding to the check results, the check results and Excel file title are sent The mailbox of the tester answered.
Alternatively, the step of in addition to obtaining test frame file;
The test frame file includes the pre-set priority of each test case group, is used according to each test The pre-set priority of example group performs the test case group successively from high to low;And/or
The test frame file includes the pre-set priority of each test case in a test case group, according to each institute The pre-set priority for stating test case performs the test case group successively from high to low.
Alternatively, the step of in addition to obtaining test frame file;The test frame file includes time data, described Time data includes the default execution time of each test case;
The test case according to corresponding to performing the default execution time.
Alternatively, the test case data also includes the database information corresponding to each test case;
Methods described also comprises the following steps:
Database corresponding to the database information is accessed by the API.
Alternatively, the response data is verified, including following at least one verification mode:
Verify the response data and whether default expectation returned data is consistent;
Whether detect the value of a main body parameter in the response data includes default field;
Whether the value for detecting a main body parameter in the response data is empty;
Whether the value for detecting a main body parameter in the response data is numeral or letter;
Detect whether the difference of the value of a main body parameter and default expectation returned data in the response data is in pre- If in the range of allowable error.
Alternatively, also comprise the following steps:
Multiple traversal test cases are created in an Excel file for each API.
Alternatively, the corresponding test packet of each API, each test packet includes multiple Main body parameter;
Traversal test case corresponding to each application programming interface corresponds with the main body parameter, respectively The change main body parameter of the individual traversal test case is corresponding main body parameter, and the value of the change main body parameter is pre- If initial value.
Alternatively, the corresponding test packet of each API, each test packet includes multiple Main body parameter;
The quantity x of the traversal test case meets equation below:
X=m!/(m-n)!, m>n
X=m!, m=n
Wherein, m represents the quantity of main body parameter all in the test packet, and n represents main body parameter to be changed Quantity.
The embodiment of the present invention also provides a kind of API automatization test system, and the application for realizing described is compiled Journey automatic interface testing method, the system include:
Excel file acquisition module, it is literary from the Excel according to preset format for obtaining pending Excel file Obtain test case data in part, the test case data includes test name corresponding to each test case, using volume Journey interface service address, interface name, test mode, test request parameter and verification mode;
Test case execution module, for performing each test case according to the test case data;The survey Example execution module on probation includes:
API searching unit, for being looked into according to the interface name from the API address of service Look for corresponding API;
Test execution unit, for the API according to the test mode and test request parameter access, And obtain the response data that the API returns;
Verification unit, for being verified according to the verification mode to the response data, and obtain check results.
The embodiment of the present invention also provides a kind of API automated test device, including:
Processor;
Memory, wherein being stored with the executable instruction of the processor;
Wherein, the processor is configured to perform described API certainly via the executable instruction is performed The step of dynamicization method of testing.
The embodiment of the present invention also provides a kind of computer-readable recording medium, and for storage program, described program is performed The step of API automated testing method described in Shi Shixian.
It should be appreciated that the general description and following detailed description of the above are only exemplary and explanatory, not The disclosure can be limited.
API automated testing method, system, equipment and storage medium provided by the present invention have following Advantage:
Mode is write this invention simplifies test case, and tester only needs to use Excel to fill in the number of correspondence position According to without understanding code in itself, you can realize writing for test case;Using the test packet of existing preset format, root According to test packet corresponding to the data modification in Excel into each test case, test case conversion ratio is improved, and pass through survey The multiplexing of message is tried, improves Reuse of Test Cases rate;Therefore API testing efficiency is improved, can be with flexible approach application DLL is tested and safeguarded.
Brief description of the drawings
The detailed description made by reading with reference to the following drawings to non-limiting example, further feature of the invention, Objects and advantages will become more apparent upon.
Fig. 1 is the flow chart of the API automated testing method of one embodiment of the invention;
Fig. 2 is the schematic diagram of the editing interface of the Excel file of one embodiment of the invention;
Fig. 3 is the schematic diagram of the check results of one embodiment of the invention;
Fig. 4 is the structural representation of the API automatization test system of one embodiment of the invention;
Fig. 5 is the structural representation of the API automated test device of one embodiment of the invention;
Fig. 6 is the structural representation of the computer-readable recording medium of one embodiment of the invention.
Embodiment
Example embodiment is described more fully with referring now to accompanying drawing.However, example embodiment can be with a variety of shapes Formula is implemented, and is not understood as limited to example set forth herein;On the contrary, these embodiments are provided so that the disclosure will more Fully and completely, and by the design of example embodiment comprehensively it is communicated to those skilled in the art.Described feature, knot Structure or characteristic can be incorporated in one or more embodiments in any suitable manner.
In addition, accompanying drawing is only the schematic illustrations of the disclosure, it is not necessarily drawn to scale.Identical accompanying drawing mark in figure Note represents same or similar part, thus will omit repetition thereof.Some block diagrams shown in accompanying drawing are work( Can entity, not necessarily must be corresponding with physically or logically independent entity.These work(can be realized using software form Energy entity, or these functional entitys are realized in one or more hardware modules or integrated circuit, or at heterogeneous networks and/or place These functional entitys are realized in reason device device and/or microcontroller device.
As shown in figure 1, in order to solve the above-mentioned technical problem, the embodiment of the present invention provides a kind of API automation Method of testing, methods described comprise the following steps:
S100:Pending Excel file is obtained, test case is obtained from the Excel file according to preset format Data, the test case data include test name corresponding to each test case, API address of service, connect Mouth title, test mode, test request parameter and verification mode;
S200:Each test case is performed according to the test case data, specifically includes the following steps:
S201:Connect according to application programming corresponding to the interface name from API address of service lookup Mouthful;
S202:According to API described in the test mode and test request parameter access, and obtain described answer The response data returned with DLL;
S203:The response data is verified according to the verification mode, and obtains check results.
By using this kind of method, tester, which only needs in Excel corresponding position to fill in test data, to be given birth to Into corresponding test case, without participating in writing for test code, the efficiency that test case is write is substantially increased.
The editing interface that test case is write using Excel may refer to shown in Fig. 2.In this embodiment, an Excel File can include multiple worksheets (sheet), and a test case can be safeguarded in each worksheet, or safeguard a bag Include the test case group of multiple test cases.Each worksheet includes gauge outfit part A1 and test data part A2.
In this embodiment, test data part A2, number corresponding to a test case can be formed per data line According to each to arrange the data for filling in same type.Gauge outfit part A1 includes the description for filling in data to each row.Referring to table 1 pair of fill substance per column data explains:
The each column implication of table 1 illustrates table
Wherein, method name Post and Get represents two kinds of different test modes respectively.Post represents input data, Get tables Show acquisition data.It is also different according to the difference of test mode, executive mode specifically in implementation of test cases.It is specific as follows:
When the method for testing of one test case is input data, the test case data also includes the test case Corresponding main-body pathway, change main body parameter and the value for changing main body parameter;
In implementation of test cases, the test packet of corresponding preset format is obtained according to the main-body pathway first, Test packet is above-mentioned main body Body herein, and what is obtained herein is the template of the test packet of a set form, wherein Including multiple main body parameters and corresponding parameter value;
The value of main body parameter corresponding in the test packet is changed according to the value of the change main body parameter, after modification Obtain and the execution message corresponding to the test case;
The execution message is input to corresponding API, and obtains the response that the application program returns Data.
For example, the form corresponding to the template of a test packet is as follows:
{
“UserID”:”12345678”,
“Channel”:”ctripapp”,
“OderType”:”JL”,
“IsMember”:”false”,
“Appversion”:616
“DepartStation”:" Bei Jingnan ",
“DepartDate”:”2016-6-12”,
“TrainNumbers”:”G102”,
“SeatNames”:" coach seat ",
“VendorID”:0
}
Test case is set in Excel file will wherein main body parameter " DepartStation " is revised as sky, and will Main body parameter " TrainNumbers " is revised as 111111, can obtain performing message as follows:
{
“UserID”:”12345678”,
“Channel”:”ctripapp”,
“OderType”:”JL”,
“IsMember”:”false”,
“Appversion”:616
“DepartStation”:””,
“DepartDate”:”2016-6-12”,
“TrainNumbers”:”111111”,
“SeatNames”:" coach seat ",
“VendorID”:0
}
Therefore, when getting an Excel file, man-to-man multiple tests are converted into according to Excel file first Use-case, as long as providing a test packet, the test packet can be the file of Json forms or xml forms.Json (JavaScript Object Notation, JS object tag) is a kind of data interchange format of lightweight.It is used completely Data are stored and represent independently of the text formatting of programming language.It is succinct to cause Json to turn into ideal with clearly hierarchical structure Data interchange language.It is easy to people to read and write, while is also easy to machine parsing and generation, and effectively lifts network transmission Efficiency.Xml, you can extending mark language is a kind of for marking e-file to make it have structural markup language.Then The value of portion body parameter inside message is replaced, forms the execution message for each test case.The embodiment The multiplexing of test packet can be realized, as long as according to different test cases, the parameter value in test packet is modified i.e. Can, the execution message without individually writing each test case, and the maintenance of test packet also greatly reduces, it is not necessary to The execution message of whole is safeguarded one by one again, it is not required that the execution message of whole is investigated one by one, that is, improves test While use-case conversion ratio, maintenance cost is decreased.
When specifically being edited in Excel, change and represented the master in test packet behind main body parameter if without content Value corresponding to body parameter is set to sky.The value of change main body parameter is not limited only to one or multiple ginsengs with semicolon separated Number.In addition, the value of change main body parameter can be not only second from the bottom in a numerical value or a method, such as Fig. 2 The BodyParamter parts of row part, getRandomNumber are to define the side such as numeral/date for returning to specified format Method.If what is filled in the part is method, in test case implementation procedure, then reflected, return to user's needs As a result.Further, the value for changing main body parameter can also be that the response results of other application DLL are defeated as parameter Enter, in this embodiment with!Mark, for example, in Fig. 2 countdown line 3 part BodyParameter parts auth:!Data Auth!.
In addition, when the method for testing of a test case is obtains data, the test case data also includes should Required parameter corresponding to test case;
During implementation of test cases, data corresponding to the required parameter are obtained from corresponding API, as The response data that the application program returns.
Such as in Fig. 2, in the test case of last column data, to obtain data get, required parameter is its method of testing Ssid=1, i.e., obtained according to the required parameter from corresponding API corresponding to returned data.
What is shown in Fig. 2 is only a kind of preferred embodiment, and in actual applications, test data part can be with each The data of row one test case of composition, are belonged within protection scope of the present invention.
Include multiple worksheets in an Excel file, and when each worksheet includes multiple test cases, wherein respectively The execution sequence of individual test case can be order perform, i.e., according to the worksheet put in order perform successively it is each described in Test case group.In the test data part, when each row of data forms the data of a test case, according to each described Row sequence number performs the test case successively from top to bottom corresponding to test case;Or in the test data part, per columns During according to the data for forming a test case, from left to right performed successively according to row sequence number corresponding to each test case The test case.
Or the execution sequence of each test case can also be defined by test frame file (Testng files). The step of API automated testing method can also include obtaining test frame file.Get test frame After file, according to the execution sequence implementation of test cases successively defined in test frame file.Specifically, can use following several Kind mode:
The test frame file can include the pre-set priority of each test case group, according to each survey The pre-set priority of example group on probation performs the test case group successively from high to low;And/or
The test frame file can include the pre-set priority of each test case in a test case group, according to each The pre-set priority of the individual test case performs the test case group successively from high to low.
During test case performs, can single test case perform, can also batch testing use-case perform.
Or the test frame file can include time data, the time data includes each test and used The default execution time of example;When performing API test, the test according to corresponding to performing the default execution time Use-case.That is, timed task timing is set to perform.In addition can also platform directly upload test frame file, Excel text Part, message file, operation being clicked on manually, and being integrated with Jenkins, the implementation procedure of test case is monitored. Jenkins is an open source software project, is a kind of continuous integrating instrument based on Java exploitations, continues what is repeated for monitoring Work.
Further, as shown in Fig. 2 the test case data also includes the data corresponding to each test case Storehouse information;
Methods described also comprises the following steps:
Database corresponding to the database information is accessed by the API.
In the application, the information of multiple databases can be configured in config.properties, while realizes more data The connection in storehouse.
Such as in Fig. 2, " TrainNumbers:SELECT trainNo FROM scm_grabticket_ Wherein, fnF1Db is database information by successrate where id=1, fnF1Db ", can be according to the database information Corresponding database is found, the data in the database are searched or verified.
Further, as shown in Fig. 2 the gauge outfit part A1 of each worksheet can also include the mailbox of tester Address;Methods described also comprises the following steps:
Excel file title and worksheet names therein are captured from the Excel file;
It is right to institute that worksheet names corresponding to the check results, the check results and Excel file title are sent The mailbox of the tester answered.
Specifically, the display mode of check results can be as shown in Figure 3.The report of check results can be with Excel file Title+worksheet names are named.
In Fig. 3, R1 parts show the Excel file title and worksheet names corresponding to this report, and the display of R2 parts should The title of each test case in report, R3 parts are the daily record links of each test case, are linked by click logs, can be with Continue to check interface details.User can also check the detailed implementing result of message by checking log.
Report form in Fig. 3 is only a kind of example, in actual applications, is not limited to such a mode.
In this embodiment, the response data is verified, following at least one verification mode can be included:
Verify the response data and whether default expectation returned data is consistent;
Whether detect the value of a main body parameter in the response data includes default field;
Whether the value for detecting a main body parameter in the response data is empty;
Whether the value for detecting a main body parameter in the response data is numeral or letter;
Detect whether the difference of the value of a main body parameter and default expectation returned data in the response data is in pre- If in the range of allowable error.
It is may refer to for the specific application example of those verification modes and form such as table 2 below:
The verification mode form table of table 2
It is listed herewith be only a part of verification mode, in actual applications, can also increase other verification modes or Some of which verification mode is deleted, is all possible, belongs within protection scope of the present invention.
Further, the API automated testing method of the embodiment can also comprise the following steps:
Multiple traversal test cases are created in an Excel file for each API.
Alternatively, the corresponding test packet of each API, each test packet includes multiple Main body parameter;
Traversal test case corresponding to each application programming interface corresponds with the main body parameter, respectively The change main body parameter of the individual traversal test case is corresponding main body parameter, and the value of the change main body parameter is pre- If initial value.
Such as several test cases corresponding to TrainGradTicketReBookingDetail interfaces in Fig. 2.Test report The main body parameter that text includes has ServiceVersion, DepartStation, ArriveStation, DepartDate, TrainNumbers, SeatNames six.Six traversal test cases are corresponding with, respectively ServiceVersion is sky Value, DepartStation are null value, and ArriveStation is null value, and DepartDate is null value, and TrainNumbers is sky Value, SeatNames are the test case corresponding to null value.
Further, fully intermeshing combination can also be carried out by different main body parameters, each combination is exactly a survey Try data, that is, a test case.Based on this, constantly permutation and combination and with reference to equivalence class partition, forms ginseng 100% covering that array is closed.Because the main body parameter corresponding to API is often more, tester can not often know Road whether 100% covering.The embodiment is realized 100% covering truly, surveyed by data-driven, permutation and combination Examination team can easily carry out the evaluation of coverage rate.
The fundamental formular of fully intermeshing combination is as follows:
X=m!/(m-n)!, m>n
X=m!, m=n
Wherein, x represents the quantity of test case, and m represents the total quantity of main body parameter in test packet, and n represents to wait to change Main body parameter quantity, i.e., the quantity of tested main body parameter.X represents to select n main body ginseng from m main body parameter The number for the permutation and combination for counting and being ranked up.This kind of mode is applied to the quantity of the main body parameter of nominative testing, without referring to The situation of the type of the fixed main body parameter specifically tested.
In calculating process, m!/(m-n)!=m (m-1) (m-2) ... (m-n+1)
Such as:
In summary, the application of API automated testing method of the invention includes following three part:
First, general test engineer, case is write using Excel, user is not required to understand code;
Second, the system framework, message is changed, realize all standing, improve accuracy rate;
3rd, test development engineer, safeguard framework, flexible approach and maintenance.
The API automated testing method of the embodiment is surveyed compared to API of the prior art The method of examination, there is following advantage:
1st, easy to get started
Easily left-hand seat, learning cost is low, directly writes test case by Excel, pastes copy, and code and test are used Example separation, Test Engineer do not have to substantially contact code can design in a short time high-volume 100% cover application programming connect Mouth test case, test environment are built extremely simple quick.
2nd, easily transplanting
Test Sample Design and performs isolation, a line is an API test case, can be worked with one Table manage API can also a worksheet manage multiple API, Test Engineer need not quilt Code perplexs, it is only necessary to is absorbed in design test data, supports multilingual, multi-environment API interface testing
3rd, easy care
If API service address or test packet change, it is only necessary to once change;And the report that check results are formed Accuse and result is shown with ExcelName+SheetName dimension, be easy to user to check the test case of failure, can by holding Row log, check API implementation status
4th, easily perform
Flexible operational mode is supported, can be performed with night timing, can also be by sheetNo, sheetName or rowNo Any implementation of test cases.
5th, easily expand
The data that the generation of offer method is specified, such as:Date, Any Digit/String;Realize the return for comparing distinct interface Value;And the self-defined a large amount of methods of framework, these methods can be passed through and extend various data manipulations.
6th, easily evaluation
The system realizes test case all standing;API parameter is more, and tester, which can not really know, is No 100% covering;The embodiment permutation and combination, realizes 100% covering of real meaning, test team can by data-driven Easily to carry out the evaluation of coverage rate.
As shown in figure 4, the embodiment of the present invention also provides a kind of API automatization test system, for realizing The API automated testing method stated, the system include:
Excel file acquisition module 100, for obtaining pending Excel file, according to preset format from described Obtain test case data in Excel file, the test case data include test name corresponding to each test case, API address of service, interface name, test mode, test request parameter and verification mode;
Test case execution module 200, for performing each test case according to the test case data;It is described Test case execution module includes API searching unit 201, test execution unit 202 and verification unit 203.Its In:
The API searching unit 201 is used for according to the interface name from the API service API corresponding to address search;
The test execution unit 202 is used for the application programming according to the test mode and test request parameter access Interface, and obtain the response data that the API returns;
The verification unit 203 is used to verify the response data according to the verification mode, and obtains verification As a result.
By using this kind of system, tester, which only needs in Excel corresponding position to fill in test data, to be given birth to Into corresponding test case, without participating in writing for test code, the efficiency that test case is write is substantially increased.
The embodiment of the present invention also provides a kind of API automated test device, including processor;Memory, its In be stored with the executable instruction of the processor;Wherein, the processor is configured to next via the executable instruction is performed The step of performing described API automated testing method.
Person of ordinary skill in the field it is understood that various aspects of the invention can be implemented as system, method or Program product.Therefore, various aspects of the invention can be implemented as following form, i.e.,:It is complete hardware embodiment, complete The embodiment combined in terms of full Software Implementation (including firmware, microcode etc.), or hardware and software, can unite here Referred to as " circuit ", " module " or " platform ".
The electronic equipment 600 according to the embodiment of the invention is described referring to Fig. 5.The electronics that Fig. 5 is shown Equipment 600 is only an example, should not bring any restrictions to the function and use range of the embodiment of the present invention.
As shown in figure 5, electronic equipment 600 is showed in the form of universal computing device.The component of electronic equipment 600 can wrap Include but be not limited to:At least one processing unit 610, at least one memory cell 620, (including the storage of connection different platform component Unit 620 and processing unit 610) bus 630, display unit 640 etc..
Wherein, the memory cell is had program stored therein code, and described program code can be held by the processing unit 610 OK so that the processing unit 610 perform described in the above-mentioned electronic prescription circulation processing method part of this specification according to this The step of inventing various illustrative embodiments.For example, the step of processing unit 610 can perform as shown in fig. 1.
The memory cell 620 can include the computer-readable recording medium of volatile memory cell form, such as random access memory Unit (RAM) 6201 and/or cache memory unit 6202, it can further include read-only memory unit (ROM) 6203.
The memory cell 620 can also include program/practical work with one group of (at least one) program module 6205 Tool 6204, such program module 6205 includes but is not limited to:Operating system, one or more application program, other programs Module and routine data, the realization of network environment may be included in each or certain combination in these examples.
Bus 630 can be to represent the one or more in a few class bus structures, including memory cell bus or storage Cell controller, peripheral bus, graphics acceleration port, processing unit use any bus structures in a variety of bus structures Local bus.
Electronic equipment 600 can also be with one or more external equipments 700 (such as keyboard, sensing equipment, bluetooth equipment Deng) communication, the equipment communication interacted with the electronic equipment 600 can be also enabled a user to one or more, and/or with causing Any equipment that the electronic equipment 600 can be communicated with one or more of the other computing device (such as router, modulation /demodulation Device etc.) communication.This communication can be carried out by input/output (I/O) interface 650.Also, electronic equipment 600 can be with By network adapter 660 and one or more network (such as LAN (LAN), wide area network (WAN) and/or public network, Such as internet) communication.Network adapter 660 can be communicated by bus 630 with other modules of electronic equipment 600.Should Understand, although not shown in the drawings, can combine electronic equipment 600 uses other hardware and/or software module, including it is but unlimited In:Microcode, device driver, redundant processing unit, external disk drive array, RAID system, tape drive and number According to backup storage platform etc..
By using this kind of equipment, tester, which only needs in Excel corresponding position to fill in test data, to be given birth to Into corresponding test case, without participating in writing for test code, the efficiency that test case is write is substantially increased.
The embodiment of the present invention also provides a kind of computer-readable recording medium, and for storage program, described program is performed The step of API automated testing method described in Shi Shixian.It is of the invention in some possible embodiments Various aspects are also implemented as a kind of form of program product, and it includes program code, when described program product is set in terminal During standby upper operation, described program code is used to make the terminal device perform the above-mentioned electronic prescription circulation processing method of this specification Described in part according to the step of various illustrative embodiments of the invention.
With reference to shown in figure 6, the program product for being used to realize the above method according to the embodiment of the present invention is described 800, it can use portable compact disc read only memory (CD-ROM) and including program code, and can in terminal device, Such as run on PC.However, the program product not limited to this of the present invention, in this document, readable storage medium storing program for executing can be with Be it is any include or the tangible medium of storage program, the program can be commanded execution system, device either device use or It is in connection.
Described program product can use any combination of one or more computer-readable recording mediums.Computer-readable recording medium can be readable letter Number medium or readable storage medium storing program for executing.Readable storage medium storing program for executing for example can be but be not limited to electricity, magnetic, optical, electromagnetic, infrared ray or System, device or the device of semiconductor, or any combination above.The more specifically example of readable storage medium storing program for executing is (non exhaustive List) include:It is electrical connection, portable disc, hard disk, random access memory (RAM) with one or more wires, read-only Memory (ROM), erasable programmable read only memory (EPROM or flash memory), optical fiber, portable compact disc read only memory (CD-ROM), light storage device, magnetic memory device or above-mentioned any appropriate combination.
The computer-readable recording medium can include believing in a base band or as the data that a carrier wave part is propagated Number, wherein carrying readable program code.The data-signal of this propagation can take various forms, including but not limited to electromagnetism Signal, optical signal or above-mentioned any appropriate combination.Readable storage medium storing program for executing can also be any beyond readable storage medium storing program for executing Computer-readable recording medium, the computer-readable recording medium can send, propagate either transmit for being used by instruction execution system, device or device or Person's program in connection.The program code included on readable storage medium storing program for executing can be transmitted with any appropriate medium, bag Include but be not limited to wireless, wired, optical cable, RF etc., or above-mentioned any appropriate combination.
Can being combined to write the program operated for performing the present invention with one or more programming languages Code, described program design language include object oriented program language-Java, C++ etc., include routine Procedural programming language-such as " C " language or similar programming language.Program code can be fully in user Perform on computing device, partly perform on a user device, the software kit independent as one performs, is partly calculated in user Its upper side point is performed or performed completely in remote computing device or server on a remote computing.It is remote being related to In the situation of journey computing device, remote computing device can pass through the network of any kind, including LAN (LAN) or wide area network (WAN) user calculating equipment, is connected to, or, it may be connected to external computing device (such as utilize ISP To pass through Internet connection).
API automated testing method, system, equipment and storage medium provided by the present invention have following Advantage:
Mode is write this invention simplifies test case, and tester only needs to use Excel to fill in the number of correspondence position According to without understanding code in itself, you can realize writing for test case;Using the test packet of existing preset format, root According to test packet corresponding to the data modification in Excel into each test case, test case conversion ratio is improved, and pass through survey The multiplexing of message is tried, improves Reuse of Test Cases rate;Therefore API testing efficiency is improved, can be with flexible approach application DLL is tested and safeguarded.
Above content is to combine specific preferred embodiment further description made for the present invention, it is impossible to is assert The specific implementation of the present invention is confined to these explanations.For general technical staff of the technical field of the invention, On the premise of not departing from present inventive concept, some simple deduction or replace can also be made, should all be considered as belonging to the present invention's Protection domain.

Claims (18)

1. a kind of API automated testing method, it is characterised in that comprise the following steps:
Pending Excel file is obtained, test case data is obtained from the Excel file according to preset format, it is described Test case data includes the test name corresponding to each test case, API address of service, interface name, survey Examination mode, test request parameter and verification mode;
Each test case is performed according to the test case data, comprised the following steps:
According to API corresponding to the interface name from API address of service lookup;
According to API described in the test mode and test request parameter access, and obtain the API The response data of return;
The response data is verified according to the verification mode, and obtains check results.
2. API automated testing method according to claim 1, it is characterised in that the test mode bag Include input data;
When the method for testing of one test case is input data, it is right that the test case data also includes test case institute Main-body pathway, change main body parameter and the value for changing main body parameter answered;
The test packet of corresponding preset format is obtained according to the main-body pathway;
The value of main body parameter corresponding in the test packet is changed according to the value of the change main body parameter, obtains performing report Text;
The execution message is input to corresponding API, and obtains the number of responses that the application program returns According to.
3. API automated testing method according to claim 1, it is characterised in that the test mode bag Include acquisition data;
When the method for testing of one test case is obtains data, it is right that the test case data also includes test case institute The required parameter answered;
Data corresponding to the required parameter are obtained from corresponding API, the sound returned as the application program Answer data.
4. API automated testing method according to claim 1, it is characterised in that the Excel file Include at least one worksheet, the data of at least one test case group of test case data, the worksheet and institute Test case group one-to-one corresponding is stated, the data storage of each test case group is in corresponding worksheet.
5. API automated testing method according to claim 4, it is characterised in that according to the worksheet Put in order and perform each test case group successively.
6. API automated testing method according to claim 4, it is characterised in that each worksheet Including gauge outfit part and test data part;
In the test data part, each row of data forms the data of a test case, and the worksheet includes test Name column, API address of service row, interface name row, test mode row, test request parameter row and verification side Formula arranges;
Or, in the test data part, each column data form the data of a test case, the worksheet includes surveying Try title row, API address of service row, interface name row, test mode row, test request parameter line and verification Mode row.
7. API automated testing method according to claim 6, it is characterised in that the test data portion In point, when each row of data forms the data of a test case, according to row sequence number corresponding to each test case successively Perform the test case;Or
In the test data part, when each column data form the data of a test case, used according to each test Row sequence number corresponding to example performs the test case successively.
8. API automated testing method according to claim 6, it is characterised in that each worksheet Table header point include the email address of tester;Methods described also comprises the following steps:
Excel file title and worksheet names therein are captured from the Excel file;
Worksheet names corresponding to the check results, the check results and Excel file title are sent to corresponding The mailbox of tester.
9. API automated testing method according to claim 6, it is characterised in that also include obtaining test The step of document framework;
The test frame file includes the pre-set priority of each test case group, according to each test case group Pre-set priority perform the test case group successively from high to low;And/or
The test frame file includes the pre-set priority of each test case in a test case group, according to each survey The pre-set priority of example on probation performs the test case group successively from high to low.
10. API automated testing method according to claim 1, it is characterised in that also include obtaining surveying The step of trying document framework;The test frame file includes time data, and the time data includes each test and used The default execution time of example;
The test case according to corresponding to performing the default execution time.
11. API automated testing method according to claim 1, it is characterised in that the test case Data also include the database information corresponding to each test case;
Methods described also comprises the following steps:
Database corresponding to the database information is accessed by the API.
12. API automated testing method according to claim 1, it is characterised in that to the number of responses According to being verified, including following at least one verification mode:
Verify the response data and whether default expectation returned data is consistent;
Whether detect the value of a main body parameter in the response data includes default field;
Whether the value for detecting a main body parameter in the response data is empty;
Whether the value for detecting a main body parameter in the response data is numeral or letter;
Whether the difference for detecting the value of a main body parameter and default expectation returned data in the response data is fair in presetting Perhaps in error range.
13. API automated testing method according to claim 1, it is characterised in that also include following step Suddenly:
Multiple traversal test cases are created in an Excel file for each API.
14. API automated testing method according to claim 13, it is characterised in that each application The corresponding test packet of DLL, each test packet include multiple main body parameters;
Traversal test case corresponding to each application programming interface corresponds with the main body parameter, Ge Gesuo The change main body parameter for stating traversal test case is corresponding main body parameter, and the value of the change main body parameter is default first Initial value.
15. API automated testing method according to claim 13, it is characterised in that each application The corresponding test packet of DLL, each test packet include multiple main body parameters;
The quantity x of the traversal test case meets equation below:
X=m!/(m-n)!,m>n
X=m!, m=n
Wherein, m represents the quantity of main body parameter all in the test packet, and n represents the quantity of main body parameter to be changed.
A kind of 16. API automatization test system, for realizing the application any one of claim 1 to 15 DLL automated testing method, it is characterised in that the system includes:
Excel file acquisition module, for obtaining pending Excel file, according to preset format from the Excel file Test case data is obtained, the test case data connects including the test name corresponding to each test case, application programming Mouth address of service, interface name, test mode, test request parameter and verification mode;
Test case execution module, for performing each test case according to the test case data;The test is used Example execution module includes:
API searching unit, for according to the interface name from the API address of service search pair The API answered;
Test execution unit, for the API according to the test mode and test request parameter access, and obtain The response data for taking the API to return;
Verification unit, for being verified according to the verification mode to the response data, and obtain check results.
A kind of 17. API automated test device, it is characterised in that including:
Processor;
Memory, wherein being stored with the executable instruction of the processor;
Wherein, the processor is configured to come any one of 1 to 15 institute of perform claim requirement via the execution executable instruction The step of API automated testing method stated.
18. a kind of computer-readable recording medium, for storage program, it is characterised in that power is realized when described program is performed Profit requires the step of API automated testing method any one of 1 to 15.
CN201710947871.8A 2017-10-12 2017-10-12 Application programming interface automatic test method, system, equipment and storage medium Active CN107729243B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710947871.8A CN107729243B (en) 2017-10-12 2017-10-12 Application programming interface automatic test method, system, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710947871.8A CN107729243B (en) 2017-10-12 2017-10-12 Application programming interface automatic test method, system, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN107729243A true CN107729243A (en) 2018-02-23
CN107729243B CN107729243B (en) 2020-06-16

Family

ID=61210376

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710947871.8A Active CN107729243B (en) 2017-10-12 2017-10-12 Application programming interface automatic test method, system, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN107729243B (en)

Cited By (55)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108733569A (en) * 2018-05-25 2018-11-02 北京五八信息技术有限公司 A kind of automatic interface testing method, device, storage medium and equipment
CN108897687A (en) * 2018-06-29 2018-11-27 泰华智慧产业集团股份有限公司 A kind of API automated testing method and system based on data-driven
CN108959065A (en) * 2018-05-17 2018-12-07 烽火通信科技股份有限公司 The verification method and system of software interface test parameter
CN108959081A (en) * 2018-06-27 2018-12-07 郑州云海信息技术有限公司 One kind driving automated testing method based on text
CN109032956A (en) * 2018-09-11 2018-12-18 郑州云海信息技术有限公司 A kind of interface test method and device
CN109101267A (en) * 2018-07-31 2018-12-28 上海携程金融信息服务有限公司 Using method for release management, device, electronic equipment, storage medium
CN109144869A (en) * 2018-08-16 2019-01-04 平安科技(深圳)有限公司 Automated testing method, device, computer equipment and storage medium
CN109165165A (en) * 2018-09-04 2019-01-08 中国平安人寿保险股份有限公司 Interface test method, device, computer equipment and storage medium
CN109446071A (en) * 2018-09-26 2019-03-08 深圳壹账通智能科技有限公司 Interface test method, interface test device, electronic equipment and storage medium
CN109446052A (en) * 2018-09-03 2019-03-08 平安普惠企业管理有限公司 A kind of method of calibration and equipment of application program
CN109582560A (en) * 2018-10-09 2019-04-05 中国平安人寿保险股份有限公司 Test file edit methods, device, equipment and computer readable storage medium
CN109597729A (en) * 2018-10-29 2019-04-09 深圳壹账通智能科技有限公司 A kind of monitoring method and device based on analog subscriber test
CN109634841A (en) * 2018-10-26 2019-04-16 平安科技(深圳)有限公司 Electronic device, automatic interface testing method and storage medium
CN109639494A (en) * 2018-12-20 2019-04-16 瑞庭网络技术(上海)有限公司 Statistical method, device, server and the storage medium of interface message
CN109656831A (en) * 2018-12-26 2019-04-19 北京物芯科技有限责任公司 Test packet centralization generation method, device, equipment and storage medium
CN109684204A (en) * 2018-12-03 2019-04-26 杭州仟金顶信息科技有限公司 A kind of http interface automatic test approach
CN109684195A (en) * 2018-10-26 2019-04-26 平安科技(深圳)有限公司 Electronic device, script conversion method and storage medium
CN109739701A (en) * 2018-12-14 2019-05-10 北京奇安信科技有限公司 Interface test method and device
CN109800154A (en) * 2018-12-15 2019-05-24 深圳壹账通智能科技有限公司 Loading method, device, computer equipment and the storage medium of test data
CN109800156A (en) * 2018-12-20 2019-05-24 交控科技股份有限公司 A kind of subway signal system automation test method based on profile command
CN109828902A (en) * 2018-12-15 2019-05-31 中国平安人寿保险股份有限公司 Interface parameters determines method, apparatus, electronic equipment and storage medium
CN109857646A (en) * 2019-01-08 2019-06-07 广州云测信息技术有限公司 A kind of automated testing method and device
CN109885476A (en) * 2018-12-14 2019-06-14 平安万家医疗投资管理有限责任公司 Automated testing method and device, terminal and computer readable storage medium
CN110083537A (en) * 2019-04-26 2019-08-02 田金月 The method and system of cell phone application port test
CN110096434A (en) * 2019-03-28 2019-08-06 咪咕文化科技有限公司 A kind of interface test method and device
CN110096445A (en) * 2019-05-06 2019-08-06 北京长城华冠汽车科技股份有限公司 A kind of model is in ring test method and device
CN110399284A (en) * 2018-04-24 2019-11-01 中移(杭州)信息技术有限公司 A kind of test case writes and executes method and device
CN110609785A (en) * 2018-06-15 2019-12-24 中移(杭州)信息技术有限公司 Software interface testing method and device
CN110795332A (en) * 2018-08-03 2020-02-14 北京京东尚科信息技术有限公司 Automatic testing method and device
CN110806979A (en) * 2019-10-31 2020-02-18 北京东软望海科技有限公司 Interface return value checking method, device, equipment and storage medium
CN110851361A (en) * 2019-11-08 2020-02-28 拉扎斯网络科技(上海)有限公司 Interface testing method and device, electronic equipment and readable storage medium
CN110908888A (en) * 2018-09-17 2020-03-24 百度在线网络技术(北京)有限公司 Server testing method and device
CN111045928A (en) * 2019-11-14 2020-04-21 用友网络科技股份有限公司 Interface data testing method, device, terminal and storage medium
CN111061645A (en) * 2019-12-26 2020-04-24 中科曙光国际信息产业有限公司 Automatic interface testing method and device for application program interface
CN111143192A (en) * 2019-11-28 2020-05-12 叮当快药科技集团有限公司 Interface automation test method and device and related product
CN111159049A (en) * 2019-12-31 2020-05-15 中国银行股份有限公司 Automatic interface testing method and system
CN111352825A (en) * 2018-12-21 2020-06-30 北京金山云网络技术有限公司 Data interface test method and device and server
CN111475358A (en) * 2020-03-31 2020-07-31 北京经纬恒润科技有限公司 Automatic testing method and device for controller interface
CN111488274A (en) * 2020-03-27 2020-08-04 杭州海兴电力科技股份有限公司 Test case construction method, test equipment and storage medium
CN111625460A (en) * 2020-05-27 2020-09-04 携程旅游网络技术(上海)有限公司 Method, system, electronic device and storage medium for automatically testing interface
CN111752834A (en) * 2020-06-24 2020-10-09 京东数字科技控股有限公司 Automatic testing method and device
CN111767208A (en) * 2020-06-02 2020-10-13 北京金堤科技有限公司 Automatic test method and device
CN111767218A (en) * 2020-06-24 2020-10-13 北京思特奇信息技术股份有限公司 Automatic testing method, equipment and storage medium for continuous integration
CN111796578A (en) * 2020-06-29 2020-10-20 中国第一汽车股份有限公司 Vehicle controller testing method, device and system and storage medium
CN112131091A (en) * 2019-06-24 2020-12-25 百度在线网络技术(北京)有限公司 Test method and device and electronic equipment
CN112162923A (en) * 2020-09-25 2021-01-01 中诚信征信有限公司 Interface testing method and device
CN112181813A (en) * 2020-09-17 2021-01-05 的卢技术有限公司 Interface automation test method, system and computer readable storage medium
CN112965908A (en) * 2021-03-19 2021-06-15 深圳市优必选科技股份有限公司 Communication test method, communication test device, communication equipment and storage medium
CN113064828A (en) * 2021-04-13 2021-07-02 广州骏伯网络科技有限公司 Automatic testing method and device, computer equipment and storage medium
CN113190445A (en) * 2021-04-29 2021-07-30 中国邮政储蓄银行股份有限公司 Interface test method, interface test device and interface test system
CN113641585A (en) * 2021-08-20 2021-11-12 成方金融科技有限公司 Test data generation method, device, equipment and storage medium
CN113806211A (en) * 2020-06-17 2021-12-17 北京同邦卓益科技有限公司 Data processing method and device for interface test
CN115391231A (en) * 2022-10-26 2022-11-25 江苏北弓智能科技有限公司 Automatic interface testing method
CN115982055A (en) * 2023-02-27 2023-04-18 云筑信息科技(成都)有限公司 Test method special for java language development program
WO2023093198A1 (en) * 2021-11-29 2023-06-01 上海同星智能科技有限公司 Test method, system and device based on excel file loading

Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6282527B1 (en) * 1997-06-27 2001-08-28 Microsoft Corporation Adaptive problem solving method and apparatus utilizing evolutionary computation techniques
US20060010426A1 (en) * 2004-07-09 2006-01-12 Smartware Technologies, Inc. System and method for generating optimized test cases using constraints based upon system requirements
CN103139822A (en) * 2013-03-27 2013-06-05 武汉邮电科学研究院 Method of carrying out automated testing on wireless communication system physical layer
CN104484419A (en) * 2014-12-17 2015-04-01 上海斐讯数据通信技术有限公司 Test case document conversion system and test case document conversion method
CN104503900A (en) * 2014-11-21 2015-04-08 北京奇虎科技有限公司 Test case generation method and device
CN105373469A (en) * 2014-08-25 2016-03-02 广东金赋信息科技有限公司 Interface based software automation test method
CN105528294A (en) * 2015-12-29 2016-04-27 广东金赋信息科技有限公司 Method and system for automatically generating interface testing case
US9367432B2 (en) * 2010-12-24 2016-06-14 Tata Consultancy Services Limited Testing system
CN105930274A (en) * 2016-05-05 2016-09-07 中国银行股份有限公司 Automated test method and system
CN106033389A (en) * 2015-03-11 2016-10-19 腾讯科技(深圳)有限公司 A test use case display method and device
CN106598869A (en) * 2016-12-26 2017-04-26 北京京东金融科技控股有限公司 Method and device for realizing automatic software testing and electronic equipment
CN106649103A (en) * 2016-11-25 2017-05-10 深圳大学 Android application program automatically black box testing method and system
US9727450B2 (en) * 2015-03-27 2017-08-08 Syntel, Inc. Model-based software application testing
CN107168883A (en) * 2017-07-26 2017-09-15 成都科来软件有限公司 A kind of API data automated testing method

Patent Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6282527B1 (en) * 1997-06-27 2001-08-28 Microsoft Corporation Adaptive problem solving method and apparatus utilizing evolutionary computation techniques
US20060010426A1 (en) * 2004-07-09 2006-01-12 Smartware Technologies, Inc. System and method for generating optimized test cases using constraints based upon system requirements
US9367432B2 (en) * 2010-12-24 2016-06-14 Tata Consultancy Services Limited Testing system
CN103139822A (en) * 2013-03-27 2013-06-05 武汉邮电科学研究院 Method of carrying out automated testing on wireless communication system physical layer
CN105373469A (en) * 2014-08-25 2016-03-02 广东金赋信息科技有限公司 Interface based software automation test method
CN104503900A (en) * 2014-11-21 2015-04-08 北京奇虎科技有限公司 Test case generation method and device
CN104484419A (en) * 2014-12-17 2015-04-01 上海斐讯数据通信技术有限公司 Test case document conversion system and test case document conversion method
CN106033389A (en) * 2015-03-11 2016-10-19 腾讯科技(深圳)有限公司 A test use case display method and device
US9727450B2 (en) * 2015-03-27 2017-08-08 Syntel, Inc. Model-based software application testing
CN105528294A (en) * 2015-12-29 2016-04-27 广东金赋信息科技有限公司 Method and system for automatically generating interface testing case
CN105930274A (en) * 2016-05-05 2016-09-07 中国银行股份有限公司 Automated test method and system
CN106649103A (en) * 2016-11-25 2017-05-10 深圳大学 Android application program automatically black box testing method and system
CN106598869A (en) * 2016-12-26 2017-04-26 北京京东金融科技控股有限公司 Method and device for realizing automatic software testing and electronic equipment
CN107168883A (en) * 2017-07-26 2017-09-15 成都科来软件有限公司 A kind of API data automated testing method

Cited By (75)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110399284A (en) * 2018-04-24 2019-11-01 中移(杭州)信息技术有限公司 A kind of test case writes and executes method and device
CN108959065A (en) * 2018-05-17 2018-12-07 烽火通信科技股份有限公司 The verification method and system of software interface test parameter
CN108733569A (en) * 2018-05-25 2018-11-02 北京五八信息技术有限公司 A kind of automatic interface testing method, device, storage medium and equipment
CN110609785A (en) * 2018-06-15 2019-12-24 中移(杭州)信息技术有限公司 Software interface testing method and device
CN108959081A (en) * 2018-06-27 2018-12-07 郑州云海信息技术有限公司 One kind driving automated testing method based on text
CN108897687A (en) * 2018-06-29 2018-11-27 泰华智慧产业集团股份有限公司 A kind of API automated testing method and system based on data-driven
CN108897687B (en) * 2018-06-29 2022-04-01 泰华智慧产业集团股份有限公司 API automatic testing method and system based on data driving
CN109101267A (en) * 2018-07-31 2018-12-28 上海携程金融信息服务有限公司 Using method for release management, device, electronic equipment, storage medium
CN109101267B (en) * 2018-07-31 2021-11-23 上海携程金融信息服务有限公司 Application release management method and device, electronic equipment and storage medium
CN110795332A (en) * 2018-08-03 2020-02-14 北京京东尚科信息技术有限公司 Automatic testing method and device
CN109144869A (en) * 2018-08-16 2019-01-04 平安科技(深圳)有限公司 Automated testing method, device, computer equipment and storage medium
CN109446052B (en) * 2018-09-03 2023-12-19 中企瑞铭科技(北京)有限公司 Verification method and device for application program
CN109446052A (en) * 2018-09-03 2019-03-08 平安普惠企业管理有限公司 A kind of method of calibration and equipment of application program
CN109165165A (en) * 2018-09-04 2019-01-08 中国平安人寿保险股份有限公司 Interface test method, device, computer equipment and storage medium
CN109032956B (en) * 2018-09-11 2022-03-22 郑州云海信息技术有限公司 Interface testing method and device
CN109032956A (en) * 2018-09-11 2018-12-18 郑州云海信息技术有限公司 A kind of interface test method and device
CN110908888A (en) * 2018-09-17 2020-03-24 百度在线网络技术(北京)有限公司 Server testing method and device
CN109446071A (en) * 2018-09-26 2019-03-08 深圳壹账通智能科技有限公司 Interface test method, interface test device, electronic equipment and storage medium
CN109582560A (en) * 2018-10-09 2019-04-05 中国平安人寿保险股份有限公司 Test file edit methods, device, equipment and computer readable storage medium
CN109684195A (en) * 2018-10-26 2019-04-26 平安科技(深圳)有限公司 Electronic device, script conversion method and storage medium
CN109634841B (en) * 2018-10-26 2024-03-12 平安科技(深圳)有限公司 Electronic device, interface automatic test method and storage medium
CN109634841A (en) * 2018-10-26 2019-04-16 平安科技(深圳)有限公司 Electronic device, automatic interface testing method and storage medium
CN109597729A (en) * 2018-10-29 2019-04-09 深圳壹账通智能科技有限公司 A kind of monitoring method and device based on analog subscriber test
CN109684204A (en) * 2018-12-03 2019-04-26 杭州仟金顶信息科技有限公司 A kind of http interface automatic test approach
CN109739701A (en) * 2018-12-14 2019-05-10 北京奇安信科技有限公司 Interface test method and device
CN109885476A (en) * 2018-12-14 2019-06-14 平安万家医疗投资管理有限责任公司 Automated testing method and device, terminal and computer readable storage medium
CN109800154A (en) * 2018-12-15 2019-05-24 深圳壹账通智能科技有限公司 Loading method, device, computer equipment and the storage medium of test data
CN109828902A (en) * 2018-12-15 2019-05-31 中国平安人寿保险股份有限公司 Interface parameters determines method, apparatus, electronic equipment and storage medium
CN109828902B (en) * 2018-12-15 2023-05-26 中国平安人寿保险股份有限公司 Interface parameter determining method and device, electronic equipment and storage medium
CN109639494A (en) * 2018-12-20 2019-04-16 瑞庭网络技术(上海)有限公司 Statistical method, device, server and the storage medium of interface message
CN109800156A (en) * 2018-12-20 2019-05-24 交控科技股份有限公司 A kind of subway signal system automation test method based on profile command
CN109800156B (en) * 2018-12-20 2022-05-06 交控科技股份有限公司 Subway signal system automatic test method based on configuration file command
CN109639494B (en) * 2018-12-20 2022-03-29 瑞庭网络技术(上海)有限公司 Statistical method, device, server and storage medium of interface information
CN111352825B (en) * 2018-12-21 2023-06-02 北京金山云网络技术有限公司 Data interface testing method and device and server
CN111352825A (en) * 2018-12-21 2020-06-30 北京金山云网络技术有限公司 Data interface test method and device and server
CN109656831A (en) * 2018-12-26 2019-04-19 北京物芯科技有限责任公司 Test packet centralization generation method, device, equipment and storage medium
CN109857646A (en) * 2019-01-08 2019-06-07 广州云测信息技术有限公司 A kind of automated testing method and device
CN110096434A (en) * 2019-03-28 2019-08-06 咪咕文化科技有限公司 A kind of interface test method and device
CN110083537A (en) * 2019-04-26 2019-08-02 田金月 The method and system of cell phone application port test
CN110096445A (en) * 2019-05-06 2019-08-06 北京长城华冠汽车科技股份有限公司 A kind of model is in ring test method and device
CN112131091B (en) * 2019-06-24 2024-04-16 百度在线网络技术(北京)有限公司 Test method and device and electronic equipment
CN112131091A (en) * 2019-06-24 2020-12-25 百度在线网络技术(北京)有限公司 Test method and device and electronic equipment
CN110806979A (en) * 2019-10-31 2020-02-18 北京东软望海科技有限公司 Interface return value checking method, device, equipment and storage medium
CN110806979B (en) * 2019-10-31 2023-04-07 望海康信(北京)科技股份公司 Interface return value checking method, device, equipment and storage medium
CN110851361A (en) * 2019-11-08 2020-02-28 拉扎斯网络科技(上海)有限公司 Interface testing method and device, electronic equipment and readable storage medium
CN111045928B (en) * 2019-11-14 2024-03-26 用友网络科技股份有限公司 Interface data testing method, device, terminal and storage medium
CN111045928A (en) * 2019-11-14 2020-04-21 用友网络科技股份有限公司 Interface data testing method, device, terminal and storage medium
CN111143192A (en) * 2019-11-28 2020-05-12 叮当快药科技集团有限公司 Interface automation test method and device and related product
CN111061645A (en) * 2019-12-26 2020-04-24 中科曙光国际信息产业有限公司 Automatic interface testing method and device for application program interface
CN111159049B (en) * 2019-12-31 2023-11-17 中国银行股份有限公司 Automatic interface testing method and system
CN111159049A (en) * 2019-12-31 2020-05-15 中国银行股份有限公司 Automatic interface testing method and system
CN111488274B (en) * 2020-03-27 2023-10-24 杭州海兴电力科技股份有限公司 Test case construction method, test equipment and storage medium
CN111488274A (en) * 2020-03-27 2020-08-04 杭州海兴电力科技股份有限公司 Test case construction method, test equipment and storage medium
CN111475358A (en) * 2020-03-31 2020-07-31 北京经纬恒润科技有限公司 Automatic testing method and device for controller interface
CN111625460A (en) * 2020-05-27 2020-09-04 携程旅游网络技术(上海)有限公司 Method, system, electronic device and storage medium for automatically testing interface
CN111767208A (en) * 2020-06-02 2020-10-13 北京金堤科技有限公司 Automatic test method and device
CN111767208B (en) * 2020-06-02 2023-09-19 北京金堤科技有限公司 Automatic test method and device
CN113806211A (en) * 2020-06-17 2021-12-17 北京同邦卓益科技有限公司 Data processing method and device for interface test
CN111752834A (en) * 2020-06-24 2020-10-09 京东数字科技控股有限公司 Automatic testing method and device
CN111767218A (en) * 2020-06-24 2020-10-13 北京思特奇信息技术股份有限公司 Automatic testing method, equipment and storage medium for continuous integration
CN111767218B (en) * 2020-06-24 2023-11-10 北京思特奇信息技术股份有限公司 Automatic test method, equipment and storage medium for continuous integration
CN111796578A (en) * 2020-06-29 2020-10-20 中国第一汽车股份有限公司 Vehicle controller testing method, device and system and storage medium
CN112181813A (en) * 2020-09-17 2021-01-05 的卢技术有限公司 Interface automation test method, system and computer readable storage medium
CN112162923A (en) * 2020-09-25 2021-01-01 中诚信征信有限公司 Interface testing method and device
CN112965908B (en) * 2021-03-19 2024-01-16 深圳市优必选科技股份有限公司 Communication test method, device, communication equipment and storage medium
CN112965908A (en) * 2021-03-19 2021-06-15 深圳市优必选科技股份有限公司 Communication test method, communication test device, communication equipment and storage medium
CN113064828A (en) * 2021-04-13 2021-07-02 广州骏伯网络科技有限公司 Automatic testing method and device, computer equipment and storage medium
CN113190445A (en) * 2021-04-29 2021-07-30 中国邮政储蓄银行股份有限公司 Interface test method, interface test device and interface test system
CN113641585B (en) * 2021-08-20 2023-04-07 成方金融科技有限公司 Test data generation method, device, equipment and storage medium
CN113641585A (en) * 2021-08-20 2021-11-12 成方金融科技有限公司 Test data generation method, device, equipment and storage medium
WO2023093198A1 (en) * 2021-11-29 2023-06-01 上海同星智能科技有限公司 Test method, system and device based on excel file loading
CN115391231B (en) * 2022-10-26 2023-02-07 江苏北弓智能科技有限公司 Automatic interface testing method
CN115391231A (en) * 2022-10-26 2022-11-25 江苏北弓智能科技有限公司 Automatic interface testing method
CN115982055B (en) * 2023-02-27 2023-06-23 云筑信息科技(成都)有限公司 Test method special for java language development program
CN115982055A (en) * 2023-02-27 2023-04-18 云筑信息科技(成都)有限公司 Test method special for java language development program

Also Published As

Publication number Publication date
CN107729243B (en) 2020-06-16

Similar Documents

Publication Publication Date Title
CN107729243A (en) API automated testing method, system, equipment and storage medium
CN104346153B (en) Method and system for the text message of translation application
CN103838672B (en) The automated testing method of a kind of all-purpose financial statements and device
Jorgensen Software testing: a craftsman's approach
Mizumoto Calculating the relative importance of multiple regression predictor variables using dominance analysis and random forests
CN110191019A (en) Test method, device, computer equipment and the storage medium of vehicle CAN bus
Dori et al. OPCloud: an OPM integrated conceptual‐executable modeling environment for industry 4.0
Scheller et al. Increasing the reliability of ecological models using modern software engineering techniques
CN101894058B (en) Method and device for analyzing test coverage automatically aiming at automatic test system
US20160306736A1 (en) Translation verification testing
US11473996B2 (en) Remote pneumatic testing system
CN103942349A (en) DSM-based satellite coupling design flow structured analysis and retrieval method
CN106326088A (en) Test object constructing method and device, and service configuration testing device
CN109656815A (en) There are test statement write method, device, medium and the electronic equipment of configuration file
CN107391682A (en) Knowledge verification method, knowledge verification equipment and storage medium
CN106874202A (en) Method, device and readable storage medium storing program for executing for unit testing
Miranda et al. Domain‐specific language for automatic generation of UML models
Scully-Allison et al. Near real-time autonomous quality control for streaming environmental sensor data
CN111507075B (en) Method and device for converting data format
Jay et al. The challenges of theory-software translation
Borjigin et al. Semiautomated development of textual requirements: Combined NLP and multidomain semantic modeling approach
Escamilla‐Rivera Precision cosmology in modified and extended theories of gravity: an insightful test
KR20230040477A (en) Apparatus, system and method for providing interface to guide consulting
Anandaraj et al. Development of ontology-based intelligent system for software testing
Lee et al. An intelligent agent system for managing heterogeneous sensors in dispersed and disparate wireless sensor network

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