CN112699030B - Automatic testing method for power supply partition software - Google Patents

Automatic testing method for power supply partition software Download PDF

Info

Publication number
CN112699030B
CN112699030B CN202011598170.6A CN202011598170A CN112699030B CN 112699030 B CN112699030 B CN 112699030B CN 202011598170 A CN202011598170 A CN 202011598170A CN 112699030 B CN112699030 B CN 112699030B
Authority
CN
China
Prior art keywords
power supply
software
supply partition
partition software
interface
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.)
Active
Application number
CN202011598170.6A
Other languages
Chinese (zh)
Other versions
CN112699030A (en
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.)
AVIC First Aircraft Institute
Original Assignee
AVIC First Aircraft Institute
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 AVIC First Aircraft Institute filed Critical AVIC First Aircraft Institute
Priority to CN202011598170.6A priority Critical patent/CN112699030B/en
Publication of CN112699030A publication Critical patent/CN112699030A/en
Application granted granted Critical
Publication of CN112699030B publication Critical patent/CN112699030B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3664Environments for testing or debugging software
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3684Test management for test design, e.g. generating new test cases
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

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

Abstract

The application discloses an automatic testing method of power supply partition software, which aims at the characteristics of large data interface, lower logic complexity and smaller interface value range of the power supply partition software, and establishes a database for storing one-to-one correspondence or one-to-many correspondence of input/output; automatically generating a dynamic test case by using an automatic test tool according to the bottom layer requirement (code level requirement); according to the characteristics of power supply partition software, external system interfaces interacted with the power supply partition software and other partition software interfaces in the same hardware environment, a power supply partition software test environment is constructed, large data test cases are supported to be imported/exported, and one-key automatic test is realized; and establishing a passing criterion for automatic comparison of software testing, extracting fault information of test cases with inconsistent software testing results, facilitating the targeted analysis and fault positioning of the problems by software testers, and improving the reliability of power supply partition software and the quality of system software.

Description

