CN106155900A - A kind of code tester monitoring method, device and equipment - Google Patents

A kind of code tester monitoring method, device and equipment Download PDF

Info

Publication number
CN106155900A
CN106155900A CN201510185623.5A CN201510185623A CN106155900A CN 106155900 A CN106155900 A CN 106155900A CN 201510185623 A CN201510185623 A CN 201510185623A CN 106155900 A CN106155900 A CN 106155900A
Authority
CN
China
Prior art keywords
test
server
probe
coverage rate
result file
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
CN201510185623.5A
Other languages
Chinese (zh)
Other versions
CN106155900B (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.)
Shenzhen Yayue Technology 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 CN201510185623.5A priority Critical patent/CN106155900B/en
Publication of CN106155900A publication Critical patent/CN106155900A/en
Application granted granted Critical
Publication of CN106155900B publication Critical patent/CN106155900B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The invention discloses a kind of code tester monitoring method, device and equipment, described method includes: performs tested code and tests, and described tested code includes the probe inserted by the operation of coverage rate pitching pile;When the probe that described tested code includes is performed, it is thus achieved that the execution result of described probe;Execution result according to described probe generates test result file, and described test result file is sent to server, and described server is for determining test coverage according to described test result file;When the operation that test is exited in request being detected, it is sent completely test request to described server, receives the return information of server, judge whether that prompting proceeds test according to instruction in described return information;Wherein, in described server discriminating test coverage rate less than when presetting coverage rate threshold value, described return information is designated as proceed test.The present invention can the test case of more accurately monitoring code.

Description

