[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN105068926A - Program test method and device thereof - Google Patents

Program test method and device thereof Download PDF

Info

Publication number
CN105068926A
CN105068926A CN201510470819.9A CN201510470819A CN105068926A CN 105068926 A CN105068926 A CN 105068926A CN 201510470819 A CN201510470819 A CN 201510470819A CN 105068926 A CN105068926 A CN 105068926A
Authority
CN
China
Prior art keywords
test
target program
request
program
pack
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
CN201510470819.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 CN201510470819.9A priority Critical patent/CN105068926A/en
Publication of CN105068926A publication Critical patent/CN105068926A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The embodiment of the present invention discloses a program test method and a device thereof. The method comprises the following steps: acquiring a test request corresponding to an object program, wherein the test request carries test parameters input by aiming at the object program; parsing the test request to acquire the test parameter, and generating a test packet containing the test parameters; and adopting the test packet to test the object program, and outputting test results after the test. By adopting the method and the device, the efficiency of program test can be increased, and then the development efficiency of subsequent programs is increased.

Description

A kind of program testing method and equipment thereof
Technical field
The present invention relates to field of computer technology, particularly relate to a kind of program testing method and equipment thereof.
Background technology
In existing project development process, after background program completes, all needing to carry out a series of program test process, by testing program, ensure that the normal operation of the function services that this program is corresponding.
Prior art, in the test process of program, adopts the test mode of order line often, by the manual input test order line of tester, is tested according to test command is capable by testing apparatus to program.Due to test command capable in test command and test parameter comparatively various, thus tester easily duplicates the situation of amendment order line in the process of manually input, have impact on the efficiency of program test, and then have impact on the development efficiency of down-stream.
Summary of the invention
The embodiment of the present invention provides a kind of program testing method and equipment thereof, can promote the efficiency of program test, and then promotes the development efficiency of down-stream.
Embodiment of the present invention first aspect provides a kind of program testing method, can comprise:
Obtain the test request that target program is corresponding, in described test request, carry the test parameter inputted for described target program;
Resolve described test request to obtain described test parameter, and generate the test pack comprising described test parameter;
Adopt described test pack to test described target program, and output test result after a test.
Embodiment of the present invention second aspect provides a kind of program test equipment, can comprise:
Acquisition request unit, for obtaining test request corresponding to target program, carries the test parameter inputted for described target program in described test request;
Test pack generation unit, for resolving described test request to obtain described test parameter, and generates the test pack comprising described test parameter;
Result output unit, for adopting described test pack to test described target program, and outputs test result after a test.
In embodiments of the present invention, by obtaining test request corresponding to target program, resolving test request to obtain the test parameter inputted for target program, and generating the test pack comprising test parameter, final employing test pack is tested target program, and outputs test result after a test.In test process, tester only needs input test parameter, and the generation of test pack is automatically completed by testing apparatus, avoid because maloperation causes repeating revising the situation of order line, improve the efficiency of program test, ensure to feed back test result in time, and then improve the development efficiency of down-stream.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the schematic flow sheet of a kind of program testing method that the embodiment of the present invention provides;
Fig. 2 is the schematic flow sheet of the another kind of program testing method that the embodiment of the present invention provides;
Fig. 3 is the structural representation of a kind of program test equipment that the embodiment of the present invention provides;
Fig. 4 is the structural representation of the another kind of program test equipment that the embodiment of the present invention provides;
Fig. 5 is the structural representation of the acquisition request unit that the embodiment of the present invention provides;
Fig. 6 is the structural representation of the test pack generation unit that the embodiment of the present invention provides;
Fig. 7 is the structural representation of the result output unit that the embodiment of the present invention provides;
Fig. 8 is the structural representation of another the program test equipment that the embodiment of the present invention provides.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
The program testing method that the embodiment of the present invention provides can be applied in project development process the scene that background program is tested, such as: program test equipment obtains test request corresponding to target program, the test parameter inputted for described target program is carried in described test request, described in described program test device parses, test request is to obtain described test parameter, and generate the test pack comprising described test parameter, described program test equipment adopts described test pack to test described target program, and outputs test result after a test.In test process, tester only needs input test parameter, and the generation of test pack is automatically completed by testing apparatus, avoid because maloperation causes repeating revising the situation of order line, improve the efficiency of program test, ensure to feed back test result in time, and then improve the development efficiency of down-stream.
The program test equipment that the embodiment of the present invention provides can comprise: panel computer, smart mobile phone, notebook computer, palm PC, personal computer and mobile internet device (MID) etc. possess the terminal device of program test function.
Below in conjunction with accompanying drawing 1 and accompanying drawing 2, a kind of program testing method that the embodiment of the present invention provides is described in detail.
Refer to Fig. 1, for embodiments providing a kind of schematic flow sheet of program testing method.As shown in Figure 1, the described method of the embodiment of the present invention can comprise step S101-step S103.
S101, obtains the test request that target program is corresponding;
Concrete, program test equipment can obtain test request corresponding to target program, it should be noted that, the test parameter that tester inputs for described target program is carried in described test request, described test parameter is specially the flesh and blood that tester specifically needs to test target program, such as: the keyword message etc. searched in target program.
Described program test equipment can provide concrete test page, described test page is preferably HTML (Hypertext Markup Language) (HyperTextMarkupLanguage, HTML) Webpage such as test page, be understandable that, described target program is stored in backstage machine (such as: server apparatus etc.), thus before carrying out program test, tester needs first to be started at the intended target address information place of backstage machine by described target program, with the state making described target program enter test preparation, described target address information can comprise Internet protocol (InternetProtocol, IP) address and port numbers etc.
S102, resolves described test request to obtain described test parameter, and generates the test pack comprising described test parameter;
Concrete, described program test equipment can resolve described test request to obtain described test parameter, and generate the test pack comprising described test parameter, also test command is comprised in described test pack, by test command, described test parameter is encapsulated, generate the discernible test pack of described target program, to test described target program.
S103, adopts described test pack to test described target program, and outputs test result after a test;
Concrete, described program test equipment can adopt described test pack to test described target program, and output test result after a test, be understandable that, described program test equipment can by test result output display in described test page, also can by test result output display in newly-built page of text.
In embodiments of the present invention, by obtaining test request corresponding to target program, resolving test request to obtain the test parameter inputted for target program, and generating the test pack comprising test parameter, final employing test pack is tested target program, and outputs test result after a test.In test process, tester only needs input test parameter, and the generation of test pack is automatically completed by testing apparatus, avoid because maloperation causes repeating revising the situation of order line, improve the efficiency of program test, ensure to feed back test result in time, and then improve the development efficiency of down-stream.
Refer to Fig. 2, for embodiments providing the schematic flow sheet of another kind of program testing method.As shown in Figure 2, the described method of the embodiment of the present invention can comprise the following steps S201-step S208.
S201, when the test trigger request to target program being detected, shows test page;
Concrete, program test equipment can provide concrete test page, described test page is preferably the Webpages such as HTML test page, when described program test equipment Inspection is to test trigger request to target program, such as: tester's trigger testing button etc., described program test equipment can show described test page, and described test page can be arranged by web page server application such as Nginx, Apache, Lighttpd.
S202, monitors the target address information of the test parameter inputted for target program and described target program in shown test page;
S203, generates test request corresponding to described target program according to described test parameter and described target address information;
Concrete, tester can input corresponding test parameter and the target address information of target program by each assigned address in shown test page, be understandable that, described target program is stored in backstage machine (such as: server apparatus etc.), thus before carrying out program test, tester needs first to be started at the intended target address information place of backstage machine by described target program, with the state making described target program enter test preparation, described target address information can comprise IP address and port numbers etc.Described program test equipment can in shown test page, the target address information of the test parameter that snoopy test personnel input for target program and described target program, described program test equipment generates test request corresponding to described target program according to described test parameter and described target address information.
S204, resolves described test request to obtain described test parameter and described target address information;
S205, adopts test command to encapsulate described test parameter, and generates the test pack comprising described test parameter after packaging;
Concrete, described program test equipment can resolve described test request to obtain described test parameter and described target address information, described program test equipment adopts test command to encapsulate described test parameter, and generate the test pack comprising described test parameter after packaging, be understandable that, described program test equipment can adopt corresponding test command to encapsulate according to putting in order of test parameter successively, corresponding test command can also be adopted successively to encapsulate according to the input position of test parameter, preferably, Uwsig can be passed through, the parsing of the server gateway Interface realization test parameters such as Fastcgi, the process of encapsulation.By test command, described test parameter is encapsulated, generate the discernible test pack of described target program, to test described target program.
S206, is sent to the described target program that described target address information is corresponding by described test pack, test described target program to adopt described test pack;
S207, the test result returned after obtaining test, and adopt default display format to encapsulate described test result;
S208, exports the test result after encapsulation;
Concrete, described test pack can be sent to described target program corresponding to target address information that parsing obtains by described program test equipment, to adopt described test pack, described target program is tested, the test result that described program test equipment returns after can obtaining the test of described target program, and adopt default display format to encapsulate described test result, test result after encapsulation is exported, described default display format is the display format of HTML, be understandable that, described program test equipment can by the test result output display after encapsulation in described test page, also can by the test result output display after encapsulation in newly-built page of text.Preferably, described program test equipment can highlight the critical field in test result, can also adopt the display of folder function optimal inspection result simultaneously.
In embodiments of the present invention, by obtaining test request corresponding to target program, resolving test request to obtain the test parameter inputted for target program, and generating the test pack comprising test parameter, final employing test pack is tested target program, and outputs test result after a test.In test process, tester only needs input test parameter, and the generation of test pack is automatically completed by testing apparatus, avoid because maloperation causes repeating revising the situation of order line, improve the efficiency of program test, ensure to feed back test result in time, and then improve the development efficiency of down-stream; Realize the input of program test parameter and the output of test result by the form of test page, be convenient to the memory of tester and the search of test result is located; Adopt target address information to test target program, can unify to test to multiple target program by adjustment IP address, port numbers etc., without the need to the machine at sign-on access target program place successively, improve the efficiency of program test further.
Below in conjunction with accompanying drawing 3-accompanying drawing 7, the program test equipment that the embodiment of the present invention provides is described in detail.It should be noted that, program test equipment shown in accompanying drawing 3-accompanying drawing 7, for performing Fig. 1 of the present invention and method embodiment illustrated in fig. 2, for convenience of explanation, illustrate only the part relevant to the embodiment of the present invention, concrete ins and outs do not disclose, and please refer to the embodiment shown in Fig. 1 and Fig. 2 of the present invention.
Refer to Fig. 3, for embodiments providing a kind of structural representation of program test equipment.As shown in Figure 3, the described program test equipment 1 of the embodiment of the present invention can comprise: acquisition request unit 11, test pack generation unit 12 and result output unit 13.
Acquisition request unit 11, for obtaining test request corresponding to target program, carries the test parameter inputted for described target program in described test request;
In specific implementation, described request acquiring unit 11 can obtain test request corresponding to target program, it should be noted that, the test parameter that tester inputs for described target program is carried in described test request, described test parameter is specially the flesh and blood that tester specifically needs to test target program, such as: the keyword message etc. searched in target program.
Described program test equipment 1 can provide concrete test page, described test page is preferably the Webpages such as HTML test page, be understandable that, described target program is stored in backstage machine (such as: server apparatus etc.), thus before carrying out program test, tester needs first to be started at the intended target address information place of backstage machine by described target program, with the state making described target program enter test preparation, described target address information can comprise IP address and port numbers etc.
Test pack generation unit 12, for resolving described test request to obtain described test parameter, and generates the test pack comprising described test parameter;
In specific implementation, described test pack generation unit 12 can resolve described test request to obtain described test parameter, and generate the test pack comprising described test parameter, also test command is comprised in described test pack, by test command, described test parameter is encapsulated, generate the discernible test pack of described target program, to test described target program.
Result output unit 13, for adopting described test pack to test described target program, and outputs test result after a test;
In specific implementation, described result output unit 13 can adopt described test pack to test described target program, and output test result after a test, be understandable that, described result output unit 13 can by test result output display in described test page, also can by test result output display in newly-built page of text.
In embodiments of the present invention, by obtaining test request corresponding to target program, resolving test request to obtain the test parameter inputted for target program, and generating the test pack comprising test parameter, final employing test pack is tested target program, and outputs test result after a test.In test process, tester only needs input test parameter, and the generation of test pack is automatically completed by testing apparatus, avoid because maloperation causes repeating revising the situation of order line, improve the efficiency of program test, ensure to feed back test result in time, and then improve the development efficiency of down-stream.
Refer to Fig. 4, for embodiments providing the structural representation of another kind of program test equipment.As shown in Figure 4, the described program test equipment 1 of the embodiment of the present invention can comprise: acquisition request unit 11, test pack generation unit 12, result output unit 13 and page display unit 14.
Page display unit 14, for when the test trigger request to target program being detected, shows test page;
In specific implementation, described page display unit 14 can provide concrete test page, described test page is preferably the Webpages such as HTML test page, when described program test equipment 1 detects the test trigger request to target program, such as: tester's trigger testing button etc., described page display unit 14 can show described test page, and described test page can be arranged by web page server application such as Nginx, Apache, Lighttpd.
Acquisition request unit 11, for obtaining test request corresponding to target program, carries the test parameter inputted for described target program in described test request;
In specific implementation, described request acquiring unit 11 can obtain test request corresponding to target program, it should be noted that, the test parameter that tester inputs for described target program is carried in described test request, described test parameter is specially the flesh and blood that tester specifically needs to test target program, such as: the keyword message etc. searched in target program.
Be understandable that, described target program is stored in backstage machine (such as: server apparatus etc.), thus before carrying out program test, tester needs first to be started at the intended target address information place of backstage machine by described target program, with the state making described target program enter test preparation, described target address information can comprise IP address and port numbers etc.
Concrete, please also refer to Fig. 5, for embodiments providing the structural representation of acquisition request unit.As shown in Figure 5, described request acquiring unit 11 can comprise:
Data decryptor subelement 111, for monitoring the target address information of test parameter and the described target program inputted for target program in shown test page;
Request generates subelement 112, for generating test request corresponding to described target program according to described test parameter and described target address information;
In specific implementation, tester can input corresponding test parameter and the target address information of target program by each assigned address in shown test page, be understandable that, described target program is stored in backstage machine (such as: server apparatus etc.), thus before carrying out program test, tester needs first to be started at the intended target address information place of backstage machine by described target program, with the state making described target program enter test preparation, described target address information can comprise IP address and port numbers etc.Described data decryptor subelement 111 can in shown test page, the target address information of the test parameter that snoopy test personnel input for target program and described target program, described request generates subelement 112 and generates test request corresponding to described target program according to described test parameter and described target address information.
Test pack generation unit 12, for resolving described test request to obtain described test parameter, and generates the test pack comprising described test parameter;
In specific implementation, described test pack generation unit 12 can resolve described test request to obtain described test parameter, and generate the test pack comprising described test parameter, also test command is comprised in described test pack, by test command, described test parameter is encapsulated, generate the discernible test pack of described target program, to test described target program.
Concrete, please also refer to Fig. 6, for embodiments providing the structural representation of test pack generation unit.As shown in Figure 6, described test pack generation unit 12 can comprise:
Request analysis subelement 121, for resolving described test request to obtain described test parameter and described target address information;
Test pack generates subelement 122, for adopting test command to encapsulate described test parameter, and generates the test pack comprising described test parameter after packaging;
In specific implementation, described request resolves subelement 121 can resolve described test request to obtain described test parameter and described target address information, described test pack generates subelement 122 and adopts test command to encapsulate described test parameter, and generate the test pack comprising described test parameter after packaging, be understandable that, described test pack generates subelement 122 and corresponding test command can be adopted successively to encapsulate according to putting in order of test parameter, corresponding test command can also be adopted successively to encapsulate according to the input position of test parameter, preferably, Uwsig can be passed through, the parsing of the server gateway Interface realization test parameters such as Fastcgi, the process of encapsulation.By test command, described test parameter is encapsulated, generate the discernible test pack of described target program, to test described target program.
Result output unit 13, for adopting described test pack to test described target program, and outputs test result after a test;
In specific implementation, described result output unit 13 can adopt described test pack to test described target program, and output test result after a test, be understandable that, described result output unit 13 can by test result output display in described test page, also can by test result output display in newly-built page of text.
Concrete, please also refer to Fig. 7, for embodiments providing the structural representation of result output unit.As shown in Figure 7, described result output unit 13 can comprise:
Test pack sends subelement 131, for described test pack being sent to described target program corresponding to described target address information, tests described target program to adopt described test pack;
Result encapsulation subelement 132, for obtaining the rear test result returned of test, and adopts default display format to encapsulate described test result;
Result exports subelement 133, for the test result after encapsulation being exported;
In specific implementation, described test pack sends subelement 131 can be sent to described target program corresponding to target address information that parsing obtains by described test pack, to adopt described test pack, described target program is tested, the test result returned after described result encapsulation subelement 132 can obtain the test of described target program, and adopt default display format to encapsulate described test result, described result exports subelement 133 and the test result after encapsulation is exported, described default display format is the display format of HTML, be understandable that, described result exports subelement 133 can by the test result output display after encapsulation in described test page, also can by the test result output display after encapsulation in newly-built page of text.Preferably, described result exports subelement 133 and can highlight the critical field in test result, can also adopt the display of folder function optimal inspection result simultaneously.
In embodiments of the present invention, by obtaining test request corresponding to target program, resolving test request to obtain the test parameter inputted for target program, and generating the test pack comprising test parameter, final employing test pack is tested target program, and outputs test result after a test.In test process, tester only needs input test parameter, and the generation of test pack is automatically completed by testing apparatus, avoid because maloperation causes repeating revising the situation of order line, improve the efficiency of program test, ensure to feed back test result in time, and then improve the development efficiency of down-stream; Realize the input of program test parameter and the output of test result by the form of test page, be convenient to the memory of tester and the search of test result is located; Adopt target address information to test target program, can unify to test to multiple target program by adjustment IP address, port numbers etc., without the need to the machine at sign-on access target program place successively, improve the efficiency of program test further.
Refer to Fig. 8, for embodiments providing the structural representation of another program test equipment.As shown in Figure 8, described program test equipment 1000 can comprise: at least one processor 1001, such as CPU, at least one network interface 1004, user interface 1003, storer 1005, at least one communication bus 1002.Wherein, communication bus 1002 is for realizing the connection communication between these assemblies.Wherein, user interface 1003 can comprise display screen (Display), keyboard (Keyboard), and optional user interface 1003 can also comprise wireline interface, the wave point of standard.Network interface 1004 optionally can comprise wireline interface, the wave point (as WI-FI interface) of standard.Storer 1005 can be high-speed RAM storer, also can be non-labile storer (non-volatilememory), such as at least one magnetic disk memory.Storer 1005 can also be optionally that at least one is positioned at the memory storage away from aforementioned processor 1001.As shown in Figure 8, operating system, network communication module, Subscriber Interface Module SIM and program test application program can be comprised as in a kind of storer 1005 of computer-readable storage medium.
In the program test equipment 1000 shown in Fig. 8, user interface 1003 is mainly used in, for user provides the interface of input, obtaining the data of user's input; Network interface 1004 is mainly used in carrying out data transmission with server; And processor 1001 may be used for calling the program test application program stored in storer 1005, and the following operation of concrete execution:
Obtain the test request that target program is corresponding, in described test request, carry the test parameter inputted for described target program;
Resolve described test request to obtain described test parameter, and generate the test pack comprising described test parameter;
Adopt described test pack to test described target program, and output test result after a test.
In one embodiment, described processor 1001, before performing test request corresponding to acquisition target program, also performs following operation:
When the test trigger request to target program being detected, test page is shown.
In one embodiment, described processor 1001 is when the test request that execution acquisition target program is corresponding, and concrete execution is following to be operated:
The target address information of the test parameter inputted for target program and described target program is monitored in shown test page;
Test request corresponding to described target program is generated according to described test parameter and described target address information.
In one embodiment, described processor 1001 resolves described test request to obtain described test parameter in execution, and when generation comprises the test pack of described test parameter, the following operation of concrete execution:
Resolve described test request to obtain described test parameter and described target address information;
Adopt test command to encapsulate described test parameter, and generate the test pack comprising described test parameter after packaging.
In one embodiment, described processor 1001 adopts described test pack to test described target program in execution, and when outputing test result after a test, the following operation of concrete execution:
Described test pack is sent to the described target program that described target address information is corresponding, to adopt described test pack, described target program is tested;
The test result returned after obtaining test, and adopt default display format to encapsulate described test result;
Test result after encapsulation is exported.
In embodiments of the present invention, by obtaining test request corresponding to target program, resolving test request to obtain the test parameter inputted for target program, and generating the test pack comprising test parameter, final employing test pack is tested target program, and outputs test result after a test.In test process, tester only needs input test parameter, and the generation of test pack is automatically completed by testing apparatus, avoid because maloperation causes repeating revising the situation of order line, improve the efficiency of program test, ensure to feed back test result in time, and then improve the development efficiency of down-stream; Realize the input of program test parameter and the output of test result by the form of test page, be convenient to the memory of tester and the search of test result is located; Adopt target address information to test target program, can unify to test to multiple target program by adjustment IP address, port numbers etc., without the need to the machine at sign-on access target program place successively, improve the efficiency of program test further.
One of ordinary skill in the art will appreciate that all or part of flow process realized in above-described embodiment method, that the hardware that can carry out instruction relevant by computer program has come, described program can be stored in a computer read/write memory medium, this program, when performing, can comprise the flow process of the embodiment as above-mentioned each side method.Wherein, described storage medium can be magnetic disc, CD, read-only store-memory body (Read-OnlyMemory, ROM) or random store-memory body (RandomAccessMemory, RAM) etc.
Above disclosedly be only present pre-ferred embodiments, certainly can not limit the interest field of the present invention with this, therefore according to the equivalent variations that the claims in the present invention are done, still belong to the scope that the present invention is contained.

Claims (10)

1. a program testing method, is characterized in that, comprising:
Obtain the test request that target program is corresponding, in described test request, carry the test parameter inputted for described target program;
Resolve described test request to obtain described test parameter, and generate the test pack comprising described test parameter;
Adopt described test pack to test described target program, and output test result after a test.
2. method according to claim 1, is characterized in that, before the test request that described acquisition target program is corresponding, also comprises:
When the test trigger request to target program being detected, test page is shown.
3. method according to claim 1 and 2, is characterized in that, the test request that described acquisition target program is corresponding, comprising:
The target address information of the test parameter inputted for target program and described target program is monitored in shown test page;
Test request corresponding to described target program is generated according to described test parameter and described target address information.
4. method according to claim 3, is characterized in that, the described test request of described parsing to obtain described test parameter, and generates the test pack comprising described test parameter, comprising:
Resolve described test request to obtain described test parameter and described target address information;
Adopt test command to encapsulate described test parameter, and generate the test pack comprising described test parameter after packaging.
5. method according to claim 4, is characterized in that, the described test pack of described employing is tested described target program, and outputs test result after a test, comprising:
Described test pack is sent to the described target program that described target address information is corresponding, to adopt described test pack, described target program is tested;
The test result returned after obtaining test, and adopt default display format to encapsulate described test result;
Test result after encapsulation is exported.
6. a program test equipment, is characterized in that, comprising:
Acquisition request unit, for obtaining test request corresponding to target program, carries the test parameter inputted for described target program in described test request;
Test pack generation unit, for resolving described test request to obtain described test parameter, and generates the test pack comprising described test parameter;
Result output unit, for adopting described test pack to test described target program, and outputs test result after a test.
7. equipment according to claim 6, is characterized in that, also comprises:
Page display unit, for when the test trigger request to target program being detected, shows test page.
8. the equipment according to claim 6 or 7, is characterized in that, described request acquiring unit comprises:
Data decryptor subelement, for monitoring the target address information of test parameter and the described target program inputted for target program in shown test page;
Request generates subelement, for generating test request corresponding to described target program according to described test parameter and described target address information.
9. equipment according to claim 8, is characterized in that, described test pack generation unit comprises:
Request analysis subelement, for resolving described test request to obtain described test parameter and described target address information;
Test pack generates subelement, for adopting test command to encapsulate described test parameter, and generates the test pack comprising described test parameter after packaging.
10. equipment according to claim 9, is characterized in that, described result output unit comprises:
Test pack sends subelement, for described test pack being sent to described target program corresponding to described target address information, tests described target program to adopt described test pack;
Result encapsulation subelement, for obtaining the rear test result returned of test, and adopts default display format to encapsulate described test result;
Result exports subelement, for the test result after encapsulation being exported.
CN201510470819.9A 2015-08-04 2015-08-04 Program test method and device thereof Pending CN105068926A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510470819.9A CN105068926A (en) 2015-08-04 2015-08-04 Program test method and device thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510470819.9A CN105068926A (en) 2015-08-04 2015-08-04 Program test method and device thereof

Publications (1)

Publication Number Publication Date
CN105068926A true CN105068926A (en) 2015-11-18

Family

ID=54498303

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510470819.9A Pending CN105068926A (en) 2015-08-04 2015-08-04 Program test method and device thereof

Country Status (1)

Country Link
CN (1) CN105068926A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105630683A (en) * 2015-12-31 2016-06-01 浪潮(北京)电子信息产业有限公司 Cloud testing architecture
CN107092558A (en) * 2017-04-12 2017-08-25 东华大学 A kind of cli command set automatization test system and method
CN111026634A (en) * 2019-09-27 2020-04-17 珠海随变科技有限公司 Interface automation test system, method, device and storage medium
CN114448848A (en) * 2021-12-16 2022-05-06 苏州浪潮智能科技有限公司 Test method and device of switch, electronic equipment and storage medium
CN114448867A (en) * 2022-02-23 2022-05-06 百果园技术(新加坡)有限公司 Route visualization method, device, equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6163805A (en) * 1997-10-07 2000-12-19 Hewlett-Packard Company Distributed automated testing system
CN101576843A (en) * 2008-05-07 2009-11-11 阿里巴巴集团控股有限公司 Method and device for testing application program interface
CN103164270A (en) * 2011-12-12 2013-06-19 阿里巴巴集团控股有限公司 Java system application programming interface calling method and system using the same
CN104076806A (en) * 2013-03-26 2014-10-01 北汽福田汽车股份有限公司 Method of carrying out automatic test on automobile electric control device and equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6163805A (en) * 1997-10-07 2000-12-19 Hewlett-Packard Company Distributed automated testing system
CN101576843A (en) * 2008-05-07 2009-11-11 阿里巴巴集团控股有限公司 Method and device for testing application program interface
CN103164270A (en) * 2011-12-12 2013-06-19 阿里巴巴集团控股有限公司 Java system application programming interface calling method and system using the same
CN104076806A (en) * 2013-03-26 2014-10-01 北汽福田汽车股份有限公司 Method of carrying out automatic test on automobile electric control device and equipment

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105630683A (en) * 2015-12-31 2016-06-01 浪潮(北京)电子信息产业有限公司 Cloud testing architecture
CN107092558A (en) * 2017-04-12 2017-08-25 东华大学 A kind of cli command set automatization test system and method
CN111026634A (en) * 2019-09-27 2020-04-17 珠海随变科技有限公司 Interface automation test system, method, device and storage medium
CN114448848A (en) * 2021-12-16 2022-05-06 苏州浪潮智能科技有限公司 Test method and device of switch, electronic equipment and storage medium
CN114448848B (en) * 2021-12-16 2024-06-07 苏州浪潮智能科技有限公司 Switch testing method and device, electronic equipment and storage medium
CN114448867A (en) * 2022-02-23 2022-05-06 百果园技术(新加坡)有限公司 Route visualization method, device, equipment and storage medium
CN114448867B (en) * 2022-02-23 2024-04-09 百果园技术(新加坡)有限公司 Route visualization method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
CN111026645B (en) User interface automatic test method and device, storage medium and electronic equipment
CN106484611B (en) Fuzzy test method and device based on automatic protocol adaptation
WO2018223717A1 (en) Webpage front-end testing method, device, system, apparatus and readable storage medium
CN105099811A (en) Interface testing method and device
CN105068926A (en) Program test method and device thereof
CN108255701B (en) Scene testing method and mobile terminal
US20170005858A1 (en) Log processing method and client
CN108228444B (en) Test method and device
CN104102578B (en) Test method and system and operation terminal
CN112732572A (en) Service testing method, device and system, storage medium and electronic device
CN106549989B (en) Data transmission method and system, user terminal and application server
EP2857987A1 (en) Acquiring method, device and system of user behavior
CN115208951B (en) Request processing method, request processing device, electronic equipment and computer readable storage medium
CN110795353B (en) Quick application debugging method, device, equipment and storage medium
CN111367812A (en) Test method, electronic device and readable storage medium
CN105279076A (en) Webpage test method and terminal
CN111767229A (en) Performance test method, device and equipment
CN111045934A (en) Page analysis method, device, client, storage medium and electronic equipment
CN108255672B (en) Data verification method and device, storage medium and electronic equipment
CN113535586A (en) Test environment switching method, device, equipment and readable storage medium
CN109522202B (en) Software testing method and device
CN114389969A (en) Client test method and device, electronic equipment and storage medium
CN113055420B (en) HTTPS service identification method and device and computing equipment
CN104182331A (en) Browser performance test method, browser performance test system and terminal
CN109324822B (en) PWA (public warning assistant) item detection method, computer-readable storage medium and terminal device

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20151118