CN108255700A - Test result generation method and device - Google Patents

Test result generation method and device Download PDF

Info

Publication number
CN108255700A
CN108255700A CN201710189049.XA CN201710189049A CN108255700A CN 108255700 A CN108255700 A CN 108255700A CN 201710189049 A CN201710189049 A CN 201710189049A CN 108255700 A CN108255700 A CN 108255700A
Authority
CN
China
Prior art keywords
test
code
information
test result
monitoring information
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
CN201710189049.XA
Other languages
Chinese (zh)
Other versions
CN108255700B (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.)
Ping An Technology Shenzhen Co Ltd
Original Assignee
Ping An 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 Ping An Technology Shenzhen Co Ltd filed Critical Ping An Technology Shenzhen Co Ltd
Priority to CN201710189049.XA priority Critical patent/CN108255700B/en
Priority to PCT/CN2018/080151 priority patent/WO2018177202A1/en
Publication of CN108255700A publication Critical patent/CN108255700A/en
Application granted granted Critical
Publication of CN108255700B publication Critical patent/CN108255700B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3692Test management for test results analysis
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3676Test management for coverage analysis

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)

Abstract

The present invention relates to a kind of test result generation method and device, the method includes:Obtain the test result generation instruction for carrying software identification;Extract the corresponding test monitoring information of software identification and code modification information in the test result generation instruction;The test monitoring information of change code is searched in the test monitoring information according to the code modification information;According to the test result of the test monitoring information generation change code found.Test result generation method provided by the invention and device without manually searching the specific test case of change code, save and search the time, the monitoring efficiency to changing code is improved by the test result of generation change code.

Description

