CN110096427A - Pathological system localization method and device based on software test - Google Patents

Pathological system localization method and device based on software test Download PDF

Info

Publication number
CN110096427A
CN110096427A CN201910203372.7A CN201910203372A CN110096427A CN 110096427 A CN110096427 A CN 110096427A CN 201910203372 A CN201910203372 A CN 201910203372A CN 110096427 A CN110096427 A CN 110096427A
Authority
CN
China
Prior art keywords
pathological
test
product
time
abnormal
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
Application number
CN201910203372.7A
Other languages
Chinese (zh)
Inventor
陈晰亮
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An Puhui Enterprise Management Co Ltd
Original Assignee
Ping An Puhui Enterprise Management Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ping An Puhui Enterprise Management Co Ltd filed Critical Ping An Puhui Enterprise Management Co Ltd
Priority to CN201910203372.7A priority Critical patent/CN110096427A/en
Publication of CN110096427A publication Critical patent/CN110096427A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The present invention relates to software test fields, disclose a kind of pathological system localization method and device based on software test, include: when for service product carry out system testing in detect system exception report an error instruct when, it is reported an error to instruct according to system exception and positions choke system in the system chain that system testing matches, system chain is that the allocating time of service product is called successively to carry out serial sort acquisition to goal systems according to the goal systems tested in system testing;Determine that choke system corresponding object invocation time in system chain, object invocation time are the allocating time that choke system calls service product;The corresponding journal file of goal systems by allocating time in system chain earlier than the object invocation time is determined as target journaling file;The abnormal data in target journaling file is analyzed to position pathological system.Under the method, it is based on software testing technology, solves the problems, such as that pathological system location efficiency is low.

Description

Pathological system localization method and device based on software test
Technical field
The present invention relates to software testing technology field, in particular to a kind of pathological system localization method based on software test And device.
Background technique
Currently, system testing has been widely used in the operation system of different field, by carrying out system to operation system Test can find in time operation system there are the problem of and be resolved, so as to improve operation system reliability of operation.
In practice, it has been found that being related to multiple test macros when being tested now for a certain business, if tested Occurs abnormal, to need to position appearance exception in this multiple test macro system in journey.It is common, position the side of pathological system Formula is the journal file of test macro successively to be traversed, by manually to these journal files according to the hierarchic sequence between system Analyzing and positioning pathological system is carried out, however this manual analysis journal file is come the mode that positions pathological system that there is low efficiencys The problem of.
To sum up, drawback of the prior art is that: pathological system positioning low efficiency.
Summary of the invention
In order to solve the problems, such as the low efficiency of the positioning of pathological system present in the relevant technologies, the present invention provides a kind of bases In the pathological system localization method and device of software test.
First aspect of the embodiment of the present invention discloses a kind of pathological system localization method based on software test, the method packet It includes:
When for service product carry out system testing in detect system exception report an error instruct when, it is different according to the system The instruction that often reports an error positions choke system in the system chain that the system testing matches, and the system chain is according to described in The goal systems tested in system testing calls the allocating time of the service product successively to carry out to the goal systems What serial sort obtained;
Determine that the choke system corresponding object invocation time in the system chain, the object invocation time are The choke system calls the allocating time of the service product;
By allocating time in the system chain earlier than the corresponding journal file of goal systems of the object invocation time It is determined as target journaling file;
The abnormal data in the target journaling file is analyzed to position the pathological system.
Second aspect of the embodiment of the present invention discloses a kind of pathological system positioning device based on software test, described device packet It includes:
First positioning unit, for when detecting that system exception reports an error instruction in the system testing carried out for service product When, being reported an error to instruct according to the system exception positions choke system in the system chain that the system testing matches, described System chain is to call the allocating time of the service product by morning according to the goal systems tested in the system testing Serial sort acquisition is carried out to the goal systems to evening;
First determination unit, for determining the choke system corresponding object invocation time in the system chain, The object invocation time is the allocating time that the choke system calls the service product;
Second determination unit, for by allocating time in the system chain earlier than the target system of the object invocation time Corresponding journal file of uniting is determined as target journaling file;
Second positioning unit positions the pathological system for analyzing the abnormal data in the target journaling file.
The third aspect of the embodiment of the present invention discloses a kind of electronic equipment, and the electronic equipment includes:
Processor;
Memory is stored with computer-readable instruction on the memory, and the computer-readable instruction is by the processing When device executes, foregoing method is realized.
Fourth aspect of the embodiment of the present invention discloses a kind of computer readable storage medium, stores computer program, described Computer program makes computer execute foregoing method.
The technical solution that the embodiment of the present invention provides can include the following benefits:
Pathological system localization method provided by the present invention based on software test includes the following steps, produces when for business It detects that system exception reports an error when instructing in the system testing that product carry out, instruction is reported an error in system testing phase according to system exception Choke system is positioned in the system chain matched, system chain is to call business according to the goal systems tested in system testing The allocating time of product successively carries out serial sort acquisition to goal systems;Determine that choke system is corresponding in system chain Object invocation time, object invocation time are the allocating time that choke system calls service product;When by being called in system chain Between earlier than the corresponding journal file of goal systems of object invocation time be determined as target journaling file;Analyze target journaling file In abnormal data position pathological system.
Under the method, it is based on software testing technology, the instruction that can report an error according to system exception automatically determines abnormal system System, improves the location efficiency of pathological system.And the allocating time of service product can be called raw according to system in test process At system chain, the journal file of the system in system chain before choke system is obtained on this basis, on this basis really Determine pathological system, analyzes least journal file and obtain most accurately pathological system positioning result, further improve abnormal system The location efficiency of system.
It should be understood that the above general description and the following detailed description are merely exemplary, this can not be limited Invention.
Detailed description of the invention
The drawings herein are incorporated into the specification and forms part of this specification, and shows and meets implementation of the invention Example, and in specification together principle for explaining the present invention.
Fig. 1 is a kind of signal of pathological system positioning device based on software test shown according to an exemplary embodiment Figure;
Fig. 2 is a kind of process of pathological system localization method based on software test shown according to an exemplary embodiment Figure;
Fig. 3 is the stream of another pathological system localization method based on software test shown according to an exemplary embodiment Cheng Tu;
Fig. 4 is a kind of frame of pathological system positioning device based on software test shown according to an exemplary embodiment Figure;
Fig. 5 is the frame of another pathological system positioning device based on software test shown according to an exemplary embodiment Figure.
Specific embodiment
Here will the description is performed on the exemplary embodiment in detail, the example is illustrated in the accompanying drawings.Following description is related to When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment Described in embodiment do not represent all embodiments consistented with the present invention.On the contrary, they be only with it is such as appended The example of device and method being described in detail in claims, some aspects of the invention are consistent.
Implementation environment of the invention can be portable mobile equipment, such as smart phone, tablet computer, desktop computer.
Fig. 1 is a kind of pathological system positioning device signal based on software test shown according to an exemplary embodiment Figure.Device 100 can be above-mentioned portable mobile equipment.As shown in Figure 1, device 100 may include following one or more components: Processing component 102, memory 104, power supply module 106, multimedia component 108, audio component 110, sensor module 114 and Communication component 116.
The integrated operation of the usual control device 100 of processing component 102, such as with display, telephone call, data communication, phase Machine operation and the associated operation of record operation etc..Processing component 102 may include one or more processors 118 to execute Instruction, to complete all or part of the steps of following methods.In addition, processing component 102 may include one or more modules, For convenient for the interaction between processing component 102 and other assemblies.For example, processing component 102 may include multi-media module, use In to facilitate the interaction between multimedia component 108 and processing component 102.
Memory 104 is configured as storing various types of data to support the operation in device 100.These data are shown Example includes the instruction of any application or method for operating on the device 100.Memory 104 can be by any kind of Volatibility or non-volatile memory device or their combination are realized, such as static random access memory (Static Random Access Memory, abbreviation SRAM), electrically erasable programmable read-only memory (Electrically Erasable Programmable Read-Only Memory, abbreviation EEPROM), Erasable Programmable Read Only Memory EPROM (Erasable Programmable Read Only Memory, abbreviation EPROM), programmable read only memory (Programmable Red- Only Memory, abbreviation PROM), read-only memory (Read-Only Memory, abbreviation ROM), magnetic memory, flash Device, disk or CD.It is also stored with one or more modules in memory 104, is configured to for the one or more module It is executed by the one or more processors 118, to complete all or part of step in method as follows.
Power supply module 106 provides electric power for the various assemblies of device 100.Power supply module 106 may include power management system System, one or more power supplys and other with for device 100 generate, manage, and distribute the associated component of electric power.
Multimedia component 108 includes the screen of one output interface of offer between described device 100 and user.One In a little embodiments, screen may include liquid crystal display (Liquid Crystal Display, abbreviation LCD) and touch panel. If screen includes touch panel, screen may be implemented as touch screen, to receive input signal from the user.Touch panel Including one or more touch sensors to sense the gesture on touch, slide, and touch panel.The touch sensor can be with The boundary of a touch or slide action is not only sensed, but also detects duration associated with the touch or slide operation and pressure Power.Screen can also include display of organic electroluminescence (Organic Light Emitting Display, abbreviation OLED).
Audio component 110 is configured as output and/or input audio signal.For example, audio component 110 includes a Mike Wind (Microphone, abbreviation MIC), when device 100 is in operation mode, such as call model, logging mode and speech recognition mould When formula, microphone is configured as receiving external audio signal.The received audio signal can be further stored in memory 104 or via communication component 116 send.In some embodiments, audio component 110 further includes a loudspeaker, for exporting Audio signal.
Sensor module 114 includes one or more sensors, and the state for providing various aspects for device 100 is commented Estimate.For example, sensor module 114 can detecte the state that opens/closes of device 100, the relative positioning of component, sensor group Part 114 can be with the position change of 100 1 components of detection device 100 or device and the temperature change of device 100.Some In embodiment, which can also include Magnetic Sensor, pressure sensor or temperature sensor.
Communication component 116 is configured to facilitate the communication of wired or wireless way between device 100 and other equipment.Device 100 can access the wireless network based on communication standard, such as WiFi (Wireless-Fidelity, Wireless Fidelity).Show at one In example property embodiment, communication component 116 receives broadcast singal or broadcast from external broadcasting management system via broadcast channel Relevant information.In one exemplary embodiment, the communication component 116 further includes near-field communication (Near Field Communication, abbreviation NFC) module, for promote short range communication.For example, radio frequency identification can be based in NFC module (Radio Frequency Identification, abbreviation RFID) technology, Infrared Data Association (Infrared Data Association, abbreviation IrDA) technology, ultra wide band (Ultra Wideband, abbreviation UWB) technology, Bluetooth technology and other skills Art is realized.
In the exemplary embodiment, device 100 can be by one or more application specific integrated circuit (Application Specific Integrated Circuit, abbreviation ASIC), it is digital signal processor, digital signal processing appts, programmable Logical device, field programmable gate array, controller, microcontroller, microprocessor or other electronic components are realized, for executing Following methods.
Fig. 2 is a kind of process of pathological system localization method based on software test shown according to an exemplary embodiment Figure.As shown in Fig. 2, the method the following steps are included:
Step 201, when detected in the system testing carried out for service product system exception report an error instruct when, according to being The abnormal instruction that reports an error of system positions choke system in the system chain that system testing matches, and system chain is according to system testing The middle goal systems tested calls the allocating time of service product successively to carry out serial sort acquisition to goal systems.
In the embodiment of the present invention, for a certain service product carry out system testing during there are multiple goal systems tune With the service product, reports an error instruction if occurring system exception at this time, the determination in this multiple system is needed abnormal problem occur System.Optionally, when system chain can call the calling of service product according to the goal systems tested in system testing Between by morning to evening sequence to goal systems carry out serial sort acquisition, can also be according to the target tested in system testing System calls the allocating time of the service product to carry out serial sort to goal systems by evening to early sequence.Wherein, obstruction system System is a certain goal systems that system testing is finally blocked.
As an alternative embodiment, being reported an error the system chain that matches in system testing of instruction according to system exception Middle positioning choke system may include:
Determine that issuing system exception reports an error the error reporting system of instruction;
Choke system is positioned in the system chain that system testing matches according to the journal file of error reporting system.
In the embodiment of the present invention, when detect system exception report an error instruct when, can first determine to issue the system exception Report an error the error reporting system of instruction, and error reporting system may be choke system, it is also possible to which, for other systems in addition to choke system, this is Since when system testing is blocked in choke system, if other systems call the choke system, other systems may at this time It will appear system exception to report an error.
By implementing this optional embodiment, can be checked according to the journal file of error reporting system, until determining most Whole choke system obtains accurately choke system to analyze least journal file, to improve the acquisition of choke system Efficiency.
Step 202, determine that choke system corresponding object invocation time in system chain, object invocation time are obstruction The allocating time of system calling service product.
Step 203, by allocating time in system chain earlier than the corresponding journal file of goal systems of object invocation time It is determined as target journaling file.
Step 204, the abnormal data in target journaling file is analyzed to position pathological system.
For example, when carrying out system testing to a certain financial business product, financial product can be sent out in multiple systems Raw corresponding circulation, that is to say, multiple systems in system testing can call financial business product in different times, work as appearance Exception is when reporting an error, and can use in automatized script extraction system chain allocating time earlier than the goal systems of object invocation time Corresponding journal file, and the journal file is determined as target journaling file, by the abnormal number in target journaling file According to positioning pathological system, this process not only realizes automatic positioning pathological system, and can only analysis target journaling text The journal file of part, the goal systems for not being later than the object invocation time to allocating time in system chain is analyzed, and analysis is most Few journal file obtains most accurately pathological system positioning result, this is because pathological system appears in certainly has called up gold Melt in the goal systems of service product.
Under the above method, it is based on software testing technology, the instruction that can report an error according to system exception automatically determines abnormal System improves the location efficiency of pathological system.And the allocating time of service product can be called in test process according to system Generation system chain obtains the journal file of the system in system chain before choke system, on this basis on this basis It determines pathological system, analyzes least journal file and obtain most accurately pathological system positioning result, further improve exception The location efficiency of system.
Fig. 3 is the stream of another pathological system localization method based on software test shown according to an exemplary embodiment Cheng Tu.As shown in figure 3, the method the following steps are included:
Step 301, when detected in the system testing carried out for service product system exception report an error instruct when, according to being The abnormal instruction that reports an error of system positions choke system in the system chain that system testing matches, and system chain is according to system testing The middle goal systems tested calls the allocating time of service product successively to carry out serial sort acquisition to goal systems.
Step 302, determine that choke system corresponding object invocation time in system chain, object invocation time are obstruction The allocating time of system calling service product.
Step 303, by allocating time in system chain earlier than the corresponding journal file of goal systems of object invocation time It is determined as target journaling file.
Step 304, the abnormal data in target journaling file is analyzed to position pathological system.
Step 305, exception code is determined in the journal file of pathological system.
In the embodiment of the present invention, exception code is used to indicate the Exception Type that system is abnormal, for example, exception code may refer to Show that system occurs supplementing abnormal, payment exception or cash register exception etc. with money.
Step 306, judge with the presence or absence of the abnormal cause to match with exception code in preset abnormal cause database, such as Fruit is step 307 to be executed, if not, terminating this process.
Step 307, judge to whether there is the abnormal solution to match with abnormal cause in preset reason data library, If so, executing step 308 to step 309, if not, terminating this process.
As an alternative embodiment, judging to be not present and abnormal cause phase in preset reason data library After the abnormal solution matched, following steps can also be performed:
The output abnormality reason on the corresponding maintenance terminal of pathological system, so that the maintenance personnel of maintenance terminal is according to exception Reason safeguards pathological system.
By implementing this optional embodiment, can be not present and abnormal cause phase in preset reason data library Output abnormality reason when the abnormal solution matched is improved manually to be safeguarded according to the abnormal cause to pathological system The reliability of system maintenance.
Step 308, abnormal solution is executed, and obtains the result after executing abnormal solution.
As an alternative embodiment, executing abnormal solution, and obtain the solution after executing abnormal solution Certainly result may include:
When abnormal cause indicates pathological system congestion, the test process of pathological system is terminated according to abnormal solution, And the test product list of pathological system calling is obtained, test product list includes at least service product;
According to the survey of the sequence restarting pathological system of the priority of product each in test product list from high to low Examination process.
By implementing this optional embodiment, can be terminated when abnormal cause indicates pathological system congestion The priority of the test process of pathological system, the test product called according to pathological system restarts test process, is solved with this It is abnormal certainly as caused by system congestion.
As another optional embodiment, according to the priority of product each in test product list from high to low Sequence restarting pathological system test process before, following steps can also be performed:
Obtain the test coefficient of each product in test product list, the starting time of product starting test and abnormal system The congestion time of system;
Calculate the time difference between each product corresponding starting time and congestion time;
The preferential of each product in test product list is calculated according to time difference, test coefficient and preset formula Grade, preset formula are as follows:
X=T × a
Wherein, x indicates priority, and T indicates that time difference, a indicate test coefficient.
Wherein, if the starting time of a certain product starting test is 2 pm and congestion time is at 4 points in afternoon, when Between difference T be two hours, also, time difference T can be used uniformly hour as unit, can also be using minute as singly , it is not limited this in the embodiment of the present invention.Also, testing coefficient can be the arbitrary integer in [1,10] section, also, The numerical value for testing coefficient a is bigger, and the importance degree of the test product is bigger.For example, the test coefficient of test product A is 8, survey The test coefficient of trial product B is 6, illustrates that the importance degree of test product A is greater than the importance degree of test product B.
By implementing this optional embodiment, can according to the congestion time of the starting time and system of product when Between calculate product priority in terms of difference, product test coefficient two, to start according to priority from high to low sequence The test process of pathological system, to solve system exception caused by system congestion.
As another optional embodiment, in the test process for terminating pathological system according to abnormal solution, and After obtaining the test product list that pathological system calls, following steps can also be performed:
Obtaining the transmission of data needed for each product in the message transmission rate and test product list of pathological system needs Seek rate;
According to the survey of the sequence restarting pathological system of the priority of product each in test product list from high to low Examination process, comprising:
According to the priority of each product in data transfer demands rate, message transmission rate and test product list by High to low sequence chooses target detection product in the test process of pathological system;
The test process for restarting pathological system, to test target detection product.
By implementing this optional embodiment, it is advanced that the target detection product that pathological system can carry can be chosen Row test, solves system exception caused by system congestion with this.
Step 309, when result indicates to solve failure, output abnormality is former on the corresponding maintenance terminal of pathological system Cause, so that the maintenance personnel of maintenance terminal safeguards pathological system according to abnormal cause.
Under the above method, it is based on software testing technology, the instruction that can report an error according to system exception automatically determines abnormal System improves the location efficiency of pathological system.And the allocating time of service product can be called in test process according to system Generation system chain obtains the journal file of the system in system chain before choke system, on this basis on this basis It determines pathological system, analyzes least journal file and obtain most accurately pathological system positioning result, further improve exception The location efficiency of system.
It is the device of the invention embodiment below.
Fig. 4 is a kind of frame of pathological system positioning device based on software test shown according to an exemplary embodiment Figure.As shown in figure 4, the device includes:
First positioning unit 401 detects that system exception reports an error for working as in the system testing carried out for service product When instruction, reported an error to instruct according to system exception positions choke system, system chain in the system chain that system testing matches Be called according to the goal systems tested in system testing the allocating time of service product by morning to evening to goal systems into What row serial sort obtained.
In the embodiment of the present invention, for a certain service product carry out system testing during there are multiple goal systems tune With the service product, reports an error instruction if occurring system exception at this time, the determination in this multiple system is needed abnormal problem occur System.Optionally, when system chain can call the calling of service product according to the goal systems tested in system testing Between by morning to evening sequence to goal systems carry out serial sort acquisition, can also be according to the target tested in system testing System calls the allocating time of the service product to carry out serial sort to goal systems by evening to early sequence.Wherein, obstruction system System is a certain goal systems that system testing is finally blocked.
As an alternative embodiment, the first positioning unit 401 reports an error instruction in system testing according to system exception Choke system is positioned in the system chain to match may include:
First positioning unit 401 determines that issuing system exception reports an error the error reporting system of instruction;
First positioning unit 401 positions in the system chain that system testing matches according to the journal file of error reporting system Choke system.
In the embodiment of the present invention, when detect system exception report an error instruct when, can first determine to issue the system exception Report an error the error reporting system of instruction, and error reporting system may be choke system, it is also possible to which, for other systems in addition to choke system, this is Since when system testing is blocked in choke system, if other systems call the choke system, other systems may at this time It will appear system exception to report an error.
By implementing this optional embodiment, can successively be checked upwards according to the journal file of error reporting system, directly The choke system final to determination obtains accurately choke system to analyze least journal file, to improve obstruction system The acquisition efficiency of system.
First determination unit 402, for determining choke system corresponding object invocation time, target tune in system chain It is the allocating time that choke system calls service product with the time.
Second determination unit 403, for by allocating time in system chain earlier than the goal systems pair of object invocation time The journal file answered is determined as target journaling file.
Second positioning unit 404 positions pathological system for analyzing the abnormal data in target journaling file.
For example, when carrying out system testing to a certain financial business product, financial product can be sent out in multiple systems Raw corresponding circulation, that is to say, multiple systems in system testing can call financial business product in different times, work as appearance Exception is when reporting an error, and can use in automatized script extraction system chain allocating time earlier than the goal systems of object invocation time Corresponding journal file, and the journal file is determined as target journaling file, by the abnormal number in target journaling file According to positioning pathological system, this process not only realizes automatic positioning pathological system, and can only analysis target journaling text The journal file of part, the goal systems for not being later than the object invocation time to allocating time in system chain is analyzed, and analysis is most Few journal file obtains most accurately pathological system positioning result, this is because pathological system appears in certainly has called up gold Melt in the goal systems of service product.
As it can be seen that being based on software test skill by implementing the pathological system positioning device based on software test described in Fig. 4 Art, the instruction that can be reported an error according to system exception automatically determine pathological system, improve the location efficiency of pathological system.And The allocating time of service product can be called to generate system chain according to system in test process, obtain system chain on this basis The journal file of system before middle choke system determines pathological system on this basis, analyzes least journal file and obtains Most accurately pathological system positioning result, further improves the location efficiency of pathological system.
Fig. 5 is the frame of another pathological system positioning device based on software test shown according to an exemplary embodiment Figure.Fig. 5 is to optimize to obtain on the basis of Fig. 4, compared with the pathological system positioning device shown in Fig. 4 based on software test, Pathological system positioning device shown in fig. 5 based on software test can also include:
Third determination unit 405, for determining exception code in the journal file of pathological system.
In the embodiment of the present invention, exception code is used to indicate the Exception Type that system is abnormal, for example, exception code may refer to Show that system occurs supplementing abnormal, payment exception or cash register exception etc. with money.
Judging unit 406, it is different with the presence or absence of matching with exception code in preset abnormal cause database for judging Normal reason.
Output unit 407, for judging to be not present and exception in preset abnormal cause database when judging unit 406 When the abnormal cause that code matches, the output abnormality reason on the corresponding maintenance terminal of pathological system, so that the dimension of maintenance terminal Shield personnel safeguard pathological system according to abnormal cause.
Judging unit 406 is also used to be matched with exception code judging to exist in the preset abnormal cause database After abnormal cause, judge in preset reason data library with the presence or absence of the abnormal solution to match with abnormal cause.
Execution unit 408, for judging exist and abnormal cause phase in preset reason data library when judging unit 406 When matched exception solution, abnormal solution is executed, and obtains the result after executing abnormal solution.
As an alternative embodiment, execution unit 408 executes abnormal solution, and obtain the abnormal solution of execution Result after scheme may include:
When abnormal cause indicates pathological system congestion, the test process of pathological system is terminated according to abnormal solution, And the test product list of pathological system calling is obtained, test product list includes at least service product;
According to the survey of the sequence restarting pathological system of the priority of product each in test product list from high to low Examination process.
By implementing this optional embodiment, can be terminated when abnormal cause indicates pathological system congestion The priority of the test process of pathological system, the test product called according to pathological system restarts test process, is solved with this It is abnormal certainly as caused by system congestion.
As another optional embodiment, according to the priority of product each in test product list from high to low Sequence restarting pathological system test process after, execution unit 408 can be also used for:
Obtain the test coefficient of each product in test product list, the starting time of product starting test and abnormal system The congestion time of system;
Calculate the time difference between each product corresponding starting time and congestion time;
The preferential of each product in test product list is calculated according to time difference, test coefficient and preset formula Grade, preset formula are as follows:
X=T × a
Wherein, x indicates priority, and T indicates that time difference, a indicate test coefficient.
Wherein, if the starting time of a certain product starting test is 2 pm and congestion time is at 4 points in afternoon, when Between difference T be two hours, also, time difference T can be used uniformly hour as unit, can also be using minute as singly , it is not limited this in the embodiment of the present invention.Also, testing coefficient can be the arbitrary integer in [1,10] section, also, The numerical value for testing coefficient a is bigger, and the importance degree of the test product is bigger.For example, the test coefficient of test product A is 8, survey The test coefficient of trial product B is 6, illustrates that the importance degree of test product A is greater than the importance degree of test product B.
By implementing this optional embodiment, can according to the congestion time of the starting time and system of product when Between calculate product priority in terms of difference, product test coefficient two, to start according to priority from high to low sequence The test process of pathological system, to solve system exception caused by system congestion.
As another optional embodiment, pathological system is terminated according to abnormal solution in execution unit 408 Test process, and obtain pathological system calling test product list after, execution unit 408 can be also used for:
Obtaining the transmission of data needed for each product in the message transmission rate and test product list of pathological system needs Seek rate;
Execution unit 408 is different according to the sequence restarting of the priority of product each in test product list from high to low Often the test process of system may include:
According to the priority of each product in data transfer demands rate, message transmission rate and test product list by High to low sequence chooses target detection product in the test process of pathological system;
The test process for restarting pathological system, to test target detection product.
By implementing this optional embodiment, it is advanced that the target detection product that pathological system can carry can be chosen Row test, solves system exception caused by system congestion with this.
Output unit 407 is specifically used for when result indicates to solve failure, on the corresponding maintenance terminal of pathological system Output abnormality reason, so that the maintenance personnel of maintenance terminal safeguards pathological system according to abnormal cause.
As it can be seen that being based on software test skill by implementing the pathological system positioning device based on software test described in Fig. 5 Art, the instruction that can be reported an error according to system exception automatically determine pathological system, improve the location efficiency of pathological system.And The allocating time of service product can be called to generate system chain according to system in test process, obtain system chain on this basis The journal file of system before middle choke system determines pathological system on this basis, analyzes least journal file and obtains Most accurately pathological system positioning result, further improves the location efficiency of pathological system.
The present invention also provides a kind of electronic equipment, which includes:
Processor;
Memory is stored with computer-readable instruction on the memory, when which is executed by processor, Realize the pathological system localization method based on software test as previously shown.
The electronic equipment can be the pathological system positioning device 100 based on software test shown in Fig. 1.
In one exemplary embodiment, the present invention also provides a kind of computer readable storage mediums, are stored thereon with calculating Machine program when the computer program is executed by processor, realizes the pathological system positioning side as previously shown based on software test Method.
It should be understood that the present invention is not limited to the precise structure already described above and shown in the accompanying drawings, and And various modifications and change can executed without departing from the scope.The scope of the present invention is limited only by the attached claims.

Claims (10)

1. a kind of pathological system localization method based on software test, which is characterized in that the described method includes:
When for service product carry out system testing in detect system exception report an error instruct when, according to the system exception report Mistake instruction positions choke system in the system chain that the system testing matches, and the system chain is according to the system It is serial that the goal systems tested in test calls the allocating time of the service product successively to carry out to the goal systems What sequence obtained;
Determine the choke system corresponding object invocation time in the system chain, the object invocation time is described Choke system calls the allocating time of the service product;
The journal file corresponding earlier than the goal systems of the object invocation time of allocating time in the system chain is determined For target journaling file;
The abnormal data in the target journaling file is analyzed to position the pathological system.
2. the method according to claim 1, wherein described report an error instruction in the system according to the system exception Choke system is positioned in the system chain that unified test examination matches, comprising:
Determine that issuing the system exception reports an error the error reporting system of instruction;
Choke system is positioned in the system chain that the system testing matches according to the journal file of the error reporting system.
3. the method according to claim 1, wherein the abnormal number in the analysis target journaling file According to come after positioning the pathological system, the method also includes:
Exception code is determined in the journal file of the pathological system;
Judge in preset abnormal cause database with the presence or absence of the abnormal cause to match with the exception code;
If so, the abnormal cause is exported on the corresponding maintenance terminal of the pathological system, so that the maintenance terminal Maintenance personnel safeguards the pathological system according to the abnormal cause.
4. according to the method described in claim 3, it is characterized in that, judging to deposit in the preset abnormal cause database After the abnormal cause to match with the exception code, the method also includes:
Judge in the preset reason data library with the presence or absence of the abnormal solution to match with the abnormal cause;
If so, executing the abnormal solution, and obtain the result after executing the abnormal solution;
When the result indicates to solve failure, executes and described exported on the corresponding maintenance terminal of the pathological system The abnormal cause, so that the maintenance personnel of the maintenance terminal ties up the pathological system according to the abnormal cause Shield.
5. according to the method described in claim 4, it is characterized in that, described execute the abnormal solution, and obtaining execution Result after the exception solution, comprising:
When the abnormal cause indicates the pathological system congestion, the pathological system is terminated according to the abnormal solution Test process, and obtain the test product list that the pathological system calls, the test product list includes at least described Service product;
The pathological system is restarted according to the sequence of the priority of each product in the test product list from high to low Test process.
6. according to the method described in claim 5, it is characterized in that, described according to each product in the test product list Priority sequence from high to low restart the pathological system test process before, the method also includes:
Obtain the test coefficient of each product in the test product list, starting time and described different of product starting test The congestion time of normal system;
Calculate the time difference between each product corresponding starting time and the congestion time;
The excellent of each product in the test product list is calculated according to the time difference, test coefficient and preset formula First grade, the preset formula are as follows:
X=T × a
Wherein, the x indicates the priority, and the T indicates that the time difference, a indicate the test coefficient.
7. according to the method described in claim 5, it is characterized in that, described described different according to the abnormal solution termination The test process of normal system, and after obtaining the test product list that the pathological system calls, the method also includes:
Data needed for each product in the message transmission rate and the test product list of the pathological system are obtained to pass Defeated demand rate;
The sequence of the priority according to each product in the test product list from high to low restarts the exception The test process of system, comprising:
According to each product in the data transfer demands rate, the message transmission rate and the test product list The sequence of priority from high to low chooses target detection product in the test process of the pathological system;
The test process for restarting the pathological system, to test the target detection product.
8. a kind of pathological system positioning device based on software test, which is characterized in that described device includes:
First positioning unit, for when for service product carry out system testing in detect system exception report an error instruct when, It is reported an error to instruct according to the system exception and positions choke system, the system in the system chain that the system testing matches Chain is to call the allocating time of the service product by morning to evening according to the goal systems tested in the system testing Serial sort acquisition is carried out to the goal systems;
First determination unit, it is described for determining the choke system corresponding object invocation time in the system chain The object invocation time is the allocating time that the choke system calls the service product;
Second determination unit, for by allocating time in the system chain earlier than the goal systems pair of the object invocation time The journal file answered is determined as target journaling file;
Second positioning unit positions the pathological system for analyzing the abnormal data in the target journaling file.
9. a kind of electronic equipment, which is characterized in that the electronic equipment includes:
Processor;
Memory is stored with computer-readable instruction on the memory, and the computer-readable instruction is held by the processor When row, method as described in any one of claim 1 to 7 is realized.
10. a kind of computer readable storage medium, which is characterized in that it stores computer program, and the computer program makes Computer perform claim requires 1~7 described in any item methods.
CN201910203372.7A 2019-03-18 2019-03-18 Pathological system localization method and device based on software test Pending CN110096427A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910203372.7A CN110096427A (en) 2019-03-18 2019-03-18 Pathological system localization method and device based on software test

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910203372.7A CN110096427A (en) 2019-03-18 2019-03-18 Pathological system localization method and device based on software test

