CN104536884A - Code testing method and device - Google Patents

Code testing method and device Download PDF

Info

Publication number
CN104536884A
CN104536884A CN201410788314.2A CN201410788314A CN104536884A CN 104536884 A CN104536884 A CN 104536884A CN 201410788314 A CN201410788314 A CN 201410788314A CN 104536884 A CN104536884 A CN 104536884A
Authority
CN
China
Prior art keywords
test
code
remote server
tested
default
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201410788314.2A
Other languages
Chinese (zh)
Other versions
CN104536884B (en
Inventor
陈文龙
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Kugou Computer Technology Co Ltd
Original Assignee
Guangzhou Kugou Computer Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Kugou Computer Technology Co Ltd filed Critical Guangzhou Kugou Computer Technology Co Ltd
Priority to CN201410788314.2A priority Critical patent/CN104536884B/en
Publication of CN104536884A publication Critical patent/CN104536884A/en
Application granted granted Critical
Publication of CN104536884B publication Critical patent/CN104536884B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Debugging And Monitoring (AREA)
  • Test And Diagnosis Of Digital Computers (AREA)

Abstract

The invention discloses a code testing method and device and belongs to the technical field of the Internet. The code testing method includes the steps that whether a tested code includes a first comment or not is detected, and the first comment is used for requesting for using a remote server to conduct remote testing on the tested code; if the tested code includes the first comment, a testing request is sent to the remote server, and the testing request is used for requesting the remote server for conducting remote testing on the tested code. The problem that in the prior art, a development person needs to compile complex requesting codes to achieve remote testing, and in other words, the testing efficiency for conducting remote testing on the tested code is low is solved, and the effect that the testing efficiency for conducting remote testing on the tested code can be improved is achieved.

Description

Code test method and device
Technical field
The present invention relates to Internet technical field, particularly a kind of code test method and device.
Background technology
Application developer is when coding code, and in order to ensure the quality of program code, developer needs to carry out code tester to this program code usually.Below this program code is called tested code.
And in order to avoid tested code local terminal test errorless; and the situation that there will be problem after reaching the standard grade occurs; developer, while use local test code is tested this tested code, also can use remote server to test this tested code usually.In order to realize remote testing, developer needs to write one section of request code, and is tested this tested code by this request code request remote server.
Realizing in process of the present invention, inventor finds that above-mentioned technology at least exists following problem: developer could realize the remote testing to tested code after needing to write complicated request code, so lower to the testing efficiency of the remote testing of tested code in such scheme.
Summary of the invention
In order to solve problem lower to the testing efficiency of the remote testing of tested code in prior art, embodiments provide a kind of code test method and device.Described technical scheme is as follows:
First aspect, provides a kind of code test method, and described method comprises:
Detect in test code and whether comprise the first note, described first explains for asking use remote server to carry out remote testing to tested code;
If comprise described first in described test code to explain, then send test request to described remote server, described test request carries out remote testing for asking described remote server to described tested code.
Alternatively, whether comprise the first note in described detection test code, comprising:
Explain to start according to second in described test code and preset test frame, described second explains for asking the described default test frame of use to be tested described tested code;
Detect in described test code whether comprise described first note by described default test frame;
Described transmission test request, to described remote server, comprising:
Described test request is sent to described remote server by described default test frame.
Alternatively, described method also comprises:
Explain in the default tool-class in described tested code injection to described default test frame according to the 3rd in described test code;
Describedly send described test request to described remote server by described default test frame, comprising:
Described test request is sent to described remote server by described default tool-class.
Alternatively, describedly send described test request to described remote server by described default tool-class, comprising:
Described first explains the address and the port that comprise described remote server, and described default tool-class sends described test request to described remote server according to the address of described remote server and port.
Alternatively, described method also comprises:
According to the 4th note in described test code, virtual Mock test is carried out to described tested code by described default test frame; And/or,
According to the 5th note in described test code, parametrization test is carried out to described tested code by described default test frame.
Alternatively, explain if do not comprise described first in described test code, then local test is carried out to described test code.
Second aspect, provide a kind of code tester device, described device comprises:
Code detection module, for detecting in test code whether comprise the first note, described first explains for asking use remote server to carry out remote testing to tested code;
Request sending module, for in the testing result of described code detection module be comprise in described test code described first explain time, send test request to described remote server, described test request carries out remote testing for asking described remote server to described tested code.
Alternatively, described code detection module, comprising:
Framework start unit, presets test frame for explaining to start according to second in described test code, and described second explains for asking the described default test frame of use to be tested described tested code;
Code detection unit, the described default test frame for being started by described framework start unit detects in described test code whether comprise described first note;
Described request sending module, also for being sent described test request by described default test frame to described remote server.
Alternatively, described device also comprises:
Code injection module, for explaining in the default tool-class in described tested code injection to described default test frame according to the 3rd in described test code;
Described request sending module, also for being sent described test request by described default tool-class to described remote server.
Alternatively, described request sending module, also for when described first note comprises address and the port of described remote server, described default tool-class sends described test request to described remote server according to the address of described remote server and port.
Alternatively, described device also comprises:
First test module, for carrying out virtual Mock test according to the 4th note in described test code to described tested code by described default test frame; And/or,
Second test module, for carrying out parametrization test according to the 5th note in described test code to described tested code by described default test frame.
Alternatively, the 3rd test module, in the testing result of described code detection module be do not comprise in described test code described first explain time, local test is carried out to described test code.
The beneficial effect of the technical scheme that the embodiment of the present invention provides is:
Using remote server to carry out the first note of remote testing to tested code by adding in test code for asking, making it possible to directly send test request to remote server, and by remote server, tested code being tested; Solve after developer in prior art needs to write complicated request code and could realize remote testing, also namely the lower problem of the testing efficiency of remote testing is carried out to tested code; Reach the effect that can improve the testing efficiency tested code being carried out to remote testing.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme in the embodiment of the present invention, below the accompanying drawing used required in describing embodiment is briefly described, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the method flow diagram of the code test method that one embodiment of the invention provides;
Fig. 2 is the method flow diagram of the code test method that another embodiment of the present invention provides;
Fig. 3 is the block diagram of the code tester device that one embodiment of the invention provides;
Fig. 4 is the block diagram of the code tester device that another embodiment of the present invention provides;
Fig. 5 is the block diagram of the server that one embodiment of the invention provides.
Embodiment
In order to make the object, technical solutions and advantages of the present invention clearly, below in conjunction with accompanying drawing, the present invention is described in further detail, and obviously, described embodiment is only a part of embodiment of the present invention, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making other embodiments all obtained under creative work prerequisite, belong to the scope of protection of the invention.
Please refer to Fig. 1, it illustrates the method flow diagram of the code test method that one embodiment of the invention provides, as shown in Figure 1, this code test method can comprise:
Step 101, detects in test code whether comprise the first note, and first explains for asking use remote server to carry out remote testing to tested code;
Step 102, if comprise the first note in test code, then send test request to remote server, test request carries out remote testing for asking remote server to tested code.
Each note in the present embodiment refers to before at least one of statement in bag, class, field, method, local variable and method parameter, and for being described these elements and annotating.
In sum, the code test method that the present embodiment provides, remote server is used to carry out the first note of remote testing to tested code by adding in test code for asking, make it possible to directly send test request to remote server, and by remote server, tested code is tested; Solve after developer in prior art needs to write complicated request code and could realize remote testing, also namely the lower problem of the testing efficiency of remote testing is carried out to tested code; Reach the effect that can improve the testing efficiency tested code being carried out to remote testing.
Please refer to Fig. 2, it illustrates the method flow diagram of the code test method that another embodiment of the present invention provides, as shown in Figure 2, this code test method can comprise:
Step 201, explain to start according to second in test code and preset test frame, the second note uses default test frame to test tested code for asking;
Usually can comprise in test code and be used to indicate the note which kind of test frame this test uses; so server perform for ask to use default test frame to tested code test second explain time, server second can be explained to start and presets test frame according to this.Wherein, this second note uses default test frame to test tested code for asking.
Such as, explain as@RunWith (DTest.class) illustrates with second, when server performs this note, server can start DTest test frame.
Step 202, explains tested code injection in the default tool-class preset in test frame according to the 3rd in test code;
When performing the 3rd note in test code when server, server can be explained tested code injection in the default tool-class preset in test frame according to the 3rd.Wherein, the 3rd explain as the note for tested code injection extremely being preset in the default tool-class of test frame.
Such as, for default test frame for DTest test frame and the 3rd explain for@Autowired, when server performs this note, server can pass through@Autowired by tested code injection in the MvcTestUtil tool-class in DTest test frame.
Step 203, detects in test code whether comprise the first note by default test frame;
After default test frame is activated, server can detect in test code whether comprise the first note by presetting test frame.Wherein, this first note uses remote server to carry out remote testing to tested code for asking.
Such as, whether comprise this@Remote for the first note for@Remote, DTest test frame can detect in test code to explain.
Step 204, if comprise the first note in test code, sends test request to remote server by default test frame.
If the testing result presetting test frame is comprise the first note in test code, then server can send test request to remote server by this default test frame.Accordingly, after remote server receives this test request, remote server carries out remote testing to tested code.Alternatively, default test frame can use http-client.jar to wrap and send Http request to remote server, and the present embodiment does not limit this.
Alternatively, server by preset test frame detect in test code comprise the first note time, server can continue to perform the follow-up code in test code, and perform corresponding to default tool-class for sending note (MvcTestUtil#post () as in DTest test frame) of test request time, server sends test request to remote server by presetting test frame, and the present embodiment does not limit this.
Alternatively, default test frame transmission test request can comprise to the step of remote server: send test request to remote server by the default tool-class in default test request.
Alternatively, address and the port of remote server in the first note content explained, can be comprised, so preset tool-class can send test request to remote server according to the address of remote server and port.
Such as, explain as@Remote (" 192.268.0.151:8090 ") for first, MvcTestUtil tool-class can send test request to be 192.268.0.151 port to address be 8090 server.
What need supplementary notes is a bit, if the testing result presetting test frame is do not comprise the first note in test code, then now default test frame can start integrated local test framework Spring-test and carry out local test to tested code, and the present embodiment does not limit this.
Such as, be integrated with Spring-test test frame for DTest test frame, when DTest test frame detect in test code do not comprise@Remote time, DTest test frame can start Spring-test test frame to be tested tested code.
Need supplementary notes on the other hand, default test frame in the present embodiment can be expand based on Junit test frame the framework obtained, also the test code namely in the present embodiment write writing of the test code be similar in Junit, so developer can be easy to know how this uses the default test frame in the present embodiment, reduces the learning cost of user.And when default test frame is when expanding based on Junit the test frame obtained, can also comprise in test code for representing the note Test using Junit test frame, the present embodiment does not limit this.
Need supplementary notes more again, with default test frame for DTest test frame, and DTest test frame is that to expand based on Junit the test frame obtained be example, and in an application scenarios of the present embodiment, the partial code in test code can be:
Accordingly, this code test method can comprise:
(1), server perform in test code@RunWith (DTest.class) time start DTest test frame.
(2) when, server performs in test code@Autowired by tested code injection in the MvcTestUtil tool-class in DTest test frame.
(3), DTest test frame judges that obtaining comprising@Remote in test code explains.
(4) Junit test frame is loaded when, server performs in test code@Test.
(5), when performing MvcTestUtil#post (), the address indicated by DTest test frame is sent in http test request to@Remote note by MvcTestUtil tool-class is 192.268.0.151 port is 8090 remote servers.By remote server, tested code is tested.
Wherein, when DTest test frame judges that obtaining not comprising@Remote in test code explains, when DTest test frame performs MvcTestUtil#post (), DTest test frame directly will carry out local test by Spring-test test frame to tested code.
Need supplementary notes more again, each in the present embodiment is explained and is referred to before at least one of statement in bag, class, field, method, local variable and method parameter, and for being described these elements and annotating.
In sum, the code test method that the present embodiment provides, remote server is used to carry out the first note of remote testing to tested code by adding in test code for asking, make it possible to directly send test request to remote server, and by remote server, tested code is tested; Solve after developer in prior art needs to write complicated request code and could realize remote testing, also namely the lower problem of the testing efficiency of remote testing is carried out to tested code; Reach the effect that can improve the testing efficiency tested code being carried out to remote testing.
The present embodiment explains the remote testing to tested codes implement simply and easily by first, reach when tested code is wrong, developer can Timeliness coverage and then check fast and revise, and effectively shortens the time that developer solves the code error of tested code.
Need supplementary notes a bit, the code test method in above-described embodiment can also comprise the steps:
(1), according to the 4th note in test code, virtual Mock test is carried out to tested code by presetting test frame.
When being integrated with Mock test frame (as Mockito test frame) in default test frame, when server performs the 4th note in test code, server can be explained according to the 4th carry out virtual test to tested code.
Alternatively, when performing the InjectMocks in test code when server, server can carry out the injection of Mock object, and then realizes Mock test, and the present embodiment does not limit this.
(2), according to the 5th note in test code, parametrization test is carried out to tested code by presetting test frame.
When being integrated with parametrization test frame (Feeder test frame) in default test frame, server can detect and carry out parametrization test the need of to tested code, when testing result carries out parametrization test for needs to tested code, server directly can also carry out parametrization test.The present embodiment does not limit this.
By Mock test frame integrated in default test frame, Feeder test frame or simultaneously integrated above-mentioned both, make server can directly use this default test frame complete Mock test, parametrization test or complete simultaneously above-mentioned both, improve the testing efficiency to tested code.Meanwhile, this also writes complexity what virtually reduce test code, improves the enthusiasm that developer writes test code, ensure that the quality of tested code.
It should be noted that, when also needing to realize the test of other types by default test frame, presetting in test frame can also the integrated test frame for realizing other types, and the present embodiment does not limit this.
Please refer to Fig. 3, it illustrates the block diagram of the code tester device that one embodiment of the invention provides, it is all or part of that this code tester device can become in testing server by software or hardware implementing.As shown in Figure 3, this code tester device can comprise: code detection module 310 and request sending module 320.
Code detection module 310, for detecting in test code whether comprise the first note, first explains for asking use remote server to carry out remote testing to tested code;
Request sending module 320, for being when comprising the first note in test code in the testing result of code detection module 310, send test request to remote server, test request carries out remote testing for asking remote server to tested code.
In sum, the code tester device that the present embodiment provides, remote server is used to carry out the first note of remote testing to tested code by adding in test code for asking, make it possible to directly send test request to remote server, and by remote server, tested code is tested; Solve after developer in prior art needs to write complicated request code and could realize remote testing, also namely the lower problem of the testing efficiency of remote testing is carried out to tested code; Reach the effect that can improve the testing efficiency tested code being carried out to remote testing.
Please refer to Fig. 4, it illustrates the block diagram of the code tester device that one embodiment of the invention provides, it is all or part of that this code tester device can become in testing server by software or hardware implementing.As shown in Figure 4, this code tester device can comprise: code detection module 410 and request sending module 420.
Code detection module 410, for detecting in test code whether comprise the first note, first explains for asking use remote server to carry out remote testing to tested code;
Request sending module 420, for being when comprising the first note in test code in the testing result of code detection module 410, send test request to remote server, test request carries out remote testing for asking remote server to tested code.
Alternatively, this code detection module 410, comprising:
Framework start unit 411, preset test frame for explaining to start according to second in test code, the second note uses default test frame to test tested code for asking;
Code detection unit 412, detects in test code whether comprise the first note for the default test frame started by framework start unit 411;
This request sending module 420, also for sending test request to remote server by presetting test frame.
Alternatively, device also comprises:
Code injection module 430, for explaining tested code injection in the default tool-class preset in test frame according to the 3rd in test code;
This request sending module 420, also for sending test request to remote server by presetting tool-class.
Alternatively, this request sending module 420, also for when the first note comprises address and the port of remote server, presets tool-class and sends test request to remote server according to the address of remote server and port.
Alternatively, device also comprises:
First test module 440, for carrying out virtual Mock test according to the 4th note in test code to tested code by presetting test frame; And/or,
Second test module 450, for carrying out parametrization test according to the 5th note in test code to tested code by presetting test frame.
Alternatively, the 3rd test module 460, for being, when not comprising the first note in test code, carry out local test to test code in the testing result of code detection module 410.
In sum, the code tester device that the present embodiment provides, remote server is used to carry out the first note of remote testing to tested code by adding in test code for asking, make it possible to directly send test request to remote server, and by remote server, tested code is tested; Solve after developer in prior art needs to write complicated request code and could realize remote testing, also namely the lower problem of the testing efficiency of remote testing is carried out to tested code; Reach the effect that can improve the testing efficiency tested code being carried out to remote testing.
By Mock test frame integrated in default test frame, Feeder test frame or simultaneously integrated above-mentioned both, make server can directly use this default test frame complete Mock test, parametrization test or complete simultaneously above-mentioned both, improve the testing efficiency to tested code.Meanwhile, this also writes complexity what virtually reduce test code, improves the enthusiasm that developer writes test code, ensure that the quality of tested code.
It should be noted that: the code tester device that above-described embodiment provides is when carrying out code tester, only be illustrated with the division of above-mentioned each functional module, in practical application, can distribute as required and by above-mentioned functions and be completed by different functional modules, inner structure by equipment is divided into different functional modules, to complete all or part of function described above.In addition, the code tester device that above-described embodiment provides and the embodiment of the method for code test method belong to same design, and its specific implementation process refers to embodiment of the method, repeats no more here.
Please refer to Fig. 5, it illustrates the structural representation of the server that one embodiment of the invention provides.Described server 500 comprises CPU (central processing unit) (CPU) 501, comprises the system storage 504 of random access memory (RAM) 502 and ROM (read-only memory) (ROM) 503, and the system bus 505 of connected system storer 504 and CPU (central processing unit) 501.Described server 500 also comprises the basic input/output (I/O system) 506 of transmission information between each device in help computing machine, and for storing the mass-memory unit 507 of operating system 513, application program 515 and other program modules 515.
Described basic input/output 506 includes the input equipment 509 of the display 508 for showing information and the such as mouse, keyboard and so on for user's input information.Wherein said display 508 and input equipment 509 are all connected to CPU (central processing unit) 501 by the input/output control unit 510 being connected to system bus 505.Described basic input/output 506 can also comprise input/output control unit 510 for receiving and processing the input from other equipment multiple such as keyboard, mouse or electronic touch pens.Similarly, input/output control unit 510 also provides the output device outputting to display screen, printer or other types.
Described mass-memory unit 507 is connected to CPU (central processing unit) 501 by the bulk memory controller (not shown) being connected to system bus 505.Described mass-memory unit 507 and the computer-readable medium that is associated thereof provide non-volatile memories for server 500.That is, described mass-memory unit 507 can comprise the computer-readable medium (not shown) of such as hard disk or CD-ROM drive and so on.
Without loss of generality, described computer-readable medium can comprise computer-readable storage medium and communication media.Computer-readable storage medium comprises the volatibility and non-volatile, removable and irremovable medium that realize for any method or technology that store the information such as such as computer-readable instruction, data structure, program module or other data.Computer-readable storage medium comprises RAM, ROM, EPROM, EEPROM, flash memory or its technology of other solid-state storage, CD-ROM, DVD or other optical memory, tape cassete, tape, disk storage or other magnetic storage apparatus.Certainly, the known described computer-readable storage medium of those skilled in the art is not limited to above-mentioned several.Above-mentioned system storage 504 and mass-memory unit 507 can be referred to as storer.
According to various embodiments of the present invention, the remote computer that described server 500 can also be connected on network by networks such as such as the Internets runs.Also namely server 500 can be connected to network 512 by the network interface unit 511 be connected on described system bus 505, in other words, network interface unit 511 also can be used to be connected to network or the remote computer system (not shown) of other types.
Described storer also comprises one or more than one program, and described more than one or one program is stored in storer, the code test method that described more than one or one program provides for performing above-described embodiment.
The invention described above embodiment sequence number, just to describing, does not represent the quality of embodiment.
One of ordinary skill in the art will appreciate that all or part of step realizing above-described embodiment can have been come by hardware, the hardware that also can carry out instruction relevant by program completes, described program can be stored in a kind of computer-readable recording medium, the above-mentioned storage medium mentioned can be ROM (read-only memory), disk or CD etc.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, within the spirit and principles in the present invention all, any amendment done, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (12)

1. a code test method, is characterized in that, described method comprises:
Detect in test code and whether comprise the first note, described first explains for asking use remote server to carry out remote testing to tested code;
If comprise described first in described test code to explain, then send test request to described remote server, described test request carries out remote testing for asking described remote server to described tested code.
2. method according to claim 1, is characterized in that, whether comprises the first note, comprising in described detection test code:
Explain to start according to second in described test code and preset test frame, described second explains for asking the described default test frame of use to be tested described tested code;
Detect in described test code whether comprise described first note by described default test frame;
Described transmission test request, to described remote server, comprising:
Described test request is sent to described remote server by described default test frame.
3. method according to claim 2, is characterized in that, described method also comprises:
Explain in the default tool-class in described tested code injection to described default test frame according to the 3rd in described test code;
Describedly send described test request to described remote server by described default test frame, comprising:
Described test request is sent to described remote server by described default tool-class.
4. method according to claim 3, is characterized in that, describedly sends described test request to described remote server by described default tool-class, comprising:
Described first explains the address and the port that comprise described remote server, and described default tool-class sends described test request to described remote server according to the address of described remote server and port.
5., according to the arbitrary described method of claim 2 to 4, it is characterized in that, described method also comprises:
According to the 4th note in described test code, virtual Mock test is carried out to described tested code by described default test frame; And/or,
According to the 5th note in described test code, parametrization test is carried out to described tested code by described default test frame.
6., according to the arbitrary described method of Claims 1-4, it is characterized in that,
If do not comprise described first in described test code to explain, then local test is carried out to described test code.
7. a code tester device, is characterized in that, described device comprises:
Code detection module, for detecting in test code whether comprise the first note, described first explains for asking use remote server to carry out remote testing to tested code;
Request sending module, for in the testing result of described code detection module be comprise in described test code described first explain time, send test request to described remote server, described test request carries out remote testing for asking described remote server to described tested code.
8. device according to claim 7, is characterized in that, described code detection module, comprising:
Framework start unit, presets test frame for explaining to start according to second in described test code, and described second explains for asking the described default test frame of use to be tested described tested code;
Code detection unit, the described default test frame for being started by described framework start unit detects in described test code whether comprise described first note;
Described request sending module, also for being sent described test request by described default test frame to described remote server.
9. device according to claim 8, is characterized in that, described device also comprises:
Code injection module, for explaining in the default tool-class in described tested code injection to described default test frame according to the 3rd in described test code;
Described request sending module, also for being sent described test request by described default tool-class to described remote server.
10. device according to claim 9, is characterized in that,
Described request sending module, also for when described first note comprises address and the port of described remote server, described default tool-class sends described test request to described remote server according to the address of described remote server and port.
Device described in 11. according to Claim 8 to 10 are arbitrary, it is characterized in that, described device also comprises:
First test module, for carrying out virtual Mock test according to the 4th note in described test code to described tested code by described default test frame; And/or,
Second test module, for carrying out parametrization test according to the 5th note in described test code to described tested code by described default test frame.
12., according to the arbitrary described device of claim 7 to 10, is characterized in that,
3rd test module, in the testing result of described code detection module be do not comprise in described test code described first explain time, local test is carried out to described test code.
CN201410788314.2A 2014-12-17 2014-12-17 Code test method and device Active CN104536884B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410788314.2A CN104536884B (en) 2014-12-17 2014-12-17 Code test method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410788314.2A CN104536884B (en) 2014-12-17 2014-12-17 Code test method and device

Publications (2)

Publication Number Publication Date
CN104536884A true CN104536884A (en) 2015-04-22
CN104536884B CN104536884B (en) 2017-11-14

Family

ID=52852414

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410788314.2A Active CN104536884B (en) 2014-12-17 2014-12-17 Code test method and device

Country Status (1)

Country Link
CN (1) CN104536884B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106126429A (en) * 2016-08-15 2016-11-16 北京小鸟看看科技有限公司 A kind of method of testing and equipment
CN108199921A (en) * 2017-12-29 2018-06-22 上海瑞家信息技术有限公司 The method, apparatus and storage medium of a kind of simulation test
CN108845953A (en) * 2018-08-27 2018-11-20 北京奇虎科技有限公司 The method and device of interface testing
CN110768860A (en) * 2019-09-18 2020-02-07 平安科技(深圳)有限公司 Test method, test device and electronic equipment

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6523137B1 (en) * 1999-10-12 2003-02-18 Cisco Technology, Inc. Method and system for remote testing of application program interfaces
CN102841846A (en) * 2012-08-27 2012-12-26 北京邮电大学 Software testing method, device and system based on Hadoop

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6523137B1 (en) * 1999-10-12 2003-02-18 Cisco Technology, Inc. Method and system for remote testing of application program interfaces
CN102841846A (en) * 2012-08-27 2012-12-26 北京邮电大学 Software testing method, device and system based on Hadoop

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
JINNIANSHILONGNIAN: ""Spring MVC测试框架详解--服务器端测试"", 《HTTP://JINNIANSHILONGNIAN.COM/BLOG/2004660》 *
左刚: ""基于JUnit框架的接口测试系统研究与实现"", 《中国优秀硕士学位论文全文数据库 信息科技辑》 *
赵才文: ""使用Spring进行单元测试"", 《HTTP://WWW.IBM.COM/DEVELOPERWORKS/CN/JAVA/J-LO-SPRINGUNITEST/》 *
黎活明: ""EJB3.0实例教程"", 《HTTP://SOFTDOWN.ELECFANS.NET/DM/ELEC/EJB3.PDF》 *

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106126429A (en) * 2016-08-15 2016-11-16 北京小鸟看看科技有限公司 A kind of method of testing and equipment
CN106126429B (en) * 2016-08-15 2019-07-26 北京小鸟看看科技有限公司 A kind of test method and equipment
CN108199921A (en) * 2017-12-29 2018-06-22 上海瑞家信息技术有限公司 The method, apparatus and storage medium of a kind of simulation test
CN108845953A (en) * 2018-08-27 2018-11-20 北京奇虎科技有限公司 The method and device of interface testing
CN108845953B (en) * 2018-08-27 2023-02-17 北京奇虎科技有限公司 Interface testing method and device
CN110768860A (en) * 2019-09-18 2020-02-07 平安科技(深圳)有限公司 Test method, test device and electronic equipment
CN110768860B (en) * 2019-09-18 2022-03-15 平安科技(深圳)有限公司 Test method, test device and electronic equipment

Also Published As

Publication number Publication date
CN104536884B (en) 2017-11-14

Similar Documents

Publication Publication Date Title
CN105099811A (en) Interface testing method and device
CN107404418B (en) Internet product testing method, device, equipment and storage medium
CN104516838B (en) Manage determining method of path and device
CN104243590A (en) Resource object recommendation method and device
CN110908837B (en) Application program exception handling method and device, electronic equipment and storage medium
CN104536884A (en) Code testing method and device
CN107807841B (en) Server simulation method, device, equipment and readable storage medium
CN101819550A (en) Interface testing system for serial connecting small computer system
CN104918119A (en) Video processing method based on iOS browser, and video processing apparatus based on iOS browser
CN107798064A (en) Page processing method, electronic equipment and computer-readable recording medium
CN107817962B (en) Remote control method, device, control server and storage medium
CN104050054A (en) Processing method for installation package installation failure and cause determining method and device
CN111181771A (en) Security changing abnormity positioning method and device based on fort machine and electronic equipment
CN106302011B (en) Multi-terminal-based test method and terminal
CN112463067A (en) Data protection method and equipment in NVMe-oF scene
CN112463574A (en) Software testing method, device, system, equipment and storage medium
CN113535578B (en) CTS test method, CTS test device and CTS test equipment
CN111949510B (en) Test processing method, device, electronic equipment and readable storage medium
KR101415270B1 (en) Network system monitoring application installed on computing device
CN108614704A (en) Code compiling method and device
CN108848398B (en) Method, device, terminal and storage medium for distributing local barrage messages
CN107678967B (en) Unit test coverage rate generation method and device, readable storage medium and equipment
EP4354308A2 (en) Computer system and method for evaluating integrity and parsing of a file system and parsing implementation
CN111371799A (en) Method, device and equipment for controlling data transmission and reception of MCTP (Multi-channel media processing protocol) controller
CN110597517A (en) Method and device for dynamically analyzing mat file

Legal Events

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

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

Patentee after: Guangzhou KuGou Networks Co., Ltd.

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

Patentee before: Guangzhou KuGou Networks Co., Ltd.

CP02 Change in the address of a patent holder