CN115167337A - Automated testing method, testing platform, testing system and computer readable storage medium - Google Patents

Automated testing method, testing platform, testing system and computer readable storage medium Download PDF

Info

Publication number
CN115167337A
CN115167337A CN202210689485.4A CN202210689485A CN115167337A CN 115167337 A CN115167337 A CN 115167337A CN 202210689485 A CN202210689485 A CN 202210689485A CN 115167337 A CN115167337 A CN 115167337A
Authority
CN
China
Prior art keywords
test
program control
tested
control unit
instrument
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
CN202210689485.4A
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.)
CRRC Industry Institute Co Ltd
Original Assignee
CRRC Academy 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 CRRC Academy Co Ltd filed Critical CRRC Academy Co Ltd
Priority to CN202210689485.4A priority Critical patent/CN115167337A/en
Publication of CN115167337A publication Critical patent/CN115167337A/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/0218Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults characterised by the fault detection method dealing with either existing or incipient faults
    • G05B23/0221Preprocessing measurements, e.g. data collection rate adjustment; Standardization of measurements; Time series or signal analysis, e.g. frequency analysis or wavelets; Trustworthiness of measurements; Indexes therefor; Measurements using easily measured parameters to estimate parameters difficult to measure; Virtual sensor creation; De-noising; Sensor fusion; Unconventional preprocessing inherently present in specific fault detection methods like PCA-based methods

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Tests Of Electronic Circuits (AREA)

Abstract

The application discloses an automatic testing method, a testing platform, a testing system and a computer readable storage medium. The automatic testing method comprises the following steps: and establishing an instrument program control library and a to-be-detected object program control library of the rail transit. The instrument program control library comprises an instrument program control unit. The object program control library to be tested comprises a control program control unit; splitting the test case into a plurality of testing steps, wherein each instrument program control unit and each control program control unit respectively correspond to one testing step; and calling the corresponding instrument program control unit or control program control unit to complete the test of the object to be tested for the rail transit according to the execution sequence of the test cases and the corresponding relation between the instrument program control unit and the control program control unit and the test steps, so that the test can be automatically completed through the steps, the test efficiency is high, and the test is convenient.

Description

