The content of the invention
Test errors localization method and device it is a primary object of the present invention to provide a kind of client-side program, it is intended to fast
Speed positions the client-side program mistake in traversal test exactly.
To achieve the above object, a kind of test errors localization method of client-side program that the present invention is provided, methods described
Comprise the following steps:
A, in traversal test process is carried out to client-side program, every the first Preset Time to the client-side program
Operation interface carries out sectional drawing, and each sectional drawing and its corresponding sectional drawing time point are associated into preservation;Analyse whether default
The client-side program response mistake of type occurs;
If there is the client journey of the preset kind in B, the client-side program response mistake for having preset kind, record
The wrong time point of sequence response mistake;
C, sectional drawing and the associated data at sectional drawing time point according to preservation, find out the corresponding sectional drawing of the wrong time point,
And the client-side program response mistake of the preset kind, the sectional drawing found out and wrong time point are associated preservation, with
Mistake is responded according to client-side program for user and finds corresponding sectional drawing and wrong time point, and carry out error analysis.
Preferably, the step B is replaced with:
If there is the client-side program response mistake of preset kind, there is the client-side program of the preset kind in record
The wrong time point of mistake is responded, and determines corresponding wrong time section based on preset rules and the wrong time point;
The step C is replaced with:
According to the associated data at sectional drawing and the sectional drawing time point for preserving, finding out sectional drawing time point belongs to wrong time section
Sectional drawing, and the client-side program response mistake of the preset kind, sectional drawing, the wrong time point and the wrong time section found out are entered
Row association is preserved, and corresponding sectional drawing, wrong time point and wrong time are found so that user responds mistake according to client-side program
Section, and carry out error analysis.
Preferably, the step C is replaced with:
According to the associated data at sectional drawing and the sectional drawing time point for preserving, finding out sectional drawing time point belongs to wrong time section
Sectional drawing, and the server log for belonging to wrong time section is obtained from the corresponding server end of the client-side program;
By the client-side program of preset kind response mistake, the sectional drawing found out, the server log for obtaining, this it is wrong when
Between point and/or wrong time section be associated preservations, for user according to client-side program response mistake find corresponding sectional drawing,
Server log, wrong time point and/or wrong time section, and carry out error analysis.
Preferably, the method also includes:
To the associated data of all clients program response mistake, sectional drawing, wrong time point and/or wrong time section, press
Type according to client-side program response mistake is classified, by the corresponding pass of same type of client-side program response mistake
Connection data are classified as a class, and the corresponding associated data of different types of client-side program response mistake is classified as into inhomogeneity, and
Result according to classification generates test report.
Preferably, the preset rules include:
The wrong time point is shifted to an earlier date into the second Preset Time to determine time lower limit, the wrong time point is postponed the 3rd
Preset Time determines that the wrong time point is corresponding to determine time upper limit value based on the time lower limit and time upper limit value
Wrong time section.
Additionally, to achieve the above object, the present invention also provides a kind of test errors positioner of client-side program, described
Device includes:
Sectional drawing analysis module, in traversal test process is carried out to client-side program, every the first Preset Time pair
The operation interface of the client-side program carries out sectional drawing, and each sectional drawing and its corresponding sectional drawing time point are associated into guarantor
Deposit;Analyse whether the client-side program response mistake of preset kind;
Logging modle, if the client-side program for there is preset kind responds mistake, there is the default class in record
The wrong time point of the client-side program response mistake of type;
Association preserving module, for sectional drawing and the associated data at sectional drawing time point according to preservation, when finding out described wrong
Between put corresponding sectional drawing, and by client-side program response mistake, the sectional drawing and wrong time point found out of the preset kind
Preservation is associated, corresponding sectional drawing and wrong time point is found so that user responds mistake according to client-side program, and carry out
Error analysis.
Preferably, the logging modle is additionally operable to:
If there is the client-side program response mistake of preset kind, there is the client-side program of the preset kind in record
The wrong time point of mistake is responded, and determines corresponding wrong time section based on preset rules and the wrong time point;
The association preserving module is additionally operable to:
According to the associated data at sectional drawing and the sectional drawing time point for preserving, finding out sectional drawing time point belongs to wrong time section
Sectional drawing, and the client-side program response mistake of the preset kind, sectional drawing, the wrong time point and the wrong time section found out are entered
Row association is preserved, and corresponding sectional drawing, wrong time point and wrong time are found so that user responds mistake according to client-side program
Section, and carry out error analysis.
Preferably, the association preserving module is additionally operable to:
According to the associated data at sectional drawing and the sectional drawing time point for preserving, finding out sectional drawing time point belongs to wrong time section
Sectional drawing, and the server log for belonging to wrong time section is obtained from the corresponding server end of the client-side program;This is preset
When the client-side program response mistake of type, the sectional drawing found out, server log, the wrong time point and/or the mistake for obtaining
Between section be associated preservation, for user according to client-side program respond mistake find corresponding sectional drawing, server log, mistake
Time point and/or wrong time section, and carry out error analysis.
Preferably, the test errors positioner of the client-side program also includes:
Sort module, for all clients program response mistake, sectional drawing, wrong time point and/or wrong time section
Associated data, classified according to the type of client-side program response mistake, same type of client-side program is responded wrong
The corresponding associated data is classified as a class by mistake, by the corresponding associated data of different types of client-side program response mistake
Inhomogeneity is classified as, and test report is generated according to the result of classification.
Preferably, the preset rules include:
The wrong time point is shifted to an earlier date into the second Preset Time to determine time lower limit, the wrong time point is postponed the 3rd
Preset Time determines that the wrong time point is corresponding to determine time upper limit value based on the time lower limit and time upper limit value
Wrong time section.
The test errors localization method and device of client-side program proposed by the present invention, travel through to client-side program
Carry out sectional drawing to the operation interface of the client-side program every the first Preset Time in test process, and by each sectional drawing and its
Corresponding sectional drawing time point is associated preservation;If having the client-side program response mistake of preset kind, according to preservation
Associated data, find out the sectional drawing corresponding to the wrong time point of client-side program response mistake, and by the preset kind
Client-side program response mistake, the sectional drawing found out and the wrong time point are associated preservation.Due to entering to client-side program
Client-side program can make a mistake wrong time point and its corresponding sectional drawing in row traversal test process is associated preservation,
Subsequent user is when client-side program response mistake is positioned, you can the associated data according to preserving is quickly and accurately positioned the visitor
The wrong time point and its corresponding sectional drawing of family end program response mistake, and substantial amounts of manpower and materials need not be expended and determined
Position, has saved cost, and positioning is more accurate.
Specific embodiment
In order that the technical problems to be solved by the invention, technical scheme and beneficial effect are clearer, clear, below tie
Drawings and Examples are closed, the present invention will be described in further detail.It should be appreciated that specific embodiment described herein is only
It is used to explain the present invention, is not intended to limit the present invention.
The present invention provides a kind of test errors localization method of client-side program.
Reference picture 1, Fig. 1 is that the flow of the test errors localization method first embodiment of client-side program of the present invention is illustrated
Figure.
In the first embodiment, the test errors localization method of the client-side program includes:
Step S10, in traversal test process is carried out to client-side program, every the first Preset Time to the client
The operation interface of program carries out sectional drawing, and each sectional drawing and its corresponding sectional drawing time point are associated into preservation;Analyse whether
There is the client-side program response mistake of preset kind;
Before client-side program is reached the standard grade, it usually needs do the traversal test of client-side program, that is, travel through all controls
Test.In the present embodiment, in traversal test process is carried out to client-side program, every the first Preset Time (for example, 0.5 second)
Operation interface to the client-side program carries out sectional drawing, and sectional drawing and its corresponding sectional drawing time point are associated into preservation.Should
First Preset Time can be changeless, i.e., every the first fixed Preset Time to this in whole traversal test process
The operation interface of client-side program carries out sectional drawing, the requirement of different accuracy according to Wrong localization, can suitably heighten or turn down this
The size of one Preset Time;First Preset Time can also be floated.For example, according to historical data or experience, for visitor
Family end program often error or the easily link of error in test process is traveled through, can be set to the first relatively low Preset Time,
More accurately to intercept more sectional drawings for mistake occur;For client-side program travel through test process in it is less error or not
Error-prone link, can be set to the first Preset Time higher, to reduce the frequency of interception, not influence location of mistake effect
In the case of, mitigate the operation burden of system.
In traversal test process is carried out to client-side program, it is possible that various types of client-side program rings
Mistake is answered, such as client-side program is without response (ANR:Application Not Responding), client-side program collapse
(Crash), client-side program mistake (Error) etc..Can need to test and determine according to selection the need for practical application in the present embodiment
The client-side program response type of error of bit-errors, enters every the first Preset Time to the operation interface of the client-side program
While row sectional drawing, whether real-time or timing analysis has the client-side program response mistake of preset kind.For example, one
Plant in implementation method, keyword filtration analysis can be carried out by client-side program daily record, it is determined whether have preset kind
Client-side program response mistake occurs.
Step S20, if there is the client-side program response mistake of preset kind, there is the visitor of the preset kind in record
The wrong time point of family end program response mistake;
Step S30, according to the sectional drawing for preserving and the associated data at sectional drawing time point, finds out the wrong time point corresponding
Sectional drawing, and the client-side program response mistake of the preset kind, the sectional drawing found out and wrong time point are associated guarantor
Deposit, find corresponding sectional drawing and wrong time point so that user responds mistake according to client-side program, and carry out error analysis.
When real-time or timing the client-side program response mistake for analyzing preset kind occurs, should according to generation
The wrong time point of the client-side program response mistake of preset kind, is preserving every the first Preset Time to the client
Searched in the sectional drawing of the operation interface of program and the associated data at its sectional drawing time point, find out and the preset kind occurs
The corresponding sectional drawing of the wrong wrong time point of client-side program response, and the client-side program of the preset kind is responded wrong
By mistake, the wrong time point and the corresponding sectional drawing found out are associated preservation.So, user is subsequently needing the visitor to preset kind
When family end program response mistake carries out positioning problems, you can generation is rapidly and accurately found from the associated data for preserving, and this is preset
The behaviour of the corresponding client-side program under the wrong time point and the wrong time point of the client-side program response mistake of type
Make the sectional drawing at interface, realize the quick and precisely positioning to the client-side program response mistake of the preset kind.User is to the visitor
When family end program carries out error analysis, the client-side program response mistake of the preset kind that can be based on preserving, the sectional drawing found out and
The associated data of the wrong time point carries out error analysis.For example, user can from preserve associated data in be informed in it is right
The client-side program carries out the client-side program response mistake of all preset kinds occurred in traversal test process and its occurs
Number of times, user can also know the mistake that the client-side program response mistake of preset kind occurs each time from the associated data for preserving
The sectional drawing of the operation interface of the corresponding client-side program under mistake time point, and the wrong time point, namely there is default class
The sectional drawing of the operation interface of the client-side program during client-side program response mistake of type, so that user is somebody's turn to do according to when making a mistake
The sectional drawing of the operation interface of client-side program come analyze at that time occur the client-side program response mistake the reason for, with to each pre-
If the client-side program response mistake of type carries out error analysis.
The present embodiment to client-side program in traversal test process is carried out every the first Preset Time to the client
The operation interface of program carries out sectional drawing, and each sectional drawing and its corresponding sectional drawing time point are associated into preservation;If having default
The client-side program response mistake of type occurs, then according to the associated data for preserving, find out client-side program response mistake
Sectional drawing corresponding to wrong time point, and the client-side program of the preset kind is responded into wrong, sectional drawing that is finding out and the mistake
Time point is associated preservation.Due to client-side program can be made a mistake in traversal test process is carried out to client-side program
Wrong time point and its corresponding sectional drawing be associated preservation, subsequent user when client-side program response mistake is positioned,
The wrong time point and its correspondence of client-side program response mistake can be quickly and accurately positioned according to the associated data for preserving
Sectional drawing, and substantial amounts of manpower and materials need not be expended and positioned, saved cost, and position it is more accurate.
As shown in Fig. 2 second embodiment of the invention proposes a kind of test errors localization method of client-side program, above-mentioned
On the basis of embodiment, above-mentioned steps S20 is replaced with:
Step S40, if there is the client-side program response mistake of preset kind, there is the visitor of the preset kind in record
The wrong time point of family end program response mistake, and determine corresponding wrong time based on preset rules and the wrong time point
Section;
Above-mentioned steps S30 is replaced with:
Step S50, according to the associated data at sectional drawing and the sectional drawing time point for preserving, finding out sectional drawing time point belongs to the mistake
The sectional drawing of time period, and sectional drawing, the wrong time point and mistake the client-side program response of the preset kind is wrong, find out
Time period is associated preservation, for user according to client-side program respond mistake find corresponding sectional drawing, wrong time point and
Wrong time section, and carry out error analysis.
In the present embodiment, when real-time or timing the client-side program for analyzing preset kind responds mistake
When, on the basis of the wrong time point of client-side program response mistake that record occurs the preset kind, also based on default rule
Then and the wrong time point determines corresponding wrong time section.For example, can coming for the previous period really according to the wrong time point
Fixed corresponding wrong time section, can also determine corresponding wrong time section according to rear a period of time of the wrong time point, etc.
Deng.In one embodiment, the mode for determining corresponding wrong time section based on preset rules and the wrong time point can be with
Including:The wrong time point is shifted to an earlier date the second Preset Time (for example, 2 seconds) to determine time lower limit (if for example, when this is wrong
Between point for 9 points 50 seconds 30 minutes, then the wrong time point is shifted to an earlier date 2 seconds, it is determined that time lower limit for 9 points 48 seconds 30 minutes);Should
Wrong time point postpones the 3rd Preset Time (for example, 3 seconds) to determine time upper limit value (if for example, the wrong time o'clock is at 9 points
30 points 50 seconds, then the wrong time point is postponed 3 seconds, it is determined that time upper limit value for 9 points 53 seconds 30 minutes), described second preset
Time is identical with the 3rd Preset Time or difference;The wrong time is determined based on the time lower limit and time upper limit value
Point corresponding wrong time section (for example, wrong time section can for 9 points 53 30: 48 seconds 30 minutes to 9 :).
According to the wrong time section determined, in the operation every the first Preset Time to the client-side program for preserving
Searched in the sectional drawing at interface and the associated data at its sectional drawing time point, finding out sectional drawing time point falls into wrong time Duan Fan
The sectional drawing for enclosing, and corresponding sectional drawing, the wrong time point and mistake the client-side program response of the preset kind is wrong, find out
Time period is associated preservation.So, user is subsequently needing to carry out problem to the client-side program of preset kind response mistake
During positioning, you can the client-side program that the preset kind occurs rapidly and accurately is found from the associated data for preserving and responds mistake
Wrong time point and wrong time section, and the wrong time point and wrong time section under the corresponding client-side program behaviour
Make the sectional drawing at interface, realize the quick and precisely positioning to the client-side program response mistake of the preset kind.Due to that can navigate to
There is the wrong time section of the client-side program response mistake of the preset kind, that is, obtain the client journey that the preset kind occurs
Sectional drawing before and after the mistake of sequence response mistake in perdurabgility, advantageously in user to client journey that the preset kind occurs
The cause and effect of sequence response mistake carries out comprehensive analysis, is easy to user to carry out error analysis exactly.
As shown in figure 3, third embodiment of the invention proposes a kind of test errors localization method of client-side program, above-mentioned
On the basis of embodiment, above-mentioned steps S50 is replaced with:
Step S60, according to the associated data at sectional drawing and the sectional drawing time point for preserving, finding out sectional drawing time point belongs to the mistake
The sectional drawing of time period, and the server log for belonging to wrong time section is obtained from the corresponding server end of the client-side program;
Step S70, the server log for the client-side program of the preset kind is responded into sectional drawing that is wrong, finding out, obtaining,
The wrong time point and/or wrong time section be associated preservations, for user according to client-side program response mistake find it is right
Sectional drawing, server log, wrong time point and/or the wrong time section answered, and carry out error analysis.
In the present embodiment, find out sectional drawing time point belong to the wrong time section sectional drawing after, also from the client-side program
Corresponding server end obtains the server log for belonging to wrong time section, and the client-side program of the preset kind is responded
Mistake, the sectional drawing found out, the server log for obtaining, the wrong time point and/or wrong time section are associated preservation.
So, user is when subsequently needing the client-side program response mistake to preset kind to carry out positioning problems, you can
The wrong time that the client-side program response mistake of the preset kind occurs rapidly and accurately is found from the associated data for preserving
The operation interface of the corresponding client-side program under point and/or wrong time section, the wrong time point and/or wrong time section
Sectional drawing, and corresponding server log.There is the client-side program response mistake of the preset kind due to that can navigate to
The server log of wrong time section and corresponding with client-side program server end in wrong time section, user
Can be for corresponding server end in the mistake front and rear perdurabgility of the client-side program response mistake that the preset kind occurs
Server log carries out positioning problems, advantageously in the mistake because of server end cause client-side program respond mistake feelings
Under condition, user customer program response mistake carries out error analysis exactly.
As shown in figure 4, fourth embodiment of the invention proposes a kind of test errors localization method of client-side program, above-mentioned
On the basis of embodiment, also include:
Step S80, the association to all clients program response mistake, sectional drawing, wrong time point and/or wrong time section
Data, are classified according to the type of client-side program response mistake, by same type of client-side program response mistake correspondence
The associated data be classified as a class, the different types of client-side program response corresponding associated data of mistake is classified as not
It is similar, and test report is generated according to the result of classification.
In the present embodiment, the client-side program response mistake and its correspondence occurred in whole traversal test process is got
Sectional drawing, wrong time point and/or wrong time section associated data after, can according to client-side program response mistake inhomogeneity
Type is classified, and the same type of wrong corresponding associated data of client-side program response is classified as a class, different types of
The corresponding associated data of client-side program response mistake is classified as inhomogeneity, and generates test report according to the result of classification.
For example, the number of errors statistical report form of each classification, sectional drawing consolidated statement of each classification etc. are may include in the test report,
User can carry out error analysis to different types of client-side program response mistake on the whole according to the test report of generation.
The present invention further provides a kind of test errors positioner of client-side program.
Reference picture 5, Fig. 5 is that the functional module of the test errors positioner first embodiment of client-side program of the present invention is shown
It is intended to.
In the first embodiment, the test errors positioner of the client-side program includes:
Sectional drawing analysis module 01, in traversal test process is carried out to client-side program, every the first Preset Time
Operation interface to the client-side program carries out sectional drawing, and each sectional drawing and its corresponding sectional drawing time point are associated into guarantor
Deposit;Analyse whether the client-side program response mistake of preset kind;
Before client-side program is reached the standard grade, it usually needs do the traversal test of client-side program, that is, travel through all controls
Test.In the present embodiment, in traversal test process is carried out to client-side program, every the first Preset Time (for example, 0.5 second)
Operation interface to the client-side program carries out sectional drawing, and sectional drawing and its corresponding sectional drawing time point are associated into preservation.Should
First Preset Time can be changeless, i.e., every the first fixed Preset Time to this in whole traversal test process
The operation interface of client-side program carries out sectional drawing, the requirement of different accuracy according to Wrong localization, can suitably heighten or turn down this
The size of one Preset Time;First Preset Time can also be floated.For example, according to historical data or experience, for visitor
Family end program often error or the easily link of error in test process is traveled through, can be set to the first relatively low Preset Time,
More accurately to intercept more sectional drawings for mistake occur;For client-side program travel through test process in it is less error or not
Error-prone link, can be set to the first Preset Time higher, to reduce the frequency of interception, not influence location of mistake effect
In the case of, mitigate the operation burden of system.
In traversal test process is carried out to client-side program, it is possible that various types of client-side program rings
Mistake is answered, such as client-side program is without response (ANR:Application Not Responding), client-side program collapse
(Crash), client-side program mistake (Error) etc..Can need to test and determine according to selection the need for practical application in the present embodiment
The client-side program response type of error of bit-errors, enters every the first Preset Time to the operation interface of the client-side program
While row sectional drawing, whether real-time or timing analysis has the client-side program response mistake of preset kind.For example, one
Plant in implementation method, keyword filtration analysis can be carried out by client-side program daily record, it is determined whether have preset kind
Client-side program response mistake occurs.
Logging modle 02, if the client-side program for there is preset kind responds mistake, record occurs this to be preset
The wrong time point of the client-side program response mistake of type;
Association preserving module 03, for according to the sectional drawing for preserving and the associated data at sectional drawing time point, finding out the mistake
Time point corresponding sectional drawing, and the client-side program of the preset kind is responded into wrong, sectional drawing that is finding out and the wrong time
Point is associated preservation, and corresponding sectional drawing and wrong time point are found so that user responds mistake according to client-side program, goes forward side by side
Row error analysis.
When real-time or timing the client-side program response mistake for analyzing preset kind occurs, should according to generation
The wrong time point of the client-side program response mistake of preset kind, is preserving every the first Preset Time to the client
Searched in the sectional drawing of the operation interface of program and the associated data at its sectional drawing time point, find out and the preset kind occurs
The corresponding sectional drawing of the wrong wrong time point of client-side program response, and the client-side program of the preset kind is responded wrong
By mistake, the wrong time point and the corresponding sectional drawing found out are associated preservation.So, user is subsequently needing the visitor to preset kind
When family end program response mistake carries out positioning problems, you can generation is rapidly and accurately found from the associated data for preserving, and this is preset
The behaviour of the corresponding client-side program under the wrong time point and the wrong time point of the client-side program response mistake of type
Make the sectional drawing at interface, realize the quick and precisely positioning to the client-side program response mistake of the preset kind.User is to the visitor
When family end program carries out error analysis, the client-side program response mistake of the preset kind that can be based on preserving, the sectional drawing found out and
The associated data of the wrong time point carries out error analysis.For example, user can from preserve associated data in be informed in it is right
The client-side program carries out the client-side program response mistake of all preset kinds occurred in traversal test process and its occurs
Number of times, user can also know the mistake that the client-side program response mistake of preset kind occurs each time from the associated data for preserving
The sectional drawing of the operation interface of the corresponding client-side program under mistake time point, and the wrong time point, namely there is default class
The sectional drawing of the operation interface of the client-side program during client-side program response mistake of type, so that user is somebody's turn to do according to when making a mistake
The sectional drawing of the operation interface of client-side program come analyze at that time occur the client-side program response mistake the reason for, with to each pre-
If the client-side program response mistake of type carries out error analysis.
The present embodiment to client-side program in traversal test process is carried out every the first Preset Time to the client
The operation interface of program carries out sectional drawing, and each sectional drawing and its corresponding sectional drawing time point are associated into preservation;If having default
The client-side program response mistake of type occurs, then according to the associated data for preserving, find out client-side program response mistake
Sectional drawing corresponding to wrong time point, and the client-side program of the preset kind is responded into wrong, sectional drawing that is finding out and the mistake
Time point is associated preservation.Due to client-side program can be made a mistake in traversal test process is carried out to client-side program
Wrong time point and its corresponding sectional drawing be associated preservation, subsequent user when client-side program response mistake is positioned,
The wrong time point and its correspondence of client-side program response mistake can be quickly and accurately positioned according to the associated data for preserving
Sectional drawing, and substantial amounts of manpower and materials need not be expended and positioned, saved cost, and position it is more accurate.
Further, in other embodiments, above-mentioned logging modle 02 is additionally operable to:
If there is the client-side program response mistake of preset kind, there is the client-side program of the preset kind in record
The wrong time point of mistake is responded, and determines corresponding wrong time section based on preset rules and the wrong time point;
The association preserving module 03 is additionally operable to:
According to the associated data at sectional drawing and the sectional drawing time point for preserving, finding out sectional drawing time point belongs to wrong time section
Sectional drawing, and the client-side program response mistake of the preset kind, sectional drawing, the wrong time point and the wrong time section found out are entered
Row association is preserved, and corresponding sectional drawing, wrong time point and wrong time are found so that user responds mistake according to client-side program
Section, and carry out error analysis.
In the present embodiment, when real-time or timing the client-side program for analyzing preset kind responds mistake
When, on the basis of the wrong time point of client-side program response mistake that record occurs the preset kind, also based on default rule
Then and the wrong time point determines corresponding wrong time section.For example, can coming for the previous period really according to the wrong time point
Fixed corresponding wrong time section, can also determine corresponding wrong time section according to rear a period of time of the wrong time point, etc.
Deng.In one embodiment, the mode for determining corresponding wrong time section based on preset rules and the wrong time point can be with
Including:The wrong time point is shifted to an earlier date the second Preset Time (for example, 2 seconds) to determine time lower limit (if for example, when this is wrong
Between point for 9 points 50 seconds 30 minutes, then the wrong time point is shifted to an earlier date 2 seconds, it is determined that time lower limit for 9 points 48 seconds 30 minutes);Should
Wrong time point postpones the 3rd Preset Time (for example, 3 seconds) to determine time upper limit value (if for example, the wrong time o'clock is at 9 points
30 points 50 seconds, then the wrong time point is postponed 3 seconds, it is determined that time upper limit value for 9 points 53 seconds 30 minutes), described second preset
Time is identical with the 3rd Preset Time or difference;The wrong time is determined based on the time lower limit and time upper limit value
Point corresponding wrong time section (for example, wrong time section can for 9 points 53 30: 48 seconds 30 minutes to 9 :).
According to the wrong time section determined, in the operation every the first Preset Time to the client-side program for preserving
Searched in the sectional drawing at interface and the associated data at its sectional drawing time point, finding out sectional drawing time point falls into wrong time Duan Fan
The sectional drawing for enclosing, and corresponding sectional drawing, the wrong time point and mistake the client-side program response of the preset kind is wrong, find out
Time period is associated preservation.So, user is subsequently needing to carry out problem to the client-side program of preset kind response mistake
During positioning, you can the client-side program that the preset kind occurs rapidly and accurately is found from the associated data for preserving and responds mistake
Wrong time point and wrong time section, and the wrong time point and wrong time section under the corresponding client-side program behaviour
Make the sectional drawing at interface, realize the quick and precisely positioning to the client-side program response mistake of the preset kind.Due to that can navigate to
There is the wrong time section of the client-side program response mistake of the preset kind, that is, obtain the client journey that the preset kind occurs
Sectional drawing before and after the mistake of sequence response mistake in perdurabgility, advantageously in user to client journey that the preset kind occurs
The cause and effect of sequence response mistake carries out comprehensive analysis, is easy to user to carry out error analysis exactly.
Further, in other embodiments, above-mentioned association preserving module 03 is additionally operable to:
According to the associated data at sectional drawing and the sectional drawing time point for preserving, finding out sectional drawing time point belongs to wrong time section
Sectional drawing, and the server log for belonging to wrong time section is obtained from the corresponding server end of the client-side program;This is preset
When the client-side program response mistake of type, the sectional drawing found out, server log, the wrong time point and/or the mistake for obtaining
Between section be associated preservation, for user according to client-side program respond mistake find corresponding sectional drawing, server log, mistake
Time point and/or wrong time section, and carry out error analysis.
In the present embodiment, find out sectional drawing time point belong to the wrong time section sectional drawing after, also from the client-side program
Corresponding server end obtains the server log for belonging to wrong time section, and the client-side program of the preset kind is responded
Mistake, the sectional drawing found out, the server log for obtaining, the wrong time point and/or wrong time section are associated preservation.
So, user is when subsequently needing the client-side program response mistake to preset kind to carry out positioning problems, you can
The wrong time that the client-side program response mistake of the preset kind occurs rapidly and accurately is found from the associated data for preserving
The operation interface of the corresponding client-side program under point and/or wrong time section, the wrong time point and/or wrong time section
Sectional drawing, and corresponding server log.There is the client-side program response mistake of the preset kind due to that can navigate to
The server log of wrong time section and corresponding with client-side program server end in wrong time section, user
Can be for corresponding server end in the mistake front and rear perdurabgility of the client-side program response mistake that the preset kind occurs
Server log carries out positioning problems, advantageously in the mistake because of server end cause client-side program respond mistake feelings
Under condition, user customer program response mistake carries out error analysis exactly.
As shown in fig. 6, second embodiment of the invention proposes a kind of test errors positioner of client-side program, above-mentioned
On the basis of embodiment, also include:
Sort module 04, for all clients program response mistake, sectional drawing, wrong time point and/or wrong time
The associated data of section, is classified according to the type of client-side program response mistake, by the response of same type of client-side program
The corresponding associated data of mistake is classified as a class, by the corresponding incidence number of different types of client-side program response mistake
According to being classified as inhomogeneity, and test report is generated according to the result of classification.
In the present embodiment, the client-side program response mistake and its correspondence occurred in whole traversal test process is got
Sectional drawing, wrong time point and/or wrong time section associated data after, can according to client-side program response mistake inhomogeneity
Type is classified, and the same type of wrong corresponding associated data of client-side program response is classified as a class, different types of
The corresponding associated data of client-side program response mistake is classified as inhomogeneity, and generates test report according to the result of classification.
For example, the number of errors statistical report form of each classification, sectional drawing consolidated statement of each classification etc. are may include in the test report,
User can carry out error analysis to different types of client-side program response mistake on the whole according to the test report of generation.
It should be noted that herein, term " including ", "comprising" or its any other variant be intended to non-row
His property is included, so that process, method, article or device including a series of key elements not only include those key elements, and
And also include other key elements being not expressly set out, or also include for this process, method, article or device institute are intrinsic
Key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that including this
Also there is other identical element in the process of key element, method, article or device.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side
Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to be realized by hardware, but a lot
In the case of the former be more preferably implementation method.Based on such understanding, technical scheme is substantially in other words to existing
The part that technology contributes can be embodied in the form of software product, and computer software product storage is in a storage
In medium (such as ROM/RAM, magnetic disc, CD), including some instructions are used to so that a station terminal equipment (can be mobile phone, calculate
Machine, server, air-conditioner, or network equipment etc.) perform method described in each embodiment of the invention.
Above by reference to the preferred embodiments of the present invention have been illustrated, not thereby limit to interest field of the invention.On
State that embodiment of the present invention sequence number is for illustration only, the quality of embodiment is not represented.Patrolled in addition, though showing in flow charts
Order is collected, but in some cases, shown or described step can be performed with different from order herein.
Those skilled in the art do not depart from the scope of the present invention and essence, can have various flexible programs to realize the present invention,
Can be used for another embodiment for example as the feature of one embodiment and obtain another embodiment.It is all to use technology of the invention
Any modification, equivalent and the improvement made within design, all should be within interest field of the invention.