Publications (1)

Publication Number Publication Date
CN110096427A true CN110096427A (en) 2019-08-06

Family

ID=67443276

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910203372.7A Pending CN110096427A (en) 2019-03-18 2019-03-18 Pathological system localization method and device based on software test

Country Status (1)

Country Link
CN (1) CN110096427A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110908921A (en) * 2019-12-04 2020-03-24 米哈游科技(上海)有限公司 Game problem positioning method and device, electronic equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101146304A (en) * 2006-09-11 2008-03-19 中兴通讯股份有限公司 Log recording method and device based on service processing flow
CN107819627A (en) * 2017-11-16 2018-03-20 中国平安人寿保险股份有限公司 System failure processing method and server
CN108429636A (en) * 2018-02-01 2018-08-21 阿里巴巴集团控股有限公司 Position the method and device and electronic equipment of pathological system
CN109213655A (en) * 2018-07-19 2019-01-15 东软集团股份有限公司 Method, apparatus, storage medium and equipment are determined for the solution of alarm
CN109408361A (en) * 2018-08-15 2019-03-01 中国平安人寿保险股份有限公司 Monkey tests restored method, device, electronic equipment and computer readable storage medium
CN109460343A (en) * 2018-09-10 2019-03-12 平安科技(深圳)有限公司 System exception monitoring method, device, equipment and storage medium based on log

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101146304A (en) * 2006-09-11 2008-03-19 中兴通讯股份有限公司 Log recording method and device based on service processing flow
CN107819627A (en) * 2017-11-16 2018-03-20 中国平安人寿保险股份有限公司 System failure processing method and server
CN108429636A (en) * 2018-02-01 2018-08-21 阿里巴巴集团控股有限公司 Position the method and device and electronic equipment of pathological system
CN109213655A (en) * 2018-07-19 2019-01-15 东软集团股份有限公司 Method, apparatus, storage medium and equipment are determined for the solution of alarm
CN109408361A (en) * 2018-08-15 2019-03-01 中国平安人寿保险股份有限公司 Monkey tests restored method, device, electronic equipment and computer readable storage medium
CN109460343A (en) * 2018-09-10 2019-03-12 平安科技(深圳)有限公司 System exception monitoring method, device, equipment and storage medium based on log

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110908921A (en) * 2019-12-04 2020-03-24 米哈游科技(上海)有限公司 Game problem positioning method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN110069401B (en) System test abnormality positioning method and system based on data modeling
CN110162442A (en) A kind of system performance bottleneck localization method and system
CN110134574A (en) A kind of software performance testing method, system, medium and electronic equipment
CN110147318B (en) Method and device for generating test data and electronic equipment
CN105446868B (en) System compatibility test method, testing case management and relevant apparatus
CN110334007A (en) A kind of functional interface calls verification method and device, electronic equipment and storage medium
CN114840853B (en) Digital business analysis method based on big data and cloud server
CN111199353B (en) Test method and test system
US8794513B2 (en) Self-service device servicing utilizing a hardware database
CN110717509B (en) Data sample analysis method and device based on tree splitting algorithm
CN110347672A (en) Verification method and device, the electronic equipment and storage medium of tables of data related update
CN109408262A (en) A kind of business data processing method and relevant device
CN107632901A (en) A kind of self-repair method and device of application program operation exception
CN110334008B (en) Data automation processing method and device, electronic equipment and storage medium
CN109992965A (en) Process handling method and device, electronic equipment, computer readable storage medium
CN112835808A (en) Interface testing method and device, computer equipment and storage medium
CN109785049A (en) A kind of Products Show method, apparatus and terminal device based on data analysis
CN110096427A (en) Pathological system localization method and device based on software test
CN110119354A (en) Method for testing software, device and electronic equipment based on Test cases technology
CN110147305A (en) A kind of test model construction method and system based on big data
CN109857967A (en) Report method for subscribing and system based on big data
CN109168138A (en) The recognition methods for the number of changing, device and equipment in net
CN110046095B (en) System integration method and device based on test flow improvement
US11669867B2 (en) Mobile terminal and method of managing application thereof, and system for providing target advertisement using the same
CN110716914A (en) Database configuration method, system, computer readable storage medium and terminal equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
CB02 Change of applicant information

Address after: 201, room 518000, building A, No. 1, front Bay Road, Qianhai Shenzhen Guangdong Shenzhen Hong Kong cooperation zone (Qianhai business secretary)

Applicant after: Pingan Pu Hui Enterprise Management Co., Ltd.

Address before: 518000 Guangdong city of Shenzhen province Qianhai Shenzhen Hong Kong cooperation zone before Bay Road No. 1 building 201 room A

Applicant before: Pingan Pu Hui Enterprise Management Co., Ltd.

CB02 Change of applicant information
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination