CN115114147A - Test system based on structured description language - Google Patents

Test system based on structured description language Download PDF

Info

Publication number
CN115114147A
CN115114147A CN202210640148.6A CN202210640148A CN115114147A CN 115114147 A CN115114147 A CN 115114147A CN 202210640148 A CN202210640148 A CN 202210640148A CN 115114147 A CN115114147 A CN 115114147A
Authority
CN
China
Prior art keywords
test
configuration
data
bus adapter
test system
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
CN202210640148.6A
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.)
Beijing Jiaotong University
Original Assignee
Beijing Jiaotong University
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 Beijing Jiaotong University filed Critical Beijing Jiaotong University
Priority to CN202210640148.6A priority Critical patent/CN115114147A/en
Publication of CN115114147A publication Critical patent/CN115114147A/en
Pending legal-status Critical Current

Links

Images

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/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites
    • 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/3696Methods or tools to render software testable
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/242Query formulation
    • G06F16/2433Query languages

Abstract

The invention provides a test system based on a structured description language, which is used for verifying each key technology of a front-end control combination and comprises an execution test program set configuration module, a test module and a database management module; the cross-platform installation can be realized, the test channel is expanded, the test task is more flexible to carry out, the software has the function of automatically generating the test report, and the workload and the error rate of manual entry are reduced.

Description