Automatic testing method for power supply partition software
Technical Field
The application relates to the technical field of airborne software testing, in particular to an automatic testing method for power supply partition software.
Background
With the development of modern aircrafts, the requirements on functions, performance, safety and the like of aircrafts are also higher and higher, and the number of data is multiplied while the design of system functions and safety is considered. And the main function of the power supply partition software is to directly forward or forward after processing the received power supply system data.
However, considering human resources and financial resources, when the airborne system environment is built, system staff mostly stand at the angle of a large system and the angle of the actual input/output relation of equipment to design and build a verification environment of the system staff; even if the function division interfaces are clear in the independent of the professions or the systems, under the partition software architecture with clear interfaces between the professions or the systems, when the functions of the power supply partition software are verified, software testers face hundreds of thousands of data interfaces or the partition software interfaces are tested, and the software testers are not in the hands. For software testers, a great deal of time is required for early work of software testing to design interface use cases between equipment-level interfaces and partition software, and a great deal of time is required for later work of software testing to search for interface identifiers and compare dynamic test results with each other.
For the power supply partition software, due to the similarity of interface names or identifiers of the power supply partition software, negligence of software testers is likely to cause missing test of the power supply partition software, hundred percent of investigation of interface tests cannot be achieved, and once an error occurs to an interface, the function implementation is affected slightly, and the aircraft safety is affected seriously.
Disclosure of Invention
The purpose of the application is that: the embodiment of the application provides an automatic testing method for power supply partition software, which is used for realizing the automatic testing of big data interfaces and functions of the power supply partition software.
The technical scheme of the application is as follows: the application provides an automatic testing method of power supply partition software, which comprises the following steps:
step 1, according to the characteristics that power supply partition software has a large data interface, low logic complexity and a small interface value range and is single, a database is established, and the database is used for storing one-to-one correspondence or one-to-many correspondence of input/output;
step 2, constructing a power supply partition software testing environment according to the characteristics of the power supply partition software, external system interfaces interacted with the power supply partition software and other partition software interfaces positioned in the same hardware environment, wherein the power supply partition software testing environment supports the import/export of big data testing case sets;
step 3, according to the functional logic of the power supply partition software, automatically generating a dynamic test case set of the power supply partition software according to the corresponding relation in the database;
step 4, executing the power supply partition software test case set generated in the step 3 in the power supply partition software test environment constructed in the step 2;
and 5, establishing a passing standard for automatic comparison of the power supply partition software test, and extracting fault information of the test cases with inconsistent software test results.
Optionally, in the method for automatically testing power supply partition software as described above, the step 1 specifically includes:
according to the characteristics of a big data interface, low logic complexity and small interface value range of the power supply partition software and singleness, an interface database and a function test case database of the power supply partition software are established by formulating a unique identification rule of the input/output of the power supply partition software;
wherein, the unique identification rule is an attribute for identifying each data, and the identification content comprises: interface identification and interface data name identification, and ensure that each identification and name are not repeated and have uniqueness.
Optionally, in the method for automatically testing power supply partition software as described above, the interface database established in step 1 includes: an input interface database and an input/output logical relationship database;
the input interface database is used for storing related information of an external interface of the power supply partition software and an internal interface of the power supply partition software;
the input/output logic relation database is an input/output logic relation table established according to the logic function of the power supply partition software, the input of the input/output logic relation table is data in the input interface database, and the output of the input/output logic relation table is output data of the power supply partition software.
Optionally, in the method for automatically testing power supply partition software as described above, the functional test case database established in the step 1 is:
based on the interface database, according to the instantiation test content in the input/output logic relation table, the function test case template database of the power supply partition software is established, and the function test case database is used for storing one-to-one correspondence or one-to-many correspondence of input/output.
Optionally, in the method for automatically testing power supply partition software as described above, the step 2 includes:
according to the characteristics of the power supply partition software, from the perspective of a power supply partition software interface, constructing a power supply partition software test environment, wherein the power supply partition software test environment comprises: the system comprises a virtual target machine, a power supply partition interface simulator and automatic test equipment, wherein the power supply partition interface simulator and the automatic test equipment are respectively connected with the virtual target machine through buses.
Optionally, in the method for automatically testing power supply partition software as described above, in the test environment of the power supply partition software constructed in step 2,
the power supply partition interface simulator is used for simulating data sent by an external system according to input data in the interface database established in the step 1;
the automatic test equipment is used for importing/exporting the big data test case set according to the functional test case database established in the step 1, so as to realize the automatic test of the test case set;
the virtual target machine is used for running power supply partition software in the electromechanical management system.
Optionally, in the method for automatically testing power supply partition software as described above, the step 3 includes:
and (2) writing a logic function expression of the power supply partition software according to an input/output logic relation table of the power supply partition software, and combining the logic function expression with the function test case database established in the step (1) to generate a test case set corresponding to input/output.
Optionally, in the method for automatically testing power supply partition software as described above, the step 4 includes:
and (3) establishing an automatic execution program of the test case set of the power supply partition software in the automatic test equipment of the test environment of the power supply partition software, and sending the input value of the test case set generated in the step (3) to the power supply partition interface simulator according to the data in the interface database to realize the automatic input of the test case set, thereby carrying out the function verification of the power supply partition software.
Optionally, in the method for automatically testing power supply partition software as described above, the step 5 includes:
and establishing passing standard and information extraction requirements of automatic comparison of power supply partition software testing, running power supply partition software in a virtual target machine of the constructed power supply partition software testing environment, and executing automatic import of input data in a testing case set, display, export, comparison and problem analysis functions by automatic testing equipment.
The beneficial effects of the application are as follows: the application provides an automatic test method of power supply partition software, which aims at the characteristics of large data interface, lower logic complexity and smaller interface value range of the power supply partition software, and establishes a database for storing one-to-one correspondence or one-to-many correspondence of input/output; automatically generating a dynamic test case by using an automatic test tool according to the bottom layer requirement (code level requirement); according to the characteristics of power supply partition software, external system interfaces interacted with the power supply partition software and other partition software interfaces in the same hardware environment, a power supply partition software test environment is constructed, large data test cases are supported to be imported/exported, and one-key automatic test is realized; and establishing a passing criterion for automatic comparison of software testing, extracting fault information of test cases with inconsistent software testing results, facilitating the targeted analysis and fault positioning of the problems by software testers, and improving the reliability of power supply partition software and the quality of system software.
The automatic testing method for the power supply partition software provided by the embodiment of the application has the following characteristics:
firstly, establishing a power supply partition interface and a use case database, formulating a unique identification rule of software input/output, ensuring the uniqueness of each data, and establishing an input template, an expected output template and an actual output template;
secondly, based on the characteristics of power supply partition software, constructing a power supply partition virtual simulation test environment, supporting the import/export of big data test cases, and realizing one-key automatic test;
thirdly, writing a power supply partition software logic function by utilizing a modern mature automatic test tool, and automatically generating a test case set;
fourthly, automatically importing a test case set in a virtual simulation test environment, establishing a driving program, and automatically executing the big data test case set;
fifthly, fault information extraction is carried out on test cases with inconsistent software test results by establishing a passing criterion for automatic comparison of software tests, so that the targeted analysis and fault positioning of software problems are facilitated;
by adopting the automatic testing method of the power supply partition software provided by the embodiment of the application, the manpower resources can be reduced, and the software testing efficiency can be improved; in addition, the reliability and the system safety of the power supply partition software can be improved; the method is high in universality and can be applied to software testing of big data interfaces and low logic complexity in other fields.
Drawings
The accompanying drawings are included to provide a further understanding of the application and are incorporated in and constitute a part of this specification, illustrate and do not limit the application.
Fig. 1 is a schematic diagram of a test principle of an automated test method for power supply partition software according to an embodiment of the present application;
FIG. 2 is a schematic diagram of establishing a power partition software interface relationship in an embodiment of the present application;
FIG. 3 is a schematic diagram of a power partition software testing environment established in an embodiment of the present application;
FIG. 4 is a schematic diagram of an automated test case set generation in an embodiment of the present application
FIG. 5 is a flow chart comparing actual operation results with expected output data in a test case set in an embodiment of the present application.
Specific implementation steps
For the purpose of making the objects, technical solutions and advantages of the present application more apparent, embodiments of the present application will be described in detail hereinafter with reference to the accompanying drawings. It should be noted that, without conflict, the embodiments of the present application and features of the embodiments may be arbitrarily combined with each other.
The steps illustrated in the flowchart of the figures may be performed in a computer system, such as a set of computer-executable instructions. Also, while a logical order is depicted in the flowchart, in some cases, the steps depicted or described may be performed in a different order than presented herein.
Aiming at the characteristics of low logic complexity and big data interfaces of power supply partition software, the embodiment of the application provides an automatic test method of the power supply partition software; by establishing one-to-one correspondence or one-to-many correspondence of input/output, dynamic test cases are automatically generated, big data test cases are imported into the constructed partitioned software test environment, one-key automatic test is realized, information extraction is carried out on the test cases with inconsistent software test results, targeted analysis and fault positioning of software testers on problems are facilitated, and reliability of power supply partitioned software and system software quality are improved.
The following specific embodiments may be combined with each other, and some embodiments may not be repeated for the same or similar concepts or processes.
Fig. 1 is a schematic diagram of a test principle of an automatic test method for power supply partition software according to an embodiment of the present application. As shown in fig. 1, the automated testing method provided by the embodiment of the present application may include the following steps:
step 1, a database is built according to the characteristics that power supply partition software has a large data interface, low logic complexity and a small interface value range and is single; the database is used for storing one-to-one correspondence or one-to-many correspondence of input/output;
step 2, constructing a power supply partition software test environment according to the characteristics of the power supply partition software, external system interfaces interacted with the power supply partition software and other partition software interfaces positioned in the same hardware environment, wherein the power supply partition software test environment supports the import/export of big data test case sets;
step 3, according to the functional logic of the power supply partition software, automatically generating a dynamic test case set of the power supply partition software according to the corresponding relation in the database;
step 4, executing the power supply partition software test case set generated in the step 3 in the power supply partition software test environment constructed in the step 2;
and 5, establishing a passing standard for automatic comparison of the power supply partition software test, and extracting fault information of the test cases with inconsistent software test results.
The following describes in detail the specific implementation manner of each step in the automatic testing method of the power supply partition software provided by the embodiment of the present application.
The specific implementation manner of step 1 in the embodiment of the present application may include:
according to the characteristics of a big data interface, low logic complexity and small interface value range of the power supply partition software and singleness, an interface database and a function test case database of the power supply partition software are established by formulating a unique identification rule of the input/output of the power supply partition software.
The unique identification rule is an attribute for identifying each data, and the identification content comprises: interface identification and interface data name identification, and ensure that each identification and name are not repeated and have uniqueness.
The interface database established in step 1 of the embodiment of the present application includes: an input interface database and an input/output logical relationship database;
the input interface database is used for storing related information of an external interface of the power supply partition software and an internal interface of the power supply partition software;
the input/output logic relation database is an input/output logic relation table established according to the logic function of the power supply partition software, the input of the input/output logic relation table is data in the input interface database, and the output of the input/output logic relation table is output data of the power supply partition software.
The functional test case database established in the step 1 of the embodiment of the application is as follows:
based on the interface database, according to the instantiation test content in the input/output logic relation table, the built power supply partition software function test case template database is used for storing one-to-one correspondence or one-to-many correspondence of input/output. Fig. 2 is a schematic diagram of establishing a power partition software interface relationship in an embodiment of the present application.
The specific implementation manner of step 2 in the embodiment of the present application may include:
according to the characteristics of the power supply partition software, from the perspective of a power supply partition software interface, constructing a power supply partition software test environment, wherein the power supply partition software test environment comprises: the system comprises a virtual target machine, a power supply partition interface simulator and automatic test equipment, wherein the power supply partition interface simulator and the automatic test equipment are respectively connected with the virtual target machine through buses. Fig. 3 is a schematic structural diagram of a power partition software testing environment established in an embodiment of the present application, where a virtual operating system is running in a virtual target machine.
The functions of each device in the power supply partition software testing environment constructed in step 2 of the embodiment of the present application are described as follows:
the power supply partition interface simulator is used for simulating data sent by an external system according to the input data in the interface database established in the step 1;
the automatic test equipment is used for importing/exporting the big data test case set according to the functional test case database established in the step 1, so as to realize the automatic test of the test case set;
and the virtual target machine is used for running power supply partition software in the electromechanical management system.
The specific implementation manner of step 3 in the embodiment of the present application may include:
and (2) writing a logic function expression of the power supply partition software according to an input/output logic relation table of the power supply partition software, and combining the logic function expression with the function test case database established in the step (1) to generate a test case set corresponding to input/output. FIG. 4 is a schematic diagram of the principle of automatically generating test case sets in the embodiment of the application.
The specific implementation manner of step 4 in the embodiment of the present application may include:
and (3) establishing an automatic execution program of the test case set of the power supply partition software in automatic test equipment of the test environment of the power supply partition software, and sending the input value of the test case set generated in the step (3) to a power supply partition interface simulator according to data in an interface database to realize automatic input of the test case set, so that function verification of the power supply partition software is carried out.
The specific implementation manner of step 5 in the embodiment of the present application may include:
and establishing passing standard and information extraction requirements of automatic comparison of power supply partition software testing, running power supply partition software in a virtual target machine of the constructed power supply partition software testing environment, and executing automatic import of input data in a testing case set, display, export, comparison and problem analysis functions by automatic testing equipment.
Aiming at the power supply partition software, the automatic test method provided by the embodiment of the application has the characteristics of large data interface, lower logic complexity and smaller interface value range, and establishes a database for storing one-to-one correspondence or one-to-many correspondence of input/output; automatically generating a dynamic test case by using an automatic test tool according to the bottom layer requirement (code level requirement); according to the characteristics of power supply partition software, external system interfaces interacted with the power supply partition software and other partition software interfaces in the same hardware environment, a power supply partition software test environment is constructed, large data test cases are supported to be imported/exported, and one-key automatic test is realized; and establishing a passing criterion for automatic comparison of software testing, extracting fault information of test cases with inconsistent software testing results, facilitating the targeted analysis and fault positioning of the problems by software testers, and improving the reliability of power supply partition software and the quality of system software.
The following describes a specific implementation manner of an automated testing method for power supply partition software provided by an embodiment of the present application through a specific implementation example.
The test mode of the existing power supply partition software is as follows: the power supply partition software runs in the electromechanical control management computer, the electromechanical control management computer receives data from the power supply system, the landing gear control system and other partitions of the electromechanical control management computer, the data are comprehensively processed by signals and then sent to the avionics system, the central maintenance system and the like, and in the process, the power supply partition software mainly completes the functions of signal display, alarm, information comprehensive processing and the like of the power supply system.
The schematic flow chart of the automatic testing method of the power supply partition software provided by the embodiment is shown in fig. 1, and the specific implementation manner is as follows:
step 1: according to the characteristics of large data interfaces, low logic complexity, small interface value range and single interface value range (such as small time period counting value range and large multivariable Boolean variable) of the power supply partition software, an interface database and a function test case database of the power supply partition software are established by formulating a unique identification rule of input/output of the power supply partition software. The unique identification rule is an attribute for identifying each data, and the identification content comprises an interface identification, an interface data name and the like, so that each identification and each name are ensured not to be repeated and have uniqueness.
The interface database established in step 1 of this implementation example includes: an input interface database and an input/output logical relationship database. The built input interface database is used for storing relevant information of an external interface of the power supply partition software and an internal interface of the power supply partition software, wherein data transmitted by the external interface of the power supply partition software are data from a power supply system, a landing gear control system and other systems; the data transmitted by the internal interface of the power supply partition software is a signal from other partition software (fuel partition, bus partition) of the electromechanical control management computer. The input/output logical relation database is an input/output relation table established according to the logical function of the power supply partition software, the input of the input/output logical relation database is data in the input interface database, and the output of the input/output logical relation database is output data of the power supply partition software.
The function test case database in step 1 of this embodiment is based on the interface database, and the power supply partition software function test case template database is built according to the instantiation test content in the input/output logic relation table, that is, the one-to-one correspondence relation or one-to-many relation between output and input is used for the design of the subsequent software test cases. The power supply partition software interface relationship establishment schematic diagram is shown in fig. 2.
Step 2: based on the characteristics of the power supply partition software, a power supply partition software test environment is constructed from the perspective of the power supply partition software. The power partition software testing environment comprises: the system comprises a virtual target machine, a power supply partition interface simulator and automatic test equipment, wherein the power supply partition interface simulator and the automatic test equipment are respectively connected with the virtual target machine through buses, and the power supply partition interface simulator and the automatic test equipment are shown in fig. 3.
In the power supply partition software testing environment, the power supply partition interface simulator functions are to simulate data sent by an external system according to input data in an interface database of the power supply partition software in the step 1, namely external system/equipment interfaces and internal other partition interface data for exciting the power supply partition software.
The function of the automatic test equipment is to conduct import/export of a big data test case set according to the function test case database in the step 1, so that one-key automatic test is realized; displaying the actual running result of the power supply partition software; automatic test equipment is built to complete automatic execution and result comparison and analysis of test case sets, and a closed loop of software dynamic test is formed;
the virtual target machine is used for running power supply partition software in the electromechanical management system.
Step 3: according to the power supply partition software function logic, namely an input/output logic relation table in the step 1, a modern mature automatic test case generating tool is utilized to write a power supply partition software logic function expression in a T-Vec case generating tool, the power supply partition software logic expression enters a T-Vec VGS module through a conversion model, and a condition exhaustion test case generating file which automatically generates the functional requirements of the power supply partition software is compiled; the map file is combined with the function test case database in the step 1, and a test case set corresponding to input/output is generated after preprocessing, and a schematic diagram of the map file is shown in fig. 4.
Step 4: and (3) establishing an automatic execution program of the test case set of the power supply partition software in the automatic test equipment in the step (2), and sending the input value of the test case set generated in the step (3) to the power supply partition interface simulator according to the data in the interface database so as to realize the automatic input of the test case set.
In one implementation of the embodiment of the present application, the pseudo code of the software test case set automatic execution program is as follows:
step 5: and (3) establishing the passing standard and information extraction requirements of the automatic comparison of the power supply partition software test, running the power supply partition software in the virtual target machine of the power supply partition virtual simulation test environment in the step (2), and completing the functions of automatic input of the tested input data, display, export, comparison, problem analysis and the like by the automatic test equipment. Wherein, the comparison means: and comparing the actual operation result with expected output data in the test case set according to the passing standard.
The software test automation comparison passing standard and information extraction requirement is to automatically compare the actual result with the expected result according to comparison, automatically extract error result information of the software test, including test case identification, test input, expected result, actual result and the like, so as to facilitate the targeted analysis and fault location of the software problem, as shown in fig. 5, which is a flow chart comparing the actual operation result with the expected output data in the test case set in the embodiment of the application.
For example, the pseudo code of the software test case result collection and comparison analysis program is as follows:
by adopting the automatic test method of the power supply partition software provided by the embodiment, software testers automatically execute the test and automatically compare and analyze the result of the automatically generated test case set through the power supply partition software test environment, and the software testers only need to put most of energy on the maintenance of the database and the analysis of automatically extracting error information, so that not only are the manpower resources reduced, but also the exhaustion of data is realized, the low-level requirements and the high-level requirements of the software are covered on a large scale, the error of the design test case of the software testers is avoided, and the software test efficiency and the reliability and the quality of the partition software/system application software are improved.
Although the embodiments of the present application are described above, the embodiments are only used for facilitating understanding of the present application, and are not intended to limit the present application. Any person skilled in the art can make any modification and variation in form and detail without departing from the spirit and scope of the present disclosure, but the scope of the present disclosure is to be determined by the appended claims.

Claims (8)

1. An automated testing method of power supply partition software, wherein the power supply partition software is used for directly forwarding or forwarding after processing received power supply system data, and the method comprises the following steps:
step 1, according to the characteristics that power supply partition software has a large data interface, low logic complexity and a small interface value range and is single, a database is established, and the database is used for storing one-to-one correspondence or one-to-many correspondence of input/output;
step 2, constructing a power supply partition software testing environment according to the characteristics of the power supply partition software, external system interfaces interacted with the power supply partition software and other partition software interfaces positioned in the same hardware environment, wherein the power supply partition software testing environment supports the import/export of big data testing case sets;
step 3, according to the functional logic of the power supply partition software, automatically generating a dynamic test case set of the power supply partition software according to the corresponding relation in the database;
step 4, executing the power supply partition software test case set generated in the step 3 in the power supply partition software test environment constructed in the step 2;
step 5, establishing a passing standard for automatic comparison of power supply partition software testing, and extracting fault information of test cases with inconsistent software testing results;
wherein, the step 1 specifically includes:
according to the characteristics of a big data interface, low logic complexity and small interface value range of the power supply partition software and singleness, an interface database and a function test case database of the power supply partition software are established by formulating a unique identification rule of the input/output of the power supply partition software;
the interface database established in the step 1 includes: an input interface database and an input/output logical relationship database;
the functional test case database established in the step 1 is:
based on the interface database, according to the instantiation test content in the input/output logic relation table, the function test case template database of the power supply partition software is established, and the function test case database is used for storing one-to-one correspondence or one-to-many correspondence of input/output.
2. The automated testing method of power partition software of claim 1, wherein,
the unique identification rule in the step 1 is an attribute for identifying each data, and the identification content comprises: interface identification and interface data name identification, and ensure that each identification and name are not repeated and have uniqueness.
3. The automated testing method of power partition software of claim 1, wherein,
the input interface database is used for storing related information of an external interface of the power supply partition software and an internal interface of the power supply partition software;
the input/output logic relation database is an input/output logic relation table established according to the logic function of the power supply partition software, the input of the input/output logic relation table is data in the input interface database, and the output of the input/output logic relation table is output data of the power supply partition software.
4. The automated testing method of power partition software of claim 1, wherein step 2 comprises:
according to the characteristics of the power supply partition software, from the perspective of a power supply partition software interface, constructing a power supply partition software test environment, wherein the power supply partition software test environment comprises: the system comprises a virtual target machine, a power supply partition interface simulator and automatic test equipment, wherein the power supply partition interface simulator and the automatic test equipment are respectively connected with the virtual target machine through buses.
5. The automated power partition software testing method according to claim 4, wherein in the power partition software testing environment constructed in step 2,
the power supply partition interface simulator is used for simulating data sent by an external system according to input data in the interface database established in the step 1;
the automatic test equipment is used for importing/exporting the big data test case set according to the functional test case database established in the step 1, so as to realize the automatic test of the test case set;
the virtual target machine is used for running power supply partition software in the electromechanical management system.
6. The automated testing method of power partition software of claim 5, wherein step 3 comprises:
and (2) writing a logic function expression of the power supply partition software according to an input/output logic relation table of the power supply partition software, and combining the logic function expression with the function test case database established in the step (1) to generate a test case set corresponding to input/output.
7. The automated testing method of power partition software of claim 6, wherein step 4 comprises:
and (3) establishing an automatic execution program of the test case set of the power supply partition software in the automatic test equipment of the test environment of the power supply partition software, and sending the input value of the test case set generated in the step (3) to the power supply partition interface simulator according to the data in the interface database to realize the automatic input of the test case set, thereby carrying out the function verification of the power supply partition software.
8. The automated testing method of power partition software of claim 7, wherein step 5 comprises:
and establishing passing standard and information extraction requirements of automatic comparison of power supply partition software testing, running power supply partition software in a virtual target machine of the constructed power supply partition software testing environment, and executing automatic import of input data in a testing case set, display, export, comparison and problem analysis functions by automatic testing equipment.
CN202011598170.6A 2020-12-29 2020-12-29 Automatic testing method for power supply partition software Active CN112699030B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011598170.6A CN112699030B (en) 2020-12-29 2020-12-29 Automatic testing method for power supply partition software

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011598170.6A CN112699030B (en) 2020-12-29 2020-12-29 Automatic testing method for power supply partition software

Publications (2)

Publication Number Publication Date
CN112699030A CN112699030A (en) 2021-04-23
CN112699030B true CN112699030B (en) 2023-10-20

Family

ID=75512021

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011598170.6A Active CN112699030B (en) 2020-12-29 2020-12-29 Automatic testing method for power supply partition software

Country Status (1)

Country Link
CN (1) CN112699030B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CA2321346A1 (en) * 2000-09-28 2002-03-28 Stephen K. Sunter Method, system and program product for testing and/or diagnosing circuits using embedded test controller access data
CN105373469A (en) * 2014-08-25 2016-03-02 广东金赋信息科技有限公司 Interface based software automation test method
CN106598848A (en) * 2016-11-30 2017-04-26 中国直升机设计研究所 Keyword-driven airborne software automatic test method and system
CN107145140A (en) * 2017-05-18 2017-09-08 中国第汽车股份有限公司 Vehicle-mounted electronic control unit CAN interface Auto-Test System and its method of testing
CN107368636A (en) * 2017-07-05 2017-11-21 西安微电子技术研究所 A kind of stand-alone application checking system of compatible sparc V8 frameworks SOC
CN111190406A (en) * 2019-12-25 2020-05-22 中国航空工业集团公司西安飞机设计研究所 Method for testing undercarriage control system software
CN111983990A (en) * 2019-05-23 2020-11-24 天津博顿电子有限公司 Automatic testing platform for basic software
WO2020249169A1 (en) * 2019-06-14 2020-12-17 Continental Automotive Gmbh Method for ensuring and maintaining the function of a complete safety-critical system

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CA2321346A1 (en) * 2000-09-28 2002-03-28 Stephen K. Sunter Method, system and program product for testing and/or diagnosing circuits using embedded test controller access data
CN105373469A (en) * 2014-08-25 2016-03-02 广东金赋信息科技有限公司 Interface based software automation test method
CN106598848A (en) * 2016-11-30 2017-04-26 中国直升机设计研究所 Keyword-driven airborne software automatic test method and system
CN107145140A (en) * 2017-05-18 2017-09-08 中国第汽车股份有限公司 Vehicle-mounted electronic control unit CAN interface Auto-Test System and its method of testing
CN107368636A (en) * 2017-07-05 2017-11-21 西安微电子技术研究所 A kind of stand-alone application checking system of compatible sparc V8 frameworks SOC
CN111983990A (en) * 2019-05-23 2020-11-24 天津博顿电子有限公司 Automatic testing platform for basic software
WO2020249169A1 (en) * 2019-06-14 2020-12-17 Continental Automotive Gmbh Method for ensuring and maintaining the function of a complete safety-critical system
CN111190406A (en) * 2019-12-25 2020-05-22 中国航空工业集团公司西安飞机设计研究所 Method for testing undercarriage control system software

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
供电企业SCADA/EMS信息接入PI实时数据库的实现及应用;卢黎明;张页;;华东电力(07);全文 *
基于全数字仿真的虚拟软件测试环境;滕俊元;徐忠宾;高猛;;机电一体化(09);全文 *

