CN106021112A - Program testing system, method and device - Google Patents

Program testing system, method and device Download PDF

Info

Publication number
CN106021112A
CN106021112A CN201610375882.9A CN201610375882A CN106021112A CN 106021112 A CN106021112 A CN 106021112A CN 201610375882 A CN201610375882 A CN 201610375882A CN 106021112 A CN106021112 A CN 106021112A
Authority
CN
China
Prior art keywords
interface
request
terminal
program
data
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.)
Pending
Application number
CN201610375882.9A
Other languages
Chinese (zh)
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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201610375882.9A priority Critical patent/CN106021112A/en
Publication of CN106021112A publication Critical patent/CN106021112A/en
Pending legal-status Critical Current

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

Abstract

The invention relates to a program testing system, method and device and belongs to the field of software program testing. The system comprises a terminal and a server. A to-be-tested program runs in the terminal; when the to-be-tested program requests for result data corresponding to specific parameters, the terminal sends a data obtaining request containing the specific parameters to the server; the server inquires preset result data corresponding to the specific parameters and sends the result data back to the terminal; the terminal transmits the result data to the to-be-tested program. When the to-be-tested program is tested, the terminal only needs to interact with the server to obtain the preset result data and does not need to wait for development of other programs providing the result data, and accordingly developers can independently test each program and program testing efficiency is improved.

Description