Test result generation method and device
Technical field
The present invention relates to software testing technology field, more particularly to a kind of test result generation method and device.
Background technology
With the development of computer technology, the software with various functions is developed, in software development process, is often needed Software is tested, application could be put into after in software test.In software development process, need constantly to soft The code of part is changed to upgrade to software, after each software upgrading, be required for the software code after change into Row test.
When testing every time the software code after change, it is impossible to understand the specific test case of change code. When test occurs abnormal, need manually to search the specific test case of change code.Artificial search can expend the more time, this Sample cause during the test to change code monitoring it is more difficult, cause to change code monitoring efficiency it is low.
Invention content
Based on this, it is necessary in test process change code monitoring efficiency it is low the problem of, a kind of test is provided As a result generation method and device.
A kind of test result generation method, the method includes:
Obtain test result generation instruction;
Extract the software identification in the test result generation instruction;
Test monitoring information and code modification information are obtained according to the software identification extracted, test monitoring information is to institute The corresponding tested software code of software identification is stated to be monitored to obtain;
The test monitoring information of change code is searched in the test monitoring information according to the code modification information;
According to the test result of the test monitoring information generation change code found.
The software identification that the basis is extracted in one of the embodiments, obtains test monitoring information and code change Information, including:
The acquisition that test monitoring information is generated according to the software identification is asked;
Described obtain is asked to be sent to monitoring server;
Receive the test monitoring information that software identification of the monitoring server in the acquisition instruction is found;
Code modification information is searched in code database according to the software identification.
Described searched in the test monitoring information according to the code modification information becomes in one of the embodiments, The test monitoring information of more code, including:
Extract the change code segment identification in the code modification information;
Determine the corresponding position range information of the change code segment identification;
Matched test monitoring information is extracted in the test monitoring information according to the position range information.
The test knot of test monitoring information generation change code that the basis is found in one of the embodiments, Fruit, including:
Row is performed according to the total line number of code of each change code segment identification of test monitoring information statistics found and code Number;
Line number is performed according to the total line number of the code of statistics and code and calculates the corresponding Test coverage of each change code segment identification Rate.
The test result of test monitoring information generation change code that the basis is found in one of the embodiments, Later, it further includes:
By test result storage corresponding with the software identification;
It receives the test result that terminal is sent and obtains request;
The software identification in the test result acquisition request is extracted, it, will according to the identifier lookup test result extracted The test result found is back to the terminal;
It obtains the terminal and instruction is changed according to the test case that the test result of return generates;
The corresponding test case mark of change code segment in the test case modification instruction is extracted, according to the survey extracted Example identifier lookup test case on probation, the terminal is back to by the test case found.
The generation method of above-mentioned test result obtains the test result generation instruction for carrying software identification, test result The test result of code is changed in generation instruction for generating in the corresponding software of software identification, soft in extraction result generation instruction Part identifies, and obtains the corresponding test monitoring information of software identification and code modification information, is supervised according to code modification information in test The test monitoring information of change code is searched in measurement information, according to the test of test monitoring information generation change code found As a result.In this way, the specific test case without manually searching change code, saves and search the time, code is changed by generation Test result improve to change code monitoring efficiency.
A kind of test result generating means, described device include:
Instruction acquisition module, for obtaining test result generation instruction;
Marker extraction module, for extracting the software identification in the test result generation instruction;
Data obtaining module, for obtaining test monitoring information and code modification information according to the software identification extracted, Test monitoring information is monitored to obtain for tested software code corresponding to the software identification;
Information searching module, for searching change code in the test monitoring information according to the code modification information Test monitoring information;
Result-generation module, for according to the test result of the test monitoring information generation change code found.
Described information acquisition module includes in one of the embodiments,:
Acquisition requests to generate module, and the acquisition for generating test monitoring information according to the software identification is asked;
Request sending module is obtained, for asking to be sent to monitoring server described obtain;
Monitoring information receiving module is looked into for receiving software identification of the monitoring server in the acquisition instruction The test monitoring information found;
Modification information searching module, for searching code modification information in code database according to the software identification.
Described information searching module includes in one of the embodiments,:
Marking code extraction module, for extracting the change code segment identification in the code modification information;
Position range determining module, for determining the corresponding position range information of the change code segment identification;
Monitoring information extraction module matches for being extracted in the test monitoring information according to the position range information Test monitoring information.
The result-generation module includes in one of the embodiments,:
Line number statistical module, for total according to the code of each change code segment identification of test monitoring information statistics found Line number and code perform line number;
Coverage rate computing module performs line number for the total line number of code according to statistics and code and calculates each change code segment Identify corresponding test coverage.
Described device further includes in one of the embodiments,:
Test result memory module, for by the test result it is corresponding with the software identification storage;
Request receiving module is obtained, the test result for receiving terminal transmission obtains request;
Test result searching module obtains software identification in request for extracting the test result, according to extracting Identifier lookup test result, the test result found is back to the terminal;
Instruction acquisition module is changed, is changed for obtaining the terminal according to the test case that the test result of return generates Instruction;
Test case searching module is used for extracting the corresponding test of change code segment in the test case modification instruction Example mark, according to the test case identifier lookup test case extracted, the terminal is back to by the test case found.
The generating means of above-mentioned test result obtain the test result generation instruction for carrying software identification, test result The test result of code is changed in generation instruction for generating in the corresponding software of software identification, soft in extraction result generation instruction Part identifies, and obtains the corresponding test monitoring information of software identification and code modification information, is supervised according to code modification information in test The test monitoring information of change code is searched in measurement information, according to the test of test monitoring information generation change code found As a result.In this way, the specific test case without manually searching change code, saves and search the time, code is changed by generation Test result improve to change code monitoring efficiency.
Description of the drawings
Fig. 1 is that test result generates systematic difference environment map in one embodiment;
Fig. 2 is the flow diagram of test result generation method in one embodiment;
Fig. 3 is the flow signal that change code segment identification corresponding the step of testing monitoring information is searched in one embodiment Figure;
Fig. 4 is the flow diagram for changing the step of test case is searched in instruction in one embodiment according to test case;
Fig. 5 is the structure diagram of test result generating means in one embodiment;
Fig. 6 is the structure diagram of data obtaining module in one embodiment;
Fig. 7 is the structure diagram of information searching module in one embodiment;
Fig. 8 is the structure diagram of result-generation module in one embodiment;
Fig. 9 is the structure diagram of test result generating means in another embodiment.
Specific embodiment
In order to make the purpose , technical scheme and advantage of the present invention be clearer, with reference to the accompanying drawings and embodiments, it is right The present invention is further elaborated.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, and It is not used in the restriction present invention.
Fig. 1 is that test result generates system in one embodiment, and test result generation system includes terminal 110, test Server 120 and monitoring server 130, test server 120 are connected by network with terminal 110 and monitoring server 130. Wherein, terminal 110, test server 120 and monitoring server 130 can be specifically multiple.Terminal 110 can be specifically notes At least one of this computer, tablet computer, smart mobile phone and personal digital assistant.
As shown in Fig. 2, in one embodiment, a kind of generation method of test result is provided, the present embodiment is in this way It is particularly applicable in the test server 120 in Fig. 1 test result generation systems for example, being transported in test server 120 Row has the generation program of test result, and the generation program of test result is used to implement the generation method of test result.This method has Body includes the following steps:
S202 obtains the test result generation instruction for carrying software identification.
Specifically, test server 120 is when tested software code corresponding to software identification is tested, extraction The corresponding software identification of software code generates test result generation instruction according to software identification.Test result generation instruction is uses In the test result for generating change code in software code, change code is the code by changing in software code.
In one embodiment, test server 120 starts or terminates test in software code corresponding to software identification When, according to the corresponding software identification generation test result generation instruction of software code.
S204, the software identification in extraction test result generation instruction.
Specifically, test result generation instruction includes the corresponding software identification of software code.Test server 120 is obtaining After getting test result generation instruction, test result generation instruction is parsed, it is soft in extraction test result generation instruction Part identifies.
S206 obtains test monitoring information and code modification information according to the software identification extracted, tests monitoring information It is monitored to obtain for tested software code corresponding to software identification.
Wherein, test monitoring information is specially the test to software code during testing software code The information that situation is monitored.The location information of code of test process executed can specifically be included by testing monitoring information With the location information of code being not carried out.
Specifically, test server 120 generates instruction to test result and carries out after test result generation instruction is got Parsing, the software identification in extraction test result generation instruction.It is corresponding with software identification that lookup in monitoring information is tested in storage Test monitoring information.
Further, test server 120 searches code modification information corresponding with software identification in code database. Wherein, the corresponding software code of software identification and the corresponding code modification information of software identification, generation are store in code database Code modification information can specifically include the coding change position in software code, can also include code changed content, code becomes More at least one of time and software identification.Software identification can be specifically at least one of dbase and version number.
In one embodiment, S206 specifically includes the following contents:Obtaining for test monitoring information is generated according to software identification Instruction fetch;Acquisition instruction is sent to monitoring server;Software identification of the monitoring server in acquisition instruction is received to search The test monitoring information arrived;Code modification information is searched in code database according to software identification.
Specifically, when monitoring server 130 detects the test event triggered in test server 120, test event is obtained The software identification of corresponding software code.Monitoring server 130 searches whether exist and this in the test monitoring information of storage The corresponding test monitoring information of software code, if in the presence of test monitoring information corresponding with the software code being deleted, to the software The test case for identifying corresponding software code is monitored and regains test monitoring information, will acquire test monitoring information Storage corresponding with the software code;If being not present, directly the test case of the corresponding software code of the software identification is supervised It surveys and obtains test monitoring information.
Software identification generation of the testing service service 120 in test result generation instruction is used to obtain test monitoring letter The acquisition request of breath will obtain request and be sent to monitoring server 130.Monitoring server 130 carries after acquisition request is received The software identification obtained in asking is taken, test monitoring letter corresponding with software identification is searched in the test monitoring information of storage Breath, test server 120 is back to by the test monitoring information found.It is stored in the code database of test server 120 Code modification information, test server 120 searches code modification information corresponding with software code in code database.
S208 searches the test monitoring information of change code according to code modification information in monitoring information is tested.
Specifically, test server 120 is after code modification information is extracted, the extraction change generation from code modification information The location information of code searches the matched test monitoring information of location information with change code in monitoring information is tested.Change The location information of code can be specifically to change code line number in software code or line number range, and line number range includes change The beginning line number of code and end line number.
S210, according to the test result of test monitoring information generation change code found.
Specifically, in the test monitoring information found, test server 120 is carried from the test monitoring information found The location information of the change code for taking test abnormal in software code, according to software code where the abnormal change code of test In location information it is corresponding with software identification storage generation change code test result.
In one embodiment, S210 specifically includes the following contents:Each change is counted according to the test monitoring information found The total line number of code and code of more code segment identification perform line number;Line number is performed according to the total line number of the code of statistics and code to calculate It is each to change the corresponding test coverage of code segment identification.
Specifically, each change is store in the test monitoring information found, and code segment identification is corresponding is not carried out code institute Line number and executed code where line number.The line number and code for counting the code execution of each change code segment identification are not held The line number that code is not carried out is added with the line number of code executed to obtain the total line number of code, with the row being not carried out by capable line number Number divided by the total line number of code obtain test coverage, and obtained test coverage changed code segment identification is corresponding stores with each To the test coverage of each change code segment.Test coverage, can be with for representing that executed code accounts for the ratio of software code Represent the completeness of code tester.
In the present embodiment, the test result generation instruction for carrying software identification is obtained, test result generation instruction is used for The test result that code is changed in the corresponding software of software identification is generated, the software identification in extraction result generation instruction obtains The corresponding test monitoring information of software identification and code modification information, are searched according to code modification information in monitoring information is tested The test monitoring information of code is changed, according to the test result of test monitoring information generation change code found.In this way, nothing The specific test case of change code need to be manually searched, saves and searches the time, the test result that code is changed by generation carries The high monitoring efficiency to changing code.
As shown in figure 3, in one embodiment, S208 specifically includes the corresponding test monitoring of lookup change code segment identification The step of information, the step specifically include the following contents:
S302 extracts the change code segment identification in code modification information.
Specifically, change code segment identification is store in code modification information, change code segment is identified as change code institute Belong to the mark of code segment, change code segment identification can be specifically function name.Test server 120 is from code modification information Extraction change code segment identification.
S304 determines the corresponding position range information of change code segment identification.
Specifically, the mapping table of position range information and code segment identification is store in test server 120, is being carried After getting the change code segment identification in code modification information, search in mapping table and matched with the change code segment identification Code segment identification, extract the corresponding position range information of matched code segment identification.Position range information can be specifically generation The beginning line number of the corresponding code of code segment identification in software code and end line number.
S306 extracts matched test monitoring information according to position range information in monitoring information is tested.
Specifically, test server 120 is searched according to position range information in monitoring information is tested belongs to position range After location information is found, it is matched to extract the location information found from test monitoring information for the location information of information Test monitoring information.
In the present embodiment, extraction change code segment identification, determines the corresponding position of code segment identification from code modification information Range information is put, accurately the test monitoring of code in code segment is changed in extraction in monitoring information is tested according to position range information Information, it is ensured that the accuracy of change code segment test monitoring information.
As shown in figure 4, it in one embodiment, is specifically further included after S210 and instruction lookup survey is changed according to test case The step of example on probation, which specifically includes the following contents:
S402, by test result storage corresponding with software identification.
Specifically, test server 120 or monitoring server 130 will test after the test result of generation change code As a result software identification corresponding with change code is corresponding stores.
S404 receives the test result that terminal is sent and obtains request.
Specifically, the test result for code being changed in test server 120 or monitoring server 130 are to software code is deposited Chu Hou, terminal 110 is sent to test server 120 or monitoring server 130 to be obtained for obtaining the test result of test result Request, test result obtain in request and carry software identification.
S406, extraction test result obtain the software identification in request, will according to the identifier lookup test result extracted The test result found is back to terminal.
Specifically, the mapping table of code segment identification and test case mark is store in test server 120, After test server 120 finds the test monitoring information of change code, code segment identification is changed in extraction test monitoring information, The change matched code segment identification of code segment identification is searched and extracted in the mapping table, and is looked into from mapping table The corresponding test case mark of matched code segment identification is looked for, the test that test case mark is added to change code monitors letter Test result is generated in breath.Test server 120 or monitoring server 130 are after receiving test result and obtaining request, extraction Test result obtains the software identification in request, and test result corresponding with software identification is searched in the test result of storage, Test result is to change the test result of code, and the test result found is sent to terminal 110.
S408 obtains terminal and changes instruction according to the test case that the test result of return generates.
Specifically, after terminal 110 receives test result, test result is parsed, extracts the change in test result The corresponding test case mark of more code segment identification.The test case pair for needing to debug is chosen in test case mark is extracted According to the test case mark generation test case modification instruction chosen, the test of generation is used for the test case mark answered Example modification instruction is sent to test server 120.
S410, the corresponding test case mark of change code segment in extraction test case modification instruction, according to what is extracted The test case found is back to terminal by test case identifier lookup test case.
Specifically, test server 120 is after test case modification instruction is received, in extraction test case modification instruction Test case mark, according to test case mark matched test case is searched in the test case of storage, will find Test case be back to terminal 110, and be shown in the edit page of terminal 110.Terminal 110 can be right in edit page Test case is modified, and modified test page is sent to test server 120 after the completion of modification stores.It surveys The test case in the regular edit page for obtaining terminal 110 of server 120 is tried, modified test case is stored.
In the present embodiment, terminal can search the test result of change code, related according to code is changed in test result Test case corresponding to test case identifier lookup test case, the test case that finds is carried out according to test result Modification, so as to improve the testing efficiency of change code.
As shown in figure 5, in one embodiment, providing a kind of test result generating means 500, which includes specific packet It includes:Instruction acquisition module 502, marker extraction module 504, data obtaining module 506, information searching module 508 and result generation Module 510.
Instruction acquisition module 502, for obtaining the test result generation instruction for carrying software identification.
Marker extraction module 504, for extracting the software identification in test result generation instruction.
Data obtaining module 506, for obtaining test monitoring information and code change letter according to the software identification extracted Breath, test monitoring information is corresponding tested software code is monitored to obtain to software identification.
Information searching module 508, for searching the survey of change code in monitoring information is tested according to code modification information Try monitoring information.
Result-generation module 510, for according to the test result of test monitoring information generation change code found.
In the present embodiment, the test result generation instruction for carrying software identification is obtained, test result generation instruction is used for The test result that code is changed in the corresponding software of software identification is generated, the software identification in extraction result generation instruction obtains The corresponding test monitoring information of software identification and code modification information, are searched according to code modification information in monitoring information is tested The test monitoring information of code is changed, according to the test result of test monitoring information generation change code found.In this way, nothing The specific test case of change code need to be manually searched, saves and searches the time, the test result that code is changed by generation carries The high monitoring efficiency to changing code.
As shown in fig. 6, in one embodiment, data obtaining module 506 specifically includes:Acquisition requests to generate module 506a, request sending module 506b, monitoring information receiving module 506c and modification information searching module 506d are obtained.
Acquisition requests to generate module 506a, and the acquisition for generating test monitoring information according to software identification is asked;
Request sending module 506b is obtained, monitoring server is sent to for request will to be obtained;
Monitoring information receiving module 506c finds for receiving software identification of the monitoring server in acquisition instruction Test monitoring information.
Modification information searching module 506d, for searching code modification information in code database according to software identification.
In the present embodiment, monitoring server is monitored the test case of software code in the test prison for obtaining software code Measurement information, and test monitoring information is stored in monitoring server.Test monitoring information is searched from monitoring server, without weight It is new to perform software code, the calculation resources re-executed spent by software code are saved, are improved resource utilization.
As shown in fig. 7, in one embodiment, information searching module 508 specifically includes:Marking code extraction module 508a, position range determining module 508b and monitoring information extraction module 508c.
Marking code extraction module 508a, for extracting the change code segment identification in code modification information.
Position range determining module 508b, for determining the corresponding position range information of change code segment identification.
Monitoring information extraction module 508c, for extracting matched survey in monitoring information is tested according to position range information Try monitoring information.
In the present embodiment, extraction change code segment identification, determines the corresponding position of code segment identification from code modification information Range information is put, accurately the test monitoring of code in code segment is changed in extraction in monitoring information is tested according to position range information Information, it is ensured that the accuracy of the corresponding test monitoring information of change code segment found.
As shown in figure 8, in one embodiment, result-generation module 510 specifically includes:It line number statistical module 510a and covers Lid rate computing module 510b.
Line number statistical module 510a, for according to the generation of each change code segment identification of test monitoring information statistics found The total line number of code and code perform line number.
Coverage rate computing module 510b performs line number for the total line number of code according to statistics and code and calculates each change generation The corresponding test coverage of code segment identification.
In the present embodiment, according to find test monitoring information statistics it is each change code segment identification the total line number of code and Code performs line number, and performing line number according to the total line number of the code of statistics and code calculates the corresponding test of each change code segment identification Coverage rate monitors the test performance of each change code segment by calculating test coverage, improves and tested in change code segment Monitoring efficiency in the process.
As shown in figure 9, in one embodiment, providing a kind of test result generating means 500, which specifically also wraps It includes:Test result memory module 512 obtains request receiving module 514, test result sending module 516, modification instruction acquisition mould Block 518 and test case searching module 520.
Test result memory module 512, for by test result it is corresponding with software identification storage.
Request receiving module 514 is obtained, the test result for receiving terminal transmission obtains request.
Test result searching module 516, for extracting the software identification in test result acquisition request, according to what is extracted The test result found is back to terminal by identifier lookup test result.
Instruction acquisition module 518 is changed, is changed for obtaining terminal according to the test case that the test result of return generates Instruction.
Test case searching module 520 is used for extracting the corresponding test of change code segment in test case modification instruction Example mark, according to the test case identifier lookup test case extracted, terminal is back to by the test case found.
In the present embodiment, terminal can search the test result of change code, related according to code is changed in test result Test case corresponding to test case identifier lookup test case, the test case that finds is carried out according to test result Modification, so as to improve the testing efficiency of change code.
Each technical characteristic of embodiment described above can be combined arbitrarily, to make description succinct, not to above-mentioned reality It applies all possible combination of each technical characteristic in example to be all described, as long as however, the combination of these technical characteristics is not deposited In contradiction, it is all considered to be the range of this specification record.
Embodiment described above only expresses the several embodiments of the present invention, and description is more specific and detailed, but simultaneously It cannot therefore be construed as limiting the scope of the patent.It should be pointed out that those of ordinary skill in the art are come It says, without departing from the inventive concept of the premise, various modifications and improvements can be made, these belong to the protection of the present invention Range.Therefore, the protection domain of patent of the present invention should be determined by the appended claims.