A kind of code tester monitoring method, device and equipment
Technical field
The present invention relates to field of computer technology, more particularly, to a kind of code tester monitoring method, dress Put and equipment.
Background technology
In the prior art, for the code developed, code can be carried out in using environment by user Test.Machine used by user, residing network, the operating habit of user, be all have various Situation, so the method carrying out code tester by user, have more value.In test process, Need monitoring user test work carries out situation.
A kind of code tester monitoring method is the duration that detection user uses tested code, and length exceedes when deployed After scheduled duration, determine and be complete code tester.The defect of the method is, if only starting code, And do not carry out code tester, still can exceed scheduled duration by use duration, it is thus regarded that user completes Test.But, actually user does not test.
Summary of the invention
In view of this, the purpose of the embodiment of the present invention is to provide a kind of code tester monitoring method, device and sets Standby, in order to the test case of more accurately monitoring code.
In order to achieve the above object, the embodiment of the present invention is by the following technical solutions:
First aspect according to embodiments of the present invention, it is provided that a kind of code tester monitoring method, including following step Rapid:
Performing tested code to test, described tested code includes being operated by coverage rate pitching pile The probe inserted;
When the probe that described tested code includes is performed, it is thus achieved that the execution result of described probe;
Execution result according to described probe generates test result file, described test result file is sent To server, described server is for determining test coverage according to described test result file;
When the operation that test is exited in request being detected, it is sent completely test request to described server, connects Receive the return information of server, judge whether that prompting proceeds to survey according to instruction in described return information Examination;
Wherein, when described server discriminating test coverage rate is less than default coverage rate threshold value, described reply Information is designated as proceed test.
In one embodiment, described when the operation that test is exited in request being detected, send to server Becoming test request, after receiving the return information of server, described method also includes:
Test has been determined whether according to instruction in described return information;
Wherein, when described server discriminating test coverage rate is not less than default coverage rate threshold value, described time Complex information is designated as allowed test.
In one embodiment, the described execution result according to described probe generates test result file, by institute State test result file and be sent to server, including:
Use intervalometer, when timing arrives, generate test knot according to the execution result of described probe Really file, is sent to server by described test result file.
In one embodiment, the described execution result according to described probe generates test result file, by institute State test result file and be sent to server, including:
When the operation that test is exited in request being detected, generate test knot according to the execution result of described probe Really file, is sent to server by described test result file.
Second aspect according to embodiments of the present invention, it is provided that a kind of code tester monitoring method, is used for servicing Device, comprises the following steps:
Test result file according to receiving determines that test coverage, described test result file are tested generation After the probe by the operation insertion of coverage rate pitching pile included in Ma is performed, generate according to performing result File;
When having received test request, it is judged that whether test coverage is less than presetting coverage rate threshold value;
When test coverage is less than when presetting coverage rate threshold value, reply the instruction including proceeding test Return information.
In one embodiment, described method also includes: when test coverage is not less than presetting coverage rate threshold value Time, reply the return information including having allowed the instruction of test.
The third aspect according to embodiments of the present invention, it is provided that a kind of code tester monitoring device, including:
Performing module, be used for performing tested code and test, described tested code includes by covering The probe that the operation of lid rate pitching pile is inserted;
Obtain module, for when the probe that described tested code includes is performed, it is thus achieved that described probe Execution result;
Generation module, generates test result file for the execution result according to described probe, by described test Destination file is sent to server, according to described test result file, described server is for determining that test is covered Lid rate;
Prompting module, for when the operation that test is exited in request being detected, being sent completely to described server Test request, receives the return information of server, judges whether to remind according to instruction in described return information Proceed test;
Wherein, when described server discriminating test coverage rate is less than default coverage rate threshold value, described reply Information is designated as proceed test.
In one embodiment, described device also includes:
Allow module, for when the operation that test is exited in request being detected, being sent completely test to server Request, after receiving the return information of server, has determined whether according to instruction in described return information Become test;
Wherein, when described server discriminating test coverage rate is not less than default coverage rate threshold value, described time Complex information is designated as allowed test.
In one embodiment, described generation module, it is used for using intervalometer, when timing arrives, Execution result according to described probe generates test result file, and described test result file is sent to clothes Business device.
In one embodiment, described generation module, it is used for when the operation that test is exited in request being detected, Execution result according to described probe generates test result file, and described test result file is sent to clothes Business device.
Fourth aspect according to embodiments of the present invention, it is provided that a kind of code tester monitoring device, is used for servicing Device, including:
Determine module, for determining test coverage, described test result according to the test result file received After the probe by the operation insertion of coverage rate pitching pile that file is included in tested code is performed, according to Perform the file that result generates;
Judge module, for when having received test request, it is judged that whether test coverage is less than presetting Coverage rate threshold value;
Reply module, for when test coverage is less than when presetting coverage rate threshold value, replying and include proceeding The return information of the instruction of test.
In one embodiment, described reply module, it is additionally operable to when test coverage is not less than presetting coverage rate threshold During value, reply the return information including having allowed the instruction of test.
The 5th aspect according to embodiments of the present invention, it is provided that a kind of equipment, described equipment includes in the third aspect Code tester monitoring device described in any embodiment.
The 6th aspect according to embodiments of the present invention, it is provided that a kind of equipment, described equipment includes in fourth aspect Code tester monitoring device described in any embodiment.
The technology that the embodiment of the present invention provides includes following beneficial effect:
The technical scheme that the embodiment of the present invention provides, performs tested code and tests, in tested code Including the probe inserted by the operation of coverage rate pitching pile;The probe included when tested code is performed Time, it is thus achieved that the execution result of probe;Execution result according to probe generates test result file, will test Destination file is sent to server, and server is for determining test coverage according to test result file;When When the operation of test is exited in the request of detecting, it is sent completely test request to server, receives server According to instruction in return information, return information, judges whether that prompting proceeds test;Wherein, in service Device discriminating test coverage rate, less than when presetting coverage rate threshold value, is designated as in return information proceeding test. So, probe is utilized to determine the test case of code, it is possible to the more accurately test case of monitoring code; Further, automatically generate test result file according to the execution result of probe, determine that test is covered according to test result Lid rate, determines whether to proceed test according to test coverage, it is not necessary to user carries out operation bidirectional, alleviates User test is born, it is simple to user tests.
The further feature of the embodiment of the present invention and advantage will illustrate in the following description, and, partly Become apparent from description, or understand by implementing the present invention.The purpose of the present invention and other Advantage can be come real by structure specifically noted in the description write, claims and accompanying drawing Now and obtain.
Below by drawings and Examples, the technical scheme of the embodiment of the present invention is done and further retouches in detail State.
Accompanying drawing explanation
Accompanying drawing is used for providing being further appreciated by the embodiment of the present invention, and constitutes a part for description, It is used for together with embodiments of the present invention explaining the present invention, is not intended that the restriction to the embodiment of the present invention.? In accompanying drawing:
Fig. 1 is the flow chart of the code tester monitoring method that one embodiment of the invention provides;
Fig. 2 is the flow chart of the code tester monitoring method that the embodiment of the present invention one provides;
Fig. 3 is the flow chart of the code tester monitoring method that one embodiment of the invention provides;
Fig. 4 is the structure chart of the code tester monitoring device that one embodiment of the invention provides;
Fig. 5 is the structure chart of the code tester monitoring device that another embodiment of the present invention provides;
Fig. 6 is the structure chart of the code tester monitoring device that one embodiment of the invention provides.
Detailed description of the invention
Below in conjunction with accompanying drawing, the preferred embodiments of the present invention are illustrated, it will be appreciated that described herein Preferred embodiment is merely to illustrate and explains the embodiment of the present invention, is not intended to limit the present invention embodiment.
Fig. 1 is the flow chart of the code tester monitoring method that one embodiment of the invention provides.As it is shown in figure 1, The method comprises the steps S101-S104.
In step S101, perform tested code and test.
Wherein, tested code includes the probe inserted by the operation of coverage rate pitching pile.
For example, EMMA (Emma, Java code coverage rate statistical tool) and GCOV (C or C++ or object-C code coverage testing tool) all can carry out pitching pile operation insertion probe.For opening The code sent, uses above-mentioned instrument to insert probe, will be inserted the code of probe by the operation of coverage rate pitching pile As tested code, perform this tested code and test.
In step s 102, when the probe included when tested code is performed, it is thus achieved that the execution of probe Result.
In step s 103, generate test result file according to the execution result of probe, by test result literary composition Part is sent to server.
Wherein, server is for determining test coverage according to test result file.
For example, develop generation module, generation module perform step S103 operates, will generate Module is packed, such as, be packaged as SDK (SDK), adds code to be tested when packing In, and then compile out the tested code that can generate and send test result file.
In one embodiment, the above-mentioned execution result according to probe generates test result file, by test result File is sent to server and comprises the steps that use intervalometer, when timing arrives, and holding according to probe Row result generates test result file, and test result file is sent to server.
For example, the generation module developed perform aforesaid operations, i.e. use intervalometer, work as timing During arrival, generate test result file according to the execution result of probe, test result file is sent to clothes Business device.Generation module and intervalometer are added in code to be tested, and then compiles out and can regularly generate also Send the tested code of test result file.
In one embodiment, the above-mentioned execution result according to probe generates test result file, by test result File is sent to server and comprises the steps that when the operation that test is exited in request being detected, holding according to probe Row result generates test result file, and test result file is sent to server.
For example, the generation module developed aforesaid operations is performed, i.e. when detecting that test is exited in request During operation, generate test result file according to the execution result of probe, test result file is sent to clothes Business device.Generation module is added in code to be tested, and then compiles out and can work as the request of detecting and exit survey During the operation tried, generate and send the tested code of test result file.
In the present invention, method may also comprise: uses intervalometer, when timing arrives, holding according to probe Row result generates test result file, and test result file is sent to server;And the request of detecting is moved back When going out the operation of test, generate test result file, by test result file according to the execution result of probe It is sent to server.
After the test result file that server receives, determine test coverage according to test result file, and protect Deposit this test coverage.
In step S104, when the operation that test is exited in request being detected, it is sent completely survey to server Examination request, receive server return information, according in return information instruction judge whether prompting continue into Row test.
Wherein, when server discriminating test coverage rate is less than default coverage rate threshold value, return information middle finger It is shown as and proceeds test.
For example, when the operation that test is exited in request being detected, being sent completely test to server please Ask.Server discriminating test coverage rate, less than presetting after coverage rate threshold value, sends to comprise and proceeds test and refer to The return information shown.According to return information comprises the instruction proceeding test, remind and proceed test.
In one embodiment, above-mentioned when the operation that test is exited in request being detected, it is sent completely to server Test request, after receiving the return information of server, said method may also include that according in return information Instruction has determined whether test.
Wherein, when server discriminating test coverage rate is not less than default coverage rate threshold value, in return information It is designated as having allowed test.
For example, when the operation that test is exited in request being detected, being sent completely test to server please Ask.Server discriminating test coverage rate, not less than presetting after coverage rate threshold value, sends to comprise and has allowed test The return information of instruction.According to return information comprises the instruction having allowed test, it is allowed to complete test, And then exit test.
The technology that the embodiment of the present invention provides includes following beneficial effect: utilize probe to determine the test feelings of code Condition, it is possible to the more accurately test case of monitoring code;Further, automatically give birth to according to the execution result of probe Become test result file, determine test coverage according to test result, determine whether to continue according to test coverage Continue and test, it is not necessary to user carries out operation bidirectional, alleviates user test burden, it is simple to user tests.
Embodiment one
Fig. 2 is the flow chart of code tester monitoring method that the embodiment of the present invention one provides, the method be used for into The client of line code test, as in figure 2 it is shown, method comprises the steps: in embodiment
Step S201, performs tested code and tests.
Wherein, tested code includes the probe inserted by the operation of coverage rate pitching pile.
The process generating tested code includes: insert spy at code to be tested by the operation of coverage rate pitching pile Pin, such as, uses EMMA to carry out pitching pile, for IOS for the java language codes in Android system In (Apple Macintosh operating system), C/C++/Object-C language codes uses GCOV to carry out pitching pile;To generate Module and intervalometer add in code to be tested, such as, generation module are packaged as SDK, add when packing Enter in code to be tested;To code to be tested and then compiling, generate tested code.
So, it is not necessary to change source code and just can realize code tester monitoring.
Step S202, when the probe that tested code includes is performed, it is thus achieved that the execution result of probe.
Step S203, uses intervalometer, when timing arrives, generates according to the execution result of probe and surveys Test result file, is sent to server by test result file.
Server is for determining test coverage according to test result file and preserving.
Step S204, when the operation that test is exited in request being detected, generates according to the execution result of probe and surveys Test result file, is sent to test result file server, and is sent completely test request to server.
Such as, when user clicks on and exits button, the operation of test is exited in the request of detecting, according to probe Perform result and generate test result file, test result file is sent to server, and sends to server Complete test request.Server determines test coverage, by Test coverage according to the test result file received Rate with default coverage rate threshold ratio relatively, when test coverage is less than when presetting coverage rate threshold value, is replied and is included continuing In the return information of the continuous instruction carrying out testing;When test coverage is not less than when presetting coverage rate threshold value, return Include the return information having allowed the instruction of test again.
Step S205, receives the return information of server, judges whether that prompting continues according to instruction in return information Continue and test, and determined whether test.
When test coverage less than preset coverage rate threshold value time, according in return information indicate, remind continue into Row test;When test coverage is not less than when presetting coverage rate threshold value, indicate according in return information, it is allowed to Complete test, allow for user and exit test.
The technology that the embodiment of the present invention provides includes following beneficial effect: utilize probe to determine the test feelings of code Condition, it is possible to the more accurately test case of monitoring code;Further, automatically give birth to according to the execution result of probe Become test result file, determine test coverage according to test result, determine whether to continue according to test coverage Continue and test, it is not necessary to user carries out operation bidirectional, alleviates user test burden, it is simple to user tests.
Fig. 3 is the flow chart of the code tester monitoring method that one embodiment of the invention provides, and the method is used for taking Business device, as it is shown on figure 3, comprise the steps:
Step S301, the test result file according to receiving determines test coverage.
Wherein, the spy inserted by the operation of coverage rate pitching pile included during test result file is tested code After pin is performed, according to performing the file that result generates.
Step S302, when having received test request, it is judged that whether test coverage covers less than presetting Rate threshold value.
Step S303, when test coverage is less than when presetting coverage rate threshold value, replys and includes proceeding test The return information of instruction.
In one embodiment, said method may also include that when test coverage is not less than presetting coverage rate threshold value Time, reply the return information including having allowed the instruction of test.
For example, server receives test result file, and the test result file according to receiving determines test Coverage rate;By test coverage with default coverage rate threshold ratio relatively, when test coverage is less than presetting coverage rate During threshold value, reply the return information including proceeding the instruction of test;When test coverage is not less than presetting During coverage rate threshold value, reply the return information including having allowed the instruction of test.
The technology that the embodiment of the present invention provides includes following beneficial effect: utilize probe to determine the test feelings of code Condition, it is possible to the more accurately test case of monitoring code;By test coverage and default coverage rate threshold ratio Relatively, according to compare indicate whether prompting proceed test.
The structure chart of the code tester detection device that Fig. 4 provides for one embodiment of the invention, as shown in Figure 4, This code tester monitoring device includes:
Performing module 41, be used for performing tested code and test, described tested code includes passing through The probe that the operation of coverage rate pitching pile is inserted;
Obtain module 42, for when the probe that tested code includes is performed, it is thus achieved that the execution of probe Result;
Generation module 43, generates test result file for the execution result according to probe, by test result literary composition Part is sent to server, and server is for determining test coverage according to test result file;
Prompting module 44, for when the operation that test is exited in request being detected, being sent completely survey to server Examination request, receive server return information, according in return information instruction judge whether prompting continue into Row test;
Wherein, when server discriminating test coverage rate is less than default coverage rate threshold value, return information middle finger It is shown as and proceeds test.
In one embodiment, as it is shown in figure 5, device also includes:
Allow module 51, for when the operation that test is exited in request being detected, being sent completely survey to server Examination request, after receiving the return information of server, has determined whether according to instruction in return information Test;
Wherein, when server discriminating test coverage rate is not less than default coverage rate threshold value, in return information It is designated as having allowed test.
In one embodiment, generation module, it is used for using intervalometer, when timing arrives, according to spy The execution result of pin generates test result file, and test result file is sent to server.
In one embodiment, generation module, for when detecting the operation that test is exited in request, according to spy The execution result of pin generates test result file, and test result file is sent to server.
About the device in above-described embodiment, wherein modules performs the concrete mode of operation relevant The embodiment of the method is described in detail, explanation will be not set forth in detail herein.
The embodiment of the present invention additionally provides a kind of equipment, and this equipment includes the generation described in any of the above-described embodiment Code test monitoring device.
The structure chart of the code tester detection device that Fig. 6 provides for one embodiment of the invention, this device is used for taking Business device, as shown in Figure 6, this code tester monitoring device includes:
Determine module 61, for determining test coverage according to the test result file received, test result literary composition After the probe by the operation insertion of coverage rate pitching pile that part is included in tested code is performed, according to holding The file that row result generates;
Judge module 62, for when having received test request, it is judged that whether test coverage is less than pre- If coverage rate threshold value;
Reply module 63, for when test coverage is less than when presetting coverage rate threshold value, reply include continuing into The return information of the instruction of row test.
In one embodiment, reply module, be additionally operable to when test coverage is not less than presetting coverage rate threshold value Time, reply the return information including having allowed the instruction of test.
About the device in above-described embodiment, wherein modules performs the concrete mode of operation relevant The embodiment of the method is described in detail, explanation will be not set forth in detail herein.
The embodiment of the present invention additionally provides a kind of equipment, and this equipment includes the generation described in any of the above-described embodiment Code test monitoring device.
Those skilled in the art are it should be appreciated that embodiments of the invention can be provided as method, system or meter Calculation machine program product.Therefore, the present invention can use complete hardware embodiment, complete software implementation or knot The form of the embodiment in terms of conjunction software and hardware.And, the present invention can use and wherein wrap one or more Computer-usable storage medium containing computer usable program code (include but not limited to disk memory and Optical memory etc.) form of the upper computer program implemented.
The present invention is with reference to method, equipment (system) and computer program product according to embodiments of the present invention The flow chart of product and/or block diagram describe.It should be understood that can by computer program instructions flowchart and / or block diagram in each flow process and/or flow process in square frame and flow chart and/or block diagram and/ Or the combination of square frame.These computer program instructions can be provided to general purpose computer, special-purpose computer, embedding The processor of formula datatron or other programmable data processing device is to produce a machine so that by calculating The instruction that the processor of machine or other programmable data processing device performs produces for realizing at flow chart one The device of the function specified in individual flow process or multiple flow process and/or one square frame of block diagram or multiple square frame.
These computer program instructions may be alternatively stored in and computer or the process of other programmable datas can be guided to set In the standby computer-readable memory worked in a specific way so that be stored in this computer-readable memory Instruction produce and include the manufacture of command device, this command device realizes in one flow process or multiple of flow chart The function specified in flow process and/or one square frame of block diagram or multiple square frame.
These computer program instructions also can be loaded in computer or other programmable data processing device, makes Sequence of operations step must be performed to produce computer implemented place on computer or other programmable devices Reason, thus the instruction performed on computer or other programmable devices provides for realizing flow chart one The step of the function specified in flow process or multiple flow process and/or one square frame of block diagram or multiple square frame.
In the above-described embodiments, a kind of non-transitory computer-readable storage medium including instruction is additionally provided Matter, such as, described non-transitory computer-readable recording medium can be ROM, random access memory (RAM), CD-ROM, tape, floppy disk and optical data storage devices etc..A kind of non-transitory computer Readable storage medium storing program for executing, when the instruction in described storage medium is performed by the processor of mobile terminal so that move Dynamic terminal is able to carry out above-mentioned wireless network switching method,
Obviously, those skilled in the art can carry out various change and modification without deviating from this to the present invention Bright spirit and scope.So, if the present invention these amendment and modification belong to the claims in the present invention and Within the scope of its equivalent technologies, then the present invention is also intended to comprise these change and modification.