PTS, method and device
Technical field
The present invention relates to software program field tests, particularly to a kind of PTS, method and device.
Background technology
Application developer is after exploitation completes an application program, it usually needs the merit to this application program Can test, to check whether this application program meets the demand of regulation.
Along with the development of computer networking technology, a lot of large softwares are generally arranged on identical by several Or the program composition on distinct device, and the one or more function that cooperated between these several programs. In order to shorten the construction cycle, in the development process of this large software, different programs can distribute to difference Development group carry out synchronous development, each program related to when a certain item function has all been developed, exploit person Each program that this function can be related to by member is tested, to verify whether this function meets design requirement.
During realizing the present invention, it is found by the applicant that prior art there are the following problems:
In large software, the development progress of each program is the most inconsistent, when the program that a function relates to When having developed, need to wait that other program that this function relates to all has been developed and just can test, Cause testing efficiency relatively low.
Summary of the invention
When a program development in order to solve to relate to when a function in prior art completes, need to wait and be somebody's turn to do Other program that function relates to all has developed the problem that just can carry out testing, and the embodiment of the present invention provides A kind of program debugging system to be tested, method and device, technical scheme is as follows:
First aspect, it is provided that a kind of PTS, described system includes: terminal and server, institute State terminal is run and need test program, described program to be tested for target program request data to realize Specifying function, described server is different from the equipment running described target program;
Described terminal, when the result data corresponding in described PROGRAMMED REQUESTS to be tested appointment parameter, to institute State server and send the data acquisition request comprising described appointment parameter;
Described server, is used for receiving described data acquisition request, that inquiry pre-sets and described appointment The result data that parameter is corresponding, and described result data is returned to described terminal;
Described terminal, for being transferred to described program to be tested, in order to described to be tested by described result data Program realizes described appointment function according to described result data.
Second aspect, it is provided that a kind of method of program test, in server, described method includes:
Receive run need test program terminal send data acquisition request, described program to be tested is used for To target program request data to realize specifying function, described server is different from and runs described target program Equipment, described data acquisition request is described PROGRAMMED REQUESTS to be tested when specifying result data corresponding to parameter, The request that described terminal sends, comprises described appointment parameter in described data acquisition request;
The result data corresponding with described appointment parameter that inquiry pre-sets;
Described result data is returned to described terminal, described terminal described result data is transferred to described Program to be tested, in order to described program to be tested realizes described appointment function according to described result data.
The third aspect, it is provided that a kind of program testing method, needs in the terminal of test program for operation, Described program to be tested is for specifying function to target program request data with realization, and described method includes:
When the result data that described PROGRAMMED REQUESTS to be tested appointment parameter is corresponding, send data to server and obtain Taking request, comprise described appointment parameter in described data acquisition request, it is described that described server is different from operation The equipment of target program;
Receive the result data corresponding with described appointment parameter that described server returns;
Described result data is transferred to described program to be tested, in order to described program to be tested is according to described knot Really data realize described appointment function.
Fourth aspect, it is provided that a kind of program test device, in server, described device includes:
First request receiver module, for receive run need test program terminal send data acquisition please Asking, described program to be tested is for specifying function, described server area to target program request data with realization Not in the equipment of the described target program of operation, described data acquisition request is that described PROGRAMMED REQUESTS to be tested is specified During result data corresponding to parameter, the request that described terminal sends, described data acquisition request comprise described Specify parameter;
Result queries module, the result data corresponding with described appointment parameter pre-set for inquiry;
Result returns module, for described result data being returned to described terminal, by described terminal by described Result data is transferred to described program to be tested, in order to described program to be tested realizes according to described result data Described appointment function.
5th aspect, it is provided that a kind of program test device, needs in the terminal of test program for operation, Described program to be tested is for specifying function to target program request data with realization, and described device includes:
First request module, when the result data corresponding in described PROGRAMMED REQUESTS to be tested appointment parameter, Send data acquisition request to server, described data acquisition request comprises described appointment parameter, described clothes Business device is different from the equipment running described target program;
Result receiver module, for receiving the result corresponding with described appointment parameter that described server returns Data;
Transport module, for being transferred to described program to be tested, in order to described to be tested by described result data Program realizes described appointment function according to described result data.
The technical scheme that the embodiment of the present invention provides can include following beneficial effect:
When the result data that the PROGRAMMED REQUESTS to be tested appointment parameter run in terminal is corresponding, terminal is to service Device sends the data acquisition request comprising this appointment parameter, and server is by pre-set, this appointment parameter pair The result data answered returns to terminal, terminal transmission give program to be tested, survey treating test program During examination, it is only necessary to interact with server, i.e. can get the result data pre-set, be not required to Other program development waiting this result data to be supplied completes so that developer can be for each journey Sequence is individually tested, thus improves the efficiency of program test.
It should be appreciated that it is only exemplary and explanatory that above general description and details hereinafter describe, The present invention can not be limited.
Accompanying drawing explanation
Accompanying drawing herein is merged in description and constitutes the part of this specification, it is shown that meet the present invention Embodiment, and for explaining the principle of the present invention together with description.
Fig. 1 is the schematic diagram of implementation environment involved in the present invention;
Fig. 2 is the flow chart according to a kind of program testing method shown in an exemplary embodiment;
Fig. 3 is the flow chart according to a kind of program testing method shown in an exemplary embodiment;
Fig. 4 is the flow chart according to a kind of program testing method shown in an exemplary embodiment;
Fig. 5 is the interface schematic diagram that a kind of interface related to based on embodiment illustrated in fig. 4 arranges interface;
Fig. 6 is the interface schematic diagram that a kind of interface related to based on embodiment illustrated in fig. 4 selects interface;
Fig. 7 is the interface schematic diagram that a kind of rule related to based on embodiment illustrated in fig. 4 arranges interface;
Fig. 8 is the interface schematic diagram that the another kind of rule related to based on embodiment illustrated in fig. 4 arranges interface;
Fig. 9 is the block diagram according to a kind of program test device shown in an exemplary embodiment;
Figure 10 is the block diagram according to a kind of program test device shown in an exemplary embodiment;
Figure 11 is the structure chart according to a kind of PTS shown in an exemplary embodiment;
Figure 12 is the structural representation according to a kind of server shown in an exemplary embodiment;
Figure 13 is the structural representation according to a kind of terminal shown in an exemplary embodiment.
Detailed description of the invention
Here will illustrate exemplary embodiment in detail, its example represents in the accompanying drawings.Following retouches Stating when relating to accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawings represents same or analogous key element. Embodiment described in following exemplary embodiment does not represent all embodiment party consistent with the present invention Formula.On the contrary, they only with describe in detail in appended claims, the present invention some in terms of mutually one The example of the apparatus and method caused.
Fig. 1 is the schematic diagram of implementation environment involved in the present invention.This implementation environment may include that terminal 110 With server 120.
Terminal 110 is the terminal with network communicating function, such as PC, kneetop computer, flat board Computer, mobile phone, E-book reader and intelligence wearable device etc..In this implementation environment, terminal 110 Can be in geographical position, be dispersed in various places and the networked devices of Bu Xian operator.
In the present invention, terminal 110 can be application developer's terminal for exploitation also test program, Running in this terminal 110 and need test program, this program to be tested is several involved by a certain item function In program one, and this program to be tested is when realizing this function, needs in these several programs extremely A few target program request data.
Server 120 can be a single station server, or, it is also possible to it is made up of multiple servers Service cluster, or, it is also possible to be a cloud computing center.In the present invention, server 120 is distinguished In the equipment running target program corresponding to above-mentioned program to be tested.
Can be attached by cable network between terminal 110 and server 120, such as, terminal 110 And be attached by Ethernet between server 120, or, between terminal 110 and server 120 also Can be attached by wireless network, this wireless network include but not limited to 2G (2nd-Generation, Secondary mobile communication technology), 3G (3rd-Generation, G mobile communication), 4G (4th-Generation, forth generation mobile communication technology) or Wi-Fi (Wireless Fidelity, wireless guarantor Very) network.
Below, as a example by the implementation environment shown in Fig. 1, the technical scheme that each embodiment of the present invention is provided It is introduced and illustrates.
Fig. 2 is the flow chart according to a kind of program testing method shown in an exemplary embodiment, and the method can For in the server 120 in implementation environment as shown in Figure 1.As in figure 2 it is shown, this program test side Method can include following several step:
Step 201, receive run need test program terminal send data acquisition request, this data acquisition Request is this PROGRAMMED REQUESTS to be tested when specifying result data corresponding to parameter, and the request that this terminal sends should Data acquisition request comprises this appointment parameter.
Wherein, program to be tested is for specifying function to target program request data with realization, and server is distinguished Equipment in operational objective program.
Step 202, the result data corresponding with this appointment parameter that inquiry pre-sets.
Step 203, returns to this terminal by this result data, this terminal this result data is transferred to this and treats Test program.
After program to be tested gets the result data of terminal transmission, can realize specifying according to this result data Function.
In sum, the program testing method that the embodiment of the present invention provides, when the journey to be tested run in terminal When sequence asks the result data specifying parameter corresponding, terminal to server sends the data comprising this appointment parameter Obtaining request, result data that pre-set, that this appointment parameter is corresponding is returned to terminal by server, by Terminal transmission gives program to be tested, when treating test program and testing, it is only necessary to hand over server Mutually, the result data pre-set can i.e. be got, it is not necessary to wait other of this result data to be supplied Program development completes so that developer individually can test for each program, thus improves journey The efficiency of sequence test.
Fig. 3 is the flow chart according to a kind of program testing method shown in an exemplary embodiment, and the method can For in the terminal 110 in implementation environment as shown in Figure 1.As it is shown on figure 3, this program testing method Can include following several step:
Step 301, when the result data that PROGRAMMED REQUESTS to be tested appointment parameter is corresponding, sends number to server According to obtaining request, this data acquisition request comprises this appointment parameter.
Wherein, this program to be tested is for specifying function, and server to target program request data with realization It is different from the equipment running this target program.
Step 302, receives the result data corresponding with this appointment parameter that this server returns.
Step 303, is transferred to this program to be tested by this result data.
In sum, the program testing method that the embodiment of the present invention provides, when the journey to be tested run in terminal When sequence asks the result data specifying parameter corresponding, terminal to server sends the data comprising this appointment parameter Obtaining request, result data that pre-set, that this appointment parameter is corresponding is returned to terminal by server, by Terminal transmission gives program to be tested, when treating test program and testing, it is only necessary to hand over server Mutually, the result data pre-set can i.e. be got, it is not necessary to wait other of this result data to be supplied Program development completes so that developer individually can test for each program, thus improves journey The efficiency of sequence test.
Scheme shown in the present invention, when a certain in the multiple programs relating to a certain item function of developer Before individual program (program to be tested) is tested, can pre-build between program to be tested and server Interface, and arrange in the server this program implementation of test cases to be tested process need with other programs The return data obtained alternately, when this program to be tested is run in the terminal and needs to obtain these return data, Terminal has only to carry out inquiring about to server by this interface pre-set, and by said method, opens Multiple programs that a certain item function relates to can individually be tested by the personnel of sending out, it is not necessary to waits the plurality of journey Sequence has all been developed, thus improves the efficiency of program test.The embodiment general that figure 4 below of the present invention is corresponding The program is further described.
Fig. 4 is the flow chart according to a kind of program testing method shown in an exemplary embodiment, and the method can For in implementation environment as shown in Figure 1.As shown in Figure 4, this program testing method can include as follows Several steps:
Step 401, server provides the terminal with interface and arranges interface, and terminal receives this interface and arranges interface.
In embodiments of the present invention, developer can pass through terminal login service device, and sets in the server Put the test interface between terminal and server.
Concrete, terminal can arrange interface by this interface of browser access, and such as, developer opens Browser in terminal, selects or inputs network address url of server correspondence website in the address field of browser, Click on and jump to the site home page that this server is corresponding, and select entrance interface that circle is set in this site home page Face, this interface i.e. can be arranged the interface data at interface and be sent to terminal by server.
Step 402, this interface of terminal display arranges interface.
After terminal receives the interface data that interface arranges interface, i.e. can show interface according to this interface data Interface is set.
Step 403, terminal to server transmission interface arranges request, and server receives this interface and arranges request.
Wherein, this interface arranges and is included in this interface of this terminal display in request and arranges in interface and arrange or defeated The interface entered describes information, and this interface describes information and arranges interface for description rule.
In embodiments of the present invention, developer can arrange interface by interface and arranges and treat test program and enter The interface used during row test, such as, this interface arranges and can arrange the title of this interface, terminal in interface The form of the parameter carried in the form of the request sent to server by this interface, request and server By form of data that this interface returns to terminal etc..
The most such as, refer to Fig. 5, it illustrates a kind of interface that the present embodiments relate to and interface is set Interface schematic diagram, wherein, interface arrange interface 51 comprises interface name arrange hurdle 51a, interface describe set Put hurdle 51b, request form arranges hurdle 51c, enter to join form arranges hurdle 51d and interface and return example and arrange hurdle 51e。
Interface name arranges hurdle 51a for arranging the title of interface.
Interface describes and arranges hurdle 51b for inputting the description to this interface, in order to developer is follow-up can be more Readily distinguish the effect of this interface.
Request form arranges hurdle 51c for arranging message when terminal is interacted by this interface and server Form, such as, in Figure 5, the square frame ticking that " GET " is front with " POST ", illustrate that terminal can be passed through The get method of HTTP (Hyper Text Transfer Protocol, HTML (Hypertext Markup Language)) agreement is (from service Device obtain data) or post method (to server send data) interact with server.
Enter to join form and hurdle 51d is set for arranging the form of parameter sent to server, such as, at Fig. 5 In, whether developer can pass through to arrange hurdle 51d into ginseng form and arrange parameter name, parameter type, must The project such as fill out.
Interface returns example and arranges hurdle 51e and may be used for arranging server and return to the format sample of terminal.
Developer sets up above-mentioned interface name, interface describes, ask form, enter to join form and interface After returning the projects such as example, clicking on save button 51f in the page lower right corner, terminal connects at this according to developer Mouth arranges the content generation interface selecting in interface 51 or inputting and arranges request, and this interface is arranged in request to be taken The interface arranged with developer describes information.
Describing extraction effective information information for the ease of server from interface, this interface describes information to specify Data form organize, such as, this interface describes information can be organized as JSON form.Concrete, In interface arranges interface, set into ginseng parameter as name with developer, return as a example by result is the age, connect Mouth describes the data structure of information and can organize as follows:
In above-mentioned data structure, " req ": { } represents the description information into ginseng parameter, including parameter name (" name "), the description (" desc ") of this parameter is " name ", and type (" type ") is " string ", And this parameter is entry required (" is_need ": true).
Above-mentioned " resp ": { } is the description information returning result, and including result name (" age "), this returns Returning being described as " age " of result, type is " int ".
Above-mentioned data structure also including, COS (" service_type ") is " http ", and reserved extension letter The position (" service_ext ") of breath.
Step 404, server arranges request create-rule according to this interface and arranges interface.
Concrete, server arranges, according to this interface, the interface comprised in request and describes creating info rules setting Interface.
Developer arranges the base attributes such as the parameter type of interface definition interface by above-mentioned interface, in this step In Zhou, these base attributes that server defines according to developer customize corresponding interface, and provide this to connect The rule of mouth arranges interface, in order to developer arranges parameter and the expectation that terminal to server sends voluntarily The result returned for this parameter.Concrete, server receives after this interface arranges request, sets from interface The interface that the request of putting comprises describes and extracts what developer inputted in interface arranges interface or arranged in information Related content, and generate corresponding interface, the rule the most also generating this interface arranges interface.
Step 405, server provides the terminal with interface and selects interface, and terminal obtains this interface and selects interface, should Interface selects to comprise this rule in interface and arranges the interface options that interface is corresponding.
Wherein, this interface selects interface can be the site home page that server is corresponding, it is also possible to be this website master Some subpage frame under Ye.
After the rule that server generation interface is corresponding arranges interface, interface can be selected to be updated with docking port, Select interface is added, at this interface, the interface options that this interface is corresponding, and the interface after updating selects interface It is supplied to terminal, developer in this interface selects interface, selects the interface needing to carry out rule setting.
Step 406, this interface of terminal display selects interface.
After terminal gets the interface selection interface that server provides, showing interface can be selected to give out interface The personnel of sending out.
As a example by the interface shown in above-mentioned Fig. 5 arranges interface, refer to Fig. 6, it illustrates the embodiment of the present invention A kind of interface related to selects the interface schematic diagram at interface, in this interface selects interface 61, shows some The interface options that the individual interface arranged is corresponding, wherein comprises developer and arranges in the interface shown in Fig. 5 Interface options 61a corresponding to interface.
Step 407, terminal, when detecting that this interface options is chosen, selects request to server transmission interface, Server receives this interface and selects request.
When user needs the interface arranged carries out rule setting, the concrete ginseng sent to server is i.e. set During the concrete data that number and server return for this design parameter, can select in interface selects interface Corresponding interface, to arrange the regular data of this interface to server request.
Such as, in figure 6, want to set up, as developer, the name and this server sent to server During according to the age of the name return arranged, can click on interface options 61a, now, terminal i.e. can be to clothes Business device sends the interface of the mark (such as interface name or id) comprising interface options 61a and selects request.
Step 408, server provides this rule to arrange interface to this terminal, and terminal receives this rule and arranges interface.
After server receives the selection request of above-mentioned interface, can select what request be carried to connect according to this interface The mark of mouthful option, determines that the rule that interface that developer selects is corresponding arranges interface, and rule is arranged Interface is supplied to terminal.
Step 409, this rule of terminal display arranges interface, receives and arranges the appointment of input in interface in this rule Parameter and result data.
Terminal get server provide rule interface is set after, i.e. this rule can be arranged showing interface To developer, developer arrange in this rule and interface arranges concrete interface rules.Wherein, should Rule arranges can include in interface to be respectively used to arrange specifies parameter and result corresponding to this appointment parameter The input frame of data, or, this rule arranges and can also only comprise an input frame, developer in interface The appointment parameter in the content of input and the result data of correspondence is distinguished by special symbol or form.
Such as, refer to Fig. 7, it illustrates a kind of rule that the present embodiments relate to and the interface at interface is set Schematic diagram, wherein, with the type of the parameter in interface rules as name with sex, returning result is the age to be Example, this rule arranges and comprises parameter setting area 71a and result setting area 71b, exploit person in interface 71 Member can arrange concrete name and sex (appointment parameter) in the 71a of parameter setting area, and sets in result Putting in column corresponding in the 71b of region and arrange the age (result data), developer can once arrange a plurality of The parameter of rule correspondence and the result data of correspondence thereof.
Or, refer to Fig. 8, it illustrates the another kind of rule that the present embodiments relate to and the circle at interface is set Face schematic diagram, wherein, with the type of the parameter in interface rules as name with sex, return result is the age As a example by, this rule arranges and comprises rule setting area 81a in interface 81, and developer can be arranged in rule Inputting concrete name, sex and the age in the 81a of region, wherein, name and sex are all to be placed Parameter in rule, pass through between the two ", " number differentiation, and the age is that in rule to be placed, parameter is corresponding Result, distinguished by "==" number between itself and name and sex.In actual applications, above-mentioned parameter it Between and parameter and result between can also be made a distinction by other special symbol, such as logic connective (&&, | |) and add, subtract, multiplication and division etc..Same, developer can also once arrange a plurality of Parameter that rule is corresponding and the result data of correspondence thereof, parameter that these many rules are corresponding and the result of correspondence thereof Between data can by different row or special symbol (such as ";" number) make a distinction.
Step 410, terminal to server sends rule and arranges request, and server receives this rule and arranges request, This rule arranges and comprises this appointment parameter and this result data in request.
Developer completes to arrange and click on the preservation button (lower right corner in such as Fig. 7 in rule arranges interface Preservation button 71c or Fig. 8 in the preservation button 81b in the lower right corner), then terminal will send rule to server Then arranging request, this rule arranges and comprises the appointment ginseng that developer inputs in rule arranges interface in request Several and that this appointment parameter is corresponding result data.It is similar to, above-mentioned appointment parameter and this appointment parameter pair The result data answered can also be organized as JSON form.
Step 411, the corresponding relation that server is provided for indicating between this appointment parameter and this result data Regular data, and by corresponding with the interface identifier of this interface options for this regular data storage.
Server receives after the rule that terminal sends arranges request, arranges according to this rule and to comprise in request Specify parameter that regular data, a kind of parameter of every rule data instruction and result are set with corresponding result data Between corresponding relation, server is when storage rule data, by every rule data and this regular data Interface identifier correspondence storage.
Such as, as a example by the setting up procedure shown in above-mentioned Fig. 5 to Fig. 7, developer is in corresponding the connecing of Fig. 5 Mouth arranges the interface for obtaining age of user arranged in interface, and its title " get_question_age " is i.e. Interface identifier for this interface.Developer selects this interface in the interface shown in Fig. 6 selects interface, and Arranging, in the rule shown in Fig. 7, the appointment parameter arranged in interface in interface rules is " Zhang San, man ", corresponding Result data is " 28 ", then a rule data such as table 1 below of server storage:
Interface Parameter Result
get_question_age Zhang San, man 28
Table 1
Step 412, when PROGRAMMED REQUESTS to be tested specifies result data corresponding to parameter, terminal to server sends Data acquisition request, server receives this data acquisition request, comprises this appointment ginseng in this data acquisition request Number.
There is provided with program to be tested and inquire about the age to storage device according to name and sex, and the year that will inquire As a example by the function that age, data were shown, when the code of storage device side is untapped complete or be not ready to complete Time, before developer runs program to be tested in the terminal, program to be tested can be sent out to storage device The message sent is redirected in above-mentioned server, and such as, developer can revise the request of program to be tested Transmitting portion code so that program to be tested, when sending request, does not sends request to storage device, but Data acquisition request is sent to above-mentioned server, or, developer can also compile outside program to be tested Write one section and redirect code, when program to be tested sends the request to storage device acquisition age data, and this is heavy Directing code sends data acquisition request to above-mentioned server.
Such as, developer runs program to be tested, and inquiry circle provided in program to be tested in the terminal In face, parameter (Zhang San, man) is specified in input, and clicks on inquiry, and terminal is according to the request form arranged in Fig. 5 (GET/POST form) sends the data acquisition request comprising " Zhang San, man " to server.
Step 413, this result data corresponding with this appointment parameter that server lookup pre-sets.
Concrete, this data acquisition request also comprises developer and arranges in interface at the interface that Fig. 5 is corresponding The interface identifier (such as, " get_question_age ") corresponding to interface arranged, server determines this interface At least one regular data that mark is corresponding, and inquire about in this at least one regular data this appointment parameter ( Three, man) corresponding regular data, the result (28) indicated by this regular data that will inquire is defined as This result data.
Step 414, this result data is returned to this terminal by server, and terminal receives this result data.
Server according to each rule data query corresponding to this interface identifier " get_question_age " to " opening Three, man " after corresponding age data is " 28 ", the age data inquired is returned to terminal.
Step 415, this result data is transferred to this program to be tested by terminal.
The age data received is transferred to program to be tested by terminal, and program to be tested is at result display interface In show.
In embodiments of the present invention, above-mentioned server can be by configuration center, regulation engine and agency service Three unit compositions, wherein, above three unit can be arranged in same calculating equipment, or, on State three unit can also be separately positioned in different calculating equipment.Wherein, above-mentioned configuration center unit is used In realizing the process that step 401 is arranged to the interface performed by server in step 411 and regular data, and The regular data of setting being pushed in the data base that regulation engine is corresponding, agency service unit is used for and terminal Interact, such as receive the data acquisition request that terminal sends, and return inquiry acquisition number of results to terminal According to, regulation engine unit is for when agency service receives the data acquisition request that terminal sends, according to number According to obtaining the appointment parameter and interface identifier carried in request, inquire about whether this appointment parameter hits this interface The a certain rule data that mark is corresponding, the most then pass to agency by the result data in this regular data Service unit.
In sum, the program testing method that the embodiment of the present invention provides, developer is treating test program Before testing, first pass through terminal and the interface that program to be tested is corresponding is set in the server, and arrange The regular data that this interface is corresponding, comprises the corresponding pass specified between parameter and result data in this regular data System, when the result data that the PROGRAMMED REQUESTS to be tested appointment parameter run in terminal is corresponding, terminal is to service Device sends the data acquisition request comprising this appointment parameter, the number of results that this appointment parameter of server lookup is corresponding According to returning to terminal, terminal transmission give program to be tested, when treating test program and testing, only need To interact with server, i.e. can get the result data pre-set, it is not necessary to wait to be supplied Other program development of this result data completes so that developer can be carried out individually for each program Test, thus improve the efficiency of program test.
Following for apparatus of the present invention embodiment, may be used for performing the inventive method embodiment.For the present invention The details not disclosed in device embodiment, refer to the inventive method embodiment.
Refer to Fig. 9, it illustrates the block diagram of the program test device shown in one embodiment of the invention.This journey The clothes that sequence test device can be embodied as in implementation environment shown in Fig. 1 by the way of hardware or soft or hard combination Business device 120 all or part of.This program test device may include that
First request receiver module 901, for receive run need test program terminal send data acquisition Request, described program to be tested is for specifying function, described server to target program request data with realization Being different from the equipment running described target program, described data acquisition request is that described PROGRAMMED REQUESTS to be tested refers to When determining result data corresponding to parameter, the request that described terminal sends, described data acquisition request comprises institute State appointment parameter;
Result queries module 902, the result data corresponding with described appointment parameter pre-set for inquiry;
Result returns module 903, for described result data being returned to described terminal, by described terminal by institute State result data and be transferred to described program to be tested, in order to described program to be tested is according to described number of results factually Existing described appointment function.
In sum, the program test device that the embodiment of the present invention provides, when the journey to be tested run in terminal When sequence asks the result data specifying parameter corresponding, terminal to server sends the data comprising this appointment parameter Obtaining request, result data that pre-set, that this appointment parameter is corresponding is returned to terminal by server, by Terminal transmission gives program to be tested, when treating test program and testing, it is only necessary to hand over server Mutually, the result data pre-set can i.e. be got, it is not necessary to wait other of this result data to be supplied Program development completes so that developer individually can test for each program, thus improves journey The efficiency of sequence test.
Refer to Figure 10, it illustrates the block diagram of the program test device shown in one embodiment of the invention.Should Program test device can be embodied as in implementation environment shown in Fig. 1 by the way of hardware or soft or hard combination Terminal 110 all or part of.This program test device may include that
First request module 1001, when the result data corresponding in PROGRAMMED REQUESTS to be tested appointment parameter, To server send data acquisition request, described data acquisition request comprises described appointment parameter, described in treat Test program is for specifying function to target program request data with realization, and described server is different from operation institute State the equipment of target program;
Result receiver module 1002, for receiving the corresponding with described appointment parameter of described server return Result data;
Transport module 1003, for being transferred to described program to be tested by described result data, in order to described in treat Test program realizes described appointment function according to described result data.
In sum, the program test device that the embodiment of the present invention provides, when the journey to be tested run in terminal When sequence asks the result data specifying parameter corresponding, terminal to server sends the data comprising this appointment parameter Obtaining request, result data that pre-set, that this appointment parameter is corresponding is returned to terminal by server, by Terminal transmission gives program to be tested, when treating test program and testing, it is only necessary to hand over server Mutually, the result data pre-set can i.e. be got, it is not necessary to wait other of this result data to be supplied Program development completes so that developer individually can test for each program, thus improves journey The efficiency of sequence test.
Refer to Figure 11, it illustrates the structure chart of the PTS shown in one embodiment of the invention, This PTS includes program test device 90 and program test device 100, wherein, program test The server that device 90 can be embodied as in implementation environment shown in Fig. 1 by the way of hardware or soft or hard combination 120 all or part of, program test device 100 can by hardware or soft or hard combination by the way of realize All or part of for the terminal 110 in implementation environment shown in Fig. 1.As shown in figure 11:
Described program test device 90 includes:
First request receiver module 901, for receive run need test program terminal send data acquisition Request, described data acquisition request is described PROGRAMMED REQUESTS to be tested when specifying result data corresponding to parameter, The request that described terminal sends, comprises described appointment parameter in described data acquisition request;
Result queries module 902, the result data corresponding with described appointment parameter pre-set for inquiry;
Result returns module 903, for described result data being returned to described terminal, by described terminal by institute State result data and be transferred to described program to be tested, in order to described program to be tested is according to described number of results factually Existing described appointment function.
Described program test device 100 may include that
First request module 1001, when the result data corresponding in PROGRAMMED REQUESTS to be tested appointment parameter, Send data acquisition request to server, described data acquisition request comprises described appointment parameter;
Result receiver module 1002, for receiving the corresponding with described appointment parameter of described server return Result data;
Transport module 1003, for being transferred to described program to be tested by described result data.
Optionally, described data acquisition request comprises interface identifier.
Optionally, described result queries module 902, including:
Regular data determines unit 902a, for determining at least one regular data that described interface identifier is corresponding, Every described regular data indicates the corresponding relation between a kind of parameter and result;
Regular data query unit 902b, joins for inquiring about described appointment in described at least one regular data The regular data that number is corresponding;
Result determines unit 902c, is defined as institute for the result indicated by described regular data that will inquire State result data.
Optionally, described program test device 90, also include:
First provides module 904, for asking receiver module to receive the data acquisition that terminal sends described first Before request, providing interface to select interface to described terminal, described interface selects to comprise described interface in interface The interface options that mark is corresponding;
Second request receiver module 905, the interface sent for receiving described terminal selects request, described interface Selection request is that interface described in described terminal display selects interface, and detects when described interface options is chosen The request sent;
Second provides module 906, arranges boundary for the rule providing described interface options corresponding to described terminal Face;
3rd request receiver module 907, the rule sent for receiving described terminal arranges request, described rule Arrange request is included in the described rule of described terminal display arrange in interface the described appointment parameter of input with And described result data;
Regular data arranges module 908, be used for being provided for indicating described appointment parameter and described result data it Between the regular data of corresponding relation.
Optionally, described program test device 100, also include:
First acquisition module 1004, for sending data acquisition request in described first request module to server Before, the interface that obtaining described server provides selects interface, described interface select interface comprises described in connect The interface options that mouth mark is corresponding;
First display module 1005, is used for showing that described interface selects interface;
Second request module 1006, is used for detecting when described interface options is chosen, sends out to described server Interface is sent to select request;
Second acquisition module 1007, for obtaining rule that described server provides, that described interface options is corresponding Interface is then set;
Second display module 1008, is used for showing that described rule arranges interface;
3rd request module 1009, arranges request for sending rule to described server, and described rule is arranged Request is included in described rule the described appointment parameter of input in interface and described result data are set.
Optionally, described program test device 90, also include:
3rd provides module 909, for providing module to provide interface to select interface to described terminal described first Before, provide interface that interface is set to described terminal;
4th request receiver module 910, the interface sent for receiving described terminal arranges request, described interface Arrange and request is included in the described interface of described terminal display the interface arranging in interface or inputting is set describes Information, described interface describes information and arranges interface for describing described rule;
Interface generation module 911, generates, for describing information according to described interface, the institute that described interface options is corresponding State rule and interface is set.
Optionally, described program test device 100, also include:
3rd acquisition module 1010, for obtaining, at described first acquisition module, the interface that described server provides Before selecting interface, the interface that obtaining described server provides arranges interface;
3rd display module 1011, is used for showing that described interface arranges interface;
4th request module 1012, for arranging request to described server transmission interface, described interface is arranged Being included in described interface in request to arrange the interface arranging in interface or inputting and describe information, described interface describes Information is used for describing described rule and arranges interface.
In sum, the PTS that the embodiment of the present invention provides, developer is treating test program Before testing, first pass through terminal and the interface that program to be tested is corresponding is set in the server, and arrange The regular data that this interface is corresponding, comprises the corresponding pass specified between parameter and result data in this regular data System, when the result data that the PROGRAMMED REQUESTS to be tested appointment parameter run in terminal is corresponding, terminal is to service Device sends the data acquisition request comprising this appointment parameter, the number of results that this appointment parameter of server lookup is corresponding According to returning to terminal, terminal transmission give program to be tested, when treating test program and testing, only need To interact with server, i.e. can get the result data pre-set, it is not necessary to wait to be supplied Other program development of this result data completes so that developer can be carried out individually for each program Test, thus improve the efficiency of program test.
The embodiment of the present invention also provides for a kind of PTS, and this system can include terminal and server, In this system, the connected mode between terminal and server is referred to the implementation environment shown in Fig. 1.
Wherein, this server is used for all or part of step performing in method shown in Fig. 2, or, hold The all or part of step performed by server in method shown in row Fig. 4.
This terminal is used for all or part of step performing in method shown in Fig. 3, or, perform Fig. 4 institute Show all or part of step performed in method by terminal.
Refer to Figure 12, it illustrates the structural representation of the server that one embodiment of the invention provides.Institute State server 1200 to include CPU (CPU) 1201, include random access memory (RAM) 1202 and the system storage 1204 of read only memory (ROM) 1203, and connection system memorizer 1204 System bus 1205 with CPU 1201.In described server 1200 also includes helping computer Each device between transmit the basic input/output (I/O system) 1206 of information, and be used for storing behaviour Make the mass-memory unit 1207 of system 1213, application program 1212 and other program modules 1215.
Described basic input/output 1206 include the display 1208 for showing information and for The input equipment 1209 of such as mouse, keyboard etc of family input information.Wherein said display 1208 and defeated Enter equipment 1209 and be all connected to centre by being connected to the IOC 1210 of system bus 1205 Reason unit 1201.Described basic input/output 1206 can also include IOC 1210 with For receiving and processing the input from other equipment multiple such as keyboard, mouse or electronic touch pens.Similar Ground, IOC 1210 also provides output to display screen, printer or other kinds of outut device.
Described mass-memory unit 1207 is by being connected to the bulk memory controller of system bus 1205 (not shown) is connected to CPU 1201.Described mass-memory unit 1207 and being associated Computer-readable medium provides non-volatile memories for server 1200.It is to say, described massive store Equipment 1207 can include the computer-readable medium of such as hard disk or CD-ROM drive etc (not Illustrate).
Without loss of generality, described computer-readable medium can include computer-readable storage medium and communication media. Computer-readable storage medium include for store such as computer-readable instruction, data structure, program module or Volatibility that any method of the information such as other data or technology realize and non-volatile, removable and can not move Moving medium.Computer-readable storage medium include RAM, ROM, EPROM, EEPROM, flash memory or other Its technology of solid-state storage, CD-ROM, DVD or other optical storage, cartridge, tape, disk storage Or other magnetic storage apparatus.Certainly, skilled person will appreciate that described computer-readable storage medium does not limits to In above-mentioned several.Above-mentioned system storage 1204 and mass-memory unit 1207 may be collectively referred to as storage Device.
According to various embodiments of the present invention, described server 1200 can also be by networks such as such as the Internets The remote computer being connected on network runs.Namely server 1200 can be total by being connected to described system NIU 1211 on line 1205 is connected to network 1212, in other words, it is possible to use network connects Mouth unit 1211 is connected to other kinds of network or remote computer system (not shown).
Described memorizer also includes one or more than one program, one or more than one program Being stored in memorizer, central processing unit 1201 performs said one or multiple module to realize Fig. 2 or figure The all or part of step performed by server in 4.
Refer to Figure 13, it illustrates the structural representation of the terminal that one embodiment of the invention provides.These public affairs Open the terminal in embodiment and can include one or more following ingredient: be used for performing computer program and refer to Make completing the processor of various flow process and method, for information and storage programmed instruction random access memory (RAM) and read only memory (ROM), for storing the memorizer of data and information, I/O equipment, boundary Face, antenna etc..Specifically:
Terminal 1300 can include RF (Radio Frequency, radio frequency) circuit 1310, memorizer 1320, Input block 1330, display unit 1340, sensor 1350, voicefrequency circuit 1360, WiFi (wireless Fidelity, Wireless Fidelity) parts such as module 1370, processor 1380, power supply 1382, photographic head 1390. It will be understood by those skilled in the art that the terminal structure shown in Figure 13 is not intended that the restriction to terminal, can To include that ratio illustrates more or less of parts, or combine some parts, or different parts are arranged.
Below in conjunction with Figure 13 each component parts of terminal 1300 carried out concrete introduction:
RF circuit 1310 can be used for receiving and sending messages or in communication process, the reception of signal and transmission, especially, After the downlink information of base station is received, process to processor 1380;It addition, data up for design are sent To base station.Generally, RF circuit includes but not limited to antenna, at least one amplifier, transceiver, coupling Device, LNA (Low Noise Amplifier, low-noise amplifier), duplexer etc..Additionally, RF circuit 1310 Can also be communicated with network and other equipment by radio communication.Described radio communication can use arbitrary communication Standard or agreement, include but not limited to GSM (Global System of Mobile communication, the whole world Mobile communcations system), GPRS (General Packet Radio Service, general packet radio service), CDMA (Code Division Multiple Access, CDMA), WCDMA (Wideband Code Division Multiple Access, WCDMA), LTE (Long Term Evolution, Long Term Evolution), Email, SMS (Short Messaging Service, Short Message Service) etc..
Memorizer 1320 can be used for storing software program and module, and processor 1380 is stored in by operation The software program of memorizer 1320 and module, thus perform the application of various functions and the number of terminal 1300 According to process.Memorizer 1320 can mainly include storing program area and storage data field, wherein, stores program area (such as sound-playing function, image is broadcast can to store the application program needed for operating system, at least one function Playing function etc.) etc.;Storage data field can store data (the such as sound that the use according to terminal 1300 is created Frequency evidence, phone directory etc.) etc..Additionally, memorizer 1320 can include high-speed random access memory, also Nonvolatile memory can be included, for example, at least one disk memory, flush memory device or other are easy The property lost solid-state memory.
Input block 1330 can be used for receiving numeral or the character information of input, and produces and terminal 1300 User setup and function control the input of relevant key signals.Specifically, input block 1330 can include touching Control panel 1331 and other input equipments 1332.Contact panel 1331, also referred to as touch screen, can collect User thereon or neighbouring touch operation (such as user use any applicable object such as finger, stylus or Adnexa operation on contact panel 1331 or near contact panel 1331), and according to journey set in advance Formula drives corresponding attachment means.Optionally, contact panel 1331 can include touch detecting apparatus and touch control Two parts of device processed.Wherein, the touch orientation of touch detecting apparatus detection user, and detect touch operation band The signal come, transmits a signal to touch controller;Touch controller receives touch from touch detecting apparatus Information, and be converted into contact coordinate, then give processor 1380, and processor 1380 can be received send Order and performed.Furthermore, it is possible to use resistance-type, condenser type, infrared ray and surface acoustic wave etc. Polytype realizes contact panel 1331.Except contact panel 1331, input block 1330 can also include Other input equipments 1332.Specifically, other input equipments 1332 can include but not limited to physical keyboard, One in function key (such as volume control button, switch key etc.), trace ball, mouse, action bars etc. Or it is multiple.
Display unit 1340 can be used for showing the information inputted by user or the information being supplied to user and terminal The various menus of 1300.Display unit 1340 can include display floater 1341, optionally, can use LCD (Liquid Crystal Display, liquid crystal display), OLED (Organic Light-Emitting Diode, Organic Light Emitting Diode) etc. form configure display floater 1341.Further, contact panel 1331 can cover Lid display floater 1341, when contact panel 1331 detects thereon or after neighbouring touch operation, sends to Processor 1380, to determine the type of touch event, exists according to the type of touch event with preprocessor 1380 Corresponding visual output is provided on display floater 1341.Although in fig. 13, contact panel 1331 and display Panel 1341 is to realize input and the input function of terminal 1300 as two independent parts, but In some embodiment, can be by integrated to contact panel 1331 and display floater 1341 and realize terminal 1300 Input and output function.
Terminal 1300 may also include at least one sensor 1350, such as gyro sensor, magnetic induction sensing Device, optical sensor, motion sensor and other sensors.Specifically, optical sensor can include ambient light Sensor and proximity transducer, wherein, ambient light sensor can regulate display according to the light and shade of ambient light The brightness of panel 1341, proximity transducer can cut out display floater 1341 when terminal 1300 moves in one's ear And/or backlight.As the one of motion sensor, acceleration transducer can detect in all directions (generally Three axles) size of acceleration, can detect that size and the direction of gravity time static, can be used for identification terminal appearance The application (such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating) of state, Vibration identification correlation function (such as pedometer, percussion) etc.;The barometer that can also configure as terminal 1300, drimeter, thermometer, Other sensors such as infrared ray sensor, do not repeat them here.
Voicefrequency circuit 1360, speaker 1361, microphone 1362 can provide between user and terminal 1300 Audio interface.The signal of telecommunication after the voice data conversion that voicefrequency circuit 1360 can will receive, is transferred to raise one's voice Device 1361, is converted to acoustical signal output by speaker 1361;On the other hand, microphone 1362 will be collected Acoustical signal be converted to the signal of telecommunication, voicefrequency circuit 1360 be converted to voice data after receiving, then by audio frequency After data output processing device 1380 processes, through RF circuit 1310 to be sent to such as another terminal, or will Voice data exports to memorizer 1320 to process further.
WiFi belongs to short range wireless transmission technology, and terminal 1300 can help to use by WiFi module 1370 Family is sent and received e-mail, is browsed webpage and access streaming video etc., and it is mutual that it has provided the user wireless broadband Internet interview.Although Figure 13 shows WiFi module 1370, but it is understood that, it is also not belonging to Must be configured into of terminal 1300, can omit completely as required in the scope not changing disclosed essence.
Processor 1380 is the control centre of terminal 1300, utilizes various interface and the whole terminal of connection Various piece, by run or perform be stored in the software program in memorizer 1320 and/or module, and Call the data being stored in memorizer 1320, perform the various functions of terminal 1300 and process data, from And terminal is carried out integral monitoring.Optionally, processor 1380 can include one or more processing unit;Excellent Choosing, processor 1380 can integrated application processor and modem processor, wherein, application processor master Operating system to be processed, user interface and application program etc., modem processor mainly processes radio communication. It is understood that above-mentioned modem processor can not also be integrated in processor 1380.
Terminal 1300 also includes the power supply 1382 (such as battery) powered to all parts, it is preferred that power supply Can be logically contiguous with processor 1380 by power-supply management system, thus realize pipe by power-supply management system The functions such as reason charging, electric discharge and power managed.
Photographic head 1390 is typically by camera lens, imageing sensor, interface, digital signal processor, CPU, aobvious Display screen curtains etc. form.Wherein, camera lens is fixed on the top of imageing sensor, can manually regulate camera lens Change focusing;Imageing sensor is equivalent to " film " of traditional camera, is the heart of camera collection image; Interface is used for photographic head to utilize winding displacement, board to board connector, spring connected mode to be connected with terminal mainboard, The image of collection is sent to described memorizer 1320;Digital signal processor passes through mathematical operation to collection Image processes, and the analog image of collection is converted to digital picture and is sent to memorizer by interface 1320。
Although not shown, terminal 1300 can also include bluetooth module etc., does not repeats them here.
Terminal 1300, except including one or more processor 1380, also includes memorizer, and one Or multiple modules, one or more module stores in memorizer, and be configured to by one or The multiple processor of person performs.Processor 1380 performs said one or multiple module to realize Fig. 3 or Fig. 4 In all or part of step that performed by terminal.
Those skilled in the art, after considering description and putting into practice invention disclosed herein, will readily occur to this Other bright embodiment.The application is intended to any modification, purposes or the adaptations of the present invention, These modification, purposes or adaptations are followed the general principle of the present invention and include that the present invention is not disclosed Common knowledge in the art or conventional techniques means.Description and embodiments is considered only as exemplary , true scope and spirit of the invention are pointed out by claim below.
It should be appreciated that the invention is not limited in accurate knot described above and illustrated in the accompanying drawings Structure, and various modifications and changes can carried out without departing from the scope.The scope of the present invention is only by appended Claim limits.