Claims (10)

1. a kind of test result generation method, the method includes:
Obtain test result generation instruction;
Extract the software identification in the test result generation instruction;
Test monitoring information and code modification information are obtained according to the software identification extracted, the test monitoring information is to institute The corresponding tested software code of software identification is stated to be monitored to obtain;
The test monitoring information of change code is searched in the test monitoring information according to the code modification information;
According to the test result of the test monitoring information generation change code found.
2. according to the method described in claim 1, it is characterized in that, the software identification that the basis is extracted obtains test monitoring Information and code modification information, including:
The acquisition that test monitoring information is generated according to the software identification is asked;
Described obtain is asked to be sent to monitoring server;
Receive the test monitoring information that software identification of the monitoring server in the acquisition instruction is found;
Code modification information is searched in code database according to the software identification.
3. according to the method described in claim 1, it is characterized in that, described supervise according to the code modification information in the test The test monitoring information of change code is searched in measurement information, including:
Extract the change code segment identification in the code modification information;
Determine the corresponding position range information of the change code segment identification;
Matched test monitoring information is extracted in the test monitoring information according to the position range information.
4. the according to the method described in claim 1, it is characterized in that, test monitoring information generation change that the basis is found The test result of code, including:
Line number is performed according to the total line number of code of each change code segment identification of test monitoring information statistics found and code;
Line number is performed according to the total line number of the code of statistics and code and calculates the corresponding test coverage of each change code segment identification.
5. according to claim 1-4 any one of them methods, which is characterized in that the test monitoring information that the basis is found After the test result of generation change code, further include:
By test result storage corresponding with the software identification;
It receives the test result that terminal is sent and obtains request;
The software identification in the test result acquisition request is extracted, according to the identifier lookup test result extracted, will be searched To test result be back to the terminal;
It obtains the terminal and instruction is changed according to the test case that the test result of return generates;
The corresponding test case mark of change code segment in the test case modification instruction is extracted, is used according to the test extracted Example identifier lookup test case, the terminal is back to by the test case found.
6. a kind of test result generating means, which is characterized in that described device includes:
Instruction acquisition module, for obtaining test result generation instruction;
Marker extraction module, for extracting the software identification in the test result generation instruction;
Data obtaining module, for obtaining test monitoring information and code modification information, test according to the software identification extracted Monitoring information is monitored to obtain for tested software code corresponding to the software identification;
Information searching module, for searching the survey of change code in the test monitoring information according to the code modification information Try monitoring information;
Result-generation module, for according to the test result of the test monitoring information generation change code found.
7. device according to claim 6, which is characterized in that described information acquisition module includes:
Acquisition requests to generate module, and the acquisition for generating test monitoring information according to the software identification is asked;
Request sending module is obtained, for asking to be sent to monitoring server described obtain;
Monitoring information receiving module finds for receiving software identification of the monitoring server in the acquisition instruction Test monitoring information;
Modification information searching module, for searching code modification information in code database according to the software identification.
8. device according to claim 6, which is characterized in that described information searching module includes:
Marking code extraction module, for extracting the change code segment identification in the code modification information;
Position range determining module, for determining the corresponding position range information of the change code segment identification;
Monitoring information extraction module, for extracting matched survey in the test monitoring information according to the position range information Try monitoring information.
9. device according to claim 6, which is characterized in that the result-generation module includes:
Line number statistical module, for according to the total line number of code of each change code segment identification of test monitoring information statistics found Line number is performed with code;
Coverage rate computing module performs line number for the total line number of code according to statistics and code and calculates each change code segment identification Corresponding test coverage.
10. according to claim 6-9 any one of them devices, which is characterized in that described device further includes:
Test result memory module, for by the test result it is corresponding with the software identification storage;
Request receiving module is obtained, the test result for receiving terminal transmission obtains request;
Test result searching module, for extracting the software identification in the test result acquisition request, according to the mark extracted Know and search test result, the test result found is back to the terminal;
Instruction acquisition module is changed, is referred to for obtaining the test case modification that the terminal is generated according to the test result of return It enables;
Test case searching module, for extracting the corresponding test case mark of change code segment in the test case modification instruction Know, according to the test case identifier lookup test case extracted, the test case found is back to the terminal.
CN201710189049.XA 2017-03-27 2017-03-27 Test result generation method and device Active CN108255700B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201710189049.XA CN108255700B (en) 2017-03-27 2017-03-27 Test result generation method and device
PCT/CN2018/080151 WO2018177202A1 (en) 2017-03-27 2018-03-23 Test result generation method, device, computer apparatus, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710189049.XA CN108255700B (en) 2017-03-27 2017-03-27 Test result generation method and device