Test system based on structured description language
Technical Field
The invention belongs to the technical field of automatic testing, and particularly relates to a testing system based on a structured description language.
Background
Due to the development of electronics, communications, and automation technologies, automated testing is becoming increasingly critical in the production and development of devices. Particularly in the aerospace field, the research, development, design and production of project products need a large number of tests to complete the verification of the quantification and the qualification. At present, a platform capable of realizing data informatization analysis and management of information such as faults and states of front-end control combination equipment is not disclosed in the technical field of automation test.
Disclosure of Invention
Aiming at the problems in the prior art, the invention provides a test system based on a structured description language in a first aspect, which can verify each key technology of front-end control combination. In order to achieve the above purposes, the technical scheme adopted by the invention is as follows:
a test system based on a structured description language comprises an execution test program set configuration module, a test module and a database management module;
the executive test suite configuration module is configured to: receiving a test instruction from a front-end execution interface, configuring a test flow according to the test instruction, generating a configuration result and storing the configuration result in an XML format in a database according to a specified path;
the test module is configured to: calling a parallel test task scheduling algorithm platform interface according to the configuration result, completing the execution, monitoring and control of the test, and generating test data;
the database management module is used for managing the database based on a database management tool comprising SQLite and/or MySQL;
the working steps of the test system are as follows:
receiving the test instruction and generating a message template, analyzing the test instruction according to the message template, and extracting the test instruction comprising sending opportunity, delay, related starting conditions and related termination conditions;
and starting the executing test program set configuration module.
On the basis of the scheme, the equipment layer of the test system comprises a plurality of API interfaces for executing tasks including initialization, data reading and writing and parameter configuration on related hardware.
On the basis of the above scheme, the step of executing the initialization, data reading and writing, and parameter configuration tasks on the relevant hardware by the device layer includes:
the front-end execution interface sends an initialization command to the equipment layer, the equipment layer calls an equipment handle, and equipment initialization information is fed back to the front-end execution interface;
the front-end execution interface sends a parameter configuration command to the equipment layer, the equipment layer configures the parameters of the hardware and feeds back the configuration parameters to the front-end execution interface;
the front-end execution interface sends a write command to the equipment layer, and the equipment layer calls a drive interface to write data to the hardware and feeds back a write success flag to the front-end execution interface;
and the front-end execution interface sends a reading command to the equipment layer, and the equipment layer calls the driving interface to read the data of the hardware and feeds the read data back to the front-end execution interface.
On the basis of the scheme, the test system realizes network communication, message interface initialization and data sending and receiving based on the bus adapter.
On the basis of the above scheme, the step of implementing the network communication and message interface initialization by the test system based on the bus adapter includes:
s1: a caller end sends an instantiation adapter instruction, the bus adapter receives the instruction and then acquires configuration data including configuration parameters and attribute information in an XML format, and the bus adapter verifies whether the configuration data is complete or not;
s2: if the configuration data is complete, the bus adapter completes an instantiated device layer network task, an initialized device layer network instruction is sent to a network layer, and the bus adapter obtains the initialization result and verifies the initialization result;
if there is any exception information in the check in S1 or S2, the bus adapter sends the exception information to the caller.
On the basis of the above scheme, the step of the test system for sending and receiving the data based on the bus adapter includes:
the caller end sends a data sending or data receiving instruction to a network layer from the bus adapter;
the bus adapter receives a data sending result or a data receiving result fed back by the network layer;
the bus adapter verifies the data sending result or the data receiving result;
and the bus adapter sends the received data to the caller end.
On the basis of the scheme, the test system can realize a verification method through the bus adapter, and the verification method comprises the following steps:
after receiving a message frame sent by opposite-end equipment, the bottom-layer execution software acquires a message template of the table number from the database according to the table number in the message frame, analyzes the frame type, the information source, the information sink, the check bit, the frame length and the data, and sends the analysis result to the front-end execution interface.
On the basis of the scheme, the bus adapter supports a frame format configured as follows: and performing corresponding framing, deframing and frame verification according to the frame format composition, the length and the position of each field and the content of each byte of the configuration result.
On the basis of the above scheme, the working interface of the test program set configuration module includes:
test item configuration area: the method is divided into a product stage and a case stage, and the configuration of the test items is completed in the case stage by the flow steps related to the test items;
flow step configuration area: dragging the control of the flow step to a corresponding position below the case by the area to complete the related configuration of the case;
flow step attribute configuration area: the area is configured with the relevant attributes of the specific process steps so that the process steps successfully realize the test function of the test items.
In a second aspect, the present invention provides an application server, which includes a memory and a processor, wherein the memory stores any one of the above test systems based on the structured description language, which is executed on the processor.
The invention has the beneficial effects that:
the invention can realize cross-platform installation, expands the test channel, leads the test task to be more flexible, and the software has the function of automatically generating the test report, thereby achieving the purpose of reducing the workload and the error rate of manual input.
Drawings
The invention has the following drawings:
FIG. 1 is a block diagram of a test system according to some embodiments.
Figure 2 is an equipment level architecture of a test system of some embodiments.
FIG. 3 illustrates a bus adapter-based architecture of a test system according to some embodiments.
FIG. 4 illustrates an embodiment of a front-end control cluster test software host interface.
Detailed Description
The present invention is described in further detail below with reference to FIGS. 1-4.
As shown in FIG. 1, some embodiments implement a test suite configuration module, a test module, a database management module, shown in the main modules of a structured description language based test system;
the executive test suite configuration module is configured to: receiving a test instruction from a front-end execution interface, configuring a test flow according to the test instruction, generating a configuration result and storing the configuration result in an XML format in a database according to a specified path;
the test module is configured to: calling a parallel test task scheduling algorithm platform interface according to the configuration result, completing the execution, monitoring and control of the test, and generating test data;
the database management module is used for managing the database based on a database management tool comprising SQLite and/or MySQL;
the test system may perform the following steps:
receiving the test instruction and generating a message template, analyzing the test instruction according to the message template, and extracting a plurality of parameters including sending opportunity, time delay, related starting conditions, related termination conditions and the like from the test instruction;
and starting the executing test program set configuration module.
The database management module preferably implements database management based on SQLite, and in more specific embodiments includes a plurality of forms for recording test data, the forms including: test information table, test item information table, test branch information table.
The term "test basic information table" is mainly used to record the basic information of each test, and mainly includes the tester, the test site, the product name, the product code, the product number, etc. The "test item information table" is mainly used to record the basic information of each test, and mainly includes the name of the test item, the result of the test item, etc. The "test item branch table" mainly includes branch names, branch test contents, branch test results, test time, and the like.
As shown in fig. 2, in some specific embodiments, in the test system based on the structured description language, the device layer includes a plurality of API interfaces for performing tasks including initialization, data reading and writing, parameter configuration, and the like on related hardware.
The steps of executing the initialization, data reading and writing and parameter configuration tasks on the related hardware through the device layer comprise:
the front-end execution interface sends an initialization command to the equipment layer, the equipment layer calls an equipment handle, and equipment initialization information is fed back to the front-end execution interface;
the front-end execution interface sends a parameter configuration command to the equipment layer, the equipment layer configures the parameters of the hardware and feeds the configuration parameters back to the front-end execution interface;
the front-end execution interface sends a write command to the equipment layer, and the equipment layer calls a drive interface to write data to the hardware and feeds back a write success flag to the front-end execution interface;
and the front-end execution interface sends a read command to the equipment layer, and the equipment layer calls the drive interface to read the data of the hardware and feeds the read data back to the front-end execution interface.
As shown in fig. 3, in some embodiments, the bus adapter is designed to implement network communication, initialization of a message interface, and sending and receiving of data through the bus adapter.
The bus comprises a network (unicast, multicast and broadcast), a message middleware and other buses, and the caller determines that the bottom layer uses the overall object entity by adapting the bus without considering the specific implementation of the bottom layer.
The step of implementing the network communication and message interface initialization based on the bus adapter comprises:
s1: a caller end sends an instantiation adapter instruction, the bus adapter receives the instruction and then acquires configuration data including configuration parameters and attribute information in an XML format, and the bus adapter verifies whether the configuration data is complete or not;
s2: if the configuration data is complete, the bus adapter completes an instantiated device layer network task, an initialized device layer network instruction is sent to a network layer, and the bus adapter obtains the initialization result and verifies the initialization result;
if there is any exception information in the check in S1 or S2, the bus adapter sends the exception information to the caller.
The step of the test system for realizing the sending and receiving of the data based on the bus adapter comprises the following steps:
the caller sends a data sending or data receiving instruction to a network layer from the bus adapter;
the bus adapter receives a data sending result or a data receiving result fed back by the network layer;
the bus adapter verifies the data sending result or the data receiving result;
and the bus adapter sends the received data to the caller end.
In some specific embodiments, the test system may implement a verification method through the bus adapter, where the verification method includes the following steps:
after receiving a message frame sent by opposite-end equipment, the bottom-layer execution software acquires a message template of the table number from the database according to the table number in the message frame, analyzes the frame type, the information source, the information sink, the check bit, the frame length and the data, and sends the analysis result to the front-end execution interface.
The bus adapter of more specific embodiments supports a frame format configured as follows: and performing corresponding framing, deframing and frame verification according to the frame format composition, the length and the position of each field and the content of each byte of the configuration result.
Some embodiments further check data for different test protocol formats, mainly including CRC16, cumulative sum, exclusive or sum, caller needs to provide data head address, length pending. The operator can set the sending time, the time delay and the related starting condition termination condition of a certain test instruction, and the bottom layer execution software carries out the test according to the set parameters.
The interface initialization of network communication and information, and the sending and receiving of data are mainly completed through bus design.
In some more specific embodiments, the working interface of the testsuite configuration module includes:
test item configuration area: the method is divided into a product stage and a case stage, and the configuration of the test items is completed in the case stage by the flow steps related to the test items;
flow step configuration area: dragging the control of the flow step to a corresponding position below the case by the area to complete the related configuration of the case;
flow step attribute configuration area: the area is configured with the relevant attributes of the specific process steps so that the process steps successfully realize the test function of the test items.
More specifically, a front-end control combination test software is provided, whose main function is to complete the related test items of the front-end control combination test, including the individual module test of the front-end control combination and the overall test of the front-end control combination.
As shown in fig. 4, the front-end execution interface of the front-end control combination test software includes a control combination overview area, a test item overview area, and a log overview area, which are respectively configured to:
controlling a combined overview area: including information such as a combination product number, a product code, a product name, etc.
Test item overview area: the method is used for showing the summary of the test items contained in the opening project, and the test items to be tested can be selected through the opposite check frames in front of the test items.
③ journal overview area: and the test result of the test item is displayed.
The term "test suite" includes a collection of optimal test procedures, a "test task" is an execution task that requires a test, and a "database" is an organized collection of structured information or data (typically stored in electronic form in a computer system). "bus" includes networks (unicast, multicast, broadcast), message middleware, and the like.
The front-end execution interface is configured to be capable of dragging a control corresponding to the test flow information in the front-end execution interface.
The test system of some embodiments is configured to: the test may be performed according to a number of parameters of the test instruction including the timing of the transmission, the delay, the associated start condition, the associated stop condition, etc.
The above embodiments are only for illustrating the present invention and are not meant to be limiting, and those skilled in the art can make various changes and modifications without departing from the spirit and scope of the present invention, so that all equivalent technical solutions also belong to the scope of the present invention, and the scope of the present invention should be defined by the claims. Those not described in detail in this specification are within the skill of the art.

