A kind of software probe method of software probe
Technical field
The present invention relates to a kind of software probe method of software probe, belongs to computer software technical field.
Background technology
The various kinds of equipment based on computer software operation all kinds of at present are in the fields such as routine office work, automated control
It is widely used, in real work, in order to improve equipment reliability of operation and stability, and meets equipment to not
With the needs of working status operation, the operating status for being required to the software to being run in each equipment carries out failure detection, but currently
When carrying out software systems detect operation, mainly by being run by dedicated software probe class software to target software
During detected, although this mode can meet the needs to software probe operation, detect operation efficiency is relatively
It is low, at the same easily led to during one side detect operation detected software can not normal operation, on the other hand also easily lead to detect operation
Result be often only capable of obtaining simple fault message and the failure to detecting lacks effective counter-measure, so as to cause to work as
The preceding work efficiency when carrying out software probe operation is relatively poor, and reliability is relatively low, therefore is directed to this problem, urgently
Need to develop a kind of brand-new software probe method, to meet the needs of actual use.
The content of the invention
The object of the invention, which is that, overcomes above-mentioned deficiency, there is provided a kind of software probe method of software probe.
To achieve the above object, the present invention is to be achieved through the following technical solutions:
A kind of software probe method of software probe, comprises the following steps:
The first step, software identification, will be provided with first the test equipment of software probe by data communication mechanism with it is to be detected
Running software terminal room interlinks, and then carries out identification by test equipment and operation terminal room, and know completing identity
After not, the identification information of current runs software is sent from operation terminal to test equipment, and in the software probe of test equipment
After identification being completed to software identification information, by the software copy backup to be detected run in terminal into test equipment, Ran Houfen
Do not establish the software probe information recognized list based on software identification information and software information list to be detected, and by software probe
Information recognized list and software information list to be detected interlink with software probe;
Second step, fault case are collected, after completing first step operation, according to the software identification information of first step collection, by testing
Equipment collects the most common failure and troubleshooting case that match with each software identification information by communication network, then in conjunction with the
The software to be detected identification root directory contents of two steps establish software fault identification information root to be detected, then will collect
Software most common failure and troubleshooting case to be detected are saved under software fault identification information root to be detected, then by soft
Part detector interlinks with software fault identification information root to be detected;
3rd step, software emulation, after completing the first step, it is to be detected soft in test equipment to directly drive backup by test equipment
Part copy backup part carries out simulation run, then during simulation run is carried out, treats inspection software by software probe and answers
The operating status of backup processed is monitored;
4th step, software probe are right first according to the software identification information collected in the first step after completing second step operation
Current runs software essential information is recognized, and then starts corresponding detection generation in software probe according to software identification information
Code, and the detection code building of each startup is detected into data recognized list, and set at least one in data recognized list is detected
A detection pointer, then by detection pointer respectively with current simulation run software, software probe information recognized list, to be detected soft
Part information list and software fault identification information root to be detected establish data link, and occur in simulation software peace operation
During data segment corresponding with detection pointer data, then believed by software probe software probe information recognized list, software to be detected
Breath list and software fault identification information root to be detected establish data link, on the one hand prompt current simulation software failure to believe
Breath, on the other hand immediately arrives at fault message and corresponding troubleshooting methods, so as to complete to carry out detect operation to software;
5th step, result of detection push, after completing the 4th step operation, by the detection failure result obtained after simulation run and
On the one hand troubleshooting methods information is stored in test equipment, be on the other hand pushed directly to corresponding operation terminal location
Place.
Further, software identification information includes software version information, software check value information, soft in the first step
Part updates policy information.
Further, in the second step, the software most common failure to be detected collected and troubleshooting side
In case, when a failure possesses multiple troubleshooting methods, each troubleshooting methods are mutually juxtaposed, and according to troubleshooting side
Case, which corresponds to program and arrives from childhood, to be arranged greatly, and establishes software fault identification information level-one specific item to be detected after completing to arrange
Record.
Further, in the 3rd step, when software carries out simulation run, continuously run 2-5 times, respectively to each
Operation carries out operating status complete monitoring.
Further, in the 4th step, it is appointing in octal system, hexadecimal structured data to detect data in pointer
Meaning is a kind of, and detects pointer content and include main interruption subroutine and identification data segment, and main interruption subroutine respectively with identification
Data segment, current simulation run software, software probe information recognized list, software information list to be detected and software to be detected event
Barrier identification information root establishes data link.
Further, the identification data segment includes the identification information, probe software fault identification information, detection of software
Code information.
Further, in the 4th step, when detection pointer is two and two or more, each interruption for detecting pointer
Program is identical, and identification data segment content is different.
Further, the interruption subroutine includes software addressing retrieval subprogram, counting statistics subprogram, degree of belief
Counting subroutine and data sorting program.
The method of the present invention is simple, and operation and implementation are easy, on the one hand when carrying out software probe operation, do not interfere with software
Equipment normal operation, so as to effectively raise the convenience of software probe operation, flexibility and reliability, on the other hand into
It is effective to improve the work efficiency and precision of detect operation during row software probe operation, while also allow for directly obtaining and detect
The corresponding processing method of failure arrived.
Brief description of the drawings
Fig. 1 is flow diagram of the present invention;
Fig. 2 links schematic diagram for detection pointer data.
Embodiment
As illustrated in fig. 1 and 2, a kind of software probe method of software probe, comprises the following steps:
The first step, software identification, will be provided with first the test equipment of software probe by data communication mechanism with it is to be detected
Running software terminal room interlinks, and then carries out identification by test equipment and operation terminal room, and know completing identity
After not, the identification information of current runs software is sent from operation terminal to test equipment, and in the software probe of test equipment
After identification being completed to software identification information, by the software copy backup to be detected run in terminal into test equipment, Ran Houfen
Do not establish the software probe information recognized list based on software identification information and software information list to be detected, and by software probe
Information recognized list and software information list to be detected interlink with software probe;
Second step, fault case are collected, after completing first step operation, according to the software identification information of first step collection, by testing
Equipment collects the most common failure and troubleshooting case that match with each software identification information by communication network, then in conjunction with the
The software to be detected identification root directory contents of two steps establish software fault identification information root to be detected, then will collect
Software most common failure and troubleshooting case to be detected are saved under software fault identification information root to be detected, then by soft
Part detector interlinks with software fault identification information root to be detected;
3rd step, software emulation, after completing the first step, it is to be detected soft in test equipment to directly drive backup by test equipment
Part copy backup part carries out simulation run, then during simulation run is carried out, treats inspection software by software probe and answers
The operating status of backup processed is monitored;
4th step, software probe are right first according to the software identification information collected in the first step after completing second step operation
Current runs software essential information is recognized, and then starts corresponding detection generation in software probe according to software identification information
Code, and the detection code building of each startup is detected into data recognized list, and set at least one in data recognized list is detected
A detection pointer, then by detection pointer respectively with current simulation run software, software probe information recognized list, to be detected soft
Part information list and software fault identification information root to be detected establish data link, and occur in simulation software peace operation
During data segment corresponding with detection pointer data, then believed by software probe software probe information recognized list, software to be detected
Breath list and software fault identification information root to be detected establish data link, on the one hand prompt current simulation software failure to believe
Breath, on the other hand immediately arrives at fault message and corresponding troubleshooting methods, so as to complete to carry out detect operation to software;
5th step, result of detection push, after completing the 4th step operation, by the detection failure result obtained after simulation run and
On the one hand troubleshooting methods information is stored in test equipment, be on the other hand pushed directly to corresponding operation terminal location
Place.
In the present embodiment, in the first step software identification information include software version information, software check value information,
Software upgrading policy information.
In the present embodiment, in the second step, the software most common failure to be detected collected and troubleshooting
In scheme, when a failure possesses multiple troubleshooting methods, each troubleshooting methods are mutually juxtaposed, and according to troubleshooting
Scheme, which corresponds to program and arrives from childhood, to be arranged greatly, and establishes software fault identification information level-one specific item to be detected after completing to arrange
Record.
In the present embodiment, in the 3rd step, when software carries out simulation run, continuously run 2-5 times, respectively to every
Secondary operation carries out operating status complete monitoring.
In the present embodiment, in the 4th step, it is octal system, in hexadecimal structured data to detect data in pointer
Any one, and detects pointer content and includes main interruption subroutine and identification data segment, and main interruption subroutine respectively with knowledge
Other data segment, current simulation run software, software probe information recognized list, software information list to be detected and software to be detected
Fault identification information root establishes data link.
In the present embodiment, the identification data segment includes the identification information, probe software fault identification information, inspection of software
Survey code information.
In the present embodiment, in the 4th step, when detection pointer is two and two or more, each interruption for detecting pointer
Subprogram is identical, and identification data segment content is different.
In the present embodiment, the interruption subroutine includes software addressing retrieval subprogram, counting statistics subprogram, trusts
Spend counting subroutine and data sorting program.
The method of the present invention is simple, and operation and implementation are easy, on the one hand when carrying out software probe operation, do not interfere with software
Equipment normal operation, so as to effectively raise the convenience of software probe operation, flexibility and reliability, on the other hand into
It is effective to improve the work efficiency and precision of detect operation during row software probe operation, while also allow for directly obtaining and detect
The corresponding processing method of failure arrived.
The basic principles, main features and the advantages of the invention have been shown and described above.The technology of the industry
Personnel are it should be appreciated that the present invention is not limited to the above embodiments, and the above embodiments and description only describe this
The principle of invention, without departing from the spirit and scope of the present invention, various changes and modifications of the present invention are possible, these changes
Change and improvement all fall within the protetion scope of the claimed invention.The claimed scope of the invention by appended claims and its
Equivalent thereof.