Publications (2)

Publication Number Publication Date
CN108255700A true CN108255700A (en) 2018-07-06
CN108255700B CN108255700B (en) 2020-03-06

Family

ID=62721358

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710189049.XA Active CN108255700B (en) 2017-03-27 2017-03-27 Test result generation method and device

Country Status (2)

Country Link
CN (1) CN108255700B (en)
WO (1) WO2018177202A1 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109240919A (en) * 2018-08-20 2019-01-18 郑州云海信息技术有限公司 A kind of test data volume statistic system and method
CN109684214A (en) * 2018-12-21 2019-04-26 北京金山安全软件有限公司 UI (user interface) testing method and device
CN110309055A (en) * 2019-05-23 2019-10-08 深圳壹账通智能科技有限公司 Black-box Testing method, apparatus, terminal and storage medium based on Java Virtual Machine
CN111858375A (en) * 2020-07-28 2020-10-30 中国工商银行股份有限公司 Software testing method, device, electronic equipment and medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102222043A (en) * 2011-07-08 2011-10-19 华为软件技术有限公司 Testing method and testing device
CN102880547A (en) * 2012-09-05 2013-01-16 无锡江南计算技术研究所 Source code change influence analyzing and testing method for software units and components with combination of phase
CN103176895A (en) * 2011-12-22 2013-06-26 阿里巴巴集团控股有限公司 Method and system of regression testing
CN105183658A (en) * 2015-10-12 2015-12-23 用友网络科技股份有限公司 Software code testing method and device
CN106095670A (en) * 2016-06-02 2016-11-09 网易(杭州)网络有限公司 The generation method and device of test report
CN106326116A (en) * 2016-08-17 2017-01-11 北京奇虎科技有限公司 Method and device for testing product

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102222043A (en) * 2011-07-08 2011-10-19 华为软件技术有限公司 Testing method and testing device
CN103176895A (en) * 2011-12-22 2013-06-26 阿里巴巴集团控股有限公司 Method and system of regression testing
CN102880547A (en) * 2012-09-05 2013-01-16 无锡江南计算技术研究所 Source code change influence analyzing and testing method for software units and components with combination of phase
CN105183658A (en) * 2015-10-12 2015-12-23 用友网络科技股份有限公司 Software code testing method and device
CN106095670A (en) * 2016-06-02 2016-11-09 网易(杭州)网络有限公司 The generation method and device of test report
CN106326116A (en) * 2016-08-17 2017-01-11 北京奇虎科技有限公司 Method and device for testing product

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109240919A (en) * 2018-08-20 2019-01-18 郑州云海信息技术有限公司 A kind of test data volume statistic system and method
CN109240919B (en) * 2018-08-20 2022-03-22 郑州云海信息技术有限公司 Test data volume statistical system and method
CN109684214A (en) * 2018-12-21 2019-04-26 北京金山安全软件有限公司 UI (user interface) testing method and device
CN109684214B (en) * 2018-12-21 2022-02-25 北京金山安全软件有限公司 UI (user interface) testing method and device
CN110309055A (en) * 2019-05-23 2019-10-08 深圳壹账通智能科技有限公司 Black-box Testing method, apparatus, terminal and storage medium based on Java Virtual Machine
CN111858375A (en) * 2020-07-28 2020-10-30 中国工商银行股份有限公司 Software testing method, device, electronic equipment and medium
CN111858375B (en) * 2020-07-28 2023-09-05 中国工商银行股份有限公司 Software testing method, device, electronic equipment and medium

