CN106991040A - Data-interface method of testing and device - Google Patents
Data-interface method of testing and device Download PDFInfo
- Publication number
- CN106991040A CN106991040A CN201610581627.XA CN201610581627A CN106991040A CN 106991040 A CN106991040 A CN 106991040A CN 201610581627 A CN201610581627 A CN 201610581627A CN 106991040 A CN106991040 A CN 106991040A
- Authority
- CN
- China
- Prior art keywords
- test
- case
- interface testing
- interface
- execution machine
- 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
Links
- 238000010998 test method Methods 0.000 title claims abstract description 13
- 238000012360 testing method Methods 0.000 claims abstract description 702
- 238000000034 method Methods 0.000 claims abstract description 12
- 230000000454 anti-cipatory effect Effects 0.000 claims description 15
- 235000013399 edible fruits Nutrition 0.000 claims description 4
- 238000001514 detection method Methods 0.000 claims description 3
- 239000000284 extract Substances 0.000 description 3
- 230000005540 biological transmission Effects 0.000 description 2
- 238000005259 measurement Methods 0.000 description 2
- 230000000052 comparative effect Effects 0.000 description 1
- 238000000605 extraction Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000004321 preservation Methods 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 239000002699 waste material Substances 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3672—Test management
- G06F11/3684—Test management for test design, e.g. generating new test cases
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3672—Test management
- G06F11/3688—Test management for test execution, e.g. scheduling of test suites
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Debugging And Monitoring (AREA)
Abstract
The present invention relates to a kind of data-interface method of testing and device, methods described includes:Obtain the test case selection instruction that terminal is inputted in interface testing webpage;Instruction is chosen according to test case interface testing use-case is chosen in test case set;The interface testing use-case of selection is sent to test execution machine;Receive the test result generated after the interface testing use-case that the operation of test execution machine is chosen and storage;Test result is back to terminal.Data-interface method of testing and device that the present invention is provided, without writing interface testing use-case again, also without reconfiguring test execution machine, directly the interface testing use-case of selection is sent to the test execution machine configured, test execution machine is set to be tested using the interface testing use-case of selection data-interface, the time for writing interface testing use-case and configuration testing execution machine again is saved, the testing efficiency of data-interface is improved.
Description
Technical field
The present invention relates to technical field of measurement and test, more particularly to a kind of data-interface method of testing and device.
Background technology
At present in data-interface technical field of measurement and test, the scheme for writing interface testing use-case is very more, for same
When interface is tested, the interface testing use-case that different testers writes may be different from.When a data-interface is needed
When repeatedly being tested, good management is not carried out to the interface testing use-case write, causes to test needs again every time
Interface testing use-case is write, has not been able to make full use of the interface testing use-case write before.
However, when repeatedly testing same data-interface, may need to write the data-interface again during test every time
Interface testing use-case, cause the interface testing use-case write before not to be fully utilized, cause the waste of resource, at the same
, it is necessary to take a substantial amount of time when writing the interface testing use-case of the data-interface again, the survey of data-interface is seriously reduced
Try efficiency.
The content of the invention
Based on this, it is necessary to for data-interface testing efficiency it is low the problem of there is provided a kind of data-interface test side
Method.
A kind of data-interface method of testing, methods described includes:
Obtain the test case selection instruction that terminal is inputted in interface testing webpage;
Instruction is chosen according to the test case interface testing use-case is chosen in test case set;
The interface testing use-case of selection is sent to test execution machine;
Receive the test execution machine and run the test result generated after the interface testing use-case of the selection and storage;
The test result is back to the terminal.
In one of the embodiments, it is described to obtain the test case selection instruction that terminal is inputted in interface testing webpage
Before, including:
Collect the interface testing use-case that each terminal is write in the interface testing webpage;
By the interface testing use case storage being collected into test case set.
In one of the embodiments, described chosen according to test case selection instruction in test case set connects
After mouth test case, in addition to:
Detect whether in the presence of the test result corresponding to the interface testing use-case chosen;
If detecting, the corresponding test result of interface testing use-case of the selection is deleted;
If being not detected by, perform described the step of the interface testing use-case of selection is sent to test execution machine.
In one of the embodiments, it is described to send the interface testing use-case of selection to test execution machine, including:
The resources occupation rate of each test execution machine is obtained according to the interface testing use-case of selection;
Search the minimum test execution machine of the resources occupation rate;
The interface testing use-case of the selection is transmitted to the test execution machine found.
In one of the embodiments, it is described to receive after the interface testing use-case that the test execution machine runs the selection
The test result of generation and storage, including:
The test data acquisition request that the test execution machine is generated according to interface identifier is received, the interface identifier is institute
State what test execution machine was extracted from the interface testing use-case of the selection;
Request is obtained to test execution machine return test data according to the test data;
Receive anticipatory data generation of the test execution machine in the test data and the interface testing use-case
Test result.
Above-mentioned data-interface method of testing, in interface testing webpage, terminal can be chosen with input test use-case and be instructed,
The test case for getting terminal input chooses instruction, chooses instruction according to test case and chooses interface in test case set
Test case, without writing interface testing use-case again.The interface testing use-case of selection is sent to the test execution configured
Machine, without test execution machine is reconfigured, obtains the test result after the interface testing use-case that the operation of test execution machine is chosen
And store, test result is back to terminal.During testing data-interface, without writing interface testing again
Use-case, using terminal, input test use-case chooses instruction directly in interface testing webpage, you can selected in test case set
Take the interface testing use-case editted, it is not required that reconfigure test execution machine, directly use the interface testing of selection
Example is sent to the test execution machine configured, test execution machine is surveyed using the interface testing use-case of selection to data-interface
Examination, saves the time for writing interface testing use-case and configuration testing execution machine again, improves the testing efficiency of data-interface.
A kind of data-interface test device, described device includes:
Instruction acquisition module is chosen, instruction is chosen for obtaining the test case that terminal is inputted in interface testing webpage;
Test case chooses module, and interface is chosen in test case set for choosing instruction according to the test case
Test case;
Test case sending module, for the interface testing use-case of selection to be sent to test execution machine;
Test result memory module, runs raw after the interface testing use-case of the selection for receiving the test execution machine
Into test result and storage;
Test result sending module, for the test result to be back into the terminal.
In one of the embodiments, described device also includes:
Test case collection module, is used for collecting the interface testing that each terminal is write in the interface testing webpage
Example;
Test case memory module, for the interface testing use case storage that will be collected into test case set.
In one of the embodiments, described device also includes:
Test result detection module, for detecting whether there is the test result corresponding to the interface testing use-case chosen;
Test result removing module, for detecting the presence of the test result corresponding to the interface testing use-case of selection
When, delete the corresponding test result of interface testing use-case of the selection;
The test case sending module is additionally operable to detecting in the absence of the survey corresponding to the interface testing use-case chosen
During test result, the interface testing use-case of selection is sent to test execution machine.
In one of the embodiments, the test case sending module includes:
Occupancy acquisition module, the resource occupation for obtaining each test execution machine according to the interface testing use-case of selection
Rate;
Execution machine searching modul, the test execution machine minimum for searching the resources occupation rate;
Test case transport module, for the interface testing use-case of the selection to be transmitted to the test execution found
Machine.
In one of the embodiments, the test result memory module includes:
Request receiving module is obtained, is obtained for receiving the test data that the test execution machine is generated according to interface identifier
Request, the interface identifier is what the test execution machine was extracted from the interface testing use-case of the selection;
Test data returns to module, is tested for obtaining request according to the test data to test execution machine return
Data;
Test result receiving module, for receiving the test execution machine according to the test data and the interface testing
The test result of anticipatory data generation in use-case.
Above-mentioned data-interface test device, in interface testing webpage, terminal can be chosen with input test use-case and be instructed,
The test case for getting terminal input chooses instruction, chooses instruction according to test case and chooses interface in test case set
Test case, without writing interface testing use-case again.The interface testing use-case of selection is sent to the test execution configured
Machine, without test execution machine is reconfigured, obtains the test result after the interface testing use-case that the operation of test execution machine is chosen
And store, test result is back to terminal.During testing data-interface, without writing interface testing again
Use-case, using terminal, input test use-case chooses instruction directly in interface testing webpage, you can selected in test case set
Take the interface testing use-case editted, it is not required that reconfigure test execution machine, directly use the interface testing of selection
Example is sent to the test execution machine configured, test execution machine is surveyed using the interface testing use-case of selection to data-interface
Examination, saves the time for writing interface testing use-case and configuration testing execution machine again, improves the testing efficiency of data-interface.
Brief description of the drawings
Fig. 1 is the applied environment figure of data-interface test system in one embodiment;
Fig. 2 is the schematic flow sheet of data-interface method of testing in one embodiment;
The schematic flow sheet of Fig. 3 is collects interface testing use-case in one embodiment the step of;
Fig. 4 is the schematic flow sheet of data-interface method of testing in another embodiment;
The schematic flow sheet of Fig. 5 is searches test execution machine in one embodiment the step of;
The schematic flow sheet of Fig. 6 is generates test result in one embodiment the step of;
Fig. 7 is the structured flowchart of data-interface test device in one embodiment;
Fig. 8 is the structured flowchart of data-interface test device in another embodiment;
Fig. 9 is the structured flowchart of data-interface test device in further embodiment;
Figure 10 is the structured flowchart of test case sending module in one embodiment;
Figure 11 is the structured flowchart of test result memory module in one embodiment.
Embodiment
In order to make the purpose , technical scheme and advantage of the present invention be clearer, it is right below in conjunction with drawings and Examples
The present invention is further elaborated.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, and
It is not used in the restriction present invention.
Fig. 1 is the applied environment figure of data-interface test system in one embodiment.Data-interface test system is included eventually
End 110, server 120 and test execution machine 130.Wherein terminal 110 and test execution machine 130 passes through network and server 120
It is connected.Wherein terminal 110, server 120 and test execution machine 130 can be one or more.
As shown in Fig. 2 in one embodiment there is provided a kind of data-interface method of testing, the present embodiment in this way should
Come for the server 120 in Fig. 1 data-interface test systems for example, operation has data-interface survey on the server 120
Examination program, implements data-interface method of testing by data-interface test program.This method specifically includes following steps:
Step 202, the test case selection instruction that terminal is inputted in interface testing webpage is obtained.
Specifically, the acquisition that terminal 110 tests webpage to the transmission interface of server 120 is asked, and server 120 is received
After the acquisition request of mouth test webpage, the data of interface testing webpage are back to terminal 110 by server 120.The basis of terminal 110
The data display interface testing webpage for the interface testing webpage that server 120 is returned, passes through the interface testing net shown in terminal
Page can be controlled to data interface test system.Tester's input test in the interface testing webpage that terminal is shown is used
Example chooses instruction, and terminal 110 sends the selection instruction of test case to server 120.Test case is chosen can be with instruction
Including test case mark, test case is identified for unique mark test case, can is specifically the title of test case, be compiled
At least one of code, keyword and data interface identifier.Test case (Test Case) is referred to as test cases, is
The document of one group of test input, execution condition and the expected results worked out for test target, to test the test target
Data-interface or checking data interface whether meet some particular demands.
Step 204, instruction is chosen according to test case and interface testing use-case is chosen in test case set.
Specifically, server 120 is being got after the test case that terminal inputs in interface testing webpage chooses instruction,
The test case mark in test case selection instruction is extracted, chooses and surveys in test case set according to test case mark
The test case of example mark matching on probation.Wherein test case choose instruction in test case mark can be specifically one or
It is multiple.
Step 206, the interface testing use-case of selection is sent to test execution machine.
Specifically, server 120 is chosen after interface testing use-case from test case set, searches test execution machine 130,
Interface testing use-case is sent to the test execution machine 130 found.
In one embodiment, server 120 extracts the label of test execution machine, root from the interface testing use-case of selection
According to the corresponding test execution machine 130 of the label lookup extracted.
Step 208, the test result generated after the interface testing use-case that the operation of test execution machine is chosen and storage are received.
Specifically, server 120 sends test case to test execution machine 130, and test execution machine 130 is used from test
Interface message is extracted in example, test data request is generated according to interface message, test execution machine 130 asks test data to send
To server 120.Server 120 receive test data request after, extract test request data in interface message, search with
The corresponding test data of interface message extracted, test execution machine 130 is back to by the test data found.Test execution
The test data that machine 130 is returned according to interface testing case to server 120 carries out Self -adaptive test result, test execution machine
Test result hair is back to server 120 by 130, and server 120 is stored test result is corresponding with interface testing use-case.Specifically
It can be test result storage corresponding with the mark of interface testing use-case.
Step 210, test result is back to terminal.
Specifically, server 130 is after the test result storage for returning to test execution machine, and server is by test result
It is sent in terminal 110, terminal 110 includes test result in the interface testing page.
In the present embodiment, in interface testing webpage, terminal can be chosen with input test use-case and be instructed, and get terminal
The test case of input chooses instruction, chooses instruction according to test case and interface testing use-case is chosen in test case set,
Without writing interface testing use-case again.The interface testing use-case of selection is sent to the test execution machine configured, without
Test execution machine is reconfigured, the test result after the interface testing use-case that the operation of test execution machine is chosen and storage is obtained, will
Test result is back to terminal.During testing data-interface, without writing interface testing use-case again, utilize
Input test use-case chooses instruction to terminal directly in interface testing webpage, you can choose compiled in test case set
Good interface testing use-case, it is not required that reconfigure test execution machine, directly sends the interface testing use-case of selection to matching somebody with somebody
The test execution machine put, is made test execution machine be tested using the interface testing use-case of selection data-interface, saved
Again write interface testing use-case and configuration testing performs the time of machine, improve the testing efficiency of data-interface.
As shown in figure 3, in one embodiment, the step of also including collecting interface testing use-case before step 202, the step
Suddenly herein below is specifically included:
Step 302, the interface testing use-case that each terminal is write in interface testing webpage is collected.
Specifically, tester can write interface testing use-case in the interface testing webpage that terminal 110 is shown, connect
After the completion of mouth test case is write, triggering preserves instruction, and terminal will write the interface testing use-case of completion in interface testing webpage
Send to server 120.Wherein, the corresponding terminal 110 of different testers is different, and server 120 can collect different ends
The distinct interface test cases that end 110 is sent.
In one embodiment, the interface testing webpage that tester is shown by terminal 110 can upload local preservation
Interface testing case.
Step 304, by the interface testing use case storage being collected into test case set.
Specifically, the interface testing use case storage that server 120 sends each terminal 110 being collected into is to test use cases
In conjunction, and the mark of interface testing use-case is extracted, the mark of interface testing use-case is sent to each terminal 110, according to terminal 110
The mark of interface testing use-case is included in interface testing webpage.
In the present embodiment, the interface testing use-case that each terminal is write in interface testing webpage is collected, by connecing for being collected into
Mouth test case storage can carry out unified pipe into test case set to the interface testing case in test case set
Reason, and the interface testing case stored in test case set can repeatedly be utilized, improve interface testing case
Utilization rate.
As shown in figure 4, in one embodiment there is provided a data interface test method, this method specifically includes following
Step:
Step 402, the test case selection instruction that terminal is inputted in interface testing webpage is obtained.
Step 404, instruction is chosen according to test case and interface testing use-case is chosen in test case set.
Step 406, detect whether in the presence of the test result corresponding to the interface testing use-case chosen;If detecting, hold
Row step 408;If being not detected by, step 410 is performed.
Specifically, server 120 obtains the mark of interface testing use-case, in database after interface testing use-case is chosen
In detect whether exist test result corresponding with the mark of interface testing use-case.
Step 408, the corresponding test result of interface testing use-case chosen is deleted.
Specifically, server 120 is detecting the presence of test result corresponding with interface testing use-case, then by test result
Delete, and continue executing with step 410.
Step 410, the interface testing use-case of selection is sent to test execution machine.
Step 412, the test result generated after the interface testing use-case that the operation of test execution machine is chosen and storage are received.
Step 414, test result is back to terminal.
In the present embodiment, after interface testing use-case is chosen, can detect the interface testing use-case of selection with the presence or absence of pair
The test result answered, when the interface testing use-case for detecting selection has corresponding test result, by the test knot detected
Fruit is deleted, it is to avoid when reusing interface testing use-case and being tested, it is to avoid the test result existed is correspondingly tested again
The test result of generation is impacted, and improves the accuracy of test.
As shown in figure 5, in one embodiment, the step of step 206 also includes searching test execution machine, the step is specific
Including following content:
Step 502, the resources occupation rate of each test execution machine is obtained according to the interface testing use-case of selection.
Specifically, server 120 obtains the resources occupation rate of each test execution machine, resource in the interface testing use-case of selection
During occupancy can be specifically the memory usage of test execution machine 130, the occupancy of central processing unit and thread occupancy
It is at least one.
In one embodiment, server 120 extracts the label of test execution machine in the interface testing use-case of selection, surveys
The label many test execution machines of correspondence of execution machine are tried, server 120 obtains the resources occupation rate of every test execution machine 130.
Step 504, the minimum test execution machine of resources occupation rate is searched.
Specifically, server 120 is when getting the resources occupation rate of every test execution machine, relatively every test execution
The resources occupation rate of machine 130, chooses the minimum test execution machine 130 of resources occupation rate.
Step 506, the interface testing use-case of selection is transmitted to the test execution machine found.
Specifically, server 130 transmits the interface testing use-case of selection to the minimum test execution machine of resources occupation rate
130, the test execution machine 130 is tested according to the interface testing use-case received.
In the present embodiment, search the minimum test execution machine of resources occupation rate, by the interface testing use-case of selection transmit to
The test execution machine found, makes the minimum test execution machine of resources occupation rate be carried out according to interface testing use-case to data-interface
Test.So, it is to avoid cause to perform the situation that interface testing use-case is waited because test execution machine is busy, save execution and connect
Mouth test case waits the spent time, accelerates the test speed of data-interface.
As shown in fig. 6, in one embodiment, the step of step 208 specifically also includes generation test result, step tool
Body includes herein below:
Step 602, the test data acquisition request that test execution machine is generated according to interface identifier is received, interface identifier is survey
Examination execution machine is extracted from the interface testing use-case of selection.
Specifically, the interface testing use-case of the transmission of server 120, test execution machine 130 are received in test execution machine 130
The interface testing use-case received is parsed, the interface identifier for wanting test interface is extracted from interface testing use-case, is connect
Mouth is designated the unique mark of interface, and interface identifier can be specifically the path of access interface.Test execution machine 130 is being extracted
After interface identifier, test data is generated according to interface identifier and obtains request, test data, which obtains request, to be used for from interface identifier pair
The interface answered obtains test data.Test data is obtained request and sent to server 120 by test execution machine 130.
Step 604, request is obtained to test execution machine return test data according to test data.
Specifically, server 120 obtains request to test data and solved after test data acquisition request is received
Analysis, obtains from test data and interface identifier is extracted in request, searches the corresponding interface of interface identifier, is obtained from the interface found
The test data of acquisition is returned to test execution machine 130 by correspondingly test data, server 120.
Step 606, the survey of anticipatory data generation of the test execution machine in test data and interface testing use-case is received
Test result.
Specifically, test execution machine 130 is after the test data of the return of server 120 is received, from interface testing use-case
Middle extraction anticipatory data, test data is compared with anticipatory data, and test result, test execution are generated according to comparative result
The test result of generation is back to server 120 by machine 130.
In one embodiment, test execution machine 130 can obtain anticipatory data and test data from server 120, will
Test data and anticipatory data are compared generation test result;Or, test execution machine 130 carries out computing to test data and obtained
To operation result, operation result and anticipatory data are compared generation test result.Test result can be specifically test report
Accuse, test report is included in the test errors that testing time, the interface identifier of test interface and test data are present at least
It is a kind of.
In the present embodiment, after the test data acquisition request that test execution machine is generated according to interface identifier is received, root
Request is obtained to test execution return test data according to test data, and test execution machine is according to test data and interface testing use-case
In anticipatory data generation test result, by the comparison of anticipatory data and test data, accurately can determine in test process
The mistake that interface is present, and improve the accuracy of test result.
As shown in fig. 7, in one embodiment there is provided a kind of data-interface test device 700, the device is specifically included:
Choose instruction acquisition module 702, test case and choose module 704, test case sending module 706, test result memory module
708 and test result sending module 710.
Instruction acquisition module 702 is chosen, is referred to for obtaining the test case that terminal is inputted in interface testing webpage and choosing
Order.
Test case chooses module 704, and interface is chosen in test case set for choosing instruction according to test case
Test case.
Test case sending module 706, for the interface testing use-case of selection to be sent to test execution machine.
Test result memory module 708, for receiving what is generated after the interface testing use-case that the operation of test execution machine is chosen
Test result is simultaneously stored.
Test result sending module 710, for test result to be back into terminal.
In the present embodiment, in interface testing webpage, terminal can be chosen with input test use-case and be instructed, and get terminal
The test case of input chooses instruction, chooses instruction according to test case and interface testing use-case is chosen in test case set,
Without writing interface testing use-case again.The interface testing use-case of selection is sent to the test execution machine configured, without
Test execution machine is reconfigured, the test result after the interface testing use-case that the operation of test execution machine is chosen and storage is obtained, will
Test result is back to terminal.During testing data-interface, without writing interface testing use-case again, utilize
Input test use-case chooses instruction to terminal directly in interface testing webpage, you can choose compiled in test case set
Good interface testing use-case, it is not required that reconfigure test execution machine, directly sends the interface testing use-case of selection to matching somebody with somebody
The test execution machine put, is made test execution machine be tested using the interface testing use-case of selection data-interface, saved
Again write interface testing use-case and configuration testing performs the time of machine, improve the testing efficiency of data-interface.
As shown in figure 8, in one embodiment, the data-interface test device 700 specifically also includes:Test case is collected
Module 712 and test case memory module 714.
Test case collection module 712, for collecting the interface testing use-case that each terminal is write in interface testing webpage.
Test case memory module 714, for the interface testing use case storage that will be collected into test case set.
In the present embodiment, the interface testing use-case that each terminal is write in interface testing webpage is collected, by connecing for being collected into
Mouth test case storage can carry out unified pipe into test case set to the interface testing case in test case set
Reason, and the interface testing case stored in test case set can repeatedly be utilized, improve interface testing case
Utilization rate.
As shown in figure 9, in one embodiment, the data-interface test device 700 specifically also includes:Test result is detected
Module 716 and test result removing module 718.
Test result detection module 716, for detecting whether there is the test knot corresponding to the interface testing use-case chosen
Really.
Test result removing module 718, for detecting the presence of the test knot corresponding to the interface testing use-case of selection
During fruit, the corresponding test result of interface testing use-case chosen is deleted.
Test case sending module 706 is additionally operable to detecting in the absence of the test corresponding to the interface testing use-case chosen
When as a result, the interface testing use-case of selection is sent to test execution machine.
In the present embodiment, after interface testing use-case is chosen, can detect the interface testing use-case of selection with the presence or absence of pair
The test result answered, when the interface testing use-case for detecting selection has corresponding test result, by the test knot detected
Fruit is deleted, it is to avoid when reusing interface testing use-case and being tested, it is to avoid the test result existed is correspondingly tested again
The test result of generation is impacted, and improves the accuracy of test.
As shown in Figure 10, in one embodiment, test case sending module 706 is specifically included:
Occupancy acquisition module 706a, the resource for obtaining each test execution machine according to the interface testing use-case of selection is accounted for
With rate.
Execution machine searching modul 706b, the test execution machine minimum for searching resources occupation rate.
Test case transport module 706c, for the interface testing use-case of selection to be transmitted to the test execution found
Machine.
In the present embodiment, search the minimum test execution machine of resources occupation rate, by the interface testing use-case of selection transmit to
The test execution machine found, makes the minimum test execution machine of resources occupation rate be carried out according to interface testing use-case to data-interface
Test.So, it is to avoid cause to perform the situation that interface testing use-case is waited because test execution machine is busy, save execution and connect
Mouth test case waits the spent time, accelerates the test speed of data-interface.
As shown in figure 11, in one embodiment, test result memory module 708 is specifically included:
Request receiving module 708a is obtained, is obtained for receiving the test data that test execution machine is generated according to interface identifier
Request, interface identifier is what test execution machine was extracted from the interface testing use-case of selection.
Test data returns to module 708b, for obtaining request to test execution machine return test number according to test data
According to.
Test result receiving module 708c, for receiving test execution machine according in test data and interface testing use-case
The test result of anticipatory data generation.
In the present embodiment, after the test data acquisition request that test execution machine is generated according to interface identifier is received, root
Request is obtained to test execution return test data according to test data, and test execution machine is according to test data and interface testing use-case
In anticipatory data generation test result, by the comparison of anticipatory data and test data, accurately can determine in test process
The mistake that interface is present, and improve the accuracy of test result.
Each technical characteristic of embodiment described above can be combined arbitrarily, to make description succinct, not to above-mentioned reality
Apply all possible combination of each technical characteristic in example to be all described, as long as however, the combination of these technical characteristics is not deposited
In contradiction, the scope of this specification record is all considered to be.
Embodiment described above only expresses the several embodiments of the present invention, and it describes more specific and detailed, but simultaneously
Can not therefore it be construed as limiting the scope of the patent.It should be pointed out that coming for one of ordinary skill in the art
Say, without departing from the inventive concept of the premise, various modifications and improvements can be made, these belong to the protection of the present invention
Scope.Therefore, the protection domain of patent of the present invention should be determined by the appended claims.
Claims (10)
1. a kind of data-interface method of testing, methods described includes:
Obtain the test case selection instruction that terminal is inputted in interface testing webpage;
Instruction is chosen according to the test case interface testing use-case is chosen in test case set;
The interface testing use-case of selection is sent to test execution machine;
Receive the test execution machine and run the test result generated after the interface testing use-case of the selection and storage;
The test result is back to the terminal.
2. according to the method described in claim 1, it is characterised in that described to obtain the survey that terminal is inputted in interface testing webpage
Example on probation is chosen before instruction, including:
Collect the interface testing use-case that each terminal is write in the interface testing webpage;
By the interface testing use case storage being collected into test case set.
3. according to the method described in claim 1, it is characterised in that described that instruction is chosen in test use according to the test case
In example set after selection interface testing use-case, in addition to:
Detect whether in the presence of the test result corresponding to the interface testing use-case chosen;
If detecting, the corresponding test result of interface testing use-case of the selection is deleted;
If being not detected by, perform described the step of the interface testing use-case of selection is sent to test execution machine.
4. according to the method described in claim 1, it is characterised in that described send the interface testing use-case of selection to test is held
Row machine, including:
The resources occupation rate of each test execution machine is obtained according to the interface testing use-case of selection;
Search the minimum test execution machine of the resources occupation rate;
The interface testing use-case of the selection is transmitted to the test execution machine found.
5. according to the method described in claim 1, it is characterised in that the reception test execution machine runs the selection
The test result generated after interface testing use-case and storage, including:
The test data acquisition request that the test execution machine is generated according to interface identifier is received, the interface identifier is surveyed to be described
Examination execution machine is extracted from the interface testing use-case of the selection;
Request is obtained to test execution machine return test data according to the test data;
Receive the survey of anticipatory data generation of the test execution machine in the test data and the interface testing use-case
Test result.
6. a kind of data-interface test device, it is characterised in that described device includes:
Instruction acquisition module is chosen, instruction is chosen for obtaining the test case that terminal is inputted in interface testing webpage;
Test case chooses module, and interface testing is chosen in test case set for choosing instruction according to the test case
Use-case;
Test case sending module, for the interface testing use-case of selection to be sent to test execution machine;
Generated after test result memory module, the interface testing use-case that the selection is run for receiving the test execution machine
Test result is simultaneously stored;
Test result sending module, for the test result to be back into the terminal.
7. device according to claim 6, it is characterised in that described device also includes:
Test case collection module, for collecting the interface testing use-case that each terminal is write in the interface testing webpage;
Test case memory module, for the interface testing use case storage that will be collected into test case set.
8. device according to claim 6, it is characterised in that described device also includes:
Test result detection module, for detecting whether there is the test result corresponding to the interface testing use-case chosen;
Test result removing module, for when detecting the presence of the test result corresponding to the interface testing use-case of selection, deleting
Except the corresponding test result of interface testing use-case of the selection;
The test case sending module is additionally operable to detecting in the absence of the test knot corresponding to the interface testing use-case chosen
During fruit, the interface testing use-case of selection is sent to test execution machine.
9. device according to claim 6, it is characterised in that the test case sending module includes:
Occupancy acquisition module, the resources occupation rate for obtaining each test execution machine according to the interface testing use-case of selection;
Execution machine searching modul, the test execution machine minimum for searching the resources occupation rate;
Test case transport module, for the interface testing use-case of the selection to be transmitted to the test execution machine found.
10. device according to claim 6, it is characterised in that the test result memory module includes:
Request receiving module is obtained, please for receiving the test data acquisition that the test execution machine is generated according to interface identifier
Ask, the interface identifier is what the test execution machine was extracted from the interface testing use-case of the selection;
Test data returns to module, for obtaining request to test execution machine return test number according to the test data
According to;
Test result receiving module, for receiving the test execution machine according to the test data and the interface testing use-case
In anticipatory data generation test result.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610581627.XA CN106991040B (en) | 2016-07-20 | 2016-07-20 | Data interface testing method and device |
PCT/CN2017/078351 WO2018014580A1 (en) | 2016-07-20 | 2017-03-28 | Data interface test method and apparatus, and server and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610581627.XA CN106991040B (en) | 2016-07-20 | 2016-07-20 | Data interface testing method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106991040A true CN106991040A (en) | 2017-07-28 |
CN106991040B CN106991040B (en) | 2020-05-05 |
Family
ID=59413563
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610581627.XA Active CN106991040B (en) | 2016-07-20 | 2016-07-20 | Data interface testing method and device |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN106991040B (en) |
WO (1) | WO2018014580A1 (en) |
Cited By (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107766190A (en) * | 2017-10-31 | 2018-03-06 | 平安科技(深圳)有限公司 | Interface test method, device, computer equipment and storage medium |
CN107861870A (en) * | 2017-11-02 | 2018-03-30 | 平安科技(深圳)有限公司 | Interface testing and test data generating method, device, terminal and storage medium |
CN108268348A (en) * | 2017-12-08 | 2018-07-10 | 广州视源电子科技股份有限公司 | Interface test method, device, mobile terminal and storage medium |
CN108563569A (en) * | 2018-04-11 | 2018-09-21 | 中国电子科技集团公司第十四研究所 | A kind of warnlng surveillance system automation interface test method |
CN108959081A (en) * | 2018-06-27 | 2018-12-07 | 郑州云海信息技术有限公司 | One kind driving automated testing method based on text |
CN108984400A (en) * | 2018-07-03 | 2018-12-11 | 中国电子科技集团公司第十四研究所 | Automation interface test method based on warnlng surveillance system |
CN109120473A (en) * | 2018-07-27 | 2019-01-01 | 广州市百果园信息技术有限公司 | Interface requests framework implementation method, interface test method and its corresponding device |
CN109165165A (en) * | 2018-09-04 | 2019-01-08 | 中国平安人寿保险股份有限公司 | Interface test method, device, computer equipment and storage medium |
CN110362492A (en) * | 2019-07-18 | 2019-10-22 | 腾讯科技(深圳)有限公司 | Intelligent algorithm test method, device, server, terminal and storage medium |
WO2020062639A1 (en) * | 2018-09-27 | 2020-04-02 | 深圳壹账通智能科技有限公司 | Blockchain introduction testing method and apparatus, device, and computer-readable storage medium |
WO2020119434A1 (en) * | 2018-12-15 | 2020-06-18 | 深圳壹账通智能科技有限公司 | Method and apparatus for interface data processing, method and apparatus for automated testing, device, and medium |
CN114401040A (en) * | 2021-12-30 | 2022-04-26 | 中国电信股份有限公司 | Transmission channel test system and test method |
CN110362492B (en) * | 2019-07-18 | 2024-06-11 | 腾讯科技(深圳)有限公司 | Artificial intelligence algorithm testing method, device, server, terminal and storage medium |
Families Citing this family (23)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110597704B (en) * | 2018-06-13 | 2023-09-26 | 百度在线网络技术(北京)有限公司 | Pressure test method, device, server and medium for application program |
CN110737549A (en) * | 2018-07-20 | 2020-01-31 | 北京奇虎科技有限公司 | Application testing method, device, server and system |
CN109165127B (en) * | 2018-08-29 | 2022-09-02 | 北京奇艺世纪科技有限公司 | Problem interface positioning method and device and electronic equipment |
CN109446071A (en) * | 2018-09-26 | 2019-03-08 | 深圳壹账通智能科技有限公司 | Interface test method, interface test device, electronic equipment and storage medium |
CN109597753A (en) * | 2018-10-22 | 2019-04-09 | 平安科技(深圳)有限公司 | Method, apparatus, computer equipment and the storage medium of interface testing |
CN111352825B (en) * | 2018-12-21 | 2023-06-02 | 北京金山云网络技术有限公司 | Data interface testing method and device and server |
CN109710532A (en) * | 2018-12-28 | 2019-05-03 | 北京金山安全软件有限公司 | Test case management method and device and electronic equipment |
CN110134584A (en) * | 2019-04-12 | 2019-08-16 | 深圳壹账通智能科技有限公司 | A kind of generation method, device, storage medium and the server of interface testing use-case |
CN110083540B (en) * | 2019-04-29 | 2023-04-28 | 北京口袋时尚科技有限公司 | Interface testing method and device |
CN110413507B (en) * | 2019-06-21 | 2024-05-03 | 平安科技(深圳)有限公司 | System test method, device, computer equipment and storage medium |
CN110515834B (en) * | 2019-07-26 | 2023-11-10 | Oppo广东移动通信有限公司 | Interface testing method and device, mobile terminal and storage medium |
CN110633208A (en) * | 2019-08-22 | 2019-12-31 | 浙江大搜车软件技术有限公司 | Incremental code coverage rate testing method and system |
CN110647462A (en) * | 2019-08-29 | 2020-01-03 | 凡普数字技术有限公司 | Interface test method, device and storage medium |
CN110609791A (en) * | 2019-09-03 | 2019-12-24 | 深圳证券交易所 | Interface test method, interface test device and storage medium for bidding system |
CN110716876A (en) * | 2019-09-30 | 2020-01-21 | 国核自仪系统工程有限公司 | Test platform and test method for automatically verifying programmable logic code |
CN111181800B (en) * | 2019-11-27 | 2023-09-19 | 腾讯科技(深圳)有限公司 | Test data processing method and device, electronic equipment and storage medium |
CN112882922B (en) * | 2019-11-29 | 2023-11-17 | 深圳云天励飞技术有限公司 | Test method and related device |
CN113094251B (en) * | 2019-12-23 | 2024-02-23 | 深圳奇迹智慧网络有限公司 | Method and device for testing embedded system, computer equipment and storage medium |
CN111459794B (en) * | 2020-02-25 | 2024-03-15 | 西安广和通无线软件有限公司 | Communication network testing method, device, computer equipment and storage medium |
CN111427770B (en) * | 2020-02-29 | 2024-04-09 | 中国平安人寿保险股份有限公司 | Resource testing method and related equipment |
CN111427784B (en) * | 2020-03-24 | 2023-05-12 | 建信金融科技有限责任公司 | Data acquisition method, device, equipment and storage medium |
CN112596972B (en) * | 2020-12-23 | 2024-05-03 | 文思海辉智科科技有限公司 | Test method, device and system of vehicle-mounted equipment and computer equipment |
CN113220595B (en) * | 2021-06-11 | 2023-10-03 | 中国农业银行股份有限公司 | Test method and test equipment |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20110088014A1 (en) * | 2009-10-08 | 2011-04-14 | International Business Machines Corporation | Automated test execution plan generation |
CN103761189A (en) * | 2014-02-17 | 2014-04-30 | 广东欧珀移动通信有限公司 | Test case management method and system |
CN105260299A (en) * | 2015-09-17 | 2016-01-20 | 安一恒通(北京)科技有限公司 | Method, device, and system for software test |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101212357B (en) * | 2006-12-31 | 2010-09-15 | 亿阳信通股份有限公司 | Interface testing method and device |
CN102096631B (en) * | 2009-12-11 | 2013-09-25 | 华为技术有限公司 | Interface testing method and device |
CN103970614B (en) * | 2013-01-24 | 2018-07-06 | 腾讯科技(深圳)有限公司 | A kind of service test method and device |
CN104298604B (en) * | 2014-11-06 | 2017-06-20 | 哈尔滨工业大学 | Cloud service robustness testing system and method for testing |
-
2016
- 2016-07-20 CN CN201610581627.XA patent/CN106991040B/en active Active
-
2017
- 2017-03-28 WO PCT/CN2017/078351 patent/WO2018014580A1/en active Application Filing
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20110088014A1 (en) * | 2009-10-08 | 2011-04-14 | International Business Machines Corporation | Automated test execution plan generation |
CN103761189A (en) * | 2014-02-17 | 2014-04-30 | 广东欧珀移动通信有限公司 | Test case management method and system |
CN105260299A (en) * | 2015-09-17 | 2016-01-20 | 安一恒通(北京)科技有限公司 | Method, device, and system for software test |
Cited By (16)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107766190B (en) * | 2017-10-31 | 2020-06-12 | 平安科技(深圳)有限公司 | Interface testing method and device, computer equipment and storage medium |
CN107766190A (en) * | 2017-10-31 | 2018-03-06 | 平安科技(深圳)有限公司 | Interface test method, device, computer equipment and storage medium |
CN107861870A (en) * | 2017-11-02 | 2018-03-30 | 平安科技(深圳)有限公司 | Interface testing and test data generating method, device, terminal and storage medium |
CN108268348A (en) * | 2017-12-08 | 2018-07-10 | 广州视源电子科技股份有限公司 | Interface test method, device, mobile terminal and storage medium |
CN108563569A (en) * | 2018-04-11 | 2018-09-21 | 中国电子科技集团公司第十四研究所 | A kind of warnlng surveillance system automation interface test method |
CN108959081A (en) * | 2018-06-27 | 2018-12-07 | 郑州云海信息技术有限公司 | One kind driving automated testing method based on text |
CN108984400A (en) * | 2018-07-03 | 2018-12-11 | 中国电子科技集团公司第十四研究所 | Automation interface test method based on warnlng surveillance system |
CN108984400B (en) * | 2018-07-03 | 2021-05-14 | 中国电子科技集团公司第十四研究所 | Automatic interface testing method based on early warning detection system |
CN109120473B (en) * | 2018-07-27 | 2020-11-03 | 广州市百果园信息技术有限公司 | Interface request frame implementation method, interface test method and corresponding device |
CN109120473A (en) * | 2018-07-27 | 2019-01-01 | 广州市百果园信息技术有限公司 | Interface requests framework implementation method, interface test method and its corresponding device |
CN109165165A (en) * | 2018-09-04 | 2019-01-08 | 中国平安人寿保险股份有限公司 | Interface test method, device, computer equipment and storage medium |
WO2020062639A1 (en) * | 2018-09-27 | 2020-04-02 | 深圳壹账通智能科技有限公司 | Blockchain introduction testing method and apparatus, device, and computer-readable storage medium |
WO2020119434A1 (en) * | 2018-12-15 | 2020-06-18 | 深圳壹账通智能科技有限公司 | Method and apparatus for interface data processing, method and apparatus for automated testing, device, and medium |
CN110362492A (en) * | 2019-07-18 | 2019-10-22 | 腾讯科技(深圳)有限公司 | Intelligent algorithm test method, device, server, terminal and storage medium |
CN110362492B (en) * | 2019-07-18 | 2024-06-11 | 腾讯科技(深圳)有限公司 | Artificial intelligence algorithm testing method, device, server, terminal and storage medium |
CN114401040A (en) * | 2021-12-30 | 2022-04-26 | 中国电信股份有限公司 | Transmission channel test system and test method |
Also Published As
Publication number | Publication date |
---|---|
WO2018014580A1 (en) | 2018-01-25 |
CN106991040B (en) | 2020-05-05 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106991040A (en) | Data-interface method of testing and device | |
CN110399293B (en) | System test method, device, computer equipment and storage medium | |
CN103970614B (en) | A kind of service test method and device | |
CN105095059B (en) | A kind of method and apparatus of automatic test | |
CN107870849A (en) | The treating method and apparatus of test log | |
CN103678105A (en) | Page code testing method and device | |
CN109885496B (en) | Test log management method and system | |
CN106874187A (en) | code coverage collection method and device | |
CN106776337A (en) | Performance analysis method and device and electronic equipment | |
CN110297767B (en) | Automatic execution method, device, equipment and storage medium for test cases | |
CN105022694A (en) | Test case generation method and system for mobile terminal test | |
CN103473172A (en) | System and method for checking leak of background program memories and positioning leak memory points | |
CN116136950B (en) | Chip verification method, device, system, electronic equipment and storage medium | |
CN111124937B (en) | Method and system for assisting in improving test case generation efficiency based on instrumentation function | |
CN105094810B (en) | Data processing method and device based on CGI(Common gateway interface) plug-in unit | |
CN111258765A (en) | Load balancing method and device, computing equipment and storage medium | |
CN112069006B (en) | Method and device for detecting and analyzing GPU (graphics processing Unit) rate state and computer readable medium | |
CN102647686B (en) | For testing testing equipment and the message display method thereof of mobile communication terminal | |
CN114676061A (en) | Knowledge graph-based automatic firmware detection method | |
CN106874191A (en) | Intelligence database performs method and system | |
CN108416698A (en) | A method of promoting smart machine data collection rate | |
CN100561953C (en) | A kind of method of recording and diagnosing data | |
CN114218104A (en) | Mobile terminal testing method and device based on AT instruction and storage medium | |
CN105551527B (en) | Test circuit, test method and the device of CAM | |
CN106202300A (en) | Network information acquisition method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |