CN109426607A - Method for testing software, device and rail vehicle - Google Patents
Method for testing software, device and rail vehicle Download PDFInfo
- Publication number
- CN109426607A CN109426607A CN201710736305.2A CN201710736305A CN109426607A CN 109426607 A CN109426607 A CN 109426607A CN 201710736305 A CN201710736305 A CN 201710736305A CN 109426607 A CN109426607 A CN 109426607A
- Authority
- CN
- China
- Prior art keywords
- module
- current test
- test module
- test
- software
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 55
- 238000012360 testing method Methods 0.000 claims abstract description 296
- 238000012545 processing Methods 0.000 claims abstract description 21
- 238000002347 injection Methods 0.000 claims description 14
- 239000007924 injection Substances 0.000 claims description 14
- 238000013522 software testing Methods 0.000 claims description 12
- 230000007613 environmental effect Effects 0.000 claims description 11
- 238000004891 communication Methods 0.000 claims description 10
- 238000004590 computer program Methods 0.000 claims description 3
- 230000002159 abnormal effect Effects 0.000 abstract description 25
- 230000006870 function Effects 0.000 description 14
- 230000008569 process Effects 0.000 description 10
- 238000010586 diagram Methods 0.000 description 5
- 238000005516 engineering process Methods 0.000 description 3
- 230000008901 benefit Effects 0.000 description 2
- 230000008859 change Effects 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 239000000463 material Substances 0.000 description 1
- 238000011112 process operation Methods 0.000 description 1
- 238000004088 simulation Methods 0.000 description 1
- 239000000243 solution Substances 0.000 description 1
- 238000012549 training Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Prevention of errors by analysis, debugging or testing of software
- G06F11/3668—Testing of software
- G06F11/3672—Test management
- G06F11/3688—Test 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 proposes a kind of method for testing software, device and rail vehicle, wherein method includes: in software test procedure, obtain test script corresponding with current test module, wherein include the operation data under current test module exception scene in test script;Using test script, fault data is injected in the test module of Xiang Dangqian;According to operation result of the current test module under fault data, the fault-tolerant processing ability of current test module is determined.This method inputs the operation data under abnormal scene by test script to current test module, it realizes to test of the software under abnormal scene in current test module, so that the range to software test is more extensive, more comprehensively, the practicability and reliability of software are improved, the user experience is improved.
Description
Technical field
The present invention relates to technical field of vehicle more particularly to a kind of method for testing software, device and rail vehicle.
Background technique
It is soft with extensive use of the technologies such as computer, communications electronics and automatic control in train operation control system
Part becomes the important component of train operation control system.However, in actual use, software can be because of the function carried
Factors, the Yi Fasheng logic error such as energy and complexity threaten train operating safety.Therefore, in order to guarantee the peace of train operation
Entirely, it needs to test the software on train, to guarantee the reliability of software function logic.
It in the related art, is all runs software after setting test content mostly, and defeated to the test mode of software
Enter the data in software normal range (NR) to obtain software operation result.If obtaining the corresponding operation result of input data, really
It is normal to determine software function logic, if being unable to get input data corresponds to operation result, it is determined that software function logic is abnormal, from
To software modify debugging etc. operation.
Although the test to software may be implemented in aforesaid way, test scope has certain limitation, causes soft
The practicability and reliability of part be not strong.
Summary of the invention
The present invention is directed to solve at least some of the technical problems in related technologies.
For this purpose, the first purpose of this invention is to propose a kind of method for testing software.This method by test script to
Current test module inputs the operation data under abnormal scene, realizes to software in current test module under abnormal scene
Test more comprehensively, improve the practicability and reliability of software so that the range to software test is more extensive, improve use
Family experience.
Second object of the present invention is to propose a kind of software testing device.
Third object of the present invention is to propose a kind of rail vehicle.
Fourth object of the present invention is to propose a kind of computer readable storage medium.
In order to achieve the above object, first aspect present invention embodiment proposes a kind of method for testing software, the software test side
Method includes:
In software test procedure, test script corresponding with current test module is obtained, wherein the test script
In include the current test module exception scene under operation data;
Using the test script, fault data is injected into the current test module;
According to operation result of the current test module under the fault data, the current test mould is determined
The fault-tolerant processing ability of block.
It in method for testing software provided in this embodiment, carries out in test process, first obtains and current survey to software
The corresponding test script of die trial block, and the test script obtained is utilized, injection fault data is in the test module of Xiang Dangqian to obtain
To corresponding operation result, then the operation result according to current test module under fault data, determines current test mould
The fault-tolerant processing ability of block.The operation data under abnormal scene is inputted to current test module by test script as a result, it is real
Show to test of the software under abnormal scene in current test module, so that the range to software test is more extensive, more comprehensively,
The practicability and reliability of software are improved, the user experience is improved.
In addition, the method for testing software that the above embodiment of the present invention proposes can also have the following additional technical features:
In one embodiment of the invention, it before acquisition test script corresponding with current test module, also wraps
It includes:
Determine the operation data range under the normal scene of current test module;
Based under the normal scene pairs of operation data range, test corresponding with the current test module is generated
Script.
In another embodiment of the present invention, in the test script, further includes: the current test module is normal
Operation data under scene;
The method, further includes:
Using the test script, the operation data under normal scene is injected into the current test module;
According to operation result of the current test module under the operation data under the normal scene, determine described in
Whether the performance of current test module is normal.
It in another embodiment of the present invention, further include ring corresponding with current test module in the test script
Border parameter;
It is described to be injected before fault data into the current test module, further includes:
Based on the environmental parameter, the running environment of the test module is simulated.
In order to achieve the above object, second aspect of the present invention embodiment proposes a kind of software testing device, which includes:
First obtains module, for obtaining test script corresponding with current test module in software test procedure,
Wherein, including the operation data under the current test module exception scene in the test script;
First injection module injects fault data into the current test module for utilizing the test script;
First determining module, for the operation result according to the current test module under the fault data, really
The fault-tolerant processing ability of the fixed current test module.
It in software testing device provided in this embodiment, carries out in test process, first obtains and current test to software
The corresponding test script of module, and the test script obtained is utilized, fault data is injected in the test module of Xiang Dangqian to obtain
Corresponding operation result, then the operation result according to current test module under fault data, determines current test module
Fault-tolerant processing ability.The operation data under abnormal scene is inputted to current test module by test script as a result, is realized
Test of the software under abnormal scene in current test module more comprehensively, mentioned so that the range to software test is more extensive
The high practicability and reliability of software, the user experience is improved.
In addition, the software testing device that the above embodiment of the present invention proposes can also have the following additional technical features:
In one embodiment of the invention, before described first obtains module, further includes:
Second determining module, for determining the operation data range under the normal scene of current test module;
Generation module generates and the current test for the operation data range based under the normal scene pairs
The corresponding test script of module.
In another embodiment of the present invention, in the test script, further includes: the current test module is normal
Operation data under scene;
Described device, further includes:
Second injection module injects normal scene into the current test module for utilizing the test script
Under operation data;
Third determining module, for according to the current test module under the operation data under the normal scene
Operation result determines whether the performance of the current test module is normal.
It in another embodiment of the present invention, further include ring corresponding with current test module in the test script
Border parameter;
Before first injection module, further includes:
Based on the environmental parameter, the running environment of the test module is simulated.
In order to achieve the above object, third aspect present invention embodiment proposes a kind of rail vehicle, comprising: memory, processing
Device and communication port;
The communication port, for realizing the data communication of equipment room;
The memory, for storing executable program code;
The processor, running for reading the executable program code stored in the memory can be performed with described
The corresponding program of program code, for realizing the method for testing software as described in any in claim 1-4.
It in rail vehicle provided in this embodiment, carries out in test process to software, first obtains and current test module
Corresponding test script, and the test script obtained is utilized, fault data is injected in the test module of Xiang Dangqian to be corresponded to
Operation result, then the operation result according to current test module under fault data, determines the appearance of current test module
Wrong processing capacity.The operation data under abnormal scene is inputted to current test module by test script as a result, is realized pair
Test of the software under abnormal scene more comprehensively, improves so that the range to software test is more extensive in current test module
The practicability and reliability of software, the user experience is improved.
In order to achieve the above object, fourth aspect present invention embodiment proposes a kind of computer readable storage medium, deposit thereon
Computer program is contained, method for testing software described in first aspect embodiment is realized when which is executed by processor.
The additional aspect of the present invention and advantage will be set forth in part in the description, and will partially become from the following description
Obviously, or practice through the invention is recognized.
Detailed description of the invention
Above-mentioned and/or additional aspect and advantage of the invention will become from the following description of the accompanying drawings of embodiments
Obviously and it is readily appreciated that, in which:
Fig. 1 is the flow chart of the method for testing software of one embodiment of the invention;
Fig. 2 is the flow chart of the method for testing software of another embodiment of the present invention;
Fig. 3 is the structural schematic diagram of the software testing device of one embodiment of the invention;
Fig. 4 is the structural schematic diagram of the software testing device of another embodiment of the present invention;
Fig. 5 is the structural schematic diagram of the rail vehicle of one embodiment of the invention.
Specific embodiment
The embodiment of the present invention is described below in detail, examples of the embodiments are shown in the accompanying drawings, wherein from beginning to end
Same or similar label indicates same or similar element or element with the same or similar functions.Below with reference to attached
The embodiment of figure description is exemplary, it is intended to is used to explain the present invention, and is not considered as limiting the invention.
It is existing because test scope has when testing the software on train present invention is generally directed in the prior art
Limit, so that the not very practical problem of software, proposes a kind of method for testing software.
Method for testing software proposed by the present invention is obtained and current test mould by carrying out in test process to software
The corresponding test script of block, wherein test script includes the operation data under current test module exception scene, and utilizes and obtain
The test script taken injects fault data in the test module of Xiang Dangqian, then according to current test module under fault data
Operation result, determine the fault-tolerant ability of current test module.It is inputted as a result, by test script to current test module different
Operation data under normal scene, realizes to test of the software under abnormal scene in current test module, so that surveying to software
The range of examination is more extensive, more comprehensively, improves the practicability and reliability of software, the user experience is improved.
It should be noted that in practical applications, usually with the module of a variety of different function, Mei Gemo in software program
Block is respectively used to realize different functions.
Wherein, in the embodiment of the present application, it is mainly specifically described by taking the test process to any one module as an example.
Method for testing software provided in an embodiment of the present invention is described in detail with reference to the accompanying drawing.
Fig. 1 is the flow chart of the method for testing software of one embodiment of the invention.
As described in Figure 1, which may comprise steps of:
Step 101, in software test procedure, test script corresponding with current test module is obtained, wherein test
It include the operation data under current test module exception scene in script.
Specifically, method for testing software provided in this embodiment, can be executed with software testing device provided by the present invention,
The device can be configured in rail vehicle, and current test module is controlled or managed to realize.
When specific implementation, test script can be generated by test script create-rule according to test case and test variable;
Alternatively, the modes such as the test script that external equipment is sent are received, to obtain the corresponding test script of current test module, this Shen
Please this is not particularly limited.
Step 102, using test script, fault data is injected in the test module of Xiang Dangqian.
Specifically, test script can be analyzed after getting test script corresponding with current test module,
To obtain operation data of the current test module under abnormal scene.
Wherein, current test module may include fault data in the operation data under abnormal scene, fault message and
The information such as the result after handling fault message, the application do not limit this.
In turn, current test module is injected into current test module in the fault data under abnormal scene, to realize
The purpose that current test module is tested.
Step 103, the operation result according to current test module under fault data determines current test module
Fault-tolerant processing ability.
Wherein, when fault-tolerant processing ability refers to software operation, the run-time error as caused by improper factor can be provided
Processing appropriate or information alert terminate software normal operation.
Specifically, if current test module obtains corresponding fault message and to failure according to the fault data of injection
Information carries out respective handling, then shows that current test module has fault-tolerant ability;If current test module is according to injection
Fault data cannot obtain corresponding fault message and situations such as executing failure even occur, then show current test module not
With fault-tolerant ability.
For example, the input variable of current test module can only assignment 0 or 1 obtain change as input variable a=0
Measure b=1;As input variable a=1, variable b ≠ 1 is obtained;If so input a=-1 to current test module, current
B in test module judges that a is illegal value, then obtains corresponding as a result, and issuing prompt by a=-1 guiding fault-tolerant processing
And alarm, then illustrate that the test module has fault-tolerant ability.
It in method for testing software provided in this embodiment, carries out in test process, first obtains and current test to software
The corresponding test script of module, and the test script obtained is utilized, fault data is injected in the test module of Xiang Dangqian to obtain
Corresponding operation result, then the operation result according to current test module under fault data, determines current test module
Fault-tolerant processing ability.The operation data under abnormal scene is inputted to current test module by test script as a result, is realized
Test of the software under abnormal scene in current test module more comprehensively, mentioned so that the range to software test is more extensive
The high practicability and reliability of software, the user experience is improved.
Fig. 2 is the flow chart of the method for testing software of another embodiment of the invention.
As shown in Fig. 2, the method for testing software may include following steps:
Step 201, in software test procedure, the operation data range under the normal scene of current test module is determined.
For example, if current test module is rate control module, then rate control module is under normal scene
Corresponding operation data range can be 0~80 per hour/km (h/km).If detecting the operation number of rate control module
According to being more than 0~80h/km, then it represents that present speed control module is in abnormal scene.
It is understood that the operation data under the normal scene of test module current in the present embodiment, main foundation
Current test module realization of functions determines.I.e. operation data range is not yet under normal scene for the test module of different function
It is identical.
Step 202, based under normal scene pairs of operation data range, test corresponding with current test module is generated
Script, wherein in test script include current test module exception scene under operation data and current test module just
Operation data under normal scene.
Wherein, test corresponding with current test module is generated using automatic script create-rule in the present embodiment
Script, or generated by programming language programming, the application is without limitation.
Step 203, using test script, fault data is injected in the test module of Xiang Dangqian.
Step 204, the operation result according to current test module under fault data determines current test module
Fault-tolerant processing ability.
Step 205, using test script, the operation data under normal scene is injected in the test module of Xiang Dangqian.
Specifically, getting operation of the current test module under normal scene by analyzing test script
Data, and the operation data that will acquire is injected into current test module, carries out function to current test module to realize
It can logic testing.
Wherein, current test module may include normal data and to normal data in the operation data under normal scene
The information such as the processing result after being handled, the application do not limit this.
Step 206, the operation result according to current test module under the operation data under normal scene determines current
Test module performance it is whether normal.
Specifically, if current test module obtains corresponding normal processing result, then table according to the operation data of injection
Bright current test module performance is normal, otherwise abnormal.
For example, corresponding obtained operation result is b if the operation data inputted to current test module is a=0
=1, then show that current test module performance is normal, it is otherwise abnormal.
Or if the operation data inputted to current test module is a=1, corresponding obtained operation result be b ≠
1, then show that current test module performance is normal, it is otherwise abnormal.
It should be noted that in the present embodiment, step 203-204 and step 205-206's executes sequence, can be elder generation
Step 203-204 is executed, then executes step 205-206;Or step 205-206 is first carried out, then execute step 203-304, this
Application is not particularly limited this.
Further, in another embodiment of the application, further include in test script and current test module pair
The environmental parameter answered.
Therefore, before executing step 203, this method further include: be based on environmental parameter, the operation ring of simulation testing module
Border.
Specifically, being simulated to realize to test of the current test module under different running environment, the application
Embodiment is by obtaining current test module local environment, to simulate fortune of the current test module under different running environment
Market condition.
Wherein, environmental parameter can be current test module and be presently in temperature, humidity, signal interference etc., this Shen
It please not limit this.
Software side method provided in this embodiment is carrying out software to pass through the current test mould of determination in test process
Operation data range under the normal scene of block generates test script, and is held according to test script to current test module
The test of fault reason and normal software test.Hereby it is achieved that test of the software under different scenes in current test module,
So that the range to software test is more extensive, more comprehensively, improve the practicability and reliability of software, further satisfaction user
Demand, the user experience is improved.
In order to realize above-described embodiment, the invention also provides a kind of software testing devices.
Fig. 3 is the structural schematic diagram of the software testing device of one embodiment of the invention.
As shown in figure 3, the software testing device includes: the first acquisition module 10, the first injection module 11 and the first determination
Module 12.
Wherein, first module 10 is obtained for obtaining survey corresponding with current test module in software test procedure
Training sheet, wherein include the operation data under the current test module exception scene in the test script;
First injection module 11 is used to utilize the test script, injects number of faults into the current test module
According to;
First determining module 12 is for the operation result according to the current test module under the fault data, really
The fault-tolerant processing ability of the fixed current test module.
Further, as shown in figure 4, in another embodiment of the present invention, before first obtains module 10, the dress
It sets further include:
Second determining module 13 is used to determine the operation data range under the normal scene of current test module;
Generation module 14 is used for the operation data range based under the normal scene pairs, generates and the current test
The corresponding test script of module.
In another embodiment of the present invention, in the test script, further includes: the current test module is normal
Operation data under scene;
Described device, further includes:
Second injection module injects normal scene into the current test module for utilizing the test script
Under operation data;
Third determining module, for according to the current test module under the operation data under the normal scene
Operation result determines whether the performance of the current test module is normal.
Further, in another embodiment of the present invention, further include in the test script and current test mould
The corresponding environmental parameter of block;
Before first injection module, further includes:
Based on the environmental parameter, the running environment of the test module is simulated.
It should be noted that the aforementioned software for being also applied for the embodiment to the explanation of method for testing software embodiment
Test device, realization principle is similar, and details are not described herein again.
It in software testing device provided in this embodiment, carries out in test process, first obtains and current test to software
The corresponding test script of module, and the test script obtained is utilized, fault data is injected in the test module of Xiang Dangqian to obtain
Corresponding operation result, then the operation result according to current test module under fault data, determines current test module
Fault-tolerant processing ability.The operation data under abnormal scene is inputted to current test module by test script as a result, is realized
Test of the software under abnormal scene in current test module more comprehensively, mentioned so that the range to software test is more extensive
The high practicability and reliability of software, the user experience is improved.
In order to realize above-described embodiment, the present invention also proposes a kind of rail vehicle.
Fig. 5 is the structural schematic diagram of the rail vehicle of one embodiment of the invention.
Referring to Fig. 5, which includes memory 110, processor 111 and communication port 112;
The communication port 110 for realizing equipment room data communication;
The memory 111 is for storing executable program code;
The processor 112 is held to run with described for reading the executable program code stored in the memory
The corresponding program of line program code, for realizing method for testing software described in first aspect embodiment.
It should be noted that the aforementioned track for being also applied for the embodiment to the explanation of method for testing software embodiment
Vehicle, realization principle is similar, and details are not described herein again.
It in rail vehicle provided in this embodiment, carries out in test process to software, first obtains and current test module
Corresponding test script, and the test script obtained is utilized, fault data is injected in the test module of Xiang Dangqian to be corresponded to
Operation result, then the operation result according to current test module under fault data, determines the appearance of current test module
Wrong processing capacity.The operation data under abnormal scene is inputted to current test module by test script as a result, is realized pair
Test of the software under abnormal scene more comprehensively, improves so that the range to software test is more extensive in current test module
The practicability and reliability of software, the user experience is improved.
In order to realize above-described embodiment, the invention also provides a kind of computer readable storage mediums.
The computer readable storage medium, is stored thereon with computer program, which realizes when being executed by processor
The method for testing software of one side embodiment.Wherein the method for testing software includes: and obtains and current in software test procedure
The corresponding test script of test module, wherein in the test script include the current test module exception scene under
Operation data;Using the test script, fault data is injected into the current test module;According to described current
Operation result of the test module under the fault data determines the fault-tolerant processing ability of the current test module.
In the present invention unless specifically defined or limited otherwise, the terms such as term " setting ", " connection " should do broad sense reason
Solution, for example, it may be mechanical connection, is also possible to be electrically connected;It can be directly connected, the indirect phase of intermediary can also be passed through
Even, the connection inside two elements or the interaction relationship of two elements be can be, unless otherwise restricted clearly.For this
For the those of ordinary skill in field, the specific meanings of the above terms in the present invention can be understood according to specific conditions.
In the description of this specification, reference term " one embodiment ", " some embodiments ", " example ", " specifically show
The description of example " or " some examples " etc. means specific features, structure, material or spy described in conjunction with this embodiment or example
Point is included at least one embodiment or example of the invention.
In addition, term " first ", " second " are used for descriptive purposes only and cannot be understood as indicating or suggesting relative importance
Or implicitly indicate the quantity of indicated technical characteristic.Define " first " as a result, the feature of " second " can be expressed or
Implicitly include at least one this feature.
Any process described otherwise above or method description are construed as in flow chart or herein, and expression includes
It is one or more for realizing specific logical function or process the step of executable instruction code module, segment or portion
Point, and the range of the preferred embodiment of the present invention includes other realization, wherein can not press shown or discussed suitable
Sequence, including according to related function by it is basic simultaneously in the way of or in the opposite order, Lai Zhihang function, this should be of the invention
Embodiment person of ordinary skill in the field understood.
It should be appreciated that each section of the invention can be realized with hardware, software, firmware or their combination.Above-mentioned
In embodiment, software that multiple steps or method can be executed in memory and by suitable instruction execution system with storage
Or firmware is realized.It, and in another embodiment, can be under well known in the art for example, if realized with hardware
Any one of column technology or their combination are realized: having a logic gates for realizing logic function to data-signal
Discrete logic, with suitable combinational logic gate circuit specific integrated circuit, programmable gate array (PGA), scene
Programmable gate array (FPGA) etc..
Those skilled in the art are understood that realize all or part of step that above-described embodiment method carries
It suddenly is that relevant hardware can be instructed to complete by program, the program can store in a kind of computer-readable storage medium
In matter, which when being executed, includes the steps that one or a combination set of embodiment of the method.
Storage medium mentioned above can be read-only memory, disk or CD etc..Although having been shown and retouching above
The embodiment of the present invention is stated, it is to be understood that above-described embodiment is exemplary, and should not be understood as to limit of the invention
System, those skilled in the art can be changed above-described embodiment, modify, replace and become within the scope of the invention
Type.
Claims (10)
1. a kind of method for testing software characterized by comprising
In software test procedure, test script corresponding with current test module is obtained, wherein wrap in the test script
Include the operation data under the current test module exception scene;
Using the test script, fault data is injected into the current test module;
According to operation result of the current test module under the fault data, the current test module is determined
Fault-tolerant processing ability.
2. the method as described in claim 1, which is characterized in that described to obtain test script corresponding with current test module
Before, further includes:
Determine the operation data range under the normal scene of current test module;
Based under the normal scene pairs of operation data range, test foot corresponding with the current test module is generated
This.
3. the method as described in claim 1, which is characterized in that in the test script, further includes: the current test mould
Operation data under the normal scene of block;
The method, further includes:
Using the test script, the operation data under normal scene is injected into the current test module;
According to operation result of the current test module under the operation data under the normal scene, determine described current
Test module performance it is whether normal.
4. method a method according to any one of claims 1-3, which is characterized in that further include in the test script and current test
The corresponding environmental parameter of module;
It is described to be injected before fault data into the current test module, further includes:
Based on the environmental parameter, the running environment of the test module is simulated.
5. a kind of software testing device characterized by comprising
First obtains module, for obtaining test script corresponding with current test module in software test procedure,
In, it include the operation data under the current test module exception scene in the test script;
First injection module injects fault data into the current test module for utilizing the test script;
First determining module determines institute for the operation result according to the current test module under the fault data
State the fault-tolerant processing ability of current test module.
6. device as claimed in claim 5, which is characterized in that before described first obtains module, further includes:
Second determining module, for determining the operation data range under the normal scene of current test module;
Generation module generates and the current test module for the operation data range based under the normal scene pairs
Corresponding test script.
7. device as claimed in claim 5, which is characterized in that in the test script, further includes: the current test mould
Operation data under the normal scene of block;
Described device, further includes:
Second injection module injects under normal scene for utilizing the test script into the current test module
Operation data;
Third determining module, for the operation according to the current test module under the operation data under the normal scene
As a result, determining whether the performance of the current test module is normal.
8. the device as described in claim 5-7 is any, which is characterized in that further include in the test script and current test
The corresponding environmental parameter of module;
Before first injection module, further includes:
Based on the environmental parameter, the running environment of the test module is simulated.
9. a kind of rail vehicle characterized by comprising memory, processor and communication port;
The communication port, for realizing the data communication of equipment room;
The memory, for storing executable program code;
The processor is run and the executable program for reading the executable program code stored in the memory
The corresponding program of code, for realizing the method for testing software as described in any in claim 1-4.
10. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the program is by processor
The method for testing software as described in any in claim 1-4 is realized when execution.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710736305.2A CN109426607A (en) | 2017-08-24 | 2017-08-24 | Method for testing software, device and rail vehicle |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710736305.2A CN109426607A (en) | 2017-08-24 | 2017-08-24 | Method for testing software, device and rail vehicle |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109426607A true CN109426607A (en) | 2019-03-05 |
Family
ID=65501087
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710736305.2A Pending CN109426607A (en) | 2017-08-24 | 2017-08-24 | Method for testing software, device and rail vehicle |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109426607A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111008149A (en) * | 2019-12-20 | 2020-04-14 | 广州品唯软件有限公司 | Software testing method, software testing device and medium |
CN111459816A (en) * | 2020-03-31 | 2020-07-28 | 北京百度网讯科技有限公司 | Fault injection test method, device, system and storage medium |
CN111865719A (en) * | 2020-07-17 | 2020-10-30 | 苏州浪潮智能科技有限公司 | Automatic testing method and device for fault injection of switch |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101025619A (en) * | 2007-03-30 | 2007-08-29 | 株洲南车时代电气股份有限公司 | Portable monitoring device software testing method and instrumention |
CN102662828A (en) * | 2012-03-14 | 2012-09-12 | 浪潮(北京)电子信息产业有限公司 | A method and device for achieving software automatic testing |
US20150254169A1 (en) * | 2014-03-07 | 2015-09-10 | TestPlant Europe Ltd. | Method and system for creating reference data |
CN105468503A (en) * | 2014-08-06 | 2016-04-06 | 腾讯科技(深圳)有限公司 | Software test method and device |
-
2017
- 2017-08-24 CN CN201710736305.2A patent/CN109426607A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101025619A (en) * | 2007-03-30 | 2007-08-29 | 株洲南车时代电气股份有限公司 | Portable monitoring device software testing method and instrumention |
CN102662828A (en) * | 2012-03-14 | 2012-09-12 | 浪潮(北京)电子信息产业有限公司 | A method and device for achieving software automatic testing |
US20150254169A1 (en) * | 2014-03-07 | 2015-09-10 | TestPlant Europe Ltd. | Method and system for creating reference data |
CN105468503A (en) * | 2014-08-06 | 2016-04-06 | 腾讯科技(深圳)有限公司 | Software test method and device |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111008149A (en) * | 2019-12-20 | 2020-04-14 | 广州品唯软件有限公司 | Software testing method, software testing device and medium |
CN111008149B (en) * | 2019-12-20 | 2023-08-22 | 广州品唯软件有限公司 | Software testing method, software testing device and medium |
CN111459816A (en) * | 2020-03-31 | 2020-07-28 | 北京百度网讯科技有限公司 | Fault injection test method, device, system and storage medium |
CN111459816B (en) * | 2020-03-31 | 2023-11-14 | 北京百度网讯科技有限公司 | Fault injection testing method, device, system and storage medium |
CN111865719A (en) * | 2020-07-17 | 2020-10-30 | 苏州浪潮智能科技有限公司 | Automatic testing method and device for fault injection of switch |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8225142B2 (en) | Method and system for tracepoint-based fault diagnosis and recovery | |
CN107995283A (en) | A kind of data bury the method, equipment and system of point analysis | |
CN107707986B (en) | A kind of method and device for simulating barrage message in the exploitation of live streaming software | |
CN109358606A (en) | Vehicle automatization test system, test method and device | |
CN104731701B (en) | Test system and the method and apparatus for performing test assignment | |
CN109426607A (en) | Method for testing software, device and rail vehicle | |
US20180024833A1 (en) | Processor testing | |
CN112286828B (en) | Testing method and system for intelligent contracts of block chains | |
CN107608291A (en) | A kind of intelligent substation application function linkage rule verification method and system | |
CN105975373A (en) | Running monitoring method and apparatus for software program | |
CN109283913A (en) | Vehicle diagnostics training method, device, diagnostic equipment and medium based on mobile terminal | |
CN108763039B (en) | Service fault simulation method, device and equipment | |
CN109299012A (en) | A kind of test method, device and electronic equipment | |
CN114647572A (en) | Method and system for software application component testing | |
CN109460366A (en) | A kind of software stability test method, device, equipment and medium | |
CN113127331A (en) | Fault injection-based test method and device and computer equipment | |
CN108874658A (en) | A kind of sandbox analysis method, device, electronic equipment and storage medium | |
CN111044826B (en) | Detection method and detection system | |
CN102567174B (en) | Microprocessor operation monitoring system | |
CN109375606A (en) | A kind of algorithm library test method | |
CN115061450A (en) | Flash test method, device and equipment for vehicle-mounted controller and storage medium | |
CN114338451A (en) | Controller local area network bus test system, method and storage medium | |
US10296449B2 (en) | Recording an application test | |
Na et al. | Simulated fault injection using simulator modification technique | |
CN107167675A (en) | A kind of ageing testing method and device of CANBus terminals |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190305 |