Also Published As

Publication number Publication date
WO2018177202A1 (en) 2018-10-04
CN108255700B (en) 2020-03-06

Similar Documents

Publication Publication Date Title
CN106991040B (en) Data interface testing method and device
CN106874187B (en) Code coverage rate collection method and device
CN108683530B (en) Data analysis method and device for multi-dimensional data and storage medium
CN108255700A (en) Test result generation method and device
CN109885496B (en) Test log management method and system
CN106815125A (en) A kind of log audit method and platform
US10592327B2 (en) Apparatus, system, and method for analyzing logs
CN107844409A (en) Test example executing method and device
CN110457175B (en) Service data processing method and device, electronic equipment and medium
CN114422267B (en) Flow detection method, device, equipment and medium
CN108900388A (en) Method and apparatus for monitor network quality
CN105187237A (en) Method and device for searching associated user identifications
CN111190551B (en) Redis data migration system, migration method, migration device and terminal
CN105183630A (en) Method and device for testing application program
US20200252317A1 (en) Mitigating failure in request handling
CN111831574B (en) Regression test planning method, regression test planning device, computer system and medium
CN109783284A (en) Information acquisition method, system and server, computer readable storage medium
CN109408309A (en) The test method and device of multiple terminals
CN114328566A (en) Relationship graph updating method, device, medium, equipment and generating method
CN106792784A (en) A kind of method, server and system that data check is carried out in server side
CN109587351B (en) Call testing method, device, equipment and storage medium
CN117827784A (en) Noise log filtering method and system
CN113312258A (en) Interface testing method, device, equipment and storage medium
CN112948262A (en) System test method, device, computer equipment and storage medium
CN116383081A (en) Software testing method, system, storage medium and electronic device

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