Claims (10)

1. A test system based on a structured description language is characterized by comprising a test program set executing configuration module, a test module and a database management module;
the executive test suite configuration module is configured to: receiving a test instruction from a front-end execution interface, configuring a test flow according to the test instruction, generating a configuration result and storing the configuration result in an XML format in a database according to a specified path;
the test module is configured to: calling a parallel test task scheduling algorithm platform interface according to the configuration result, completing the execution, monitoring and control of the test, and generating test data;
the database management module is used for managing the database based on a database management tool comprising SQLite and/or MySQL;
the working steps of the test system are as follows:
receiving the test instruction and generating a message template, analyzing the test instruction according to the message template, and extracting the test instruction comprising sending opportunity, delay, related starting conditions and related termination conditions;
and starting the configuration module for executing the test program set.
2. The structured description language based test system as claimed in claim 1, wherein said device layer of said test system comprises a plurality of API interfaces for performing tasks including initialization, data read/write, parameter configuration on related hardware.
3. The structured description language based test system according to claim 2, wherein the step of performing the initialization, data read/write, and parameter configuration tasks on the associated hardware through the device layer comprises:
the front-end execution interface sends an initialization command to the equipment layer, the equipment layer calls an equipment handle, and equipment initialization information is fed back to the front-end execution interface;
the front-end execution interface sends a parameter configuration command to the equipment layer, the equipment layer configures the parameters of the hardware and feeds the configuration parameters back to the front-end execution interface;
the front-end execution interface sends a write command to the equipment layer, and the equipment layer calls a drive interface to write data to the hardware and feeds back a write success flag to the front-end execution interface;
and the front-end execution interface sends a reading command to the equipment layer, and the equipment layer calls the driving interface to read the data of the hardware and feeds the read data back to the front-end execution interface.
4. The structured description language based test system as claimed in claim 1, wherein said test system implements network communication, initialization of message interface, sending and receiving of data based on bus adapter.
5. The structured description language based test system as claimed in claim 4, wherein said step of said test system implementing said network communication and message interface initialization based on said bus adapter comprises:
s1: a caller end sends an instantiation adapter instruction, the bus adapter receives the instruction and then acquires configuration data including configuration parameters and attribute information in an XML format, and the bus adapter verifies whether the configuration data is complete or not;
s2: if the configuration data is complete, the bus adapter completes instantiation equipment layer network tasks, sends initialization equipment layer network instructions to a network layer, and the bus adapter acquires the initialization result and verifies the initialization result;
if there is any exception information in the check in S1 or S2, the bus adapter sends the exception information to the caller.
6. The structured description language based test system as claimed in claim 4, wherein said test system implementing said data sending and receiving steps based on said bus adapter comprises:
the caller end sends a data sending or data receiving instruction to a network layer from the bus adapter;
the bus adapter receives a data sending result or a data receiving result fed back by the network layer;
the bus adapter verifies the data sending result or the data receiving result;
and the bus adapter sends the received data to the caller end.
7. A test system based on a structured description language according to claim 4, characterized in that said test system implements a verification method through said bus adapter, said verification method comprising the following steps:
after receiving a message frame sent by opposite-end equipment, the bottom-layer execution software acquires a message template of the table number from the database according to the table number in the message frame, analyzes the frame type, the information source, the information sink, the check bit, the frame length and the data, and sends the analysis result to the front-end execution interface.
8. The structured description language based test system as claimed in claim 4, wherein said bus adapter supports a frame format configured as: and performing corresponding framing, deframing and frame verification according to the frame format composition, the length and the position of each field and the content of each byte of the configuration result.
9. The structured description language based test system of claim 1 wherein said working interface of said test suite configuration module comprises:
test item configuration area: the test item configuration area is divided into a product level and a case level, and the configuration of the test item is completed in the case level by the flow steps related to the test item;
flow step configuration area: the flow step configuration area drags the control of the flow step to a corresponding position below the case, and then the case related configuration is completed;
flow step attribute configuration area: the flow step attribute configuration area configures the relevant attributes of the specific flow step so that the flow step successfully realizes the test function of the test item.
10. An application server comprising a memory and a processor, wherein the memory stores thereon a structured description language based test system according to any one of claims 1 to 9 running on the processor.
CN202210640148.6A 2022-06-08 2022-06-08 Test system based on structured description language Pending CN115114147A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210640148.6A CN115114147A (en) 2022-06-08 2022-06-08 Test system based on structured description language

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210640148.6A CN115114147A (en) 2022-06-08 2022-06-08 Test system based on structured description language