Claims (17)

1. a PTS, it is characterised in that described system includes: terminal and server, described Terminal is run and needs test program, described program to be tested for target program request data to realize referring to Determining function, described server is different from the equipment running described target program;
Described terminal, when the result data corresponding in described PROGRAMMED REQUESTS to be tested appointment parameter, to institute State server and send the data acquisition request comprising described appointment parameter;
Described server, is used for receiving described data acquisition request, that inquiry pre-sets and described appointment The result data that parameter is corresponding, and described result data is returned to described terminal;
Described terminal, for being transferred to described program to be tested, in order to described to be tested by described result data Program realizes described appointment function according to described result data.
2. the method for a program test, it is characterised in that in server, described method includes:
Receive run need test program terminal send data acquisition request, described program to be tested is used for To target program request data to realize specifying function, described server is different from and runs described target program Equipment, described data acquisition request is described PROGRAMMED REQUESTS to be tested when specifying result data corresponding to parameter, The request that described terminal sends, comprises described appointment parameter in described data acquisition request;
The result data corresponding with described appointment parameter that inquiry pre-sets;
Described result data is returned to described terminal, described terminal described result data is transferred to described Program to be tested, in order to described program to be tested realizes described appointment function according to described result data.
Method the most according to claim 1, it is characterised in that comprise in described data acquisition request and connect Mouth mark, the result data corresponding with described appointment parameter that described inquiry pre-sets, including:
Determine at least one regular data that described interface identifier is corresponding, every described regular data instruction one Corresponding relation between parameter and result;
The regular data that described appointment parameter is corresponding is inquired about in described at least one regular data;
The result indicated by described regular data that will inquire is defined as described result data.
Method the most according to claim 3, it is characterised in that described method also includes:
Before receiving the data acquisition request that terminal sends, interface is provided to select interface, institute to described terminal State interface to select interface comprises the interface options that described interface identifier is corresponding;
Receiving the interface selection request that described terminal sends, described interface selects request to be described terminal display institute State interface and select interface, and the request sent when described interface options is chosen detected;
The rule providing described interface options corresponding to described terminal arranges interface;
The rule receiving the transmission of described terminal arranges request, and described rule arranges and is included in described terminal in request The described rule shown arranges the described appointment parameter of input in interface and described result data;
It is provided for indicating the regular data of the corresponding relation between described appointment parameter and described result data.
Method the most according to claim 4, it is characterised in that described method also includes:
Before providing interface to select interface to described terminal, provide interface that interface is set to described terminal;
The interface receiving the transmission of described terminal arranges request, and described interface arranges and is included in described terminal in request The described interface shown arranges the interface arranging in interface or inputting and describes information, and described interface describes information and uses In describing described rule, interface is set;
According to the described rule that described interface describes the described interface options of information generation corresponding, interface is set.
6. a program testing method, it is characterised in that need in the terminal of test program for operation, institute State program to be tested for target program request data with realize specify function, described method includes:
When the result data that described PROGRAMMED REQUESTS to be tested appointment parameter is corresponding, send data to server and obtain Taking request, comprise described appointment parameter in described data acquisition request, it is described that described server is different from operation The equipment of target program;
Receive the result data corresponding with described appointment parameter that described server returns;
Described result data is transferred to described program to be tested, in order to described program to be tested is according to described knot Really data realize described appointment function.
Method the most according to claim 6, it is characterised in that comprise in described data acquisition request and connect Mouth mark.
Method the most according to claim 7, it is characterised in that described method also includes:
Before sending data acquisition request to server, the interface that obtaining described server provides selects interface, Described interface selects to comprise, in interface, the interface options that described interface identifier is corresponding;
Show that described interface selects interface;
Detect when described interface options is chosen, select request to described server transmission interface;
Obtain rule that described server provides, that described interface options is corresponding and interface is set;
Show that described rule arranges interface;
Sending rule to described server and arrange request, described rule arranges and is included in described rule in request and sets Put the described appointment parameter of input in interface and described result data.
Method the most according to claim 8, it is characterised in that described method also includes:
Before obtaining the interface selection interface that described server provides, obtain the interface that described server provides Interface is set;
Show that described interface arranges interface;
Arranging request to described server transmission interface, described interface arranges and is included in described interface in request and sets Putting the interface arranging in interface or inputting and describe information, described interface describes information and sets for describing described rule Put interface.
10. a program test device, it is characterised in that in server, described device includes:
First request receiver module, for receive run need test program terminal send data acquisition please Asking, described program to be tested is for specifying function, described server area to target program request data with realization Not in the equipment of the described target program of operation, described data acquisition request is that described PROGRAMMED REQUESTS to be tested is specified During result data corresponding to parameter, the request that described terminal sends, described data acquisition request comprise described Specify parameter;
Result queries module, the result data corresponding with described appointment parameter pre-set for inquiry;
Result returns module, for described result data being returned to described terminal, by described terminal by described Result data is transferred to described program to be tested, in order to described program to be tested realizes according to described result data Described appointment function.
11. devices according to claim 10, it is characterised in that comprise in described data acquisition request Interface identifier, described result queries module, including:
Regular data determines unit, for determining at least one regular data that described interface identifier is corresponding, often Regular data described in bar indicates the corresponding relation between a kind of parameter and result;
Regular data query unit, for inquiring about described appointment parameter pair in described at least one regular data The regular data answered;
Result determines unit, is defined as described knot for the result indicated by described regular data that will inquire Really data.
12. devices according to claim 11, it is characterised in that described device also includes:
First provides module, please for receiving the data acquisition of terminal transmission at described first request receiver module Before asking, providing interface to select interface to described terminal, described interface selects to comprise described interface mark in interface Know corresponding interface options;
Second request receiver module, the interface sent for receiving described terminal selects request, and described interface selects The request of selecting is that interface described in described terminal display selects interface, and detects that described interface options is sent out when being chosen The request sent;
Second provides module, arranges interface for the rule providing described interface options corresponding to described terminal;
3rd request receiver module, the rule sent for receiving described terminal arranges request, and described rule sets Put request is included in the described rule of described terminal display arrange input in interface described appointment parameter and Described result data;
Regular data arranges module, is used for being provided for indicating between described appointment parameter and described result data The regular data of corresponding relation.
13. devices according to claim 12, it is characterised in that described device also includes:
3rd provide module, for described first provide module to described terminal provide interface select interface it Before, provide interface that interface is set to described terminal;
4th request receiver module, the interface sent for receiving described terminal arranges request, and described interface sets Put and request is included in the described interface of described terminal display the interface arranging in interface or inputting is set describes letter Breath, described interface describes information and arranges interface for describing described rule;
Interface generation module, for according to described interface describe information generate described interface options corresponding described in Rule arranges interface.
14. 1 kinds of program test devices, it is characterised in that need in the terminal of test program for operation, Described program to be tested is for specifying function to target program request data with realization, and described device includes:
First request module, when the result data corresponding in described PROGRAMMED REQUESTS to be tested appointment parameter, Send data acquisition request to server, described data acquisition request comprises described appointment parameter, described clothes Business device is different from the equipment running described target program;
Result receiver module, for receiving the result corresponding with described appointment parameter that described server returns Data;
Transport module, for being transferred to described program to be tested, in order to described to be tested by described result data Program realizes described appointment function according to described result data.
15. devices according to claim 14, it is characterised in that comprise in described data acquisition request Interface identifier.
16. devices according to claim 15, it is characterised in that described device also includes:
First acquisition module, is used in described first request module before server sends data acquisition request, The interface that obtaining described server provides selects interface, and described interface selects to comprise described interface identifier in interface Corresponding interface options;
First display module, is used for showing that described interface selects interface;
Second request module, is used for detecting when described interface options is chosen, and sends to described server and connects Mouth selects request;
Second acquisition module, sets for obtaining rule that described server provides, that described interface options is corresponding Put interface;
Second display module, is used for showing that described rule arranges interface;
3rd request module, arranges request for sending rule to described server, and described rule arranges request In be included in described rule the described appointment parameter of input and described result data be set in interface.
17. devices according to claim 16, it is characterised in that described device also includes:
3rd acquisition module, for obtaining, at described first acquisition module, the interface selection that described server provides Before interface, the interface that obtaining described server provides arranges interface;
3rd display module, is used for showing that described interface arranges interface;
4th request module, for arranging request to described server transmission interface, described interface arranges request In be included in described interface and the interface arranging in interface or inputting is set describes information, described interface describes information For describing described rule, interface is set.
CN201610375882.9A 2016-05-31 2016-05-31 Program testing system, method and device Pending CN106021112A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610375882.9A CN106021112A (en) 2016-05-31 2016-05-31 Program testing system, method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610375882.9A CN106021112A (en) 2016-05-31 2016-05-31 Program testing system, method and device