Claims (14)

1. a code tester monitoring method, it is characterised in that comprise the following steps:
Performing tested code to test, described tested code includes being operated by coverage rate pitching pile The probe inserted;
When the probe that described tested code includes is performed, it is thus achieved that the execution result of described probe;
Execution result according to described probe generates test result file, described test result file is sent To server, described server is for determining test coverage according to described test result file;
When the operation that test is exited in request being detected, it is sent completely test request to described server, connects Receive the return information of server, judge whether that prompting proceeds to survey according to instruction in described return information Examination;
Wherein, when described server discriminating test coverage rate is less than default coverage rate threshold value, described reply Information is designated as proceed test.
Method the most according to claim 1, it is characterised in that described when detecting that survey is exited in request During the operation tried, it is sent completely test request to server, after receiving the return information of server, described Method also includes:
Test has been determined whether according to instruction in described return information;
Wherein, when described server discriminating test coverage rate is not less than default coverage rate threshold value, described time Complex information is designated as allowed test.
Method the most according to claim 1, it is characterised in that the described execution according to described probe Result generates test result file, and described test result file is sent to server, including:
Use intervalometer, when timing arrives, generate test knot according to the execution result of described probe Really file, is sent to server by described test result file.
Method the most according to claim 1, it is characterised in that the described execution according to described probe Result generates test result file, and described test result file is sent to server, including:
When the operation that test is exited in request being detected, generate test knot according to the execution result of described probe Really file, is sent to server by described test result file.
5. a code tester monitoring method, for server, it is characterised in that comprise the following steps:
Test result file according to receiving determines that test coverage, described test result file are tested generation After the probe by the operation insertion of coverage rate pitching pile included in Ma is performed, generate according to performing result File;
When having received test request, it is judged that whether test coverage is less than presetting coverage rate threshold value;
When test coverage is less than when presetting coverage rate threshold value, reply the instruction including proceeding test Return information.
Method the most according to claim 5, it is characterised in that described method also includes:
When test coverage is not less than when presetting coverage rate threshold value, reply the instruction including having allowed test Return information.
7. a code tester monitoring device, it is characterised in that including:
Performing module, be used for performing tested code and test, described tested code includes by covering The probe that the operation of lid rate pitching pile is inserted;
Obtain module, for when the probe that described tested code includes is performed, it is thus achieved that described probe Execution result;
Generation module, generates test result file for the execution result according to described probe, by described test Destination file is sent to server, according to described test result file, described server is for determining that test is covered Lid rate;
Prompting module, for when the operation that test is exited in request being detected, being sent completely to described server Test request, receives the return information of server, judges whether to remind according to instruction in described return information Proceed test;
Wherein, when described server discriminating test coverage rate is less than default coverage rate threshold value, described reply Information is designated as proceed test.
Device the most according to claim 7, it is characterised in that described device also includes:
Allow module, for when the operation that test is exited in request being detected, being sent completely test to server Request, after receiving the return information of server, has determined whether according to instruction in described return information Become test;
Wherein, when described server discriminating test coverage rate is not less than default coverage rate threshold value, described time Complex information is designated as allowed test.
Device the most according to claim 7, it is characterised in that described generation module, is used for using Intervalometer, when timing arrives, generates test result file according to the execution result of described probe, Described test result file is sent to server.
Device the most according to claim 7, it is characterised in that described generation module, for when inspection When the operation of test is exited in the request of measuring, generate test result file according to the execution result of described probe, Described test result file is sent to server.
11. 1 kinds of code tester monitoring devices, for server, it is characterised in that including:
Determine module, for determining test coverage, described test result according to the test result file received After the probe by the operation insertion of coverage rate pitching pile that file is included in tested code is performed, according to Perform the file that result generates;
Judge module, for when having received test request, it is judged that whether test coverage is less than presetting Coverage rate threshold value;
Reply module, for when test coverage is less than when presetting coverage rate threshold value, replying and include proceeding The return information of the instruction of test.
12. devices according to claim 11, it is characterised in that described reply module, are additionally operable to When test coverage is not less than when presetting coverage rate threshold value, replys and include returning of the instruction having allowed test Complex information.
13. 1 kinds of equipment, it is characterised in that described equipment includes as described in any one of claim 7-10 Code tester monitoring device.
14. 1 kinds of equipment, it is characterised in that described equipment includes as described in any one of claim 11-12 Code tester monitoring device.
CN201510185623.5A 2015-04-17 2015-04-17 Code test monitoring method, device and equipment Active CN106155900B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510185623.5A CN106155900B (en) 2015-04-17 2015-04-17 Code test monitoring method, device and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510185623.5A CN106155900B (en) 2015-04-17 2015-04-17 Code test monitoring method, device and equipment