Automated testing method, testing platform, testing system and computer readable storage medium
Technical Field
The present application relates to the field of rail transit automated testing technologies, and in particular, to an automated testing method, a testing platform, a testing system, and a computer-readable storage medium.
Background
Along with the rapid development of the rail transit industry, the types and the complexity of electronic controllers for rail transit are also continuously improved, and the reliability test requirements on various electronic controllers are also continuously improved. For the above reasons, more and more instruments and test cases are required in the testing process of the electronic controller. Therefore, it is desirable to develop a testing method that can improve the testing efficiency of the electronic controller.
Disclosure of Invention
The application aims to provide an automatic testing method, a testing platform, a testing system and a computer readable storage medium. The automatic test method, the test platform, the test system and the computer readable storage medium can ensure that the test efficiency of the object to be tested is high.
The application provides an automated testing method. The automatic testing method comprises the following steps: establishing an instrument program control library and a to-be-detected object program control library of rail transit, wherein the instrument program control library comprises an instrument program control unit, and the to-be-detected object program control library comprises a control program control unit; splitting the test case into a plurality of testing steps, wherein the instrument program control unit in each instrument program control library and the control program control unit in the object program control library to be tested respectively correspond to one testing step; and calling the corresponding instrument program control unit or the corresponding control program control unit to finish the test of the object to be tested for the rail transit according to the execution sequence of the test cases and the corresponding relation between the instrument program control unit and the control program control unit and the test steps. Because the instrument program control unit and the control program control unit are established, and each instrument program control unit and each control program control unit respectively correspond to one-step test step, after the test case is compiled, the test case can correspond to the corresponding instrument program control unit and the corresponding control program control unit and automatically complete the test, so that the automatic test method has high test efficiency and convenient test.
In some embodiments, a test item library of the object to be tested is established; and importing a design drawing of an object to be tested, automatically matching corresponding instruments and meters according to the design drawing to form a test drawing, and generating the test case according to the test drawing and the test project library. After the automatic test method of the embodiment is adopted, the design drawing of the object to be tested is automatically led in to generate the test drawing, the instruments and meters which are connected and whether the instruments and meters are connected in a missing mode or in a wrong mode can be intuitively known according to the test drawing, connection errors are avoided, the test system is convenient to connect, in addition, the test case is generated according to the test drawing and the test project library, in this way, a tester does not need to manually write the test case, and the requirement on testers is low.
In some embodiments, the automated testing method further comprises: marking the corresponding test items of the test steps at the corresponding positions of the test chart; and judging the integrity of the test item of the object to be tested according to the marked test item by the tester, adding a test step or modifying the test step and updating the test case under the condition of incompleteness, and establishing the corresponding relation between the added test step or the modified test step and the control program control unit or the instrument program control unit. By displaying the test items corresponding to the generated test cases in the test chart in a marking mode, a tester can check whether the missed test items exist or not through the marks, and the accuracy of test case generation and the convenience of test case editing are improved through the combination of automatic test case generation and manual inspection.
In some embodiments, the automated testing method further comprises: storing the test cases which are successfully executed; obtaining the characteristics of each part of a new object to be tested, judging the matching degree of the design drawing of the object to be tested and the stored test case according to the characteristics of the parts, and calling the stored test case to test the object to be tested under the matching condition; and sending prompt information to the tester if the data are not matched. By adopting the automatic test method, corresponding changes can be made on the basis of the existing test cases or the passed test cases can be directly used aiming at the condition that some to-be-tested objects are replaced by manufacturers (for example, domestic electronic controllers are adopted to replace imported electronic controllers) or models, so that the workload of compiling the test cases is reduced, time and labor are saved, and the test efficiency is high.
In some embodiments, the automated testing method comprises: and judging whether the test resources required by executing the execution case are enough, and calling the corresponding instrument program control unit or the corresponding control program control unit to finish the test of the object to be tested for the rail transit under the condition of being enough, otherwise, sending reminding information to the tester. As the rail transit object to be tested (the electronic controller or the control system comprising the electronic controller) is tested under the condition that the test resources are enough, the tester is not required to check whether the required instruments and meters, the internal memory of the computer, the CPU (central processing unit) and the like are enough, the test environment preparation time and the test environment adjustment time can be shortened, the test efficiency is improved, the labor cost is reduced, and the high-efficiency operation of the test is realized.
In some embodiments, the testing method comprises: and monitoring the execution sequence of the test cases and the execution state of the test steps. Under the conditions that the execution sequence is correct, the execution state is that the execution is passed, and the test result meets the test criterion, carrying out the test of the next step; and displaying the test items corresponding to the test steps in the test report by using a distinguishing mark under the condition that the execution sequence is correct and the execution state is that at least one of the execution is passed and the test result is incorrect, and carrying out the test of the next step. The test method can not only automatically test the rail transit to-be-tested object, but also mark the abnormity of the test result, the test state or the test sequence, provide reference data for the analysis of the test result, reduce the test time waste caused by the abnormity and improve the test efficiency.
In another aspect, embodiments of the present application disclose a test platform. The test platform comprises a storage module, an interaction module and a processing module. The storage module is used for storing an instrument program control library and an object program control library to be tested, the instrument program control library comprises a plurality of instrument program control units, the object program control library to be tested comprises a plurality of control program control units, and corresponding relations between each instrument program control unit and each control program control unit and one testing step are stored. The interaction module is used for receiving an input instruction. The processing module is used for acquiring a test case according to the input instruction, splitting the test case into a plurality of steps, and calling the corresponding instrument program control unit or the control program control unit to complete the test of the object to be tested for the rail transit according to the execution sequence of the test steps and the corresponding relation. According to the above arrangement, the storage module is used for storing the corresponding relation between each instrument program control unit and each control program control unit and the test step, so that after the test case is written, the test case can correspond to the corresponding instrument program control unit and control program control unit, and the test is automatically completed.
In some embodiments, the test platform includes an import module, and the import module is configured to import a design drawing of an object to be tested. The processing module is used for automatically matching corresponding instruments and meters to form a test chart according to the design chart and generating the test case according to the test chart and the test item library. According to the arrangement, the test platform can automatically lead in the design drawing of the object to be tested to generate the test drawing, and can intuitively know whether the instruments are connected or not and whether the instruments are missed or misconnected according to the test drawing, so that connection errors are avoided, the test system is convenient to connect, and in addition, a test case is generated according to the test drawing and the test project library, so that a tester does not need to manually write the test case any more, and the requirement on testers is low.
In some embodiments, the processing module marks the corresponding test item of the test step at the corresponding position of the design drawing of the object to be tested. The interaction module is used for receiving an adding instruction or a modifying instruction. The processing module is used for adding a test step according to the adding instruction, or modifying the test step according to the modifying instruction, and establishing a corresponding relation between the added test step or the modified test step and the control program control unit or the instrument program control unit. By displaying the test items corresponding to the generated test cases in the test chart in a marking mode, a tester can check whether the missed test items exist or not through the marks, and the accuracy of test case generation and the convenience of test case editing are improved through the combination of automatic test case generation and manual inspection.
In some embodiments, the storage module stores test cases that have been successfully executed. The processing module is used for obtaining the characteristics of each part of the object to be tested, judging the matching degree of the design drawing of the object to be tested and the stored test case according to the characteristics of the parts, and calling the stored test case to test the object to be tested under the matching condition. The test platform can make corresponding changes on the basis of the existing test cases or directly use the passed test cases aiming at the condition that some electronic controllers are replaced by manufacturers (for example, domestic electronic controllers are adopted to replace imported electronic controllers) or models are replaced, so that the workload of compiling the test cases is reduced, time and trouble are saved, and the test efficiency is high.
In some embodiments, the processing module is configured to determine whether a test resource required for executing the test case is sufficient, and if the test resource is sufficient, call the corresponding instrument program control unit or the control program control unit to complete the test of the object to be tested for rail transit, otherwise, send a prompt message to a tester. The interaction module is used for displaying the test resources or the reminding information. According to the arrangement, the test platform can make the testers know to replenish the test resources through the reminding information. Because the object to be tested (the electronic controller or the control system comprising the electronic controller) of the rail transit is tested under the condition that the testing resources are enough, the testing personnel is not required to check whether the required instruments and meters, the internal memory of the computer, the CPU (central processing unit) and the like are enough, so that the preparation time of the testing environment and the adjustment time of the testing environment can be shortened, the testing efficiency is improved, the labor cost is reduced, and the high-efficiency operation of the test is realized.
In some embodiments, the test platform includes a monitoring module, and the monitoring module is configured to monitor an execution sequence of the test cases and an execution state of the test steps. The processing module executes the following processing according to the monitoring result of the monitoring module: under the conditions that the execution sequence is correct, the execution state is that the execution is passed, and the test result meets the test criterion, carrying out the test of the next step; under the conditions that the execution sequence is correct, the execution state is that the execution is passed and the test result does not meet the test criterion, displaying the test items corresponding to the test steps in a test report by using distinguishing marks, and carrying out the test of the next step; and correspondingly adjusting the execution sequence of the test steps of the test case and adding remark information to the failed test steps under the conditions that the execution sequence is correct and the execution state is failed. According to the arrangement, the test platform can automatically test the rail transit to-be-tested object, can mark the abnormity of the test result, the test state or the test sequence, provides reference data for the analysis of the test result, reduces the waste of test time caused by abnormity, and improves the test efficiency.
In yet another aspect, embodiments of the present application disclose a test system. The test system comprises a computer and an instrument. The computer is connected with the controller system through the instrument; the computer comprises a storage module and a processor; the storage module stores a computer program operable on the processor. The processor executes the computer program to realize that any one of the automatic test methods performs black box test on the reliability of the object to be tested of the rail transit, and generates a test report for judging the reliability of the object to be tested according to the test result and the corresponding performance index. The test system at least has the beneficial effects of the test platform, and is not repeated.
In another aspect, embodiments of the present application disclose a computer-readable storage medium. The computer readable storage medium stores a computer program executed to implement any one of the automated testing methods for black box testing the reliability of an object to be tested in rail transit, and further generating a test report for judging the reliability of the object to be tested according to the test result and a corresponding performance index. The computer-readable storage medium at least has the beneficial effects of the test platform, and is not described in detail.
Drawings
FIG. 1 is a flow diagram illustrating a first method of automated testing according to an embodiment of the present application;
FIG. 2 is a diagram illustrating a correspondence relationship between a program control unit and test steps of test cases according to an embodiment of the present application;
FIG. 3 is a hardware schematic of a test system for implementing the automated test method shown in FIG. 1;
FIG. 4 is a diagram illustrating a test case of an object under test and an execution flow of a program control unit;
FIG. 5 is a flow diagram illustrating a second automated testing method according to an embodiment of the present application;
FIG. 6 is a flow diagram illustrating a third method of automated testing according to an embodiment of the present application;
FIG. 7 is a flow diagram illustrating a fourth method of automated testing according to an embodiment of the present application;
FIG. 8 is a flow diagram illustrating a fifth method of automated testing according to an embodiment of the present application;
FIG. 9 is a flow diagram illustrating a sixth method of automated testing according to an embodiment of the present application;
FIG. 10 is a schematic diagram of a first test system according to an embodiment of the present application;
FIG. 11 is a schematic diagram of a second type of test system shown in accordance with an embodiment of the present application;
FIG. 12 is a schematic diagram illustrating a third test system according to an embodiment of the present application.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. The following description refers to the accompanying drawings in which the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus consistent with certain aspects of the present application, as detailed in the appended claims.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. Unless otherwise defined, technical or scientific terms used herein shall have the ordinary meaning as understood by one of ordinary skill in the art to which this application belongs. The terms "first," "second," and the like, as used in the description and in the claims, do not denote any order, quantity, or importance, but rather are used to distinguish one element from another. Also, the use of the terms "a" or "an" and the like do not denote a limitation of quantity, but rather denote the presence of at least one. "plurality" or "a number" means two or more. Unless otherwise indicated, the terms "front," "rear," "lower," or "upper" and the like are used for convenience of description and are not limited to one position or one spatial orientation. The word "comprising" or "comprises", and the like, means that the element or item listed as preceding "comprising" or "includes" covers the element or item listed as following "comprising" or "includes" and its equivalents, and does not exclude other elements or items. The terms "connected" or "coupled" and the like are not restricted to physical or mechanical connections, but may include electrical connections, whether direct or indirect. As used in this specification and the appended claims, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.
Referring to fig. 1 in conjunction with fig. 2, 3 and 4, the present application discloses an automated testing method. The test method can test the object to be tested for rail transit, and comprises the following steps:
s11, establishing an instrument program control library and a to-be-detected object program control library of rail transit, wherein the instrument program control library comprises an instrument program control unit, and the to-be-detected object program control library comprises a control program control unit;
according to the automatic test method disclosed by the application, the object to be tested can be a single electronic controller or a system (such as a traction system and a gate control system) formed by the electronic controllers according to different instruments and meters and the object to be tested, and also can be a complete machine control system formed by all sub-control systems. Referring to fig. 3, an instrument of an automatic test system includes analog and digital related tests. Fig. 3 illustrates two PXIe chassis. One PXIe case mainly completes power supply and digital quantity related test work and participates in controlling a direct current power supply (GPIB interface), a universal meter (GPIB interface), an oscilloscope (GPIB interface), a matrix switch (PXIe interface), an electronic load (GPIB interface), a programmable direct current power supply (GPIB interface), a digital source meter (PXI interface), a program-controlled switch (PXI interface) and a relay switch (PXIe interface). The other PXIe case mainly completes analog quantity testing, pulse quantity testing, communication protocol testing and temperature testing and participates in controlling a current type signal generator (GPIB interface), a voltage amplifier (BNC interface), a digital source meter (GPIB interface), a universal meter (GPIB interface), a multiplexing switch (PXIe interface), a matrix switch (PXIe interface), an MVB card (CPCI interface), an Ethernet card (PXIe interface), a CAN card (PXIe interface), an RS232/RS422 card (PXIe interface), an RS232 card (PXIe interface), a temperature acquisition card (PXIe interface) and the like.
In this step, an instrument program library for each of the instruments may be created by: s111) reading the instruction of the instrument and being familiar with all functions of the instrument and meter; s112) reading the instrument control instructions one by one; s113) programming the instrument control instructions one by one; s114) testing instrument control instructions one by one; s115) completing instrument control instructions one by one; and completing the development of instrument control instructions. After the program control design is carried out according to the steps, the instrument program control library and the corresponding instrument program control unit can be obtained. The skilled person will understand that the program-controlled library of the object to be tested and the program-controlled unit thereof can also be obtained by designing in the aforementioned manner. The program control library of the object to be tested not only includes the program control library of each object to be tested, but also includes some auxiliary program control libraries related to the test of the object to be tested, for example, the program control units in the auxiliary program control libraries include a communication board program control unit and a program control unit for numerical value conversion. The program control unit for value conversion means that the value directly extracted from the data packet is represented in a binary form, the binary form of the data and the actual physical quantity follow a certain conversion rule, and the conversion rule is usually different for different variables and different objects to be measured (such as a single electronic controller). Therefore, a numerical value-physical quantity conversion module is added in the system, a user can configure a numerical value conversion rule through the module, the output numerical value of the program control module of the object to be tested is converted into actual physical quantity, and the converted physical quantity is applied to a test criterion.
S12, splitting the test case into a plurality of test steps, wherein each instrument program control unit and each control program control unit correspond to one test step respectively;
in this step, each testing step may be a single control of the instrument by the testing system software, a single communication with the object to be tested, or other operations (delay, logic control, etc.). The test cases may be split in the order of execution of the test steps. Fig. 2 illustrates the corresponding relationship between the program control unit and the testing step, for example, the program control unit of the program control library of the instrument 1 corresponds to the testing step 1, and by analogy with the illustration in fig. 2, one testing step corresponding to each program control unit of the instrument can be obtained; each control program control unit corresponds to one test step.
And S13, calling the corresponding instrument program control unit or the corresponding control program control unit to complete the test of the object to be tested for the rail transit according to the execution sequence of the test cases and the corresponding relation between the instrument program control unit and the control program control unit and the test steps.
Referring to fig. 4 and fig. 2 in combination with fig. 1, after each test step is executed, when the next test step is executed, the corresponding instrument program control unit or control program control unit is invoked to automatically complete the test of the object to be tested for rail transit according to the execution sequence and the input required by the test step.
The skilled person will understand that the above method can achieve the following technical effects: because the instrument program control unit and the control program control unit are established, and each instrument program control unit and each control program control unit respectively correspond to one-step test step, after the test case is compiled, the test case can correspond to the corresponding instrument program control unit and the corresponding control program control unit and automatically complete the test, so that the automatic test method has high test efficiency and convenient test.
Referring to fig. 5, fig. 5 shows a second embodiment of the automated testing method of the present application. In the second embodiment, compared with the first embodiment, the test case is automatically generated. The detailed description is as follows: step S21 is the same as step S11, and step S23 is the same as step S13, and will not be described again. In step S22, a test item library of the object to be tested is established; and importing the design drawing of the object to be tested, automatically matching corresponding instruments and meters according to the design drawing to form a test drawing, and generating the test case according to the test drawing and the test project library.
In the step, aiming at the condition that a single electronic controller carries out testing, a test project library of an object to be tested is established; aiming at the condition that an object to be tested formed by an electronic controller is tested, a project library to be tested of the object to be tested needs to be established. For the electronic controller, the design drawing comprises the connection relation among all functional components of the electronic controller and the like. The control system formed by the electronic controller and other components comprises the electronic controller, the components related to the electronic controller, the connection relationship between the electronic controller and the components, and the like. The test chart can be a schematic block diagram of the object to be tested or a comment of related test items added in a design chart, a schematic diagram of a test system formed by the object to be tested and related instruments and meters, and the like.
In some test methods, a tester needs to consider which instruments and meters are selected according to specific test items of an object to be tested, needs to personally check the connection relation between devices of a control system or a test system of an electronic controller, and needs to manually compile test cases, which is time-consuming and troublesome. After the automatic test method of the embodiment is adopted, the design drawing of the object to be tested is automatically led in to generate the test drawing, the instruments and meters which are connected and whether the instruments and meters are connected in a missing mode or in a wrong mode can be intuitively known according to the test drawing, connection errors are avoided, the test system is convenient to connect, in addition, the test case is generated according to the test drawing and the test project library, in this way, a tester does not need to manually write the test case, and the requirement on testers is low.
Referring to fig. 6, as a further embodiment of the embodiment shown in fig. 5, the automated testing method further includes: step S24: marking the test items corresponding to the test steps at corresponding positions of the test chart;
and judging the integrity of the test item of the object to be tested according to the marked test item by the tester, adding a test step or modifying the test step and updating the test case under the condition of incompleteness, and establishing the corresponding relation between the added test step or the modified test step and the control program control unit or the instrument program control unit.
In the automatic test method, the test system automatically generates the test cases, the test items which are possibly missed are displayed in the test chart in a marking mode, a tester can check whether the missed test items exist or not through the marks, and the accuracy of test case generation and the convenience of test case editing are improved through the combination of automatic test case generation and manual inspection.
Referring to fig. 7, as a further embodiment of the second testing method, the automated testing method further includes: s25: storing the test cases which are successfully executed; s26: obtaining the characteristics of each component of a new object to be tested, judging the matching degree of a design drawing of the object to be tested and a stored test case according to the characteristics of the components, and calling the stored test case to test the object to be tested under the matching condition; and sending prompt information to the tester if the test result is not matched.
In this step, the test case with successful test refers to a test case with completely correct test result, execution sequence, and the like. The new object to be tested is as follows: the electronic controller can replace the original electronic controller, or can replace the control system of the original control system, and the product manufacturer or the product has a different structure from the original control system.
By adopting the automatic test method, corresponding changes can be made on the basis of the existing test cases or the passed test cases can be directly used aiming at the condition that some electronic controllers are replaced by manufacturers (for example, domestic electronic controllers are adopted to replace imported electronic controllers) or models are replaced, so that the workload of compiling the test cases is reduced, time and trouble are saved, and the test efficiency is high.
Referring to fig. 8, in one embodiment, the automated testing method includes: and judging whether the test resources required by executing the test case are enough, calling the corresponding instrument program control unit or the corresponding control program control unit to finish the test of the object to be tested for the rail transit under the condition that the test resources are enough, and otherwise, sending reminding information to the tester.
In this test method, the tester can know to replenish those test resources by the reminder message. Because the object to be tested (the electronic controller or the control system comprising the electronic controller) of the rail transit is tested under the condition that the testing resources are enough, the testing personnel is not required to check whether the required instruments and meters, the internal memory of the computer, the CPU (central processing unit) and the like are enough, so that the preparation time of the testing environment and the adjustment time of the testing environment can be shortened, the testing efficiency is improved, the labor cost is reduced, and the high-efficiency operation of the test is realized.
Referring to fig. 9, in comparison with the embodiment shown in fig. 1, the testing method of the embodiment shown in fig. 9 includes: monitoring the execution sequence of the test cases and the execution state of the test steps;
under the conditions that the execution sequence is correct, the execution state is that the execution is passed, and the test result meets the test criterion, carrying out the test of the next step;
and under the condition that at least one of the execution sequence, the execution state and the test result is incorrect, displaying the test items corresponding to the test steps in the test report by using the distinguishing marks, carrying out the test of the next step, and marking the distinguishing marks in the generated test report.
In this step, the execution state includes execution passing, execution failing or execution, and the test result includes a test result for a criterion and exception information in the test process. The form of the distinguishing mark is not limited, for example, a mark can be used for a case that one type of test result, test state or test sequence is incorrect, and the incorrect type of test result, test state or test sequence can be marked.
The skilled person will understand that the beneficial effects of this automated testing method are: the method can not only automatically test the rail transit object to be tested, but also mark the abnormity of the test result, the test state or the test sequence, provide reference data for the analysis of the test result, reduce the waste of test time caused by abnormity and improve the test efficiency.
Referring to fig. 10, an embodiment of the present application discloses a test platform. The test platform comprises a storage module 1, an interaction module 2 and a processing module 3. The storage module 1 is used for storing an instrument program control library and an object program control library to be tested, the instrument program control library comprises a plurality of instrument program control units, and the object program control library to be tested comprises a plurality of control program control units. The interaction module 2 is used for receiving input instructions. The processing module 3 is used for acquiring a test case according to the input instruction, splitting the test case into a plurality of steps, and calling the corresponding instrument program control unit or the control program control unit to complete the test of the object to be tested for the rail transit according to the execution sequence of the test steps and the corresponding relation between the instrument program control unit and the control program control unit and the test steps. The test platform can implement the automated test method shown in the first embodiment. In some embodiments, the test platform further comprises a test management module 6 and a data management module 7.
According to the above arrangement, the storage module is used for storing the corresponding relation between each instrument program control unit and each control program control unit and the test step, so that after the test case is written, the test case can correspond to the corresponding instrument program control unit and control program control unit, and the test is automatically completed.
Referring to fig. 11, the test platform includes an importing module 4, and the importing module 4 is configured to import a design drawing of an object to be tested. The processing module 3 is further configured to automatically match a corresponding instrument to form a test chart according to the design chart, and generate the test case according to the test chart and the test item library. According to the arrangement, the test platform can automatically lead in the design drawing of the object to be tested to generate the test drawing, and can intuitively know whether the instruments are connected or not and whether the instruments are missed or misconnected according to the test drawing, so that connection errors are avoided, the connection of a test system is convenient, and in addition, test cases are generated according to the test drawing and a test project library, so that a tester does not need to manually compile the test cases, and the requirement on testers is low.
In some embodiments, the processing module 3 further marks the corresponding test item of the test step at the corresponding position of the test chart. The interaction module 2 is used for receiving an adding instruction or a modifying instruction. The processing module 3 is configured to add a test step according to the addition instruction, or modify the test step according to the modification instruction, and establish a correspondence between the added test step or the modified test step and the control program control unit or the instrument program control unit. According to the arrangement, the test items corresponding to the generated test cases are displayed in the test chart in a marking mode, a tester can check whether the test items are missed or not through the marks, and the accuracy of test case generation and the convenience of test case editing are improved through the combination of automatic test case generation and manual inspection.
In some embodiments, the storage module 1 stores test cases that have been successfully executed. The processing module 3 is configured to obtain features of each component of a new object to be tested, determine a matching degree between the design drawing of the object to be tested and a stored test case according to the features of the components, and call the stored test case to test the object to be tested under the matching condition. According to the arrangement, the test platform can be correspondingly changed or the passed test cases can be directly used on the basis of the existing test cases aiming at the condition that some electronic controllers are replaced by replacement manufacturers (for example, domestic electronic controllers are adopted to replace imported electronic controllers) or models, so that the workload of compiling the test cases is reduced, time and trouble are saved, and the test efficiency is high.
In some embodiments, the processing module 3 is further configured to determine whether test resources required for executing the test case are sufficient, and call the corresponding instrument program control unit or the control program control unit to complete the test of the object to be tested for rail transit when the test resources are sufficient, or otherwise send a prompt message to a tester. The interaction module 2 is configured to display the test resource or the reminding information. The displayed test resources include the existing side test resources and how many more test resources are needed. According to the arrangement, the test platform can make the testers know to replenish the test resources through the reminding information. Because the object to be tested (the electronic controller or the control system comprising the electronic controller) of the rail transit is tested under the condition that the testing resources are enough, the testing personnel is not required to check whether the required instruments and meters, the internal memory of the computer, the CPU (central processing unit) and the like are enough, so that the preparation time of the testing environment and the adjustment time of the testing environment can be shortened, the testing efficiency is improved, the labor cost is reduced, and the high-efficiency operation of the test is realized.
Referring to fig. 12, the test platform includes a monitoring module 5, and the monitoring module 5 is configured to monitor an execution sequence of the test cases and an execution state of the test steps. The processing module 3 executes the following processing according to the monitoring result of the monitoring module: under the conditions that the execution sequence is correct, the execution state is that the execution is passed, and the test result meets the test criterion, carrying out the test of the next step; and under the condition that at least one of the execution sequence, the execution state and the test result is incorrect, displaying the test item corresponding to the test step in the test report by using a distinguishing mark, carrying out the test of the next step, and marking the distinguishing mark in the generated test report. According to the arrangement, the test platform can automatically test the to-be-tested object of the rail transit, can mark the abnormity of the test result, the test state or the test sequence, provides reference data for the analysis of the test result, reduces the waste of test time caused by the abnormity, and improves the test efficiency.
In another aspect, an embodiment of the present application discloses a test system. The test system includes a computer 10 and an instrument 20. The computer 10 is connected to the controller system via the instrumentation 20. The computer comprises the memory module 1 and a processor. The storage module stores a computer program operable on the processor. The processor executes any one of the automatic test methods of the computer program to perform black box test on the reliability of the object to be tested of the rail transit, and generates a test report for judging the reliability of the object to be tested according to the test result and the corresponding performance index.
In another aspect, embodiments of the present application disclose a computer-readable storage medium. The computer readable storage medium stores a computer program executed to implement any one of the automated testing methods for black box testing the reliability of an object to be tested in rail transit, and further generating a test report for judging the reliability of the object to be tested according to the test result and a corresponding performance index.
The above description is only for the purpose of illustrating the preferred embodiments of the present application and is not to be construed as limiting the present application, and any modifications, equivalents, improvements, etc. made within the spirit and principle of the present application should be included in the scope of the present application.

Claims (14)

1. An automated testing method, characterized in that the testing method comprises the following steps:
establishing an instrument program control library and a to-be-detected object program control library of rail transit, wherein the instrument program control library comprises an instrument program control unit, and the to-be-detected object program control library comprises a control program control unit;
splitting the test case into a plurality of testing steps, wherein an instrument program control unit in each instrument program control library and a control program control unit in the object program control library to be tested respectively correspond to one testing step;
and calling the corresponding instrument program control unit or the corresponding control program control unit to finish the test of the object to be tested for the rail transit according to the execution sequence of the test cases and the corresponding relation between the instrument program control unit and the control program control unit and the test steps.
2. The automated testing method of claim 1, wherein a library of test items of the object to be tested is established; and importing a design drawing of an object to be tested, automatically matching corresponding instruments and meters according to the design drawing to form a test drawing, and generating the test case according to the test drawing and the test project library.
3. The automated testing method of claim 2, further comprising: marking the corresponding test items of the test steps at the corresponding positions of the test chart;
and judging the integrity of the test item of the object to be tested according to the marked test item, adding a test step or modifying the test step and updating the test case under the condition of incomplete test, and establishing the corresponding relation between the added test step or the modified test step and the control program control unit or the instrument program control unit.
4. The automated testing method of claim 1, further comprising:
storing the test cases which are successfully executed;
obtaining the characteristics of each component of a new object to be tested, judging the matching degree of a design drawing of the object to be tested and a stored test case according to the characteristics of the components, and calling the stored test case to test the object to be tested under the matching condition; and sending prompt information to the tester if the data are not matched.
5. The automated testing method of claim 1, comprising: and judging whether the test resources required by executing the execution case are enough, and calling the corresponding instrument program control unit or the corresponding control program control unit to finish the test of the object to be tested for the rail transit under the condition of being enough, otherwise, sending reminding information to the tester.
6. The automated testing method of claim 1, wherein the testing method comprises: monitoring the execution sequence of the test cases and the execution state of the test steps;
under the conditions that the execution sequence is correct, the execution state is successful, and the test result meets the test criterion, carrying out the test of the next step;
and displaying the test items corresponding to the test steps in the test report by distinguishing marks under the conditions that the execution sequence is correct, the execution state is successful and at least one of the test results is incorrect, and carrying out the test of the next step.
7. A test platform, comprising:
the storage module is used for storing an instrument program control library and an object program control library to be tested, the instrument program control library comprises a plurality of instrument program control units, the object program control library to be tested comprises a plurality of control program control units, and the corresponding relation between each instrument program control unit and each control program control unit and one testing step is stored;
the interaction module is used for receiving an input instruction;
and the processing module is used for acquiring the test case according to the input instruction, splitting the test case into a plurality of steps, and calling the corresponding instrument program control unit or the control program control unit to complete the test of the object to be tested for the rail transit according to the execution sequence of the test steps and the corresponding relation.
8. The test platform of claim 7, wherein the test platform comprises an import module, and the import module is configured to import a design drawing of an object to be tested;
the processing module is used for automatically matching corresponding instruments and meters to form a test chart according to the design chart and generating the test case according to the test chart and the test item library.
9. The test platform of claim 8, wherein the processing module marks the corresponding test items of the testing step at corresponding positions of the design drawing of the object to be tested;
the interaction module is used for receiving an adding instruction or a modifying instruction;
the processing module is used for adding the test steps according to the adding instruction, or modifying the test steps according to the modifying instruction, and establishing the corresponding relation between the added test steps or the modified test steps and the control program control unit or the instrument program control unit.
10. The test platform according to claim 8 or 9, wherein the storage module stores test cases that have been successfully executed;
the processing module is used for obtaining the characteristics of each component of the object to be tested, judging the matching degree of the design drawing of the object to be tested and the stored test case according to the characteristics of the components, and calling the stored test case to test the object to be tested under the matching condition.
11. The test platform of claim 7, wherein the processing module is configured to determine whether test resources required for executing a test case are sufficient, and if the test resources are sufficient, call the corresponding instrument program control unit or the control program control unit to complete a test of an object to be tested for rail transit, and otherwise send a prompt message to a tester;
the interaction module is used for displaying the test resources or the reminding information.
12. The test platform of claim 7, comprising a monitoring module, wherein the monitoring module is configured to monitor an execution sequence of the test cases and an execution status of the test steps;
the processing module executes the following processing according to the monitoring result of the monitoring module:
under the conditions that the execution sequence is correct, the execution state is that the execution is passed, and the test result meets the test criterion, carrying out the test of the next step;
under the conditions that the execution sequence is correct, the execution state is that the execution is passed and the test result does not meet the test criterion, displaying the test items corresponding to the test steps in a test report by using distinguishing marks, and carrying out the test of the next step;
and correspondingly adjusting the execution sequence of the test steps of the test case and adding remark information to the failed test steps under the conditions that the execution sequence is correct and the execution state is failed.
13. A test system comprising a computer and a meter, wherein the computer is connected to a controller system through the meter;
the computer comprises a storage module and a processor;
the storage module stores a computer program operable on the processor;
the processor executes the computer program to realize the automatic testing method of any one of claims 1 to 6 to perform black box testing on the reliability of the object to be tested in the rail transit, and further generates a testing report for judging the reliability of the object to be tested according to the testing result and the corresponding performance index.
14. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program, the computer program is executed to implement the automated testing method according to any one of claims 1 to 6 to perform black box testing on the reliability of an object to be tested for rail transit, and further generate a test report for judging the reliability of the object to be tested according to the test result and a corresponding performance index.
CN202210689485.4A 2022-06-16 2022-06-16 Automated testing method, testing platform, testing system and computer readable storage medium Pending CN115167337A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210689485.4A CN115167337A (en) 2022-06-16 2022-06-16 Automated testing method, testing platform, testing system and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210689485.4A CN115167337A (en) 2022-06-16 2022-06-16 Automated testing method, testing platform, testing system and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN115167337A true CN115167337A (en) 2022-10-11

