CN111142497A - Test system and method for vehicle-mounted application software - Google Patents

Test system and method for vehicle-mounted application software Download PDF

Info

Publication number
CN111142497A
CN111142497A CN201811299905.8A CN201811299905A CN111142497A CN 111142497 A CN111142497 A CN 111142497A CN 201811299905 A CN201811299905 A CN 201811299905A CN 111142497 A CN111142497 A CN 111142497A
Authority
CN
China
Prior art keywords
test
simulation model
vehicle
simulating
test piece
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
CN201811299905.8A
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.)
Zhuzhou CRRC Times Electric Co Ltd
Original Assignee
Zhuzhou CRRC Times Electric 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 Zhuzhou CRRC Times Electric Co Ltd filed Critical Zhuzhou CRRC Times Electric Co Ltd
Priority to CN201811299905.8A priority Critical patent/CN111142497A/en
Publication of CN111142497A publication Critical patent/CN111142497A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B23/00Testing or monitoring of control systems or parts thereof
    • G05B23/02Electric testing or monitoring
    • G05B23/0205Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults
    • G05B23/0259Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults characterized by the response to fault detection
    • G05B23/0267Fault communication, e.g. human machine interface [HMI]
    • G05B23/027Alarm generation, e.g. communication protocol; Forms of alarm