Publications (2)

Publication Number Publication Date
CN106155900A true CN106155900A (en) 2016-11-23
CN106155900B CN106155900B (en) 2020-12-04

Family

ID=58058520

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510185623.5A Active CN106155900B (en) 2015-04-17 2015-04-17 Code test monitoring method, device and equipment

Country Status (1)

Country Link
CN (1) CN106155900B (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107168872A (en) * 2017-05-11 2017-09-15 网易(杭州)网络有限公司 Method, device, storage medium and the processor of code check
CN107480066A (en) * 2017-08-18 2017-12-15 网易(杭州)网络有限公司 Code coverage statistical method, device, storage medium, processor and terminal
CN108563578A (en) * 2018-04-20 2018-09-21 平安科技(深圳)有限公司 SDK compatibility detection method, device, equipment and readable storage medium storing program for executing
CN111090586A (en) * 2019-12-09 2020-05-01 广州品唯软件有限公司 Method and device for reporting code coverage rate data file and computer equipment
CN111209214A (en) * 2020-02-17 2020-05-29 网易(杭州)网络有限公司 Code test processing method and device, electronic equipment and medium
CN112463607A (en) * 2020-11-26 2021-03-09 苏州洞察云信息技术有限公司 Confirmation method and device for judging statement value and storage medium
CN113360419A (en) * 2021-08-11 2021-09-07 云智慧(北京)科技有限公司 Application data processing method, device and equipment

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1517876A (en) * 2003-01-17 2004-08-04 华为技术有限公司 Statistical method for covering rate of embedded system
CN101408862A (en) * 2007-10-12 2009-04-15 李周 Embedded system test method
CN101706750A (en) * 2009-11-16 2010-05-12 西安邮电学院 Detective pole acquiring method based on embedded type simulator
US20100131930A1 (en) * 2008-11-21 2010-05-27 International Business Machines Corporation Selective Code Coverage Instrumentation
CN102243609A (en) * 2011-06-15 2011-11-16 惠州运通信息技术有限公司 Embedded software-based test analysis method and system
CN103019933A (en) * 2012-11-27 2013-04-03 网宿科技股份有限公司 Automatic test case coverage identification method and device
CN104199773A (en) * 2014-09-03 2014-12-10 腾讯科技(深圳)有限公司 Method and device for obtaining code coverage information

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1517876A (en) * 2003-01-17 2004-08-04 华为技术有限公司 Statistical method for covering rate of embedded system
CN101408862A (en) * 2007-10-12 2009-04-15 李周 Embedded system test method
US20100131930A1 (en) * 2008-11-21 2010-05-27 International Business Machines Corporation Selective Code Coverage Instrumentation
CN101706750A (en) * 2009-11-16 2010-05-12 西安邮电学院 Detective pole acquiring method based on embedded type simulator
CN102243609A (en) * 2011-06-15 2011-11-16 惠州运通信息技术有限公司 Embedded software-based test analysis method and system
CN103019933A (en) * 2012-11-27 2013-04-03 网宿科技股份有限公司 Automatic test case coverage identification method and device
CN104199773A (en) * 2014-09-03 2014-12-10 腾讯科技(深圳)有限公司 Method and device for obtaining code coverage information

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107168872A (en) * 2017-05-11 2017-09-15 网易(杭州)网络有限公司 Method, device, storage medium and the processor of code check
CN107480066A (en) * 2017-08-18 2017-12-15 网易(杭州)网络有限公司 Code coverage statistical method, device, storage medium, processor and terminal
CN107480066B (en) * 2017-08-18 2020-10-30 网易(杭州)网络有限公司 Code coverage rate statistical method, device, storage medium, processor and terminal
CN108563578A (en) * 2018-04-20 2018-09-21 平安科技(深圳)有限公司 SDK compatibility detection method, device, equipment and readable storage medium storing program for executing
CN108563578B (en) * 2018-04-20 2021-09-21 平安科技(深圳)有限公司 SDK compatibility detection method, device, equipment and readable storage medium
CN111090586A (en) * 2019-12-09 2020-05-01 广州品唯软件有限公司 Method and device for reporting code coverage rate data file and computer equipment
CN111090586B (en) * 2019-12-09 2024-02-09 广州品唯软件有限公司 Method and device for reporting code coverage rate data file and computer equipment
CN111209214B (en) * 2020-02-17 2023-04-25 网易(杭州)网络有限公司 Code test processing method and device, electronic equipment and medium
CN111209214A (en) * 2020-02-17 2020-05-29 网易(杭州)网络有限公司 Code test processing method and device, electronic equipment and medium
CN112463607A (en) * 2020-11-26 2021-03-09 苏州洞察云信息技术有限公司 Confirmation method and device for judging statement value and storage medium
CN112463607B (en) * 2020-11-26 2024-03-15 苏州洞察云信息技术有限公司 Determination statement value confirmation method, device and storage medium
CN113360419B (en) * 2021-08-11 2022-06-07 云智慧(北京)科技有限公司 Application data processing method, device and equipment
CN113360419A (en) * 2021-08-11 2021-09-07 云智慧(北京)科技有限公司 Application data processing method, device and equipment

Also Published As

Publication number Publication date
CN106155900B (en) 2020-12-04

Similar Documents

Publication Publication Date Title
CN106155900A (en) A kind of code tester monitoring method, device and equipment
CN104199773B (en) Obtain the method and device of code coverage information
CN110196801B (en) Code coverage rate based test method and device
CN105338110A (en) Remote debugging method, platform and server
CN106776338B (en) Test method, test device and server
CN106445800A (en) Chip verification method and device
CN110457211A (en) Script performance test methods, device and equipment and computer storage medium
CN107957956A (en) Test method, device and the readable storage medium storing program for executing of software differences coverage rate
CN102681938A (en) Memory leakage detecting method and device
CN110032504A (en) Software quality determines that equipment, software quality determine that method and software quality determine program
CN111679984B (en) Performance analysis method and device
CN107678955B (en) Method, device and equipment for calculating time delay of functional interface and storage medium
CN110032505A (en) Software quality determining device, software quality determine that method and software quality determine program
CN104063307A (en) Software testing method and system
CN109558328A (en) A kind of test method of code coverage, system, device and readable storage medium storing program for executing
CN109101819A (en) A kind of leak detection method and terminal, storage medium
CN110267215A (en) A kind of data detection method, equipment and storage medium
CN103309807B (en) program testing method and platform
US20140281719A1 (en) Explaining excluding a test from a test suite
CN109189673B (en) Software test scheme, and method and device for determining test cases
CN107529695A (en) The localization method and device that a kind of buffering area slowly leaks
Cavichi de Freitas et al. AGILUS: a method for integrating usability evaluations on agile software development
CN109460357A (en) A kind of test method of code coverage, device and equipment
CN111400193B (en) Test case generation method, device, equipment and storage medium
CN105005645B (en) A kind of statistical method and device of coverage rate

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
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20221114

Address after: 1402, Floor 14, Block A, Haina Baichuan Headquarters Building, No. 6, Baoxing Road, Haibin Community, Xin'an Street, Bao'an District, Shenzhen, Guangdong 518133

Patentee after: Shenzhen Yayue Technology Co.,Ltd.

Address before: 2, 518000, East 403 room, SEG science and Technology Park, Zhenxing Road, Shenzhen, Guangdong, Futian District

Patentee before: TENCENT TECHNOLOGY (SHENZHEN) Co.,Ltd.

TR01 Transfer of patent right