Also Published As

Publication number Publication date
CN112699030A (en) 2021-04-23

Similar Documents

Publication Publication Date Title
CN105528290B (en) Construction method of script-based embedded software simulation and test integrated platform
CN104252481A (en) Dynamic check method and device for consistency of main and salve databases
CN107797928B (en) Instrument control system platform logic algorithm block testing device and method
CN111190820B (en) Configuration item test platform construction method and test method for display control software
CN106598848A (en) Keyword-driven airborne software automatic test method and system
CN101295280A (en) Automatic software debugging method and system
CN111176999B (en) Test platform construction method and test method of unmanned aerial vehicle flight control management software
CN113602526A (en) Verification test method and system for aircraft electromechanical fault prediction and health management system
US20180276321A1 (en) Method and apparatus for testing design of satellite wiring harness and signal processing units
CN111309343A (en) Development deployment method and device
CN117472672B (en) Cloud computing hardware acceleration test system and method based on GPU integration
CN116467211B (en) System-level test verification method based on digital simulation environment
CN112699030B (en) Automatic testing method for power supply partition software
CN117214561A (en) Test method of automatic test operation system and information sharing platform
CN111176995A (en) Test method and test system based on big data test case
CN112711532B (en) Automatic testing method for undercarriage partition software
CN112699029B (en) Automatic test method for compartment door partition software
CN112849429B (en) Tracing method for civil aircraft system measurement parameters
CN117597669A (en) Test method, system and device
CN112699031B (en) Method for testing partition software architecture
CN106776268A (en) A kind of aobvious control software and hardware system reliability test motivational techniques based on section mapping
CN103017815A (en) Visual general test system and visual general test method
CN112231062A (en) Safety test system and method for programmable industrial controller
CN111859985A (en) AI customer service model testing method, device, electronic equipment and storage medium
CN113360306B (en) Real-time fault detection method for airborne information system

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
GR01 Patent grant
GR01 Patent grant