Landscapes

  • Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Automation & Control Theory (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention discloses a system and a method for testing vehicle-mounted application software, wherein the system comprises: the upper computer is used for determining a test scheme according to a test piece and a test purpose, wherein the test scheme comprises at least two test cases and a test sequence of each test case, the test piece is controlled by the input and output module to execute the test cases based on the test scheme, and whether the test passes or not is judged based on a test result of the test piece, and the test piece comprises the vehicle-mounted application software; and the input and output module is connected with the upper computer and the test piece and is used for data communication and network conversion between the upper computer and the test piece. The test system of the vehicle-mounted application software can carry out ground joint debugging on the existing or to-be-used train network and matched electronic equipment and carry out ground interface test on other matched electronic equipment controlled by the network system and the network so as to meet the requirements of trial-manufacture research and mass production delivery test of trains.

Description

Test system and method for vehicle-mounted application software
Technical Field
The invention relates to the field of application software testing, in particular to a system and a method for testing vehicle-mounted application software.
Background
Software testing is an important means for software quality assurance, and the test work of vehicle-mounted application software is generally divided into a laboratory test part and a field debugging part, and the field debugging and the verification can be carried out only by the laboratory test. Therefore, laboratory tests are key links, and tests performed in laboratories are mainly performed at a single software level or a single component level at present due to limited sites, inexhaustible hardware and the like. In reality, due to the lack of corresponding testing environments and methods, multi-component joint testing has not been performed, which brings a great risk to the running quality of vehicle products.
Disclosure of Invention
In view of this, the present invention provides a system and a method for testing vehicle-mounted application software.
The invention provides a test system of vehicle-mounted application software based on the above purpose, which comprises:
the upper computer is used for determining a test scheme according to a test piece and a test purpose, wherein the test scheme comprises at least two test cases and a test sequence of each test case, the test piece is controlled by an input/output module to execute the test cases based on the test scheme, and whether the test passes or not is judged based on a test result of the test piece, and the test piece comprises the vehicle-mounted application software;
the input and output module is connected with the upper computer and the test piece and used for data communication and network conversion between the upper computer and the test piece.
In one embodiment, the upper computer includes:
a device simulation model for simulating the function of networked device software of the vehicle;
the environment simulation model is used for simulating and simulating the power grid environment and the operating environment of the vehicle;
the test management unit is used for determining the test scheme according to the test piece and the test purpose, importing a network communication protocol corresponding to the test case from a pre-stored network communication protocol, scheduling the equipment simulation model and/or the environment simulation model corresponding to the test case, controlling the test execution unit to execute the test, and receiving a test result returned by the test execution unit;
the test execution unit is used for operating the equipment simulation model and the environment simulation model scheduled by the test management unit based on the control of the test management unit, testing the test piece through the input and output module, generating a test log according to the test data, and sending the test log as a test result to the test management unit.
In one embodiment, the upper computer further includes:
the image identification unit is used for acquiring a test running image and performing one or more of primitive identification, character identification and color identification on the image;
the test management unit is also used for scheduling the image identification unit;
the test execution unit is further used for operating the image identification unit, comparing the identification information of the image identification unit with pre-stored reference information, and judging whether the test is passed according to the comparison result.
In an embodiment, the test management unit is further configured to generate a test report based on the test result fed back by the test execution unit, where the test report includes: and testing results and test evaluation conclusions of the test cases.
In one embodiment, the device simulation model includes any one or more of:
the system comprises a traction control system simulation model, a fault diagnosis model and a fault diagnosis model, wherein the traction control system simulation model is used for simulating the braking function and the fault diagnosis function of traction control system software of a simulated vehicle;
the simulation model of the brake control system is used for simulating the brake function and the fault diagnosis function of the brake control system software of the simulated vehicle;
the air conditioning system simulation model is used for simulating the function of air conditioning system software of the vehicle;
the door system simulation model is used for simulating the functions of door system software of the vehicle;
the passenger information system simulation model is used for simulating the functions of passenger information system software of a simulated vehicle;
the auxiliary variable flow control system simulation model is used for simulating the functions of auxiliary variable flow control system software of the vehicle;
the simulation model of the smoke and fire alarm system is used for simulating the in-vehicle fire detection and alarm functions of smoke and fire alarm system software of a simulated vehicle;
and the network control system simulation model is used for simulating the functions of a central control unit of network control system software of the vehicle.
In one embodiment, the environmental simulation model includes any one or more of:
the power grid simulation model is used for simulating the power grid environment of the vehicle circuit;
the motion and wheel-rail simulation model is used for simulating the running state of a vehicle and the dynamic state of the motion of a running gear wheel pair on a rail;
and the driver console and train hard line simulation model is used for simulating the driver console operation and the hard line instruction function of the simulated vehicle.
In one embodiment, the input-output module includes:
the communication conversion unit is used for executing the conversion between a vehicle-mounted network and the network of the test piece when the upper computer is communicated with the test piece;
and the power supply unit is connected with the test piece and the communication conversion unit and is used for supplying power to the test piece.
The embodiment of the invention also provides a test method of the vehicle-mounted application software, which is executed by the system, and the method comprises the following steps:
determining a test scheme according to a test piece and a test purpose, wherein the test scheme comprises at least two test cases and a test sequence of each test case, and the test piece comprises vehicle-mounted application software;
controlling the test piece to execute the test case according to the test sequence;
and judging whether the test passes or not based on the test result of the test piece.
In an embodiment, the controlling the test part to execute the test case according to the test sequence includes:
importing a network communication protocol corresponding to the test case from a pre-stored network communication protocol;
scheduling a device simulation model and/or an environment simulation model corresponding to the use case;
controlling the equipment simulation model and the environment simulation model to carry out data communication with the test piece according to a test scheme;
generating a test log based on the test data of the data communication.
In an embodiment, the method further comprises:
calculating test statistical information based on the test log, wherein the test statistical information comprises a test passing rate;
generating a test report based on the test statistics.
From the above, the test system of the vehicle-mounted application software provided by the invention can carry out ground joint debugging on the existing or to-be-used train network and the matched electronic equipment and carry out ground interface test on other matched electronic equipment controlled by the network system and the network, so as to meet the requirements of train trial-manufacture research and batch production delivery test.
Drawings
Fig. 1 is a schematic structural diagram of a test system for vehicle-mounted application software according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of an apparatus simulation model according to an embodiment of the present invention;
FIG. 3 is a schematic structural diagram of an environmental simulation model according to an embodiment of the present invention;
FIG. 4 is another schematic structural diagram of a test system for vehicle-mounted application software according to an embodiment of the present invention;
FIG. 5 is a flowchart of a method for testing vehicle-mounted application software according to an embodiment of the present invention;
fig. 6 is another schematic structural diagram of a test system for vehicle-mounted application software according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to specific embodiments and the accompanying drawings.
It should be noted that all expressions using "first" and "second" in the embodiments of the present invention are used for distinguishing two entities with the same name but different names or different parameters, and it should be noted that "first" and "second" are merely for convenience of description and should not be construed as limitations of the embodiments of the present invention, and they are not described in any more detail in the following embodiments.
As shown in fig. 1, a schematic structural diagram of a system for testing vehicle-mounted application software according to an embodiment of the present invention is provided, and the system is applied to testing vehicle-mounted logic control application software in the field of rail transit, where the application software is embedded software and runs by using a device entity of a vehicle. In this embodiment, the application software to be tested is referred to as a piece 30 to be tested, and the system may include: the system comprises an upper computer 10 and an input/output module 20 connected with the upper computer 10, wherein the input/output module 20 of the system is connected with a test piece 30 of a vehicle, and the vehicle can be a train.
The upper computer 10 provides a plurality of device simulation models and environment simulation models, and is configured to determine corresponding test solutions according to differences of the test pieces 30, control the test pieces 30 to execute tests through the input/output module 20 based on the test solutions, and determine whether the tests pass or not based on test data fed back by the test pieces 30.
The upper computer 10 may include: a device simulation model 11, an environment simulation model 12, a test management unit 14, and a test execution unit 15.
And the input and output module 20 is used for data communication and network conversion between the upper computer 10 and the test piece 30. The input-output module 20 includes: a communication conversion unit 21 and a power supply unit 22.
The test piece 30, i.e., the application software under test, may include: the network control system, the transmission control system or the network control system and the related equipment of the vehicle are taken as combined test objects, and can also be the network equipment of the whole vehicle.
Fig. 2 is a schematic structural diagram of an apparatus simulation model according to an embodiment of the present invention; and the equipment simulation model 11 in the upper computer 10 is used for simulating the functions of networking equipment of the simulated vehicle.
The device simulation model 11 may include: a traction control system simulation model 111, a brake control system simulation model 112, an air conditioning system simulation model 113, a door system simulation model 114, a passenger information system simulation model 115, an auxiliary converter control system simulation model 116, a pyrotechnic alarm system simulation model 117, a network control system simulation model 118, and the like.
The traction control system simulation model 111 is used for simulating a braking function and a fault diagnosis function of traction control system software of a simulated vehicle, and includes: the main circuit contactor has the functions of logic control, converter start and stop control, traction braking force characteristic control, fault diagnosis, logic protection and the like.
The brake control system simulation model 112 is used for simulating the brake function and the fault diagnosis function of the brake control system of the simulated vehicle, for example: the brake control system has the functions of air braking, electric braking, parking braking, emergency braking, antiskid control, fault diagnosis and the like.
The air conditioning system simulation model 113 is used for simulating relevant functions of air conditioning system software of the vehicle, such as: the air conditioning system has the functions of refrigeration, heating, ventilation and the like.
A door system simulation model 114 for simulating relevant functions of door system software of the simulated vehicle, such as: the functions of opening and closing the vehicle door, diagnosing and alarming vehicle door faults and the like.
Passenger information system simulation model 115 is used to simulate the relevant functions of the passenger information system software, such as: broadcasting, broadcasting station, video entertainment, fault diagnosis and maintenance, etc.
An auxiliary variable flow control system simulation model 116, configured to simulate relevant functions of the auxiliary variable flow control system software, for example: the control system controls the operation of starting and stopping, load management, isolation or emergency and the like of the converter, and is also used for simulating the operation state of the simulation converter, fault diagnosis, maintenance and other functions.
The simulation model 117 of the smoke and fire alarm system is used for simulating the functions of the smoke and fire alarm system software of the vehicle, such as detection and alarm of the fire in the vehicle.
A network control system simulation model 118 for simulating the relevant functions of a central control unit of a network control system of a simulated vehicle, such as: monitoring of networked devices, bus management, logic control, traction/braking characteristic control, neutral section control, combined braking control, fault diagnosis and maintenance.
Fig. 3 is a schematic structural diagram of an environment simulation model according to an embodiment of the present invention; and the environment simulation model 12 is used for simulating the power grid environment and the operating environment of the vehicle.
The environmental simulation model 12 may include: a power grid simulation model 121, a motion and wheel rail simulation model 122, a driver console and train hard wire simulation model 123 and a whole vehicle circuit simulation model 124.
The grid simulation model 121 is configured to simulate a grid environment of a simulated vehicle line, for example: an AC 25kV electrical line was simulated.
And the motion and wheel-rail simulation model 122 is used for simulating the running state of the vehicle and the dynamic state of the running gear wheel pair moving on the rail.
The driver console and train hard line simulation model 123 is used for simulating functions of driver console operation, hard line instructions and the like of a simulation vehicle, for example: key, lifting bow, closing main and breaking, traction, braking, direction and other hard wire commands.
In this embodiment, different device simulation models 11 and environment simulation models 12 may be selected according to the test piece 30 and the test purpose, for example: when the test piece 30 is network control system software of a vehicle and the test purpose is to test the logic function of the network control system, all simulation models in the device simulation model 11 and the power grid simulation model 121 and the control console and train hard line simulation model 123 in the environment simulation model 12 may be selected. For another example, when the test piece 30 is traction control system software and the test is intended to test the logic function of application software, since the traction control system generally does not communicate with other on-board devices directly, but communicates indirectly through a network, the device simulation model 11 may select only the network control system simulation model 118, and the environment simulation model 12 may select the grid simulation model 121.
In an embodiment, the test management unit 14 in the upper computer 10 is configured to determine a test scheme according to different test pieces and test purposes, where the test scheme includes at least two test cases and a test sequence of each test case, import a network communication protocol corresponding to a test case from a pre-stored network communication protocol according to the test scheme, schedule the device simulation model 11 and/or the environment simulation model 12 corresponding to the test case, control the test execution unit 15 to execute a test, and receive a test result of the test execution unit 15. The test sequence is the execution sequence of the test cases and is determined by the execution sequence of the actual running of the train. For example, for testing of network control system software, a power grid simulation model and a traction control system simulation model may be selected, and test cases of related functions and sequences such as train initial operation, pantograph control, contactor control and the like are designed. The method includes the steps that a test case is realized based on a network communication protocol, signals defined in the network communication protocol are variable names in the test case, for example, for a traction instruction to apply the test case, corresponding signals in the network communication protocol need to be extracted, then values are assigned to the signals, and the signal values are transmitted, so that a traction instruction applying function is realized.
The test management unit 14 is also used for triggering an alarm when an abnormality occurs; and is also used for counting, evaluating and forming a test report according to the test result fed back by the test execution unit 15. The statistical results may include the following: and scheduling XX use cases in total, passing XX use cases, not executing XX use cases and the like. The test management unit 14 further calculates a test case passing rate, compares the predefined reference test case passing rate with the calculated actual test case passing rate, and if the actual test case passing rate is greater than the predefined reference test case passing rate, evaluates that the test passes. The report content of the finally generated test report may include: the method comprises the following steps of testing objects, testing time, total number statistics of test cases, case statistics of passing tests, case statistics of failing tests, test evaluation conclusion and the like.
The test execution unit 15 is configured to invoke a test case interface based on the trigger control of the test management unit 14, run the device simulation model 11 and the environment simulation model 12 scheduled by the test management unit 14 according to the test scheme determined by the test management unit 14, sequentially execute the test cases by using a modeling method such as a state diagram or a method of embedding a python script, test the test piece 30, obtain the running data of the test piece 30, monitor for test anomalies, generate a test log, and feed back the test log and the running data of the test piece 30 as test results to the test management unit 14.
The data interaction between the test execution unit 15 and the device simulation model 11, the environment simulation model 12 and the tested piece 30 is divided into two cases, in one case, the test execution unit 15 sends the instruction and the data parameter of the device simulation model 11 and/or the environment simulation model 12 to the tested piece 30 through the corresponding protocol interface in the communication conversion unit 21 in real time, so that the tested piece 30 runs based on the received instruction and parameter, and the tested piece 30 feeds back the running data to the test execution unit 15 through the communication conversion unit 21. For example, the data of the door system simulation model 114 is transmitted to the door system device as the test piece 30 through the RS485 interface of the communication conversion unit 21. In another case, for example, the test purpose is to obtain the status data of the test piece 30, such as a speed value, a rotation speed value, etc., the test execution unit 15 obtains the status data of the test piece 30 directly through the communication conversion unit 21.
The test execution unit 15 executes the test on each test case, judges the test result, when the test result is consistent with the expected result, judges the test to be passed, and when the test result is inconsistent with the expected result, judges the test result to be abnormal, executes an abnormal alarm to remind a tester to analyze whether the abnormality is true, continue the next test, or stop the test. And after the test is finished, a test log is generated based on the execution process and the test result of each test case, so that a tester can analyze the test process based on the test result.
As shown in fig. 4, which is another schematic structural diagram of the test system of the vehicle-mounted application software according to the embodiment of the present invention, in this embodiment, the upper computer 10 may further include an image recognition unit 13, configured to capture an image of the test operation in real time, and perform one or more of primitive recognition, character recognition, and color recognition on the captured image.
In the testing process, the image recognition unit 13 captures an image of a test run displayed by a human-computer display interface unit, such as a display, in real time and analyzes the image, the analyzing process includes performing primitive recognition, character recognition and color recognition on the captured image, the analysis result may include primitives, characters and colors of the image, for example, the analysis result may be running data, and then sends the analysis result to the test execution unit 15, the test execution unit 15 compares the recognition result of the image recognition unit 13 with an expected result of the test design (for example, compares the running data with preset reference running data), if the analysis result is consistent with the expected result, the test is determined to be passed, and if the analysis result is inconsistent with the expected result, the test result is determined to be not passed. Without the image recognition unit 13, the test execution unit 15 may directly acquire the operation data of the test and compare the acquired operation data with the reference operation data.
In one embodiment, the test management unit 14 also schedules the image recognition unit 13, and the test execution unit 15 determines whether the test result passes according to the recognition result of the image recognition unit 13.
Specifically, the communication conversion unit 21 of the input/output module 20 is configured to perform conversion between the in-vehicle network and the test object network when the test execution unit 15 communicates with the test object 30. The communication conversion unit 21 supports communication conversion between the ethernet and the vehicle-mounted network, and includes MVB, WTB, TRDP, RS232, RS485, RS422, CAN, Lonworks, and current loop.
The power supply unit 22 is connected with the test device 30 and the communication conversion unit 21 through power output connectors, and is used for supplying power to the test device 30, and can provide multiple groups of adjustable power supplies including DC5V, DC12V, DC24V, DC110V and the like.
By selecting different equipment simulation models, environment simulation models and image recognition units, the designed test cases are different from the executed test cases, and the test of single system software and the combined test of multiple system software can be realized. For example: the test of the network control system software, because of including all networking devices related to the network control logic, needs to choose the simulation model of all networking devices; for the joint test of the network and the traction transmission control system software, because the transmission control system belongs to a real object to be tested, a traction control system simulation unit does not need to be selected; for debugging of the network equipment of the whole train, all the network equipment are the object to be tested, so that a network equipment simulation model does not need to be selected.
The test system of the vehicle-mounted application software provided by the invention can realize ground combined debugging of a train network and matched electronic equipment and ground interface test of other matched electronic equipment controlled by the network system and the network by designing a test scheme through the upper computer and testing a test piece through the input and output module so as to meet the requirements of train trial-manufacture research and batch production delivery test.
As shown in fig. 5, a flowchart of a method for testing vehicle application software according to an embodiment of the present invention is provided, where the method is executed by the system for testing vehicle application software according to the embodiment shown in fig. 4, and the method may include the following steps:
step 101, the upper computer determines a test scheme based on the test piece and the test purpose, wherein the test scheme comprises at least two test cases and a test sequence of each test case.
In this embodiment, the test sequence of the test case is determined based on the actual sequence of train operation.
In this embodiment, as described with reference to fig. 1, the test piece 30 is first connected to the communication conversion unit 21 through the communication signal connector, so as to connect the test piece 30 to the upper computer 10. For example, when the tested device 30 is network control system software, the central control unit of the network control system needs to be connected to the communication conversion unit 21 through an MVB (multifunction vehicle Bus) communication signal connector, so as to connect the tested device 30 (the central control unit of the network control system) to the upper computer 10. And the test piece 30 is connected to the power supply providing unit 22, and the power supply output is adjusted to meet the input power supply requirement of the test piece 30, if the test piece 30 is the traction system equipment software of the vehicle, and the traction system equipment software needs the DC110V power supply, the traction system equipment software is connected with the output end of the DC110V power supply of the power supply providing unit 22, so as to provide the DC110V power supply for the traction system equipment software.
In this step, the test management unit 14 of the upper computer 10 specifically determines the test scenario based on the test piece and the test purpose.
And 102, controlling the test piece to execute the test case according to the test sequence.
Specifically, in this step, a network communication protocol corresponding to the test case is imported from a pre-stored network communication protocol according to the test scheme, a device simulation model, an environment simulation model and an image recognition unit corresponding to the test case are scheduled, and the test execution unit 15 is controlled to execute the test. The test execution unit 15 calls the test case interface, controls the device simulation model and the environment simulation model to perform data communication with the test piece according to the test scheme, executes the test case based on the test sequence, obtains the operation data of the test piece 30, and generates a test log according to the operation data of the data communication.
And 103, generating a test log based on the test data of the data communication.
Referring to the description in the above embodiment, the device simulation model 11 and the environment simulation model 12 to be scheduled are not necessarily the same according to different test cases.
In this step, the test execution unit 15 executes the test cases according to the test sequence by using a state diagram modeling method or a method of embedding a python script.
In an embodiment, the test execution unit 15 triggers test execution to send the instructions and data parameters in the device simulation model 11 and the environment simulation model 12 to the test piece 30 through corresponding protocol interfaces in the communication conversion unit 21 in real time, for example, the data of the door system simulation model 114 is sent to the door system device software as the test piece 30 through an RS485 interface. After the test piece 30 receives the instruction and the data parameters sent by the upper computer 10, the test piece 30 performs testing according to the corresponding functional logic requirements, and outputs the operation data to the communication conversion unit 21, the man-machine interface display unit captures and displays the communication data and the operation data, the test execution unit 15 compares the actual operation data with the pre-stored reference data to obtain the conclusion whether the test is passed or not, and records the test execution result to form a test log so as to analyze the test process and locate problems. And if the test is not passed, carrying out voice prompt on the next operation.
And 104, calculating test statistical information of the test case according to the test log, and generating a test report based on the test statistical information.
Wherein the test statistics may include: and scheduling XX use cases in total, passing XX use cases, not executing XX use cases and the like. And comparing the predefined reference test case passing rate with the actual test case passing rate, if the actual test case passing rate is greater than the predefined reference test case passing rate, evaluating that the test passes, and forming a test report, wherein the report content comprises a test object, test time, total number of test cases, case statistics of passed test, case statistics of failed test, test evaluation conclusion and the like.
As shown in fig. 6, which is another schematic structural diagram of the test system of the vehicle-mounted application software provided in the embodiment of the present invention, as shown in fig. 6, the test piece 30 is traction control system software, and the test purpose is correctness of the traction application function, then the test management unit 14 determines that three test cases and test sequence are:
1. after receiving the traction instruction signal, the test network sends the signal to a traction control system;
2. the traction control system executes a traction instruction, returns a traction state to the network, and judges whether the network can correctly identify the traction state;
3. and testing whether the network control system can send the received traction state to a display interface (such as a display) of the human machine for displaying through the image recognition unit.
The test procedure is described below:
the test management unit 14 imports a network communication protocol, loads the traction control system simulation model 111, the image recognition unit 13 and the driver console and train hard line simulation model 123, and triggers the test execution unit 15 to execute a test.
The test execution unit 15 calls the driver console and the hard-wire simulation model 123, triggers a traction instruction, and sends the traction instruction to the network control system software of the test piece 30 through the communication conversion unit 21.
According to the current operation mode, if the network control system software is in the traction permission mode, the network control system software sends a traction command to the test execution unit 15 through the communication conversion unit 21.
The test execution unit 15 calls the traction control system simulation model 111 according to the test sequence, and sends a traction instruction to the traction control system simulation model 111.
And after receiving the traction instruction, the traction control system simulation model 111 executes the traction instruction and sets traction state information.
The test execution unit 15 calls the traction control system simulation model 111 to obtain traction state information, and feeds the traction state information back to the network control system software.
The network control system software sends the traction state information to the human-computer interface unit 23, the human-computer interface unit 23 displays the traction state information on a display interface, and the human-computer interface unit 23 sends the interface screenshot to the image recognition unit 13 in real time.
The image recognition unit 13 analyzes the traction state information in the screenshot of the display interface and sends the information to the test execution unit 15.
The test execution unit 15 compares the traction state information analyzed by the image recognition unit 13 with the expected traction state information set in the test case, so as to draw a conclusion whether the test is passed or not.
In this embodiment, a plurality of vehicle-mounted networking devices are physically connected according to a network topology, corresponding device simulation models, environment simulation models and image recognition units are selected and matched, data operation is performed on each communication port through combination and scheduling of a test management unit, the network device environment of the whole train can be simulated, control logic verification, optimization and the like are performed, and a following vehicle 1 is constructed: 1 developing a debugging environment.
The system provided by the invention is a universal test system, can be suitable for various network communication protocols, and provides various power supplies such as DC5V, DC12V, DC24V, DC110V and the like. Different equipment simulation models and environment simulation models are loaded, different parameters are set, simulation and testing of different trains or parts can be achieved, hardware equipment does not need to be changed, the period and the cost for testing different equipment and trains are greatly shortened, and workload is greatly reduced.
The system can be used for testing a single system such as train network control equipment, a traction transmission control system and the like, testing associated equipment, and also can be used for joint testing of the associated equipment of the train network control system, such as joint testing of network and transmission, and can also be used for online debugging and testing of the whole train network equipment, so that the verification time of a real object train is reduced, the research and development period is shortened, the debugging time on the train is shortened, and the research and development cost is reduced.
Those of ordinary skill in the art will understand that: the discussion of any embodiment above is meant to be exemplary only, and is not intended to intimate that the scope of the disclosure, including the claims, is limited to these examples; within the idea of the invention, also features in the above embodiments or in different embodiments may be combined, steps may be implemented in any order, and there are many other variations of the different aspects of the invention as described above, which are not provided in detail for the sake of brevity.
In addition, well known power/ground connections to Integrated Circuit (IC) chips and other components may or may not be shown within the provided figures for simplicity of illustration and discussion, and so as not to obscure the invention. Furthermore, devices may be shown in block diagram form in order to avoid obscuring the invention, and also in view of the fact that specifics with respect to implementation of such block diagram devices are highly dependent upon the platform within which the present invention is to be implemented (i.e., specifics should be well within purview of one skilled in the art). Where specific details (e.g., circuits) are set forth in order to describe example embodiments of the invention, it should be apparent to one skilled in the art that the invention can be practiced without, or with variation of, these specific details. Accordingly, the description is to be regarded as illustrative instead of restrictive.
While the present invention has been described in conjunction with specific embodiments thereof, many alternatives, modifications, and variations of these embodiments will be apparent to those of ordinary skill in the art in light of the foregoing description. For example, other memory architectures (e.g., dynamic ram (dram)) may use the discussed embodiments.
The embodiments of the invention are intended to embrace all such alternatives, modifications and variances that fall within the broad scope of the appended claims. Therefore, any omissions, modifications, substitutions, improvements and the like that may be made without departing from the spirit and principles of the invention are intended to be included within the scope of the invention.

Claims (10)

1. A test system for vehicle-mounted application software is characterized by comprising:
the upper computer is used for determining a test scheme according to a test piece and a test purpose, wherein the test scheme comprises at least two test cases and a test sequence of each test case, the test piece is controlled by an input/output module to execute the test cases based on the test scheme, and whether the test passes or not is judged based on a test result of the test piece, and the test piece comprises the vehicle-mounted application software;
the input and output module is connected with the upper computer and the test piece and used for data communication and network conversion between the upper computer and the test piece.
2. The system of claim 1, wherein the upper computer comprises:
a device simulation model for simulating the function of networked device software of the vehicle;
the environment simulation model is used for simulating and simulating the power grid environment and the operating environment of the vehicle;
the test management unit is used for determining the test scheme according to the test piece and the test purpose, importing a network communication protocol corresponding to the test case from a pre-stored network communication protocol, scheduling the equipment simulation model and/or the environment simulation model corresponding to the test case, controlling the test execution unit to execute the test, and receiving a test result returned by the test execution unit;
the test execution unit is used for operating the equipment simulation model and the environment simulation model scheduled by the test management unit based on the control of the test management unit, testing the test piece through the input and output module, generating a test log according to the test data, and sending the test log as a test result to the test management unit.
3. The system of claim 2, wherein the host computer further comprises:
the image identification unit is used for acquiring a test running image and performing one or more of primitive identification, character identification and color identification on the image;
the test management unit is also used for scheduling the image identification unit;
the test execution unit is further used for operating the image identification unit, comparing the identification information of the image identification unit with pre-stored reference information, and judging whether the test is passed according to the comparison result.
4. The system of claim 2, wherein the test management unit is further configured to generate a test report based on the test result fed back by the test execution unit, and the test report comprises: and testing and evaluating the conclusion according to the result of whether each test case passes the test.
5. The system of claim 2, wherein the plant simulation model comprises any one or more of:
the system comprises a traction control system simulation model, a fault diagnosis model and a fault diagnosis model, wherein the traction control system simulation model is used for simulating the braking function and the fault diagnosis function of traction control system software of a simulated vehicle;
the simulation model of the brake control system is used for simulating the brake function and the fault diagnosis function of the brake control system software of the simulated vehicle;
the air conditioning system simulation model is used for simulating the function of air conditioning system software of the vehicle;
the door system simulation model is used for simulating the functions of door system software of the vehicle;
the passenger information system simulation model is used for simulating the functions of passenger information system software of a simulated vehicle;
the auxiliary variable flow control system simulation model is used for simulating the functions of auxiliary variable flow control system software of the vehicle;
the simulation model of the smoke and fire alarm system is used for simulating the in-vehicle fire detection and alarm functions of smoke and fire alarm system software of a simulated vehicle;
and the network control system simulation model is used for simulating the functions of a central control unit of network control system software of the vehicle.
6. The system of claim 1, wherein the environmental simulation model comprises any one or more of:
the power grid simulation model is used for simulating the power grid environment of the vehicle circuit;
the motion and wheel-rail simulation model is used for simulating the running state of a vehicle and the dynamic state of the motion of a running gear wheel pair on a rail;
and the driver console and train hard line simulation model is used for simulating the driver console operation and the hard line instruction function of the simulated vehicle.
7. The system of claim 1, wherein the input-output module comprises:
the communication conversion unit is used for executing the conversion between a vehicle-mounted network and the network of the test piece when the upper computer is communicated with the test piece;
and the power supply unit is connected with the test piece and the communication conversion unit and is used for supplying power to the test piece.
8. A method for testing an in-vehicle application, performed by the system of any one of claims 1-7, the method comprising:
determining a test scheme according to a test piece and a test purpose, wherein the test scheme comprises at least two test cases and a test sequence of each test case, and the test piece comprises vehicle-mounted application software;
controlling the test piece to execute the test case according to the test sequence;
and judging whether the test passes or not based on the test result of the test piece.
9. The method of claim 8, wherein the controlling the test piece to execute the test case according to the test sequence comprises:
importing a network communication protocol corresponding to the test case from a pre-stored network communication protocol;
scheduling a device simulation model and/or an environment simulation model corresponding to the use case;
controlling the equipment simulation model and the environment simulation model to carry out data communication with the test piece according to a test scheme;
generating a test log based on the test data of the data communication.
10. The method of claim 9, further comprising:
calculating test statistical information based on the test log, wherein the test statistical information comprises a test passing rate;
generating a test report based on the test statistics.
CN201811299905.8A 2018-11-02 2018-11-02 Test system and method for vehicle-mounted application software Pending CN111142497A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811299905.8A CN111142497A (en) 2018-11-02 2018-11-02 Test system and method for vehicle-mounted application software

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811299905.8A CN111142497A (en) 2018-11-02 2018-11-02 Test system and method for vehicle-mounted application software

Publications (1)

Publication Number Publication Date
CN111142497A true CN111142497A (en) 2020-05-12

Family

ID=70515381

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811299905.8A Pending CN111142497A (en) 2018-11-02 2018-11-02 Test system and method for vehicle-mounted application software

Country Status (1)

Country Link
CN (1) CN111142497A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112015144A (en) * 2019-05-28 2020-12-01 中车唐山机车车辆有限公司 Vehicle-mounted passenger information system testing device and testing method

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012043062A (en) * 2010-08-16 2012-03-01 Maki Engineering:Kk Software automatic test system
CN102567205A (en) * 2012-01-05 2012-07-11 铁道部运输局 Simulation test system and simulation test device of train network control software
CN102650966A (en) * 2011-02-24 2012-08-29 王轶辰 Multiplexing-oriented embedded software testing method and system
CN106855421A (en) * 2017-01-17 2017-06-16 中国第汽车股份有限公司 A kind of automobile instrument automatization test system and method for testing based on machine vision
CN107562635A (en) * 2017-09-15 2018-01-09 西南电子技术研究所(中国电子科技集团公司第十研究所) Embedded software test accessory system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012043062A (en) * 2010-08-16 2012-03-01 Maki Engineering:Kk Software automatic test system
CN102650966A (en) * 2011-02-24 2012-08-29 王轶辰 Multiplexing-oriented embedded software testing method and system
CN102567205A (en) * 2012-01-05 2012-07-11 铁道部运输局 Simulation test system and simulation test device of train network control software
CN106855421A (en) * 2017-01-17 2017-06-16 中国第汽车股份有限公司 A kind of automobile instrument automatization test system and method for testing based on machine vision
CN107562635A (en) * 2017-09-15 2018-01-09 西南电子技术研究所(中国电子科技集团公司第十研究所) Embedded software test accessory system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112015144A (en) * 2019-05-28 2020-12-01 中车唐山机车车辆有限公司 Vehicle-mounted passenger information system testing device and testing method
CN112015144B (en) * 2019-05-28 2021-09-07 中车唐山机车车辆有限公司 Vehicle-mounted passenger information system testing device and testing method

Similar Documents

Publication Publication Date Title
CN103631147B (en) Train network control system semi-physical comprehensive simulation test platform and test method
CN111007837B (en) Test system and method for testing TCMS
CN107222362A (en) A kind of vehicle CAN network automatic test platform and its optimization method
CN106444420B (en) A kind of locomotive semi-hardware type simulation test system and method
CN108227519B (en) CTCS2-200C type train control vehicle-mounted equipment automation simulation test platform
CN107450354B (en) Interface simulation system of train control vehicle-mounted equipment and train control data testing method
CN112987700B (en) Integrated test system of magnetic suspension traffic operation control system
CN103471621A (en) Testing method and device applicable to vehicle navigation multimedia terminal
CN108088688A (en) For the test device and method of the interoperability of test tracks vehicle
CN105808432A (en) Software automated testing system and method for rail traffic drive control unit/ tractive control unit (DCU/TCU)
WO2003027850A2 (en) Software verification method for control units and verification system
CN105629960A (en) Electric vehicle controller model in-the-loop test system and method
US20150121148A1 (en) Malfunction influence evaluation system and evaluation method
CN112937914B (en) Ground simulation instruction processing method for aircraft complete machine test
CN106598024A (en) Retarder signal simulation detection apparatus and detection method
CN203534602U (en) Testing equipment suitable for vehicle-mounted navigation multimedia terminal
CN108377209A (en) Equipment fault detecting system based on SCADA and detection method
CN111142497A (en) Test system and method for vehicle-mounted application software
CN111308992B (en) Vehicle-mounted diagnostic recorder testing method and system
CN116818362A (en) Lane departure warning function testing equipment and method
CN110843705A (en) Vehicle-mounted CAN bus monitoring system
CN103744414A (en) Test method and test device
CN109946094A (en) Motor vehicle detecting control instrument and its control circuit, control method
CN105807750A (en) Semi-physical simulation test device and test method for transmission control unit of urban rail vehicle
CN102890494A (en) Functional verification method of automobile diagnosis instrument

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

Application publication date: 20200512

RJ01 Rejection of invention patent application after publication