CN109491885A - Test problem localization method, device, computer equipment and storage medium - Google Patents
Test problem localization method, device, computer equipment and storage medium Download PDFInfo
- Publication number
- CN109491885A CN109491885A CN201811123581.2A CN201811123581A CN109491885A CN 109491885 A CN109491885 A CN 109491885A CN 201811123581 A CN201811123581 A CN 201811123581A CN 109491885 A CN109491885 A CN 109491885A
- Authority
- CN
- China
- Prior art keywords
- test
- current
- log
- chain
- examining system
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000012360 testing method Methods 0.000 title claims abstract description 410
- 238000000034 method Methods 0.000 title claims abstract description 33
- 230000004807 localization Effects 0.000 title claims abstract description 14
- 238000004590 computer program Methods 0.000 claims description 26
- 238000013101 initial test Methods 0.000 claims description 16
- 238000001228 spectrum Methods 0.000 claims description 14
- 238000010586 diagram Methods 0.000 description 9
- 230000005540 biological transmission Effects 0.000 description 4
- 238000012423 maintenance Methods 0.000 description 3
- 235000013399 edible fruits Nutrition 0.000 description 2
- 238000012545 processing Methods 0.000 description 2
- 238000012550 audit Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000002708 enhancing effect Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 230000001360 synchronised effect Effects 0.000 description 1
- 230000009897 systematic effect Effects 0.000 description 1
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/3688—Test management for test execution, e.g. scheduling of test suites
-
- 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/3692—Test management for test results 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/3696—Methods or tools to render software testable
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
This application involves testing fields, more particularly to a kind of test problem localization method, device, computer equipment and storage medium.The described method includes: sending test request to examining system, and the test result corresponding with test request of examining system return is received, and judges test result to indicate whether examining system that there are test problems;It is used to characterize the calling sequence of subsystems in examining system there are call chain corresponding with test request, call chain when test problem, is then obtained when determining examining system;According to calling chain query current test log corresponding with the current sub-system in call chain;The current test log inquired is matched with test problem;When current test log and test problem successful match, then determining current sub-system according to current test log, there are test problems.Testing efficiency can be improved using this method.
Description
Technical field
This application involves field of computer technology, set more particularly to a kind of test problem localization method, device, computer
Standby and storage medium.
Background technique
Interface automated test frame usually includes request transmission, result parsing, result report generation and alarm postal
The transmission of part.But test problem is only reported to tester, tester, which needs to be gone to search manually according to test problem, to deposit
In the position of problem, to solve test test problem, such processing mode reduces testing efficiency.
Summary of the invention
Based on this, it is necessary in view of the above technical problems, provide a kind of test problem positioning that can be improved testing efficiency
Method, apparatus, computer equipment and storage medium.
A kind of test problem localization method, which comprises
Test request is sent to examining system;
It receives the examining system and returns to test result corresponding with the test request, and judge that the test result is
There are test problems for the no expression examining system;
When determining that the examining system there are when test problem, then obtains call chain corresponding with the test request, institute
Call chain is stated for characterizing the calling sequence of subsystems in the examining system;
According to the calling chain query current test log corresponding with the current sub-system in the call chain;
The current test log inquired is matched with the test problem;
When the current test log and the test problem successful match, then determined according to current test log current
There are test problems for subsystem.
In one of the embodiments, the method also includes:
When it fails to match for the current test log and the test problem, then obtained according to the calling sequence to be measured
Next subsystem in system continues to execute the current test log that will be inquired and the test as current sub-system
Problem is matched.
The current sub-system pair according in the calling chain query and the call chain in one of the embodiments,
The current test log answered, comprising:
Obtain the sending time of the test request, and according to the calling chain query current sub-system, obtain with it is described
The corresponding initial testing log of the title of current sub-system;
Current test log is chosen from the initial testing log according to the sending time.
The current test log that will be inquired and test problem progress in one of the embodiments,
Match, comprising:
Keyword is extracted from the test problem, and obtains the corresponding characteristic value of the keyword;
The characteristic value is matched with the information in the current test log inquired;
When successful match, then current test log and the test problem successful match, otherwise, current test log with
It fails to match for the test problem.
In one of the embodiments, the current test log of the basis determine current sub-system there are test problem, packet
It includes:
Output chain spectrum is generated according to the call chain, and obtains position corresponding with the current sub-system in the chain spectrum
It sets, current test log and the characteristic value is shown at acquired position.
In one of the embodiments, the current test log of the basis determine current sub-system there are test problem it
Afterwards, comprising:
Inquiry and the test problem and there are the corresponding solutions of the current sub-system of test problem inquiry
Mode;
When the settling mode is not present, then addition settling mode prompt is exported;
Receive the settling mode corresponding with the addition settling mode prompt of input;
Store settling mode.
A kind of test problem positioning device, described device include:
Test module, for sending test request to examining system;It is returning with the test to receive the examining system
Corresponding test result is requested, and judges the test result to indicate whether the examining system that there are test problems;
Call chain obtains module, for when determining that the examining system there are when test problem, then obtains and the survey
Corresponding call chain is requested in examination, and the call chain is used to characterize the calling sequence of subsystems in the examining system;
First enquiry module, for chain query to be corresponding with the current sub-system in the call chain works as according to the calling
Preceding test log;
Matching module, for matching the current test log inquired with the test problem;
Output module, for when the current test log and the test problem successful match, then being surveyed according to current
Examination log determines current sub-system, and there are test problems.
First enquiry module is also used to when the current test log and the test in one of the embodiments,
Problem then obtains next subsystem in examining system as current sub-system according to the calling sequence when it fails to match, and
The current test log that will be inquired is continued to execute to match with the test problem.
A kind of computer equipment, including memory and processor, the memory are stored with computer program, the processing
The step of device realizes any of the above-described the method when executing the computer program.
A kind of computer readable storage medium, is stored thereon with computer program, and the computer program is held by processor
The step of method described in any of the above embodiments is realized when row.
Above-mentioned test problem localization method, device, computer equipment and storage medium, establish the calling of subsystems
Relationship, so that the corresponding log of subsystems can be successively inquired according to call chain when test is there are when test problem, thus
It determines position existing for test errors, improves testing efficiency.
Detailed description of the invention
Fig. 1 is the application scenario diagram of test problem localization method in one embodiment;
Fig. 2 is the flow diagram of test problem localization method in one embodiment;
Fig. 3 is the schematic diagram of the call chain in one embodiment;
Fig. 4 is the schematic diagram of the output chain spectrum in one embodiment;
Fig. 5 is the structural block diagram of test problem positioning device in one embodiment;
Fig. 6 is the internal structure chart of computer equipment in one embodiment.
Specific embodiment
It is with reference to the accompanying drawings and embodiments, right in order to which the objects, technical solutions and advantages of the application are more clearly understood
The application is further elaborated.It should be appreciated that specific embodiment described herein is only used to explain the application, not
For limiting the application.
Test problem localization method provided by the present application, can be applied in application environment as shown in Figure 1.Wherein, it surveys
Examination platform 102 is communicated by network with examining system 104.Test platform 102 sends test examination to examining system 104 first
Request, and receive examining system return with test request test result, when there are when test problem, i.e., really test result indicates
Examining system is determined there are when test problem, then test platform 102 gets call chain, then according to calling chain query and the tune
With the corresponding current test log of the current sub-system in chain;By the current test log inquired and test problem progress
Match;When current test log and the success of test result problem, then determines that current sub-system exists according to current test log and survey
Why inscribe, so that it is determined that subsystem to be measured locating for test problem.Wherein, test platform 102 can be, but not limited to be various
People's computer, laptop, smart phone, tablet computer and portable wearable device, examining system 104 can be with independently
The server cluster of server either multiple servers composition realize.
In one embodiment, as shown in Fig. 2, providing a kind of test problem localization method, it is applied to Fig. 1 in this way
In test platform for be illustrated, comprising the following steps:
S202: sending test request to examining system, receives test corresponding with the test request knot that examining system returns
Fruit, and judge test result to indicate whether examining system that there are test problems.
Specifically, test request is that test platform generates, and is used to indicate the instruction of examining system implementation of test cases.To
Examining system executes corresponding test case after receiving test request, and by the implementing result of test case, i.e. test result
It is back to test platform, so that test platform may determine that and test result indicate whether test macro there are test problems, that is, is sentenced
It is disconnected to test whether success.
S204: when determining test test macro, there are when test problem, then obtain call chain corresponding with test request, tune
It is used to characterize the calling sequence of subsystems in examining system with chain.
Specifically, test platform upon receipt of the test results, judges that test macro whether there is by the test result
Test problem, if it is present needing to position the position of the test problem.
Call chain is the calling sequence for characterizing subsystems in examining system, and wherein call chain is patrolled according to business
Generation is collected, is one-to-one relationship with service logic, and service logic and test request are one-to-one relationships, therefore
There is also one-to-one relationships for test request and call chain, so that test platform can be called according to test request to corresponding tune
Use chain.
S206: according to calling chain query current test log corresponding with the current sub-system in the call chain.
Specifically, the call relation of subsystems is given in call chain, specifically, with subsystem A, subsystem B with
And it is illustrated for subsystem C, it is assumed that its call relation is as follows, and the corresponding subsystem A of log 1, the corresponding subsystem of log 2
Unite B, the corresponding subsystem C of log 3.Test platform is after sending test request, sub-system A, subsystem B and subsystem C
Interface tested, and receive test result, if test result there are test problem, test platform according to subsystem A,
The corresponding log 1 of the sequential search subsystem of subsystem B and subsystem C, log 2 and log 3.
S208: the current test log inquired is matched with test problem.
Specifically, test platform by the test log and exists after getting the corresponding test log of current sub-system
Test problem matched, such as the title of test problem is matched etc. with the content in test log.
S210: when current test log and test problem successful match, then current son is determined according to current test log
There are test problems for system.
Specifically, test platform detects current test log and test result successful match, then obtains current test day
The corresponding current sub-system of will, and export the current sub-system there are test problems.If current test log and test problem
It fails to match, then test platform continues the corresponding survey of the lower subsystem of calling sequential query according to subsystems in call chain
Log is tried as current test log, and the current test log for continuing to be inquired is matched with test problem, until
There are a certain test logs and test problem successful match.Such as test platform can first audit log 1, judge be in log 1
No to there is content corresponding with test problem, and if so, explanation is that there are problems for the interface of subsystem A, then test platform is defeated
Problem out, to prompt tester to solve.If the content not matched with test problem in log 1, continues
Obtain log 2, that is, continue to get next subsystem according to call chain as current sub-system, by log 2 and test problem into
Row matching, until there are a certain test logs and test problem successful match.
Above-mentioned test problem localization method, establishes the call relation of subsystems, thus when test is asked in the presence of test
When topic, the corresponding log of subsystems can be successively inquired according to call chain, so that it is determined that position existing for test errors, mentions
High testing efficiency.
In one of the embodiments, according to calling chain query current test corresponding with the current sub-system in call chain
Log may include: to obtain the sending time of test request, and according to chain query current sub-system is called, obtain and current son
The corresponding initial testing log of systematic name;Current test log is chosen from initial testing log according to sending time.
The current test log inquired is matched with test problem in one of the embodiments, can wrap
It includes: extracting keyword from test problem, and obtain the corresponding characteristic value of keyword;By characteristic value and the current survey inquired
Information in examination log is matched;When successful match, then current test log and test problem successful match, otherwise, when
It fails to match with test problem for preceding test log.
Determining current sub-system according to current test log in one of the embodiments, there are test problems, can wrap
It includes: output chain spectrum being generated according to call chain, and obtains position corresponding with current sub-system in chain spectrum, at acquired position
Show current test log and characteristic value.
Specifically, test platform corresponding is worked as according to the calling sequential query current sub-system of subsystems in call chain
Preceding test log, and the current test log inquired is matched with test problem, it is to be obtained first according to the testing time
It gets this and tests the corresponding initial testing log of related current sub-system, such as call chain may correspond to multiple test days
Will, therefore test platform gets the corresponding test log of call chain first, then the name acquiring of current sub-system is to currently
The corresponding initial testing log of subsystem, and since there may be multiple initial testing logs for current sub-system, in order to select
Test log corresponding with this test is got, test platform can be chosen according to the testing time.Such as Fig. 3, Fig. 3 mono-
The schematic diagram of call chain in a embodiment, wherein subsystem A is corresponding with log 1, log 1.1, log 1.2 etc., test platform
First according to the name acquiring of current sub-system to log 1, log 1.1, log 1.2, log 1, log are then got again
1.1, the corresponding testing time of log 1.2, then matched with the sending time of test request, when log testing time with
Difference between the transmission of test request is greater than 0, and when being less than preset value, then it is assumed that and the log is current test log, so as to
To choose from the corresponding initial testing log of current sub-system to current test log.
Then test platform obtains the corresponding characteristic value of keyword of test problem, and wherein the keyword of test problem can be with
Be it is pre-set, test problem is matched with pre-set keyword, the keyword of successful match is the test
The keyword of problem, then gets the corresponding characteristic value of keyword, and this feature value is also pre-set.Test platform should
Characteristic value is matched the interface to determine current sub-system with the content in current test log with the presence or absence of problem, if
With success, then illustrating the interface of current sub-system, there are problems, if it fails to match, continue to obtain next son according to call chain
System is as current sub-system.Wherein characteristic value is the type of mistake, such as common 404 etc..It is matched by characteristic value
It is faster than carrying out matched speed by text, matched efficiency can be improved.
Optionally, when test platform according to the testing time have not been obtained this test involved in current sub-system it is corresponding
When current test log, illustrates that test occurs interrupting here resulting in test errors, then it is not current can directly to return to this
The current sub-system of test log there are the information of mistake.
It is the schematic diagram of the output chain spectrum in one embodiment refering to Fig. 4, Fig. 4, in this embodiment, in order to improve display
Effect can export call chain in the form that chain is composed, and in call chain it is corresponding exist mistake subsystem under into
Rower note, i.e., by type of error, such as characteristic value and journal displaying be under corresponding subsystem, so that tester can be with a mesh
That is clear recognizes data position of problems in transmission process, and such as the subsystem B in Fig. 4, correspondence shows log 2
And characteristic value, therefore, tester can accurately recognize the type of mistake and the position of mistake.
In above-described embodiment, when determining whether subsystem is errors present by log, determined first according to the time
This test involved in log, then according to the corresponding characteristic value of keyword of mistake matched with the content in log with
Mistake is determined whether there is, and optionally, if do not inquire the log of this corresponding test of subsystem, i.e., this is tested
Subsystem may not receive data, then directly using the subsystem of no this test log of correspondence as errors present, furthermore
When exporting display, it can be shown by diagram, improve efficiency and readability.
One embodiment wherein determines that current sub-system, can be with there are after test problem according to current test log
It include: inquiry and test problem and there are the corresponding settling modes of the current sub-system of test problem inquiry;When there is no solutions
Certainly when mode, then addition settling mode prompt is exported;Receive the settling mode corresponding with addition settling mode prompt of input;It deposits
Store up settling mode.
Specifically, can be according to errors present and type of error behind the position that mistake has been determined, i.e. characteristic value solves
The mistake, such as can the position of mistake, the corresponding settling mode of characteristic value be associated storage, such as stored to solution in advance
It, can be according to the errors present and feature certainly in mode library, therefore after test platform gets the errors present and characteristic value
Value inquires corresponding settling mode, so that test platform is operated according to corresponding settling mode to solve current test and ask
Topic.And optionally, if settling mode corresponding with errors present and characteristic value has not been obtained, prompt can be exported, so as to
Corresponding settling mode is inputted in tester, so that the settling mode solution that test platform can be inputted according to tester is deposited
Test problem.And optionally if it is system there are problem, it can also be and test problem is sent to corresponding subsystem
Operation maintenance personnel, settling mode is provided by the operation maintenance personnel, is then return to test platform, so that test platform can be according to this
The settling mode that operation maintenance personnel provides solves problem.
In above-described embodiment, after getting the position of test problem, settling mode library can be inquired to get correspondence
The settling mode of characteristic value, and corresponded to and solved the problems, such as according to the settling mode inquired.And if do not inquire solution party
Formula then adds corresponding settling mode into settling mode library, when meeting same problem in order to next time, can directly basis be somebody's turn to do
Settling mode is solved, and the time is saved.
It should be understood that although each step in the flow chart of Fig. 2 is successively shown according to the instruction of arrow, this
A little steps are not that the inevitable sequence according to arrow instruction successively executes.Unless expressly state otherwise herein, these steps
It executes there is no the limitation of stringent sequence, these steps can execute in other order.Moreover, at least part in Fig. 2
Step may include that perhaps these sub-steps of multiple stages or stage are executed in synchronization to multiple sub-steps
It completes, but can execute at different times, the execution sequence in these sub-steps or stage, which is also not necessarily, successively to be carried out,
But it can be executed in turn or alternately at least part of the sub-step or stage of other steps or other steps.
In one embodiment, as shown in figure 5, providing a kind of test problem positioning device, comprising: test module 100,
Call chain obtains module 200, the first enquiry module 300, matching module 400 and output module 500, in which:
Test module 100, for examining system send test request, receive examining system return with test request phase
The test result answered, and judge test result to indicate whether examining system that there are test problems.
Call chain obtains module 200, for when determining that examining system there are when test problem, then obtains and test request pair
The call chain answered, call chain are used to characterize the calling sequence of subsystems in examining system.
First enquiry module 300, for according to calling chain query current survey corresponding with the current sub-system in call chain
Try log.
Matching module 400, for matching the current test log inquired with test problem.
Output module 500 is used for when current test log and test problem fruit successful match, then according to current test day
Will determines current sub-system, and there are test problems.
The first enquiry module 300 is also used to match when current test log with texts and pictures are tested in one of the embodiments,
When failure, then next subsystem in examining system is obtained as current sub-system according to calling sequence, and continue to execute institute
The current test log inquired is matched with test problem.
The first enquiry module 300 may include: in one of the embodiments,
First acquisition unit is obtained for obtaining the sending time of test request, and according to chain query current sub-system is called
Take the corresponding initial testing log of the title of current sub-system.
Selection unit, for choosing current test log from initial testing log according to sending time.
Matching module 400 may include: in one of the embodiments,
Second acquisition unit for extracting keyword from test problem, and obtains the corresponding characteristic value of keyword.
Matching unit works as matching for matching characteristic value with the information in the current test log inquired
When success, then current test log and test problem successful match, otherwise, it fails to match with test problem for current test log.
Output module 500 can be also used for generating output chain spectrum according to call chain in one of the embodiments, and obtain
Position corresponding with current sub-system in chain spectrum is exported, current test log and characteristic value are shown at acquired position.
Test problem positioning device can also include: in one of the embodiments,
Second enquiry module, for inquiring and test problem and there are the inquiry of the current sub-system of test problem is corresponding
Settling mode.
Cue module, for when settling mode is not present, then exporting addition settling mode prompt.
Receiving module, settling mode corresponding with addition settling mode prompt for receiving input.
Memory module, for storing settling mode.
Specific about test problem positioning device limits the limit that may refer to above for test problem localization method
Fixed, details are not described herein.Modules in above-mentioned test problem positioning device can fully or partially through software, hardware and its
Combination is to realize.Above-mentioned each module can be embedded in the form of hardware or independently of in the processor in computer equipment, can also be with
It is stored in the memory in computer equipment in a software form, in order to which processor calls the above modules of execution corresponding
Operation.
In one embodiment, a kind of computer equipment is provided, which can be terminal, internal structure
Figure can be as shown in Figure 6.The computer equipment includes processor, the memory, network interface, display connected by system bus
Screen and input unit.Wherein, the processor of the computer equipment is for providing calculating and control ability.The computer equipment is deposited
Reservoir includes non-volatile memory medium, built-in storage.The non-volatile memory medium is stored with operating system and computer journey
Sequence.The built-in storage provides environment for the operation of operating system and computer program in non-volatile memory medium.The calculating
The network interface of machine equipment is used to communicate with external terminal by network connection.When the computer program is executed by processor with
Realize a kind of test problem localization method.The display screen of the computer equipment can be liquid crystal display or electric ink is shown
Screen, the input unit of the computer equipment can be the touch layer covered on display screen, be also possible on computer equipment shell
Key, trace ball or the Trackpad of setting can also be external keyboard, Trackpad or mouse etc..
It will be understood by those skilled in the art that structure shown in Fig. 6, only part relevant to application scheme is tied
The block diagram of structure does not constitute the restriction for the computer equipment being applied thereon to application scheme, specific computer equipment
It may include perhaps combining certain components or with different component layouts than more or fewer components as shown in the figure.
In one embodiment, a kind of computer equipment, including memory and processor are provided, which is stored with
Computer program, which performs the steps of to examining system when executing computer program and sends test request, and receives
The test result corresponding with test request that examining system returns, and judge that test result indicates whether that examining system has test
Problem;When determining examining system there are call chain corresponding with test request when test problem, is then obtained, call chain is for characterizing
The calling sequence of subsystems in examining system;It is corresponding with the current sub-system in call chain current according to calling chain query
Test log;The current test log inquired is matched with test problem;When current test log and test problem
When successful match, then determining current sub-system according to current test log, there are test problems.
In one embodiment, processor execute computer program when also perform the steps of when current test log with
Texts and pictures are tested when it fails to match, then next subsystem in examining system are obtained as current sub-system according to calling sequence, and
The current test log that will be inquired is continued to execute to match with test problem.
In one embodiment, processor execute realized when computer program according to calling in chain query and call chain
The corresponding current test log of current sub-system, may include: the sending time for obtaining test request, and looked into according to call chain
Current sub-system is ask, the corresponding initial testing log of title of current sub-system is obtained;According to sending time from initial testing day
Current test log is chosen in will.
In one embodiment, processor executes the current test log that will be inquired realized when computer program
It is matched with test problem, may include: to extract keyword from test problem, and obtain the corresponding characteristic value of keyword;
Characteristic value is matched with the information in the current test log inquired;When successful match, then current test log
With test problem successful match, otherwise, it fails to match with test problem for current test log.
In one embodiment, being determined according to current test log for being realized when processor execution computer program is current
Subsystem there are test problem, may include: according to call chain generate output chain spectrum, and obtain chain spectrum in current sub-system pair
The position answered shows current test log and characteristic value at acquired position.
In one embodiment, being determined according to current test log for being realized when processor execution computer program is current
There are after test problem, may include: inquiry and test problem and there are the current sub-systems of test problem to look into for subsystem
Ask corresponding settling mode;When settling mode is not present, then addition settling mode prompt is exported;Receive solving with addition for input
Certainly mode prompts corresponding settling mode;Store settling mode.
In one embodiment, a kind of computer readable storage medium is provided, computer program is stored thereon with, is calculated
Machine program performs the steps of to examining system when being executed by processor and sends test request, and receives examining system return
Test result corresponding with test request, and judge test result to indicate whether examining system that there are test problems;When determine to
For examining system there are call chain corresponding with test request when test problem, is then obtained, call chain is each in examining system for characterizing
The calling sequence of a subsystem;According to calling chain query current test log corresponding with the current sub-system in call chain;It will
The current test log inquired is matched with test problem;When current test log and test problem successful match,
Then determining current sub-system according to current test log, there are test problems.
In one embodiment, it also performs the steps of when computer program is executed by processor when current test log
When it fails to match with test texts and pictures, then next subsystem in examining system is obtained as current sub-system according to calling sequence,
And it continues to execute the current test log that will be inquired and is matched with test problem.
In one embodiment, realized when computer program is executed by processor according to calling chain query and call chain
In the corresponding current test log of current sub-system, may include: the sending time for obtaining test request, and according to call chain
Current sub-system is inquired, the corresponding initial testing log of title of current sub-system is obtained;According to sending time from initial testing
Current test log is chosen in log.
In one embodiment, the current test day that will be inquired realized when computer program is executed by processor
Will is matched with test problem, may include: keyword to be extracted from test problem, and obtain the corresponding feature of keyword
Value;Characteristic value is matched with the information in the current test log inquired;When successful match, then current test day
Will and test problem successful match, otherwise, it fails to match with test problem for current test log.
In one embodiment, that is realized when computer program is executed by processor works as according to the determination of current test log
Preceding subsystem there are test problem, may include: according to call chain generate output chain spectrum, and obtain chain spectrum in current sub-system
Corresponding position shows current test log and characteristic value at acquired position.
In one embodiment, that is realized when computer program is executed by processor works as according to the determination of current test log
There are after test problem, may include: inquiry and test problem and there are the current sub-systems of test problem to preceding subsystem
Inquire corresponding settling mode;When settling mode is not present, then addition settling mode prompt is exported;Receive input with addition
Settling mode prompts corresponding settling mode;Store settling mode.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with
Relevant hardware is instructed to complete by computer program, the computer program can be stored in a non-volatile computer
In read/write memory medium, the computer program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein,
To any reference of memory, storage, database or other media used in each embodiment provided herein,
Including non-volatile and/or volatile memory.Nonvolatile memory may include read-only memory (ROM), programming ROM
(PROM), electrically programmable ROM (EPROM), electrically erasable ROM (EEPROM) or flash memory.Volatile memory may include
Random access memory (RAM) or external cache.By way of illustration and not limitation, RAM is available in many forms,
Such as static state RAM (SRAM), dynamic ram (DRAM), synchronous dram (SDRAM), double data rate sdram (DDRSDRAM), enhancing
Type SDRAM (ESDRAM), synchronization link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM
(RDRAM), direct memory bus dynamic ram (DRDRAM) and memory bus dynamic ram (RDRAM) etc..
Each technical characteristic of above embodiments can be combined arbitrarily, for simplicity of description, not to above-described embodiment
In each technical characteristic it is all possible combination be all described, as long as however, the combination of these technical characteristics be not present lance
Shield all should be considered as described in this specification.
The several embodiments of the application above described embodiment only expresses, the description thereof 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 coming for those of ordinary skill in the art
It says, without departing from the concept of this application, various modifications and improvements can be made, these belong to the protection of the application
Range.Therefore, the scope of protection shall be subject to the appended claims for the application patent.
Claims (10)
1. a kind of test problem localization method, which comprises
Test request is sent to examining system;
Receive the examining system and return to test result corresponding with the test request, and judge the test result whether table
Show that there are test problems for the examining system;
When determining that the examining system there are when test problem, then obtains call chain corresponding with the test request, the tune
It is used to characterize the calling sequence of subsystems in the examining system with chain;
According to the calling chain query current test log corresponding with the current sub-system in the call chain;
The current test log inquired is matched with the test problem;
When the current test log and the test problem successful match, then current subsystem is determined according to current test log
There are test problems for system.
2. the method according to claim 1, wherein the method also includes:
When it fails to match for the current test log and the test problem, then examining system is obtained according to the calling sequence
In next subsystem as current sub-system, and continue to execute the current test log that will be inquired and the test problem
It is matched.
3. method according to claim 1 or 2, which is characterized in that described according to the calling chain query and the calling
The corresponding current test log of current sub-system in chain, comprising:
The sending time of the test request is obtained, and according to the calling chain query current sub-system, obtained and described current
The corresponding initial testing log of the title of subsystem;
Current test log is chosen from the initial testing log according to the sending time.
4. according to the method described in claim 3, it is characterized in that, the current test log that will be inquired and the survey
Why topic is matched, comprising:
Keyword is extracted from the test problem, and obtains the corresponding characteristic value of the keyword;
The characteristic value is matched with the information in the current test log inquired;
When successful match, then current test log and the test problem successful match, otherwise, current test log with it is described
It fails to match for test problem.
5. according to the method described in claim 4, it is characterized in that, the current test log of the basis determines that current sub-system is deposited
In test problem, comprising:
Output chain spectrum is generated according to the call chain, and obtains position corresponding with the current sub-system in the chain spectrum,
Current test log and the characteristic value are shown at acquired position.
6. method according to claim 1 or 2, which is characterized in that the current test log of basis determines current subsystem
There are after test problem for system, comprising:
Inquiry and the test problem and there are the corresponding settling modes of the current sub-system of test problem inquiry;
When the settling mode is not present, then addition settling mode prompt is exported;
Receive the settling mode corresponding with the addition settling mode prompt of input;
Store settling mode.
7. a kind of test problem positioning device, which is characterized in that described device includes:
Test module, for sending test request to examining system;It is returning with the test request to receive the examining system
Corresponding test result, and judge the test result to indicate whether the examining system that there are test problems;
Call chain obtains module, for when determining the examining system there are when test problem, then acquisition is asked with the test
Corresponding call chain is sought, the call chain is used to characterize the calling sequence of subsystems in the examining system;
First enquiry module, for according to the calling chain query current survey corresponding with the current sub-system in the call chain
Try log;
Matching module, for matching the current test log inquired with the test problem;
Output module is used for when the current test log and the test problem successful match, then according to current test day
Will determines current sub-system, and there are test problems.
8. device according to claim 7, which is characterized in that first enquiry module is also used to when the current test
Log and the test problem then obtain next subsystem conduct in examining system according to the calling sequence when it fails to match
Current sub-system, and continue to execute the current test log that will be inquired and matched with the test problem.
9. a kind of computer equipment, including memory and processor, the memory are stored with computer program, feature exists
In the step of processor realizes any one of claims 1 to 6 the method when executing the computer program.
10. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer program
The step of method described in any one of claims 1 to 6 is realized when being executed by processor.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811123581.2A CN109491885A (en) | 2018-09-26 | 2018-09-26 | Test problem localization method, device, computer equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811123581.2A CN109491885A (en) | 2018-09-26 | 2018-09-26 | Test problem localization method, device, computer equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109491885A true CN109491885A (en) | 2019-03-19 |
Family
ID=65689871
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811123581.2A Pending CN109491885A (en) | 2018-09-26 | 2018-09-26 | Test problem localization method, device, computer equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109491885A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112732473A (en) * | 2021-01-12 | 2021-04-30 | 平安资产管理有限责任公司 | Method, device, equipment and medium for positioning functional problem based on data layering |
CN112862456A (en) * | 2021-03-02 | 2021-05-28 | 岭东核电有限公司 | Nuclear power test execution method and device, computer equipment and storage medium |
CN113778875A (en) * | 2021-09-09 | 2021-12-10 | 上海浦东发展银行股份有限公司 | System test defect classification method, device, equipment and storage medium |
CN117992358A (en) * | 2024-04-03 | 2024-05-07 | 湖南天河国云科技有限公司 | Intelligent contract crossing test method and device based on block chain |
Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101409655A (en) * | 2008-11-12 | 2009-04-15 | 中兴通讯股份有限公司 | Message-driven automation test system and implementing method |
US7836346B1 (en) * | 2007-06-11 | 2010-11-16 | Oracle America, Inc. | Method and system for analyzing software test results |
CN102736975A (en) * | 2011-04-13 | 2012-10-17 | 国民技术股份有限公司 | Test method and test system for testing trusted computing password support platform |
US20160283344A1 (en) * | 2015-03-27 | 2016-09-29 | International Business Machines Corporation | Identifying severity of test execution failures by analyzing test execution logs |
US20160328488A1 (en) * | 2015-05-08 | 2016-11-10 | Seth Lytle | Structure linked native query database management system and methods |
CN106484610A (en) * | 2015-09-02 | 2017-03-08 | 阿里巴巴集团控股有限公司 | A kind of Beta method and apparatus |
CN106936659A (en) * | 2015-12-30 | 2017-07-07 | 华为技术有限公司 | The dial testing method and device of a kind of public cloud |
CN107203464A (en) * | 2016-03-17 | 2017-09-26 | 阿里巴巴集团控股有限公司 | The localization method and device of traffic issues |
CN107239403A (en) * | 2017-07-27 | 2017-10-10 | 广州云测信息技术有限公司 | A kind of positioning problems method and apparatus |
CN107483221A (en) * | 2016-06-08 | 2017-12-15 | 阿里巴巴集团控股有限公司 | A kind of across application problem investigation method, apparatus and system |
CN107678933A (en) * | 2017-09-28 | 2018-02-09 | 中国平安人寿保险股份有限公司 | Daily record generation management method, device, equipment and computer-readable recording medium |
-
2018
- 2018-09-26 CN CN201811123581.2A patent/CN109491885A/en active Pending
Patent Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7836346B1 (en) * | 2007-06-11 | 2010-11-16 | Oracle America, Inc. | Method and system for analyzing software test results |
CN101409655A (en) * | 2008-11-12 | 2009-04-15 | 中兴通讯股份有限公司 | Message-driven automation test system and implementing method |
CN102736975A (en) * | 2011-04-13 | 2012-10-17 | 国民技术股份有限公司 | Test method and test system for testing trusted computing password support platform |
US20160283344A1 (en) * | 2015-03-27 | 2016-09-29 | International Business Machines Corporation | Identifying severity of test execution failures by analyzing test execution logs |
US20160328488A1 (en) * | 2015-05-08 | 2016-11-10 | Seth Lytle | Structure linked native query database management system and methods |
CN106484610A (en) * | 2015-09-02 | 2017-03-08 | 阿里巴巴集团控股有限公司 | A kind of Beta method and apparatus |
CN106936659A (en) * | 2015-12-30 | 2017-07-07 | 华为技术有限公司 | The dial testing method and device of a kind of public cloud |
CN107203464A (en) * | 2016-03-17 | 2017-09-26 | 阿里巴巴集团控股有限公司 | The localization method and device of traffic issues |
CN107483221A (en) * | 2016-06-08 | 2017-12-15 | 阿里巴巴集团控股有限公司 | A kind of across application problem investigation method, apparatus and system |
CN107239403A (en) * | 2017-07-27 | 2017-10-10 | 广州云测信息技术有限公司 | A kind of positioning problems method and apparatus |
CN107678933A (en) * | 2017-09-28 | 2018-02-09 | 中国平安人寿保险股份有限公司 | Daily record generation management method, device, equipment and computer-readable recording medium |
Non-Patent Citations (3)
Title |
---|
ZAMOJSKI, W 等: "Analysis of Statistical Characteristics of User Arrival Process to the Testing Service", PROCEEDINGS OF THE NINTH INTERNATIONAL CONFERENCE ON DEPENDABILITY AND COMPLEX SYSTEMS DEPCOS-RELCOMEX, 18 November 2015 (2015-11-18) * |
徐彩霞;葛华勇;侯仰宇;: "面向CLI的自动化测试方法的研究与实现", 计算机与数字工程, no. 02, 20 February 2018 (2018-02-20) * |
蒋凡, 季向东, 曾凡平: "TTCN-3测试系统的设计与实现", 计算机工程, no. 11, 5 November 2005 (2005-11-05) * |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112732473A (en) * | 2021-01-12 | 2021-04-30 | 平安资产管理有限责任公司 | Method, device, equipment and medium for positioning functional problem based on data layering |
CN112862456A (en) * | 2021-03-02 | 2021-05-28 | 岭东核电有限公司 | Nuclear power test execution method and device, computer equipment and storage medium |
CN113778875A (en) * | 2021-09-09 | 2021-12-10 | 上海浦东发展银行股份有限公司 | System test defect classification method, device, equipment and storage medium |
CN113778875B (en) * | 2021-09-09 | 2024-04-30 | 上海浦东发展银行股份有限公司 | System test defect classification method, device, equipment and storage medium |
CN117992358A (en) * | 2024-04-03 | 2024-05-07 | 湖南天河国云科技有限公司 | Intelligent contract crossing test method and device based on block chain |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109491885A (en) | Test problem localization method, device, computer equipment and storage medium | |
CN108874926A (en) | Mass data inquiry method, device, computer equipment and storage medium | |
CN108920354A (en) | Bury a management method, device, computer equipment and storage medium | |
CN109522218A (en) | Interface test method, device, computer equipment and storage medium | |
CN108268375A (en) | Applied program testing method, device, computer equipment and storage medium | |
CN110008117A (en) | Page test method, device, computer equipment and storage medium | |
CN109586948A (en) | Update method, apparatus, computer equipment and the storage medium of system configuration data | |
CN110213357A (en) | Business datum backing method, device, computer equipment and storage medium | |
CN108804159A (en) | Javascript module loadings method and its preprocess method, device and computer equipment | |
CN110019566A (en) | Data checking, device, computer equipment and storage medium based on data warehouse | |
CN110069297A (en) | Abnormality eliminating method, device, computer equipment and storage medium based on Spring MVC | |
CN109656778A (en) | Data capture method, device, computer equipment and storage medium | |
CN108848000A (en) | Network request test method, device, computer equipment and storage medium | |
CN108874661A (en) | Test mapping relations library generating method, device, computer equipment and storage medium | |
CN109669859A (en) | Service test method, device, computer equipment and storage medium | |
CN108492005A (en) | Project data processing method, device, computer equipment and storage medium | |
CN109816364A (en) | Transaction data processing method, device, computer equipment and storage medium | |
CN109325010A (en) | Log inspection method, device, computer equipment and storage medium | |
CN109886709A (en) | A kind of intelligence lock management method, system, computer equipment and storage medium | |
CN110321284A (en) | Test data input method, device, computer equipment and storage medium | |
CN109033139A (en) | Client information inquiry method, device, computer equipment and storage medium | |
CN109144487A (en) | Into part business development method, apparatus, computer equipment and storage medium | |
CN110362479A (en) | System upgrade test method and system | |
CN108920357A (en) | Operation system detection method, device, computer equipment and storage medium | |
CN110232018A (en) | Interface test method, device, computer equipment |
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 |