Publications (1)

Publication Number Publication Date
CN106021112A true CN106021112A (en) 2016-10-12

Family

ID=57091586

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610375882.9A Pending CN106021112A (en) 2016-05-31 2016-05-31 Program testing system, method and device

Country Status (1)

Country Link
CN (1) CN106021112A (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107885659A (en) * 2017-10-30 2018-04-06 阿里巴巴集团控股有限公司 Method and device, the equipment of request analog response to client
CN108427631A (en) * 2017-02-14 2018-08-21 北京京东尚科信息技术有限公司 A kind of application test systems, method, electronic equipment and readable storage medium storing program for executing
CN109684188A (en) * 2017-10-19 2019-04-26 北京京东尚科信息技术有限公司 Test method and device
CN109697141A (en) * 2017-10-20 2019-04-30 北京京东尚科信息技术有限公司 Method and device for visual testing
CN109815106A (en) * 2017-11-21 2019-05-28 腾讯科技(深圳)有限公司 The interactive function test method and device of information release platform
CN110032511A (en) * 2019-03-19 2019-07-19 深圳市买买提信息科技有限公司 A kind of interface test method and interface testing equipment
CN110162476A (en) * 2019-05-27 2019-08-23 重庆紫光华山智安科技有限公司 Test method and device
CN110959153A (en) * 2017-12-21 2020-04-03 谷歌有限责任公司 Application analysis using flexible post-processing
CN110968500A (en) * 2018-09-30 2020-04-07 北京国双科技有限公司 Test case execution method and device
CN114422487A (en) * 2021-12-08 2022-04-29 联动优势电子商务有限公司 Application response simulation method and device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101576843A (en) * 2008-05-07 2009-11-11 阿里巴巴集团控股有限公司 Method and device for testing application program interface
CN102833125A (en) * 2011-06-17 2012-12-19 腾讯科技(深圳)有限公司 Test server, test system adopting test server, and test method
CN103136099A (en) * 2011-12-02 2013-06-05 腾讯科技(深圳)有限公司 Method for testing software, analog terminal, backstage server and system
CN103945443A (en) * 2014-05-09 2014-07-23 江苏鑫软图无线技术有限公司 Test method and system for TD-LTE (Internal Tandem Duplication-Line Termination Equipment) wireless network service performance
CN104461903A (en) * 2014-12-26 2015-03-25 北京奇虎科技有限公司 Method and device for testing client side based on browser
US20160092344A1 (en) * 2014-09-29 2016-03-31 Teodor Joav Bally End-to-end, lifecycle aware, api management

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101576843A (en) * 2008-05-07 2009-11-11 阿里巴巴集团控股有限公司 Method and device for testing application program interface
CN102833125A (en) * 2011-06-17 2012-12-19 腾讯科技(深圳)有限公司 Test server, test system adopting test server, and test method
CN103136099A (en) * 2011-12-02 2013-06-05 腾讯科技(深圳)有限公司 Method for testing software, analog terminal, backstage server and system
CN103945443A (en) * 2014-05-09 2014-07-23 江苏鑫软图无线技术有限公司 Test method and system for TD-LTE (Internal Tandem Duplication-Line Termination Equipment) wireless network service performance
US20160092344A1 (en) * 2014-09-29 2016-03-31 Teodor Joav Bally End-to-end, lifecycle aware, api management
CN104461903A (en) * 2014-12-26 2015-03-25 北京奇虎科技有限公司 Method and device for testing client side based on browser

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108427631A (en) * 2017-02-14 2018-08-21 北京京东尚科信息技术有限公司 A kind of application test systems, method, electronic equipment and readable storage medium storing program for executing
CN108427631B (en) * 2017-02-14 2022-04-12 北京京东尚科信息技术有限公司 Application test system, method, electronic equipment and readable storage medium
CN109684188A (en) * 2017-10-19 2019-04-26 北京京东尚科信息技术有限公司 Test method and device
CN109684188B (en) * 2017-10-19 2022-04-12 北京京东尚科信息技术有限公司 Test method and device
CN109697141A (en) * 2017-10-20 2019-04-30 北京京东尚科信息技术有限公司 Method and device for visual testing
CN107885659A (en) * 2017-10-30 2018-04-06 阿里巴巴集团控股有限公司 Method and device, the equipment of request analog response to client
CN109815106B (en) * 2017-11-21 2021-08-10 腾讯科技(深圳)有限公司 Interactive function testing method and device of information delivery platform
CN109815106A (en) * 2017-11-21 2019-05-28 腾讯科技(深圳)有限公司 The interactive function test method and device of information release platform
CN110959153A (en) * 2017-12-21 2020-04-03 谷歌有限责任公司 Application analysis using flexible post-processing
CN110959153B (en) * 2017-12-21 2023-12-08 谷歌有限责任公司 Application analysis using flexible post-processing
CN110968500A (en) * 2018-09-30 2020-04-07 北京国双科技有限公司 Test case execution method and device
CN110032511A (en) * 2019-03-19 2019-07-19 深圳市买买提信息科技有限公司 A kind of interface test method and interface testing equipment
CN110162476A (en) * 2019-05-27 2019-08-23 重庆紫光华山智安科技有限公司 Test method and device
CN114422487A (en) * 2021-12-08 2022-04-29 联动优势电子商务有限公司 Application response simulation method and device

Similar Documents

Publication Publication Date Title
CN106021112A (en) Program testing system, method and device
CN104219617B (en) Service acquisition method and device
CN105095432B (en) Web page annotation display methods and device
CN104468463B (en) Verification method, device and system
CN104794396B (en) Across standing posture script loophole detection method and device
CN103702297B (en) Short message enhancement, apparatus and system
CN108345543B (en) Data processing method, device, equipment and storage medium
CN106534940A (en) Method and device for displaying preview picture at live broadcasting entrance
CN106296255A (en) Page info methods of exhibiting and device
CN107943489A (en) Data sharing method and mobile terminal
CN106708676A (en) Interface test method and apparatus
CN111178012A (en) Form rendering method, device and equipment and storage medium
CN108280692A (en) Reward distribution method, device, computer readable storage medium and terminal
CN107943683A (en) A kind of test script generation method, device, electronic equipment and storage medium
CN107995024A (en) A kind of device management method, device, server and storage medium
CN107391518A (en) Count system, the method and device of page load performance information
CN108536594A (en) Page test method, device and storage device
CN105847325A (en) Method and device for debugging application client side
CN104699501B (en) A kind of method and device for running application program
WO2017219293A1 (en) Method and device for acquiring web content
CN107566980A (en) The localization method and mobile terminal of a kind of mobile terminal
CN104516890B (en) Method for processing business, device and electronic equipment
CN109753425A (en) Pop-up processing method and processing device
CN107766358A (en) The method and relevant apparatus that a kind of page is shared
CN107943685A (en) A kind of traverse path generation method, device, server and storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20161012

RJ01 Rejection of invention patent application after publication