CN106844219A - Using detection method and apply detection means - Google Patents
Using detection method and apply detection means Download PDFInfo
- Publication number
- CN106844219A CN106844219A CN201710082072.9A CN201710082072A CN106844219A CN 106844219 A CN106844219 A CN 106844219A CN 201710082072 A CN201710082072 A CN 201710082072A CN 106844219 A CN106844219 A CN 106844219A
- Authority
- CN
- China
- Prior art keywords
- function
- pitching pile
- file
- code
- sub
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3672—Test management
- G06F11/3676—Test management for coverage analysis
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3672—Test management
- G06F11/3688—Test management for test execution, e.g. scheduling of test suites
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Debugging And Monitoring (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The present invention provides a kind of application testing method, and it includes:The test event code of traversal test application, obtains the every sub-project code in test event code;Pitching pile function file is copied to the predeterminated position of sub-project code;By pitching pile function file, all function files in traversal sub-project code;Syntactic analysis is carried out to function file, the function entrance of each function file in sub-project code is obtained;Pitching pile function is set in the function entrance of function file, to export pitching pile information, so as to be fed back to the test coverage of test application by pitching pile information.The present invention also provides one kind application test device, the present invention in test event code by setting pitching pile function file, the setting of pitching pile function is realized, so as to effectively reduce the workload of pitching pile operation, and the memory space and Internet resources of occupancy are smaller.
Description
Technical field
It is more particularly to a kind of to apply detection method and apply detection means the present invention relates to application detection field.
Background technology
Crowd is surveyed as a kind of emerging method of testing, using huge external user and abundant type, to make up certainly
The some shortcomings part of dynamicization test.But due to the users ' skillses for participating in many survey tasks and the mass difference for submitting feedback to compared with
Greatly, it is therefore desirable to which the validity for submitting feedback to user is evaluated.
Existing application testing method can be to submit having for feedback to using code tester coverage rate when testing as user
The evaluation criterion of effect property.When user perform met or exceeded using the code tester coverage rate during test assignment it is set in advance
Threshold value, then judge that the feedback that user submits to is effective.
Calculating the code tester coverage rate during user performs application test needs to carry out pitching pile behaviour to test event code
Make, judge which test event code is performed to this, which test event code is not performed to.Here pitching pile behaviour
Work refers to insert some on test event code on the basis of the logic integrality for ensureing original test event code to carry out
The code segment of information gathering, such as information gathering sentence.
Existing code pitching pile technology is required to carry out test event code a certain amount of modification manually, slotting to generate
Stake object information, therefore the workload of pitching pile operation is larger.And existing code pitching pile scheme is to all of test event
Code carries out full dose pitching pile, as long as that is, application program is in the process of running, the application program will constantly export pitching pile information, from
And cause the memory space that pitching pile information takes larger and pitching pile information reporting needs to take more Internet resources.
The content of the invention
It is smaller that the embodiment of the present invention provides a kind of workload of pitching pile operation, the memory space of occupancy and Internet resources
Application detection method and apply detection means;Grasped with the pitching pile in solving existing application detection method and application detection means
The workload of work is larger, memory space that is taking is larger and the larger technical problem of Internet resources that are taking.
The embodiment of the present invention provides a kind of application testing method, and it includes:
The test event code of traversal test application, obtains the every sub-project code in the test event code;
Pitching pile function file is copied to the predeterminated position of the sub-project code;
By the pitching pile function file, all function files in the sub-project code are traveled through;
Syntactic analysis is carried out to the function file, the function for obtaining each function file in the sub-project code enters
Mouthful;And
Pitching pile function is set in the function entrance of the function file, to export pitching pile information, so as to be inserted by described
Stake information is fed back to the test coverage of the test application.
The embodiment of the present invention also provides one kind application test device, and it includes:
Sub-project Code obtaining module, the test event code for traveling through test application, obtains the test event generation
Every sub-project code in code;
Pitching pile function file copies module, the default position for pitching pile function file to be copied to the sub-project code
Put;
Function file spider module, it is all in the traversal sub-project code for by the pitching pile function file
Function file;
Function entrance acquisition module, for carrying out syntactic analysis to the function file, in the acquisition sub-project code
Each function file function entrance;And
Pitching pile function setup module, it is slotting to export for setting pitching pile function in the function entrance of the function file
Stake information, so as to be fed back to the test coverage of the test application by the pitching pile information.
Compared to prior art, application testing method of the invention and application test device are by test event code
Pitching pile function file is set, the setting of pitching pile function is realized, the pitching pile function can be when test application be tested, with function
Function in file is unit output pitching pile information, so as to effectively reduce the workload of pitching pile operation, and the storage for taking
Space and Internet resources are smaller;Solve the work of the pitching pile operation in existing application detection method and application detection means
Work amount is larger, memory space that is taking is larger and the larger technical problem of Internet resources that are taking.
Brief description of the drawings
Fig. 1 is the flow chart of the first preferred embodiment of application testing method of the invention;
Fig. 2 is the flow chart of the second preferred embodiment of application testing method of the invention;
Fig. 3 is the structural representation of the first preferred embodiment of application test device of the invention;
Fig. 4 is the structural representation of the second preferred embodiment of application test device of the invention;
Fig. 5 is that the structure of the sub-project Code obtaining module of the second preferred embodiment of application test device of the invention is shown
It is intended to;
Fig. 6 is the structural representation of the function entrance acquisition module of the second preferred embodiment of application test device of the invention
Figure;
Fig. 7 is the structural representation of the pitching pile function setup module of the second preferred embodiment of application test device of the invention
Figure;
Fig. 8 is the flow chart of the specific embodiment of application testing method of the invention and application test device;
Fig. 9 is the working environment structural representation of the electronic equipment where application test device of the invention.
Specific embodiment
Schema is refer to, wherein identical element numbers represent identical component, and principle of the invention is to implement one
Illustrated in appropriate computing environment.The following description is that, based on the illustrated specific embodiment of the invention, it should not be by
It is considered as the limitation present invention other specific embodiments not detailed herein.
In the following description, specific embodiment of the invention will be with reference to the operation as performed by or multi-section computer
The step of and symbol illustrate, unless otherwise stating clearly.Therefore, it will appreciate that these steps and operation, wherein have carrying for several times
To be performed by computer, include by representing with the computer disposal list of the electronic signal of the data in a structuring pattern
Unit is manipulated.At this manipulation transforms data or the position being maintained in the memory system of the computer, it can match somebody with somebody again
Put or change in a manner familiar to those skilled in the art in addition the running of the computer.The data knot that the data are maintained
Structure is the provider location of the internal memory, and it has as particular characteristics defined in the data form.But, the principle of the invention is with above-mentioned
Word illustrates, it is not represented as a kind of limitation, those skilled in the art will appreciate that plurality of step as described below and
Operation also may be implemented in the middle of hardware.
Application testing method of the invention and being may be provided at using test device various sets to the electronics tested of application
In standby, the electronic equipment includes but is not limited to wearable device, helmet, medical treatment & health platform, personal computer, server
Computer, hand-held or laptop devices, mobile device (such as mobile phone, personal digital assistant (PDA), media player
Etc.), multicomputer system, consumer electronic devices, minicom, mainframe computer, including above-mentioned any system or set
Standby DCE, etc..The electronic equipment is preferably the user terminal for carrying out many survey tasks.Electronics of the invention sets
Standby to realize the setting of pitching pile function by setting pitching pile function file in test event code, the pitching pile function can surveyed
When examination application is tested, pitching pile information is exported in units of the function in function file, so as to effectively reduce pitching pile behaviour
The workload of work, and the memory space and Internet resources of occupancy are smaller.
Fig. 1 is refer to, Fig. 1 is the flow chart of the first preferred embodiment of application testing method of the invention.This is preferred real
The application testing method for applying example can be used above-mentioned electronic equipment to be implemented, the application testing method bag of this preferred embodiment
Include:
Step S101, the test event code of traversal test application, obtains the every sub-project generation in test event code
Code;
Step S102, pitching pile function file is copied to the predeterminated position of sub-project code;
Step S103, by pitching pile function file, all function files in traversal sub-project code;
Step S104, syntactic analysis is carried out to function file, and the function for obtaining each function file of sub-project code enters
Mouthful;
Step S105, pitching pile function is set in the function entrance of function file, to export pitching pile information, so that by inserting
Stake information is fed back to the test coverage of test application.
The following detailed description of the idiographic flow of each step of the application testing method of this preferred embodiment.
In step S101, using the test event code of test device traversal test application.Here test application is
Refer to for carrying out many applications for surveying operation.The test event including the various set-up functions for performing the application is applied in the test
Code, wherein the test event code include many sub-project codes.Here test event code is the execution of this application
Code, sub-project code is the execution code of certain set-up function in the application.There is the son of chat feature such as wechat platform
Item code, it may have sub-project code of circle of friends function etc..
Each that so application test device can be by traveling through all of test event code, in acquisition test event code
Sub-project code.Then pass to step S102.
In step s 102, pitching pile function file is copied to the sub-project code of step S101 acquisitions using test device
Predeterminated position.Here pitching pile function file can be used to be generated according to corresponding sub-project code the text of corresponding pitching pile function
Part.
Because some test applications need to carry out legitimate verification to newly-increased code, here by newly-increased pitching pile function file
Copy the predeterminated position of sub-project code to, preferably can be tested by testing the legitimacy of pitching pile function file of the application to increasing newly
Card, so that the pitching pile function file generates corresponding pitching pile function in sub-project code.Then pass to step S103.
In step s 103, the pitching pile function file for being set by step S102 using test device, travels through sub-project generation
All function files in code.Here function file includes function and functional dependence parameter in sub-project code.Subitem
Function in mesh code is that the single operation in certain set-up function performs code, and the expression bag such as in chat feature sends operation
Deng.
This preferred embodiment not carries out pitching pile detection to every row test event code, and only in test event code
Each function of sub-project code carry out pitching pile detection, i.e., the function is performed, and is considered as this function corresponding all generations
Code is performed, therefore can preferably reduce the workload of pitching pile operation.Then pass to step S104.
In step S104, syntactic analysis is carried out to the function file obtained in step S103 using test device, found
The function entrance of each function file in sub-project code, to carry out pitching pile operation at function entrance.Then pass to step
S105。
In step S105, set at the function entrance of the function file obtained in step S104 using test device and inserted
Pile function, the pitching pile function can print and record the function file such as title or numbering of respective function file information to be believed as pitching pile
Breath output.Due to when testing certain function in application and being tested, being bound to perform the code at function entrance, therefore will insert
Pile function is arranged at function entrance, can accurately detect whether the function is performed in testing, is inserted with accurate output
Stake information.
The pitching pile information that so application test device can be exported according to pitching pile function, accurately judges that corresponding function is
It is no to be performed, so as to the test coverage to test application carries out accurate feedback.The application test device in application test process
The pitching pile information to the output of pitching pile function in units of function is only needed to be stored and network is reported, therefore the storage for taking
Space and Internet resources are also smaller.
So complete the application test coverage acquisition process of the application testing method of this preferred embodiment.
The application testing method of this preferred embodiment is realized by setting pitching pile function file in test event code
The setting of pitching pile function, the pitching pile function can be exported when test application is tested in units of the function in function file
Pitching pile information, so as to effectively reduce the workload of pitching pile operation, and the memory space and Internet resources of occupancy are smaller.
Fig. 2 is refer to, Fig. 2 is the second preferred embodiment flow chart of application testing method of the invention.Originally it is preferable to carry out
The application testing method of example can be used above-mentioned electronic equipment to be implemented, and the application testing method of this preferred embodiment includes:
Step S201, the preset configuration file in traversal test event code;
Step S202, the every sub-project code in test event code is determined according to preset configuration file;
Step S203, pitching pile function file is copied to the predeterminated position of sub-project code;
Step S204, according to the numbering of sub-project code, renaming operation is carried out to pitching pile function file;
Step S205, by pitching pile function file, all function files in traversal sub-project code;
Whether step S206, discriminant function file is control function file, if not being control function file, then goes to step
S207;It is such as control function file, then goes to step S208;
Step S207, skips the function file, goes to step S205;
Step S208, syntactic analysis is carried out to function file, obtains the function of each function file in sub-project code
Entrance;
Step S209, sets the path of pitching pile function file in function file;
Step S210, sets pitching pile function, to export pitching pile in colleague's code afterbody of the function entrance of function file
Information, so as to be fed back to the test coverage of test application by pitching pile information.
The following detailed description of the idiographic flow of each step of the application testing method of this preferred embodiment.
In step s 201, the preset configuration file of the test event code applied using test device traversal test, by
Every sub-project code that application test device in this preferred embodiment is directed under test event code carries out pitching pile behaviour
Make, therefore here with the code characteristic of test event code, in the every sub-project code such as under Android application item code
The Manifest.xml that can be set as preset configuration file, to determine the sub-project code in each test event code.With
After go to step S202.
In step S202, in test event generation, is determined according to the preset configuration file that step S201 is obtained using test device
Every sub-project code in code.Then pass to step S203.
In step S203 to, pitching pile function file is copied the sub-project code of step S202 acquisitions using test device
Predeterminated position.Here pitching pile function file can be used to be generated according to corresponding sub-project code the text of corresponding pitching pile function
Part.
Because some test applications need to carry out legitimate verification to newly-increased code, here by newly-increased pitching pile function file
Copy the predeterminated position of sub-project code to, preferably can be tested by testing the legitimacy of pitching pile function file of the application to increasing newly
Card, so that the pitching pile function file generates corresponding pitching pile function in sub-project code.
Preferably, application test device settable includes the non-test list of sub-project code, such as sub-project here
The numbering of code is consistent with the numbering of certain the sub-project code in non-test list, then judge that the sub-project code need not enter
Row pitching pile is operated, therefore pitching pile function file need not be copied to the sub-project code in non-test list using test device
Predeterminated position on.Then pass to step S204.
In step S204, in order to avoid the pitching pile function file of different sub-project codes is born the same name, using test device root
According to the numbering (numbering of the different sub-project codes under same test event code is unique) of every sub-project code, to pitching pile letter
Number file carries out renaming operation.Then pass to step S205.
In step S205, using the pitching pile function file that test device is set by step S203, sub-project generation is traveled through
All function files in code.Here function file includes function and functional dependence parameter in sub-project code.Subitem
Function in mesh code is that the single operation in certain set-up function performs code, and the expression bag such as in chat feature sends operation
Deng.
This preferred embodiment not carries out pitching pile detection to every row test event code, and only in test event code
Each function of sub-project code carry out pitching pile detection, i.e., the function is performed, and is considered as this function corresponding all generations
Code is performed, therefore can preferably reduce the workload of pitching pile operation.Then pass to step S206.
In step S206, judge whether the function file traveled through in step S205 is control function text using test device
Part, when test the test of application due to user, completes essentially by the clicking operation of control.Therefore only need to here to control
Part function file carries out the detection of code tester coverage rate.Here control function file can for Activity classes,
The function file such as Fragment classes and View classes.Therefore this preferred embodiment can effectively reduce the amount of storage of pitching pile information.
Preferably, application test device settable includes the non-test list of function file, such as function file here
Numbering it is consistent with the numbering of certain function file in non-test list, then judge that the function file need not carry out pitching pile behaviour
Make, therefore pitching pile operation need not be carried out to the function file using test device, so can further reduce pitching pile operation
Workload.
Such as judge that the function file is not control function file using test device, then go to step S207;Such as application is surveyed
Trial assembly is put and judges that the function file is control function file, then go to step S208.
It is not control function file due to function file in step S207, then the function file need not be inserted
Stake operation, therefore the function file is skipped, go to step S205, other function files in traversal sub-project code.
In step S208, using test device, using javalang, (one kind carries out morphology and grammer for java language
The python storehouses of parsing) etc. analysis tool in step S205 obtain function file carry out syntactic analysis, find sub-project generation
The function entrance of each function file in code, to carry out pitching pile operation at function entrance.Then pass to step S209.
In step S209, need to set the path of pitching pile function file in function file using test device, so as to
Parsed in being arranged on the pitching pile function at the function entrance of function file.Then pass to step S210.
In step S210, set at the function entrance of the function file obtained in step S208 using test device and inserted
Pile function, such as in function " at the position of { ".Due to when testing certain function in application and being tested, being bound to perform letter
The code of number porch, therefore by pitching pile function setup at function entrance, can accurately detect the function whether in test
In be performed, accurately to export pitching pile information.
Here pitching pile function preferably is set in colleague's code afterbody of the function entrance of function file, to avoid modification from testing
The line number of other codes in item code.
The pitching pile information that so application test device can be exported according to pitching pile function, accurately judges that corresponding function is
It is no to be performed, so as to the test coverage to test application carries out accurate feedback.The application test device in application test process
The pitching pile information to the output of pitching pile function in units of function is only needed to be stored and network is reported, therefore the storage for taking
Space and Internet resources are also smaller.
So complete the application test coverage acquisition process of the application testing method of this preferred embodiment.
Preferably, when exporting pitching pile information by pitching pile function using test device, because pitching pile information Store is in plain text
Storage is in application test device, it is thus possible to the sub-project code in test event code can be caused to reveal, therefore application is surveyed
Trial assembly is put and is encrypted operation by pitching pile function pair pitching pile information, and pitching pile information is added using symmetric encipherment algorithm such as
It is close, so as to further improve the security of application test process.
Preferably, in order to further reduce memory space and Internet resources that pitching pile information takes, using test device
Can be provided with pitching pile function for representing whether pitching pile function is in the pitching pile status indicator of opening.If i.e. user
Only need to the coverage rate information of the partial function of acquisition sub-project code, then can be corresponding by other functions of the sub-project code
The pitching pile status indicator of pitching pile function switches to closed mode, and so test is applied during testing, can't be to the function
Pitching pile information carries out storage operation, so as to reduce further the memory space and Internet resources of pitching pile information occupancy.
On the basis of first preferred embodiment, the application testing method of this preferred embodiment is true by preset configuration file
Stator item code, may further ensure that the accuracy of sub-project Code obtaining;Ordered again by pitching pile function file
Name operation, it is to avoid pitching pile function file of the same name phenomenon occur;The setting of species and non-test list to function file,
Function file that can be preferably to that need not carry out pitching pile operation is selected, so as to reduce the workload of pitching pile operation;To insert
Pile function is arranged on colleague's code afterbody of function entrance, can preferably avoid normal in pitching pile function pair test event code
The influence of code.
The present invention also provides one kind application test device, refer to Fig. 3, and Fig. 3 is the of application test device of the invention
The structural representation of one preferred embodiment.The application test device of this preferred embodiment can be used above-mentioned application testing method
First preferred embodiment is implemented, the application test device 30 of this preferred embodiment include sub-project Code obtaining module 31,
Pitching pile function file copy module 32, function file spider module 33, function entrance acquisition module 34 and pitching pile function setup
Module 35.
Sub-project Code obtaining module 31 is used to travel through the test event code of test application, in acquisition test event code
Every sub-project code;Pitching pile function file copy module 32 is used to copy pitching pile function file to sub-project code pre-
If position;Function file spider module 33 is used for by pitching pile function file, all function files in traversal sub-project code;
Function entrance acquisition module 34 is used to carry out function file syntactic analysis, each function file in acquisition sub-project code
Function entrance;Pitching pile function setup module 35 is used to set pitching pile function in the function entrance of function file, to export pitching pile
Information, so as to be fed back to the test coverage of test application by pitching pile information.
When the application test device 30 of this preferred embodiment is used, the test of the traversal of sub-project Code obtaining module 31 should first
Test event code.Here test application refers to for carrying out many applications for surveying operation.The test is applied including being used for
The test event code of the various set-up functions of the application is performed, wherein the test event code includes many sub-project codes.
Here test event code is the execution code of this application, and sub-project code is holding for certain set-up function in the application
Line code.There is the sub-project code of chat feature such as wechat platform, it may have sub-project code of circle of friends function etc..
So item code acquisition module 31 can obtain test event code by traveling through all of test event code
In every sub-project code.
Subsequent pitching pile function file copy module 32 copies pitching pile function file to sub-project Code obtaining module 31 and obtains
The predeterminated position of the sub-project code for taking.Here pitching pile function file can be used to, according to corresponding sub-project code, generate phase
Answer the file of pitching pile function.
Because some test applications need to carry out legitimate verification to newly-increased code, here by newly-increased pitching pile function file
Copy the predeterminated position of sub-project code to, preferably can be tested by testing the legitimacy of pitching pile function file of the application to increasing newly
Card, so that the pitching pile function file generates corresponding pitching pile function in sub-project code.
Then function file spider module 33 copies the pitching pile function file that module 32 is set by pitching pile function file, time
The all function files gone through in sub-project code.Here function file includes function and functional dependence in sub-project code
Parameter.Function in sub-project code is that the single operation in certain set-up function performs code, such as expression in chat feature
Bag sends operation etc..
This preferred embodiment not carries out pitching pile detection to every row test event code, and only in test event code
Each function of sub-project code carry out pitching pile detection, i.e., the function is performed, and is considered as this function corresponding all generations
Code is performed, therefore can preferably reduce the workload of pitching pile operation.
Subsequent function entrance acquisition module 34 carries out grammer point to the function file obtained in function file spider module 33
Analysis, finds the function entrance of each function file in sub-project code, to carry out pitching pile operation at function entrance.
The function entrance of the function file that last pitching pile function setup module 35 is obtained in function entrance acquisition module 34
Place sets pitching pile function, due to when testing certain function in application and being tested, being bound to perform the code at function entrance,
Therefore pitching pile function setup can accurately be detected whether the function is performed in testing, with accurate at function entrance
Output pitching pile information.
The pitching pile information that so application test device 30 can be exported according to pitching pile function, accurately judges corresponding function
Whether it is performed, so as to the test coverage to test application carries out accurate feedback.Filled using test in application test process
The pitching pile information only needed to the output of pitching pile function in units of function is put to be stored and network is reported, therefore depositing of taking
Storage space and Internet resources are also smaller.
So complete the application test coverage acquisition process of the application test device 30 of this preferred embodiment.
The application test device of this preferred embodiment is realized by setting pitching pile function file in test event code
The setting of pitching pile function, the pitching pile function can be exported when test application is tested in units of the function in function file
Pitching pile information, so as to effectively reduce the workload of pitching pile operation, and the memory space and Internet resources of occupancy are smaller.
Fig. 4 is refer to, Fig. 4 is the structural representation of the second preferred embodiment of application test device of the invention.This is excellent
The application test device of embodiment is selected to can be used the second preferred embodiment of above-mentioned application testing method to be implemented, this is preferably
The application test device 40 of embodiment includes sub-project Code obtaining module 41, pitching pile function file copy module 42, pitching pile letter
Number file renamer modules 43, function file spider module 44, function entrance acquisition module 45, pitching pile function setup module 46 with
And encrypting module 47.
Sub-project Code obtaining module 41 is used to travel through the test event code of test application, in acquisition test event code
Every sub-project code;Pitching pile function file copy module 42 is used to copy pitching pile function file to sub-project code pre-
If position;Pitching pile function file renamer module 43 is used for the numbering according to sub-project code, and weight is carried out to pitching pile function file
Naming operation;Function file spider module 44 is used for by pitching pile function file, all functions text in traversal sub-project code
Part;Function entrance acquisition module 45 is used to carry out function file syntactic analysis, obtains each function text in sub-project code
The function entrance of part;Pitching pile function setup module 46 is used to set pitching pile function in the function entrance of function file, to export
Pitching pile information, so as to be fed back to the test coverage of test application by pitching pile information;Encrypting module 47 is used for by inserting
Pile function is encrypted operation to pitching pile information.
Fig. 5 is refer to, Fig. 5 is the sub-project Code obtaining mould of the second preferred embodiment of application test device of the invention
The structural representation of block.The sub-project Code obtaining module 41 includes preset configuration file traversal unit 51 and sub-project code
Determining unit 52.
Preset configuration file traversal unit 51 is used to travel through the preset configuration file in test event code;Sub-project code
Determining unit 52 is used to determine the every sub-project code in test event code according to preset configuration file.
Fig. 6 is refer to, Fig. 6 is the function entrance acquisition module of the second preferred embodiment of application test device of the invention
Structural representation.The function entrance acquisition module 45 includes that control function file judging unit 61 and function entrance obtain single
Unit 62.
Whether control function file judging unit 61 is control function file for discriminant function file;Function entrance is obtained
It is control function file that unit 62 is used for function file such as, then syntactic analysis is carried out to function file, in acquisition sub-project code
Each function file function entrance.
Fig. 7 is refer to, Fig. 7 is the pitching pile function setup module of the second preferred embodiment of application test device of the invention
Structural representation.The pitching pile function setup module 46 includes that pitching pile function file path setting element 71 and pitching pile function set
Put unit 72.
Pitching pile function file path setting element 71 is used to be set in function file the path of pitching pile function file;Pitching pile
Function setup unit 72 is used to set pitching pile function in the function entrance of function file, so that function file is by pitching pile function text
Part is identified to pitching pile function.
When the application test device 40 of this preferred embodiment is used, the preset configuration of sub-project Code obtaining module 41 first
The preset configuration file of the test event code of the traversal test application of file traversal unit 51, due to answering in this preferred embodiment
The every sub-project code being directed to test device 40 under test event code carries out pitching pile operation, therefore here with test item
The Manifest.xml that can be set in every sub-project code under the code characteristic of mesh code, such as Android application item code
As preset configuration file, to determine the sub-project code in each test event code.
The sub-project code-determining unit 52 of subsequent sub-project Code obtaining module 41 is according to preset configuration file traversal list
The preset configuration file that unit 51 obtains determines the every sub-project code in test event code.
Then pitching pile function file copy module 42 copies pitching pile function file to sub-project Code obtaining module and obtains
Sub-project code predeterminated position.Here pitching pile function file can be used for according to corresponding sub-project code, and generation is corresponding
The file of pitching pile function.
Because some test applications need to carry out legitimate verification to newly-increased code, here by newly-increased pitching pile function file
Copy the predeterminated position of sub-project code to, preferably can be tested by testing the legitimacy of pitching pile function file of the application to increasing newly
Card, so that the pitching pile function file generates corresponding pitching pile function in sub-project code.
Preferably, application test device 40 settable includes the non-test list of sub-project code, such as subitem here
The numbering of mesh code is consistent with the numbering of certain the sub-project code in non-test list, then judge that the sub-project code need not
Carry out pitching pile operation, therefore during pitching pile function file copy module need not copy pitching pile function file to non-test list
On the predeterminated position of sub-project code.
Subsequent to avoid the pitching pile function file of different sub-project codes from bearing the same name, pitching pile function file renamer module 43
Numbering (numbering of the different sub-project codes under same test event code is unique) according to every sub-project code, to pitching pile
Function file carries out renaming operation.
Then function file spider module 44 copies the pitching pile function file that module 42 is set by pitching pile function file, time
The all function files gone through in sub-project code.Here function file includes function and functional dependence in sub-project code
Parameter.Function in sub-project code is that the single operation in certain set-up function performs code, such as expression in chat feature
Bag sends operation etc..
This preferred embodiment not carries out pitching pile detection to every row test event code, and only in test event code
Each function of sub-project code carry out pitching pile detection, i.e., the function is performed, and is considered as this function corresponding all generations
Code is performed, therefore can preferably reduce the workload of pitching pile operation.
The discriminant function file traversal module 44 of control function file judging unit 61 of subsequent function entrance acquisition module 45
Whether the function file of middle traversal is control function file, when test the test of application due to user, essentially by control
Clicking operation complete.Therefore only need to carry out control function file the detection of code tester coverage rate here.Here
Control function file can be the function files such as Activity classes, Fragment classes and View classes.Therefore this preferred embodiment can
The effective amount of storage for reducing pitching pile information.
Preferably, application test device 40 settable includes the non-test list of function file, such as function text here
The numbering of part is consistent with the numbering of certain function file in non-test list, then judge that the function file need not carry out pitching pile
Operation, therefore using test device 40 pitching pile operation need not be carried out to the function file, so can further reduce pitching pile behaviour
The workload of work.
As control function file judging unit 61 judges that the function file is not control function file, then function entrance is obtained
Module 45 need not carry out pitching pile operation to the function file, therefore skip the function file.Function file spider module is traveled through
Other function files in sub-project code.
As control function file judging unit 61 judges that the function file is control function file, then function entrance obtains mould
Function of the analysis tools such as the use of function entrance acquiring unit 62 javalang of block 45 to acquisition in function file spider module
File carries out syntactic analysis, finds the function entrance of each function file in sub-project code, to be carried out at function entrance
Pitching pile is operated.
The pitching pile function file path setting element 71 of subsequent pitching pile function setup module 46 needs to be set in function file
The path of pitching pile function file is put, in order to be parsed to being arranged on the pitching pile function at the function entrance of function file.
What the pitching pile function setup unit 72 of last pitching pile function setup module 46 was obtained in function entrance acquisition module 45
Pitching pile function is set at the function entrance of function file, such as in function " at the position of { ".Due to when certain in test application
When function is tested, it is bound to perform the code at function entrance, therefore by pitching pile function setup at function entrance, can be with standard
Whether the true detection function is performed in testing, accurately to export pitching pile information.
Here pitching pile function preferably is set in colleague's code afterbody of the function entrance of function file, to avoid modification from testing
The line number of other codes in item code.
The pitching pile information that so application test device 40 can be exported according to pitching pile function, accurately judges corresponding function
Whether it is performed, so as to the test coverage to test application carries out accurate feedback.Filled using test in application test process
The 40 pitching pile information only needed to the output of pitching pile function in units of function are put to be stored and network is reported, therefore take
Memory space and Internet resources are also smaller.
So complete the application test coverage acquisition process of the application test device of this preferred embodiment.
Preferably, when exporting pitching pile information by pitching pile function using test device 40, because pitching pile information Store is bright
Text storage is in application test device, it is thus possible to the sub-project code in test event code can be caused to reveal, therefore encryption
Module 47 is encrypted operation by pitching pile function pair pitching pile information, and pitching pile information is added using symmetric encipherment algorithm such as
It is close, so as to further improve the security of application test process.
Preferably, in order to further reduce memory space and Internet resources that pitching pile information takes, using test device
40 can be provided with pitching pile function for representing whether pitching pile function is in the pitching pile status indicator of opening.If i.e. with
Family only needs to the coverage rate information of the partial function for obtaining sub-project code, then can answer other function pairs of the sub-project code
The pitching pile status indicator of pitching pile function switch to closed mode, so test is applied during testing, can't be to the function
Pitching pile information carry out storage operation, so as to reduce further pitching pile information occupancy memory space and Internet resources.
On the basis of first preferred embodiment, the application test device of this preferred embodiment is true by preset configuration file
Stator item code, may further ensure that the accuracy of sub-project Code obtaining;Ordered again by pitching pile function file
Name operation, it is to avoid pitching pile function file of the same name phenomenon occur;The setting of species and non-test list to function file,
Function file that can be preferably to that need not carry out pitching pile operation is selected, so as to reduce the workload of pitching pile operation;To insert
Pile function is arranged on colleague's code afterbody of function entrance, can preferably avoid normal in pitching pile function pair test event code
The influence of code.
The specific works of application testing method of the invention and application test device are illustrated below by a specific embodiment
Principle, refer to Fig. 8, and Fig. 8 is the flow chart of the specific embodiment of application testing method of the invention and application test device.This
The application testing method of specific embodiment and the various user terminals for carrying out many survey tasks can be used to carry out reality using test device
Apply, the application testing method of this specific embodiment is comprised the following steps:
Step S801, user terminal install it is corresponding it is many survey task applications, when user terminal brings into operation many survey tasks should
Used time, many all test event codes for surveying task application of user terminal traversal obtain the sub-project generation in test event code
Code.
Specifically, user terminal can be set using the feature of Android sub-project code in Android sub-project code
Manifest.xml, user terminal can determine test event generation by searching the Manifest.xml in test event code
Sub-project code in code.Go to step S802.
Step S802, user terminal judges whether sub-project code is in sub-project code non-test list, such as the son
Item code is in sub-project code non-test list, then do not carry out pitching pile operation to all functions under the sub-project code,
As sub-project code is not in sub-project code non-test list, then step S803 is gone to.
Pitching pile function file is copied to step S803, user terminal the predeterminated position of sub-project code, and it is slotting to record this
The path of pile function file.Go to step S804.
Step S804, user terminal travels through all Java function files in sub-project code by pitching pile function file,
So that the function to each Java function file carries out pitching pile operation.Go to step S805.
Step S805, user terminal judges that whether Java function files in function file non-test list, such as should
Java function files are in function file non-test list, then do not carry out pitching pile behaviour to all functions under the Java function files
Make, such as Java function files are not in function file non-test list, then go to step S806.
Step S806, user terminal judges whether Java function files are Activity classes, Fragment classes and View
The control function file such as class.If Java function files are control function file, then not to all letters under the Java function files
Number carries out pitching pile operation.If Java function files are not control function files, then step S807 is gone to.
Step S807, user terminal sets the path of pitching pile function file in Java function files, in order to setting
Pitching pile function at the function entrance of Java function files is parsed.Go to step S808.
Step S808, user terminal carries out syntactic analysis using analysis tools such as javalang to Java function files, looks for
The function entrance of each Java function file in sub-project code.Go to step S809.
Step S809, user terminal sets pitching pile function at the function entrance of Java function files, such as " { " of function
Position at etc..
End user's terminal operating crowd survey task application, surveys the letter that task application runs certain Java function file in the presence of all
Number, then corresponding pitching pile function can export corresponding pitching pile information, and pitching pile information can be encrypted here.User's end
The pitching pile information network that end will get reports to server, and many task applications of surveying of the acquisition that such server can be accurately and timely exist
The situation of the code tester coverage rate on user terminal.
It is provided with pitching pile status indicator on pitching pile function here simultaneously, user terminal can be by setting the pitching pile of pitching pile function
Status indicator, determines whether user terminal needs to carry out reporting operation by the pitching pile information of the pitching pile function, thus can according to
Memory space and Internet resources that pitching pile information takes further are reduced the need for family.
Application testing method of the invention and application test device in test event code by setting pitching pile function text
Part, realizes the setting of pitching pile function, and the pitching pile function can be with the function in function file when test application is tested
Unit exports pitching pile information, and so as to effectively reduce the workload of pitching pile operation, and the memory space and network of occupancy are provided
Source is smaller;Solve existing application detection method and application detection means in pitching pile operation workload it is larger, take
Memory space is larger and the larger technical problem of Internet resources that takes.
" component ", " module ", " system ", " interface ", " process " etc. are usually intended to as used herein the term
Refer to computer related entity:Hardware, the combination of hardware and software, software or executory software.For example, component can be but not
It is limited to run process, processor, object, executable thread, program and/or the computer applied, perform on a processor.
By diagram, it can be component to run both application and controllers on the controller.One or more assemblies can have
Be perform process and/or thread in, and component may be located on a computer and/or be distributed in two or more meter
Between calculation machine.
Fig. 9 and the discussion below provide the work of the electronic equipment where to realizing application test device of the present invention
Make brief, summary the description of environment.The working environment of Fig. 9 is only an example of appropriate working environment and is not intended to
Advise any limitation of the scope of purposes or function on working environment.Example electronic equipment 912 can including but not limited to wear
Wear equipment, helmet, medical treatment & health platform, personal computer, server computer, hand-held or laptop devices, movement
Equipment (such as mobile phone, personal digital assistant (PDA), media player etc.), multicomputer system, consumer electronics set
Standby, minicom, mainframe computer, the DCE including above-mentioned any system or equipment, etc..
Although not requiring, in the common background that " computer-readable instruction " is performed by one or more electronic equipments
Lower description embodiment.Computer-readable instruction can be distributed (be discussed below) via computer-readable medium.Computer-readable
Instruction can be implemented as program module, such as perform particular task or realize function, object, the application of particular abstract data type
DLL (API), data structure etc..Typically, the function of the computer-readable instruction can be in various environment arbitrarily
Combination is distributed.
Fig. 9 illustrates the electronic equipment 912 including one or more embodiments in application test device of the invention
Example.In one configuration, electronic equipment 912 includes at least one processing unit 916 and memory 918.According to electronic equipment
Exact configuration and type, memory 1318 can be volatibility (such as RAM), non-volatile (such as ROM, flash memory etc.)
Or certain combination of the two.The configuration is illustrated by dotted line 914 in fig .9.
In other embodiments, electronic equipment 912 can include supplementary features and/or function.For example, equipment 912 may be used also
(for example be can be removed and/or non-removable) with including the storage device for adding, it includes but is not limited to magnetic memory apparatus, light and deposits
Storage device etc..This additional memory devices are illustrated by storage device 920 in fig .9.In one embodiment, for realizing this
The computer-readable instruction of one or more embodiments that text is provided can be in storage device 920.Storage device 920 may be used also
To store other computer-readable instructions for realizing operating system, application program etc..Computer-readable instruction can be loaded into
Performed by such as processing unit 916 in memory 918.
Term as used herein " computer-readable medium " includes computer-readable storage medium.Computer-readable storage medium includes
For the volatibility that any method or technique for storing the information of such as computer-readable instruction or other data etc is realized
With non-volatile, removable and nonremovable medium.Memory 918 and storage device 920 are the examples of computer-readable storage medium.
Computer-readable storage medium includes but is not limited to RAM, ROM, EEPROM, flash memory or other memory technologies, CD-ROM, digital universal
Disk (DVD) or other light storage devices, cassette tape, tape, disk storage device or other magnetic storage apparatus can be used for
Storage expectation information and any other medium that can be accessed by electronic equipment 912.Any such computer-readable storage medium can
Being a part for electronic equipment 912.
Electronic equipment 912 can also include the communication connection 926 for allowing electronic equipment 912 to be communicated with other equipment.Communication
Connection 926 can include but is not limited to modem, NIC (NIC), integrated network interface, radiofrequency launcher/connect
Receive device, infrared port, USB connections or other interfaces for electronic equipment 912 to be connected to other electronic equipments.Communication connection
926 can include wired connection or wireless connection.Communication connection 926 can launch and/or receive communication medium.
Term " computer-readable medium " can include communication media.Communication media typically comprises computer-readable instruction
Or other data in " the own modulated data signal " of such as carrier wave or other transmission mechanisms etc, and passed including any information
Send medium.Term " own modulated data signal " can include such signal:One or more in the characteristics of signals are according to general
Information is encoded to the mode in signal to be set or changed.
Electronic equipment 912 can include input equipment 924, such as keyboard, mouse, pen, voice-input device, touch input
Equipment, infrared camera, video input apparatus and/or any other input equipment.Output equipment can also be included in equipment 912
922, such as one or more displays, loudspeaker, printer and/or any other output equipments.Input equipment 924 and output
Equipment 922 can be connected to electronic equipment 912 via wired connection, wireless connection or its any combination.In one embodiment,
Input equipment or output equipment from another electronic equipment are used as the input equipment 924 or defeated of electronic equipment 912
Go out equipment 922.
The component of electronic equipment 912 can be connected by various interconnection (such as bus).Such interconnection can include outer
Enclose component interconnection (PCI) (such as quick PCI), USB (USB), live wire (IEEE1394), optical bus structure etc.
Deng.In another embodiment, the component of electronic equipment 912 can be by network interconnection.For example, memory 918 can be by position
Multiple physical memory cells arcs composition in different physical locations, by network interconnection.
It would be recognized by those skilled in the art that can be across network point for storing the storage device of computer-readable instruction
Cloth.For example, the electronic equipment 930 that can be accessed via network 928 can be stored for realizing one provided by the present invention or many
The computer-readable instruction of individual embodiment.Electronic equipment 912 can access electronic equipment 930 and downloading computer readable instruction
It is part or all of for perform.Alternately, electronic equipment 912 can on demand download a plurality of computer-readable instruction,
Or some instructions can be performed at electronic equipment 912 and some instructions can be performed at electronic equipment 930.
There is provided herein the various operations of embodiment.In one embodiment, one or more described operations can be with structure
The computer-readable instruction stored on into one or more computer-readable mediums, it will make to succeed in one's scheme when being performed by electronic equipment
Calculation equipment performs the operation.Describing the order of some or all of operations, to should not be construed as to imply that these operations necessarily suitable
Sequence correlation.It will be appreciated by those skilled in the art that the alternative sequence of the benefit with this specification.Furthermore, it is to be understood that
Not all operation must exist in each embodiment provided in this article.
And, although the disclosure, this area skill has shown and described relative to one or more implementations
Art personnel are based on will appreciate that equivalent variations and modification to the reading and understanding of the specification and drawings.The disclosure include it is all this
The modification of sample and modification, and be limited only by the scope of the following claims.Particularly with by said modules (such as element,
Resource etc.) various functions that perform, the term for describing such component is intended to correspond to the specified work(for performing the component
The random component (unless otherwise instructed) of energy (for example it is functionally of equal value), even if illustrated herein with execution in structure
The disclosure exemplary implementations in function open structure it is not equivalent.Although additionally, the special characteristic of the disclosure is
It is disclosed through relative to the only one in some implementations, but this feature can be to given or application-specific with such as
For be expect and other favourable implementations one or more other combinations of features.And, with regard to term " including ", " tool
Have ", " containing " or its deformation be used in specific embodiment or claim for, such term be intended to with term
The similar mode of "comprising" includes.
Each functional unit in the embodiment of the present invention can be integrated in a processing module, or unit list
Solely it is physically present, it is also possible to which two or more units are integrated in a module.Above-mentioned integrated module can both be used
The form of hardware is realized, it would however also be possible to employ the form of software function module is realized.If the integrated module is with software function
The form of module is realized and as independent production marketing or when using, it is also possible to which storage is situated between in an embodied on computer readable storage
In matter.Storage medium mentioned above can be read-only storage, disk or CD etc..Above-mentioned each device or system, can be with
Perform the method in correlation method embodiment.
In sum, although the present invention is disclosed above with embodiment, and the sequence number before embodiment only makes for convenience of description
With the order to various embodiments of the present invention does not cause limitation.Also, above-described embodiment is simultaneously not used to the limitation present invention, this area
Those of ordinary skill, without departing from the spirit and scope of the present invention, can make various changes and retouching, it is therefore of the invention
Protection domain is defined by the scope that claim is defined.
Claims (16)
1. a kind of application testing method, it is characterised in that including:
The test event code of traversal test application, obtains the every sub-project code in the test event code;
Pitching pile function file is copied to the predeterminated position of the sub-project code;
By the pitching pile function file, all function files in the sub-project code are traveled through;
Syntactic analysis is carried out to the function file, the function entrance of each function file in the sub-project code is obtained;
And
Pitching pile function is set in the function entrance of the function file, to export pitching pile information, so as to believe by the pitching pile
Cease and the test coverage of the test application is fed back.
2. application testing method according to claim 1, it is characterised in that the test event generation of the traversal test application
Code, includes the step of obtain the every sub-project code in the test event code:
Travel through the preset configuration file in the test event code;And
The every sub-project code in the test event code is determined according to the preset configuration file.
3. application testing method according to claim 1, it is characterised in that it is described pitching pile function file is copied to it is described
Also include after the step of predeterminated position of sub-project code:
According to the numbering of the sub-project code, renaming operation is carried out to the pitching pile function file.
4. application testing method according to claim 1, it is characterised in that described that grammer point is carried out to the function file
The step of analysis, function entrance for obtaining each function file in the sub-project code, includes:
Judge whether the function file is control function file;And
Function file is control function file as described, then syntactic analysis is carried out to the function file, obtains the sub-project
The function entrance of each function file in code.
5. application testing method according to claim 4, it is characterised in that the function entrance in the function file
Set pitching pile function the step of be:
The path of the pitching pile function file is set in the function file;And
The pitching pile function is set in the function entrance of the function file, so that the function file passes through the pitching pile function
File is identified to the pitching pile function.
6. application testing method according to claim 5, it is characterised in that the function entrance in the function file
The pitching pile function the step of include:
In colleague's code afterbody of the function entrance of the function file, the pitching pile function is set.
7. application testing method according to claim 1, it is characterised in that the application testing method also includes step:
Operation is encrypted by pitching pile information described in the pitching pile function pair.
8. application testing method according to claim 1, it is characterised in that the pitching pile function has for representing described
The pitching pile status indicator whether pitching pile function is opened.
9. one kind application test device, it is characterised in that including:
Sub-project Code obtaining module, the test event code for traveling through test application, in the acquisition test event code
Every sub-project code;
Pitching pile function file copies module, the predeterminated position for pitching pile function file to be copied to the sub-project code;
Function file spider module, for by the pitching pile function file, traveling through all functions in the sub-project code
File;
Function entrance acquisition module, it is every in the acquisition sub-project code for carrying out syntactic analysis to the function file
The function entrance of individual function file;And
Pitching pile function setup module, pitching pile function is set for the function entrance in the function file, to export pitching pile letter
Breath, so as to be fed back to the test coverage of the test application by the pitching pile information.
10. application test device according to claim 9, it is characterised in that the sub-project Code obtaining module includes:
Preset configuration file traversal unit, for traveling through the preset configuration file in the test event code;And
Sub-project code-determining unit, for determining the every height in the test event code according to the preset configuration file
Item code.
11. application test devices according to claim 9, it is characterised in that the application test device also includes:
Pitching pile function file renamer module, for the numbering according to the sub-project code, enters to the pitching pile function file
Row renaming is operated.
12. application test devices according to claim 9, it is characterised in that the function entrance acquisition module includes:
Control function file judging unit, for judging whether the function file is control function file;And
Function entrance acquiring unit, is control function file for function file as described, then carry out language to the function file
Method is analyzed, and obtains the function entrance of each function file in the sub-project code.
13. application test devices according to claim 9, it is characterised in that the pitching pile function setup module includes:
Pitching pile function file path setting element, the path for setting the pitching pile function file in the function file;
And
Pitching pile function setup unit, sets the pitching pile function, so as to the letter for the function entrance in the function file
Number file is identified by the pitching pile function file to the pitching pile function.
14. application test devices according to claim 13, it is characterised in that the pitching pile function setup unit is described
Colleague's code afterbody of the function entrance of function file sets the pitching pile function.
15. application test devices according to claim 9, it is characterised in that the application test device also includes:
Encrypting module, for being encrypted operation by pitching pile information described in the pitching pile function pair.
16. application test devices according to claim 9, it is characterised in that the pitching pile function has for representing institute
State the pitching pile status indicator whether pitching pile function is opened.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710082072.9A CN106844219B (en) | 2017-02-15 | 2017-02-15 | Application detection method and application detection device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710082072.9A CN106844219B (en) | 2017-02-15 | 2017-02-15 | Application detection method and application detection device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106844219A true CN106844219A (en) | 2017-06-13 |
CN106844219B CN106844219B (en) | 2021-02-02 |
Family
ID=59128710
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710082072.9A Active CN106844219B (en) | 2017-02-15 | 2017-02-15 | Application detection method and application detection device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106844219B (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110008115A (en) * | 2019-02-27 | 2019-07-12 | 北京三快在线科技有限公司 | Code coverage statistical method, device, electronic equipment and readable storage medium storing program for executing |
CN110059000A (en) * | 2019-03-15 | 2019-07-26 | 深圳壹账通智能科技有限公司 | Chat drama test control method, device, computer equipment and storage medium |
CN110688317A (en) * | 2019-09-27 | 2020-01-14 | 支付宝(杭州)信息技术有限公司 | Application interface test method and device |
CN112527657A (en) * | 2020-12-17 | 2021-03-19 | 展讯通信(上海)有限公司 | Method and equipment for automatic pile insertion in unit test |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101561777A (en) * | 2008-04-14 | 2009-10-21 | 中兴通讯股份有限公司 | System and method for realizing coverage rate test |
US7617484B1 (en) * | 2008-08-05 | 2009-11-10 | International Business Machines Corporation | Concern based hole analysis |
CN103473171A (en) * | 2013-08-28 | 2013-12-25 | 北京信息科技大学 | Coverage rate dynamic tracking method and device based on function call paths |
CN104598274A (en) * | 2015-01-13 | 2015-05-06 | 北京京东尚科信息技术有限公司 | Automatic instrumentation, compiling and installing method and system |
CN104834590A (en) * | 2014-02-11 | 2015-08-12 | 腾讯科技(深圳)有限公司 | Software test method and system |
-
2017
- 2017-02-15 CN CN201710082072.9A patent/CN106844219B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101561777A (en) * | 2008-04-14 | 2009-10-21 | 中兴通讯股份有限公司 | System and method for realizing coverage rate test |
US7617484B1 (en) * | 2008-08-05 | 2009-11-10 | International Business Machines Corporation | Concern based hole analysis |
CN103473171A (en) * | 2013-08-28 | 2013-12-25 | 北京信息科技大学 | Coverage rate dynamic tracking method and device based on function call paths |
CN104834590A (en) * | 2014-02-11 | 2015-08-12 | 腾讯科技(深圳)有限公司 | Software test method and system |
CN104598274A (en) * | 2015-01-13 | 2015-05-06 | 北京京东尚科信息技术有限公司 | Automatic instrumentation, compiling and installing method and system |
Non-Patent Citations (1)
Title |
---|
OLIVERGAO: ""在多项目工程中统计子项目工程的覆盖率"", 《简书》 * |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110008115A (en) * | 2019-02-27 | 2019-07-12 | 北京三快在线科技有限公司 | Code coverage statistical method, device, electronic equipment and readable storage medium storing program for executing |
CN110059000A (en) * | 2019-03-15 | 2019-07-26 | 深圳壹账通智能科技有限公司 | Chat drama test control method, device, computer equipment and storage medium |
CN110688317A (en) * | 2019-09-27 | 2020-01-14 | 支付宝(杭州)信息技术有限公司 | Application interface test method and device |
CN112527657A (en) * | 2020-12-17 | 2021-03-19 | 展讯通信(上海)有限公司 | Method and equipment for automatic pile insertion in unit test |
CN112527657B (en) * | 2020-12-17 | 2022-08-30 | 展讯通信(上海)有限公司 | Method and equipment for automatic pile insertion in unit test |
Also Published As
Publication number | Publication date |
---|---|
CN106844219B (en) | 2021-02-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
Duchêne et al. | State of the art of network protocol reverse engineering tools | |
Fiterău-Broştean et al. | Combining model learning and model checking to analyze TCP implementations | |
Hallé et al. | Runtime Verification of Web Service Interface Contracts. | |
Sahlabadi et al. | Detecting abnormal behavior in social network websites by using a process mining technique | |
Cavalli et al. | A survey on formal active and passive testing with applications to the cloud | |
CN104391694B (en) | Intelligent mobile terminal software public service support platform system | |
CN107113183A (en) | The controlled shared system and method for big data | |
CN105264491A (en) | Identifying implicit assumptions associated with a software product | |
CN106844219A (en) | Using detection method and apply detection means | |
Sarker et al. | Hiding in plain site: Detecting javascript obfuscation through concealed browser api usage | |
TWI626538B (en) | Infrastructure rule generation | |
CN115705255A (en) | Learning causal relationships | |
Accorsi et al. | SWAT: a security workflow analysis toolkit for reliably secure process-aware information systems | |
CN110619216A (en) | Malicious software detection method and system for adversarial network | |
Pieczul et al. | Runtime detection of zero-day vulnerability exploits in contemporary software systems | |
Sotgiu et al. | Explainability-based debugging of machine learning for vulnerability discovery | |
KR20210045122A (en) | Apparatus and method for generating test input a software using symbolic execution | |
Zhao et al. | Suzzer: A vulnerability-guided fuzzer based on deep learning | |
CN110581857B (en) | Virtual execution malicious software detection method and system | |
Ahmad et al. | Model-based testing for internet of things systems | |
Mostafa et al. | Netdroid: Summarizing network behavior of android apps for network code maintenance | |
CN117009972A (en) | Vulnerability detection method, vulnerability detection device, computer equipment and storage medium | |
Fehlmann et al. | ART for Agile: Autonomous Real-Time Testing in the Product Development Cycle | |
Felderer et al. | Formal methods in industrial practice-bridging the gap (track summary) | |
Adebiyi et al. | A neural network based security tool for analyzing software |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right | ||
TR01 | Transfer of patent right |
Effective date of registration: 20211230 Address after: 16F, Kungang science and technology building, 777 Huancheng South Road, Xishan District, Kunming, Yunnan 650100 Patentee after: Yunnan Tengyun Information Industry Co.,Ltd. Address before: 518000 Tencent Building, No. 1 High-tech Zone, Nanshan District, Shenzhen City, Guangdong Province, 35 Floors Patentee before: TENCENT TECHNOLOGY (SHENZHEN) Co.,Ltd. |