Family

ID=83486074

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210689485.4A Pending CN115167337A (en) 2022-06-16 2022-06-16 Automated testing method, testing platform, testing system and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN115167337A (en)

Similar Documents

Publication Publication Date Title
CN109840207B (en) AutoSAR-based network management automation test system and test method
CN109406916B (en) Test platform for semiconductor memory aging test device
CN107491061B (en) A kind of the network automatically test macro and its method of commercial vehicle OBD diagnostic device
CN106771982B (en) Automatic chip testing method and system
CN102169846B (en) Method for writing multi-dimensional variable password in parallel in process of testing integrated circuit wafer
Rösch et al. Review of model-based testing approaches in production automation and adjacent domains-current challenges and research gaps
CN105738792A (en) PCBA test device and test method
CN112597006B (en) Automatic execution system and method for embedded software integrated test
CN111176984A (en) Signal-oriented automatic test implementation method
CN111124877B (en) Train display software testing method, device and system
CN103077114A (en) Automatic testing method based on communication protocol of temperature measuring device
CN110928556A (en) Automatic program burning method and device for railway vehicle, and testing method and system
CN110989549B (en) Software test general automation control method and device for train control system
JPWO2005036402A1 (en) Test program debug device, semiconductor test device, test program debug method, and test method
Liakh et al. Formal model of IEC 61499 execution trace in FBME IDE
CN111352842A (en) Embedded software debugging method
CN114661615A (en) FPGA software testing method and device
CN117370217A (en) Automatic interface test result generation method based on python
CN115167337A (en) Automated testing method, testing platform, testing system and computer readable storage medium
CN111767232A (en) Equipment test program set verification system
KR100329253B1 (en) Scan test apparatus
US8051048B2 (en) System and method for automated transfer and evaluation of the quality of mass data of a technical process or a technical project
CN111078526A (en) Test case generation method and device and storage medium
CN112699022B (en) Method and system for real-time efficient automatic contract testing
CN110704252A (en) Automatic testing device and testing method based on cloud dynamic management

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