Publications (1)

Publication Number Publication Date
CN115114147A true CN115114147A (en) 2022-09-27

Family

ID=83325655

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210640148.6A Pending CN115114147A (en) 2022-06-08 2022-06-08 Test system based on structured description language

Country Status (1)

Country Link
CN (1) CN115114147A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117031285A (en) * 2023-10-08 2023-11-10 宁德时代新能源科技股份有限公司 Offline testing method and system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117031285A (en) * 2023-10-08 2023-11-10 宁德时代新能源科技股份有限公司 Offline testing method and system
CN117031285B (en) * 2023-10-08 2024-02-23 宁德时代新能源科技股份有限公司 Offline testing method and system

Similar Documents

Publication Publication Date Title
US8271956B2 (en) System, method and program product for dynamically adjusting trace buffer capacity based on execution history
US20080086627A1 (en) Methods and apparatus to analyze computer software
US20100180260A1 (en) Method and system for performing an automated quality assurance testing
US20040168155A1 (en) Flow debugging software and method
US20060020931A1 (en) Method and apparatus for managing complex processes
CN112286806B (en) Automatic test method and device, storage medium and electronic equipment
CN109472442B (en) Automatic processing system and method for work order
CN111209166B (en) Automatic inspection system for B/S architecture service system
US20100057947A1 (en) Device management apparatus, device management method and device management program
CN110825412B (en) LabVIEW-based controller program refreshing system and method
CN112631919A (en) Comparison test method and device, computer equipment and storage medium
CN112579446A (en) Interface testing method and device, electronic equipment and storage medium
US20050204345A1 (en) Method and apparatus for monitoring computer software
CN115114147A (en) Test system based on structured description language
CN110989549B (en) Software test general automation control method and device for train control system
CN113919158A (en) Simulation method and device for flight control panel and storage medium
US7131080B2 (en) Simulation management system
CN113658351A (en) Product production method and device, electronic equipment and storage medium
CN115982043A (en) Vehicle interface testing method, device, equipment and storage medium
CN111258893A (en) Mobile terminal application automatic testing device for randomly assembling transaction path
CN111767205A (en) Online detection method and system supporting task splitting
CN111881025B (en) Automatic test task scheduling method, device and system
CN115185825A (en) Interface test scheduling method and device
CN113535560A (en) Test execution method and device, storage medium and computing equipment
CN111258648B (en) Interactive control method, device, computer system and medium for host 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