CN113868029A - Multitask concurrent test method and test system - Google Patents
Multitask concurrent test method and test system Download PDFInfo
- Publication number
- CN113868029A CN113868029A CN202110924548.5A CN202110924548A CN113868029A CN 113868029 A CN113868029 A CN 113868029A CN 202110924548 A CN202110924548 A CN 202110924548A CN 113868029 A CN113868029 A CN 113868029A
- Authority
- CN
- China
- Prior art keywords
- test
- task
- concurrent
- configuration information
- interrupt service
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000012360 testing method Methods 0.000 title claims abstract description 310
- 238000010998 test method Methods 0.000 title abstract description 5
- 238000000034 method Methods 0.000 claims abstract description 60
- 230000008569 process Effects 0.000 claims abstract description 47
- 230000000737 periodic effect Effects 0.000 claims abstract description 18
- 238000005259 measurement Methods 0.000 claims abstract description 8
- 230000006854 communication Effects 0.000 claims description 35
- 238000004891 communication Methods 0.000 claims description 28
- 239000000284 extract Substances 0.000 claims description 3
- 230000000977 initiatory effect Effects 0.000 claims 2
- 230000003993 interaction Effects 0.000 abstract description 6
- 230000005856 abnormality Effects 0.000 abstract description 2
- 238000010586 diagram Methods 0.000 description 8
- 238000011161 development Methods 0.000 description 5
- 230000002159 abnormal effect Effects 0.000 description 4
- 238000013461 design Methods 0.000 description 3
- 238000012545 processing Methods 0.000 description 3
- 230000004044 response Effects 0.000 description 3
- 230000001960 triggered effect Effects 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 2
- 230000007717 exclusion Effects 0.000 description 2
- 238000004806 packaging method and process Methods 0.000 description 2
- 238000012795 verification Methods 0.000 description 2
- 238000006243 chemical reaction Methods 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000000926 separation method Methods 0.000 description 1
- 238000004088 simulation Methods 0.000 description 1
- 239000000725 suspension Substances 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/22—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
- G06F11/2205—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested
- G06F11/221—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested to test buses, lines or interfaces, e.g. stuck-at or open line faults
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/22—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
- G06F11/2247—Verification or detection of system hardware configuration
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Debugging And Monitoring (AREA)
Abstract
The invention relates to a multitask concurrent test method and a test system, and belongs to the technical field of tests. The method and the device firstly acquire the configuration information, then start and execute the test flow task and the periodic remote measurement task according to the configuration information, and finally output the test result, thereby improving the test efficiency of a large number of application layer protocol instructions and data interaction functions, solving the potential accidental abnormality problem in the multi-task concurrent test process, and realizing efficient and reliable multi-task concurrent test.
Description
Technical Field
The invention belongs to the technical field of testing, and particularly relates to a multitask concurrent testing method and a multitask concurrent testing system.
Background
With the diversification and the increasing complexity of novel equipment, the 1553B bus communication technology is adopted to interact various system devices and realize complex functions, so that an effective solution is provided. Because a large number of protocol instruction and data interaction functions are defined in application layer communication, and a concurrent task interaction condition exists in a physical system, the condition faced when the system is tested and verified is more complicated. On one hand, the communication instruction interaction sequence and the test working condition are multiple, and a large amount of communication instruction interaction tests under various state flows are needed for realizing comprehensive verification. Meanwhile, due to the fact that concurrent tasks are not properly processed for the complex situation that shared resources such as hardware board cards and application data are simultaneously accessed, the mutual influence among multiple tasks is easy to cause abnormity, and higher requirements are put forward for the ground comprehensive test system. The 1553B communication test function adopting the traditional program implementation mode facing to the specific protocol function has low test efficiency, the processing of concurrent tasks lacks a mature and reliable technical solution, repeated test and verification are needed in actual projects, the potential occasional abnormal problem in a test time sequence is difficult to find, the problem is difficult to position due to the incapability of fixed reproduction after the problem occurs, and great influence is caused on the test quality and the development efficiency of an application scene with high requirement on the equipment test quality.
Disclosure of Invention
The invention aims to overcome the defects of the prior art and provide a multi-task concurrent test method and a multi-task concurrent test system.
According to one aspect of the present invention, there is provided a multitask concurrency testing method, the method comprising the steps of:
s1: acquiring configuration information, wherein the configuration information comprises basic information of concurrent tasks and task execution parameter information;
s2: starting a concurrent task test according to the configuration information;
s3: concurrently executing a test flow task and a periodic telemetry task according to the configuration information;
s4: and outputting a test result.
Preferably, the starting of concurrent task testing according to the configuration information includes:
extracting the concurrent task information from the concurrent task basic information, and creating and starting concurrent multithreading; the communication instruction test execution process is controlled by setting three control states of starting, suspending and continuing.
Preferably, the concurrently executing a test flow task and a periodic telemetry task according to the configuration information includes:
carrying out concurrent protection operation on the test to ensure that the test flow thread and the remote cycle test thread can independently complete a complete communication process without interruption;
and setting an interrupt service program, and protecting the whole process of the interrupt service function by setting a completion flag switch in the interrupt service program.
Preferably, the executing the test flow task includes:
the test flow thread sends a test instruction, carries out pattern matching with the configuration test item information through a sending address and an instruction regular expression, simulates a sending message, triggers an interrupt service program to execute message sending, and realizes the sending of the test instruction;
and the test process thread reads back the test result, performs pattern matching with the configuration test item information through the read-back data regular expression, simulates and sends a message, triggers the interrupt service program to execute message sending, reads back the test result and compares the test result with the criterion to judge whether the test is qualified or not, and obtains a conclusion that the test is qualified.
Preferably, the outputting the test result includes:
storing test process data in the test process, outputting a test report after the test is finished, recording the test result of each test item and the conclusion whether the test is qualified, and storing the data in different data files in a classified manner.
According to another aspect of the present invention, there is also provided a multitasking concurrent testing system, the system comprising:
the acquisition module acquires configuration information, wherein the configuration information comprises basic information of concurrent tasks and task execution parameter information;
the starting module starts a concurrent task test according to the configuration information;
the test module is used for concurrently executing a test flow task and a periodic remote measurement task according to the configuration information;
and the output module outputs the test result.
Preferably, the starting of concurrent task testing according to the configuration information includes:
the starting module extracts the concurrent task information from the concurrent task basic information, and creates and starts concurrent multithreading; the communication instruction test execution process is controlled by setting three control states of starting, suspending and continuing.
Preferably, the concurrently executing a test flow task and a periodic telemetry task according to the configuration information includes:
the test module performs concurrent protection operation on the test to ensure that the test flow thread and the remote cycle test thread can independently complete a complete communication process without interruption;
and setting an interrupt service program, and protecting the whole process of the interrupt service function by setting a completion flag switch in the interrupt service program.
Preferably, the executing the test flow task includes:
the test module sends a test instruction through a test flow thread, performs pattern matching with the configuration test item information through a sending address and an instruction regular expression, simulates a sending message, triggers an interrupt service program to execute message sending, and realizes sending of the test instruction;
the test module reads back the test result through the test process thread, performs pattern matching with the configuration test item information through the read-back data regular expression, simulates to send a message, triggers the interrupt service program to execute message sending, reads back the test result and compares the test result with the criterion to judge whether the test is qualified or not.
Preferably, the outputting the test result includes:
the output module stores test process data in the test process, outputs a test report after the test is finished, records the test result of each test item and the conclusion whether the test is qualified, and stores the data in different data files in a classified manner.
Has the advantages that: according to the invention, the configuration information is firstly acquired, then the test flow task and the period remote measurement task are started and executed according to the configuration information, and finally the test result is output, so that the test efficiency of a large number of application layer protocol instructions and data interaction functions is improved, the potential accidental abnormality problem in the multi-task concurrent test process is solved, and the efficient and reliable multi-task concurrent test is realized.
The features and advantages of the present invention will become apparent by reference to the following drawings and detailed description of specific embodiments of the invention.
Drawings
FIG. 1 is a flow diagram of a multitasking concurrency testing method;
FIG. 2 is a schematic diagram of a reliable concurrent test normal timing sequence;
FIGS. 3 and 4 are schematic diagrams of concurrent test exception timing;
FIG. 5 is a diagram of a multi-tasking concurrent testing system.
Detailed Description
The technical solutions in the embodiments of the present invention are clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Example 1
FIG. 1 is a flow diagram of a multitasking concurrency testing method. As shown in fig. 1, the present invention provides a multitask concurrent testing method, which includes the following steps:
s1: acquiring configuration information, wherein the configuration information comprises basic information of concurrent tasks and task execution parameter information;
s2: starting a concurrent task test according to the configuration information;
s3: concurrently executing a test flow task and a periodic telemetry task according to the configuration information;
s4: and outputting a test result.
In this embodiment, a concurrent test of a 1553B-based communication system is taken as an example for explanation, and the method of this embodiment may be applied to any suitable communication system, which is not limited in the present invention.
The 1553B multitask concurrent test implementation method is described below by taking the concurrent test task in the 1553B communication test and the task of periodically acquiring the telemetry data as an example.
And acquiring configuration information, wherein the configuration information comprises basic information of concurrent tasks and task execution parameter information.
The method comprises the steps that a test configuration interface is set in a two-stage information parameter configuration mode, the test configuration interface comprises concurrent task basic information configuration and task execution parameter information configuration, all concurrent task basic information is uniformly configured in an ini configuration file, the task execution parameter information is respectively configured in an independent csv file according to different tasks, and the two-stage configuration file serves as input of concurrent test task execution.
The basic information configuration of the concurrent tasks generally comprises task types and task execution parameter association file information, and the basic information can be expanded according to task characteristics. In this embodiment, two task types, namely a test flow and a periodic query, are defined, concurrent task types can be expanded according to actual needs, and the task execution parameter associated file information is a corresponding csv file name and path.
And the concurrent task execution parameter configuration is different according to different task types. The test flow type is suitable for sequentially executing various 1553B instruction test items, the test items are distinguished in a configuration information mode, the configuration information is stored in a CSV file mode, each line is configured with 1553B message instruction sending and command return interpretation parameter information, a 1553B test configuration mode can be designed into a BC- > RT and BC < -RT message mode, and input parameters and test criteria of a 1553B communication test function are configured according to the BC- > RT and BC < -RT message modes. The periodic query task parameters comprise BC < -RT message related parameters and query period setting.
Preferably, the starting of concurrent task testing according to the configuration information includes:
extracting the concurrent task information from the concurrent task basic information, and creating and starting concurrent multithreading; the communication instruction test execution process is controlled by setting three control states of starting, suspending and continuing.
Specifically, concurrent task information in a task basic information ini file is extracted, multi-task concurrency is achieved by adopting a multi-thread technology, and concurrent multi-threads are created and started. The test thread completes test flow tasks such as 1553B time sequence test and the like, and comprises the steps of simulating BC to send BC- > RT write messages to realize sending test instructions, and simulating BC to send BC < -RT read messages to realize data read-back. And 3, simulating BC by a 1553B period telemetry task thread at a 20ms period to send BC < -RT read messages, and periodically acquiring telemetry data.
And controlling concurrent tasks, namely controlling the 1553B communication instruction test execution process by setting three control states of starting, suspending and continuing. When the test task is started, a 1553B test thread and a 1553B cycle telemetry task thread are started simultaneously, when the test process is suspended, firstly, the cycle telemetry task is locked by adding mutual exclusion to ensure that the cycle task is executed and completed, when the test process is suspended, logic locking is executed on a complete test item in the test thread to ensure that the test is executed and completed, then the suspension is executed, and when the test is started again, the mutual exclusion lock is released to continue executing subsequent tests.
Preferably, the concurrently executing a test flow task and a periodic telemetry task according to the configuration information includes:
carrying out concurrent protection operation on the test to ensure that the test flow thread and the remote cycle test thread can independently complete a complete communication process without interruption;
and setting an interrupt service program, and protecting the whole process of the interrupt service function by setting a completion flag switch in the interrupt service program.
Specifically, a test application and drive separation layered decoupling mode is adopted for design, a 1553B communication instruction test function and a 1553B communication board card operation are separately designed, a drive layer processes a bottom hardware communication operation and a multi-task concurrent resource protection processing logic, reliable data concurrent communication is achieved, and a test application layer achieves execution time sequence and function logic of a 1553B test function.
And packaging the 1553B test board card driving interface function to realize application function decoupling, wherein the bottom layer interface is uniformly packaged into two functional interfaces of 1553 BSendBCtotRT and 1553 BRcvRTtoBC. Both threads may call the bottom two functional interface functions when performing 1553B communication operations.
And concurrent operation protection, which is implemented by packaging based on 1553B communication hardware board card drive, and concurrent protection operation is implemented in two functional interfaces of 1553 BSendBCtotRT and 1553BRcvRTtoBC, so that a 1553B test thread and a telemetry thread can independently complete a complete 1553B message communication process without interruption. When the process in each functional interface function is processed, firstly, a Mutex lock is opened, then a BC is simulated to send 1553B messages (RT- > BC and RT < -BC), the completion of the triggering execution of the interrupt service function is waited, a response message MsgA is read after the data of the response message is updated, the data is read from the extracted RT response message MsgA to complete a complete RT- > BC data reading process, the operation of reading the DataA data is completed, and finally, the Mutex lock is closed, and the operation is completed.
And setting an interrupt service program, wherein two functional interfaces 1553 BSendBCtotRT and 1553BRcvRTtoBC related to the 1553B message sent by the simulation BC interact data with an interrupt service function, and the interrupt service function executes the updating operation of the bottom layer data message. And a finishing mark switch is set in the interrupt service program to protect the whole process of the interrupt service function. Meanwhile, the data is updated by the bottom layer by adopting the interrupt service program, so that the MT data can be recorded in the interrupt service program.
Through the processing, correct message communication logic can be executed in the multithread scheduling process, correct time sequence of execution of each thread is shown in the following figure 2, a test thread sends RC- > BC read message MsgA at T0, an interrupt service function is triggered to execute data reading operation from a board card, the reading operation is finished at T1, the test thread A takes out valid data DataA, a remote measurement thread sends RC- > BC read message MsgB at T2, the interrupt service function is triggered to execute data reading operation from the board card, the reading operation is finished at T3, and the remote measurement thread B takes out the valid data DataB.
If the concurrency protection operation is not adopted, a data reading exception may occur, fig. 3 is a possible exception execution time sequence diagram of a multitask concurrency test RC- > BC read message based on 1553B communication, when an interrupt service function executes to send a message, the execution time sequence of each thread is shown in fig. 3, at a time point 1553B at T0, the test thread sends an RC- > BC read message MsgA to trigger an interrupt service function to read DataA from a board, when reading of DataA is not completed at a time point T1, 1553B telemetry thread B sends an RC- > BC read message MsgB, when reading of DataA is completed at a time point T2, 1553B telemetry thread B takes out exception data DataA (valid data is DataB), and at the same time, the MsgB message triggers the interrupt service function to read DataB from the board, and when reading of DataA is completed at a time point T3, 1553B test thread a takes out exception data DataB (valid data is DataA). Fig. 4 is another possible abnormal execution timing diagram of a multitasking concurrent test RC- > BC read message based on 1553B communication. When data is read during execution of the interrupt service function, the execution timing of each thread is shown in fig. 4, at a time 1553B at T0, the test thread sends an RC- > BC read message MsgA to trigger the interrupt service function to read data from the board, at a time T1, the test thread a takes out valid data DataA, at a time 155 2, the remote measurement thread sends an RC- > BC read message MsgB to trigger the interrupt service function to read data from the board, at a time T3, the RT message data is read when the read operation is not completed, and at a time 1553B, the test thread a takes out the non-updated abnormal data DataA (the valid data is DataB).
The test method of the embodiment can effectively avoid similar abnormal time sequences and realize reliable concurrent task test.
Preferably, the executing the test flow task includes:
the test flow thread sends a test instruction, carries out pattern matching with the configuration test item information through a sending address and an instruction regular expression, simulates a sending message, triggers an interrupt service program to execute message sending, and realizes the sending of the test instruction;
and the test process thread reads back the test result, performs pattern matching with the configuration test item information through the read-back data regular expression, simulates and sends a message, triggers the interrupt service program to execute message sending, reads back the test result and compares the test result with the criterion to judge whether the test is qualified or not, and obtains a conclusion that the test is qualified.
Specifically, the test flow thread sends a test instruction, and performs pattern matching with the configuration test item information by sending an address and an instruction regular expression, and the regular expression can be designed to perform address matching by "BC- > RT (. -) SA (. -) and perform data matching by" (\ \ w +) ". And after the message parameters are extracted, a 1553 BSendBCtotRT interface is called, BC is simulated to send BC- > RT messages, an interrupt service program is triggered to execute message sending, and sending of the test instruction is realized.
The test thread reads back the test result, pattern matching is carried out on the read-back data regular expression and the configuration test item information, the regular expression can be designed to carry out address matching through ' BC < -RT (-SA (-lambda) - (-lambda) ', and criterion matching is carried out through ' w < + >. Extracting message parameters and criteria, calling a 1553BRcvRTtoBC interface, simulating BC to send BC < -RT messages, triggering an interrupt service program to execute message sending, reading back results, comparing the results with the criteria, and judging whether the results are qualified or not.
For the execution of the periodic telemetry task, acquiring telemetry data as the periodic concurrent task, calling a 1553BRcvRTtobC interface in the same way as a test flow thread readback test result, simulating BC to send BC < -RT read information (for example, reading 9 data words at RT15 subaddress 3 in a period of 20ms and reading 1553B telemetry data), and simultaneously storing the telemetry data in a background.
Preferably, the outputting the test result includes:
storing test process data in the test process, outputting a test report after the test is finished, recording the test result of each test item and the conclusion whether the test is qualified, and storing the data in different data files in a classified manner.
Specifically, test process data including 1553BMT overall process data, 1553B period telemetering data and test logs are stored in a background in the software test process, a test report is output after the test is completed, test results of all test items and a conclusion whether the test is qualified or not are recorded, and all data are stored in different data files in a classified mode. Wherein 1553BMT data is stored in an interrupt service function, 1553B telemetering data is stored in a periodic telemetering task, and the recording content comprises a message timestamp, message address information and message data content. The test report and the test log are recorded in the execution of the test flow task, the test log comprises a timestamp and the current operation, and the test report gives each test item and corresponding test parameters, required values, measured values and conclusions.
In the embodiment, the complexity of realizing the test function is reduced by adopting a layered design method of separating test application from drive, the multi-task concurrent control is realized by executing a time sequence and state conversion based on multi-thread multi-task concurrent test, the test execution is realized by a dynamic and efficient test logic configuration interface, the data and the test result of the test process are comprehensively recorded, the reliability of the test is ensured by adopting an effective resource protection strategy in the concurrent test execution process, and the high-efficiency and reliable multi-task concurrent test of 1553B communication is realized.
Example 2
FIG. 5 is a diagram of a multi-tasking concurrent testing system. As shown in fig. 5, the present invention also provides a multitask concurrent testing system, including:
the acquisition module acquires configuration information, wherein the configuration information comprises basic information of concurrent tasks and task execution parameter information;
the starting module starts a concurrent task test according to the configuration information;
the test module is used for concurrently executing a test flow task and a periodic remote measurement task according to the configuration information;
and the output module outputs the test result.
Preferably, the starting of concurrent task testing according to the configuration information includes:
the starting module extracts the concurrent task information from the concurrent task basic information, and creates and starts concurrent multithreading; the communication instruction test execution process is controlled by setting three control states of starting, suspending and continuing.
Preferably, the concurrently executing a test flow task and a periodic telemetry task according to the configuration information includes:
the test module performs concurrent protection operation on the test to ensure that the test flow thread and the remote cycle test thread can independently complete a complete communication process without interruption;
and setting an interrupt service program, and protecting the whole process of the interrupt service function by setting a completion flag switch in the interrupt service program.
Preferably, the executing the test flow task includes:
the test module sends a test instruction through a test flow thread, performs pattern matching with the configuration test item information through a sending address and an instruction regular expression, simulates a sending message, triggers an interrupt service program to execute message sending, and realizes sending of the test instruction;
the test module reads back the test result through the test process thread, performs pattern matching with the configuration test item information through the read-back data regular expression, simulates to send a message, triggers the interrupt service program to execute message sending, reads back the test result and compares the test result with the criterion to judge whether the test is qualified or not.
Preferably, the outputting the test result includes:
the output module stores test process data in the test process, outputs a test report after the test is finished, records the test result of each test item and the conclusion whether the test is qualified, and stores the data in different data files in a classified manner.
The specific implementation process of the method steps executed by each module in this embodiment 2 is the same as the implementation process of each step in embodiment 1, and is not described herein again.
The invention simplifies the complexity of realizing the test function and efficiently realizes each test function by dynamically configuring the concurrent test task and separating the test application from the drive. Meanwhile, through the multi-task concurrent timing sequence reliability design, the problems of accidental data collision and data abnormity possibly existing in the 1553B communication concurrent test are solved, and the test reliability is improved. On one hand, the development of generalization and modularization of reliable multitask concurrent test in the field of comprehensive test is promoted. Meanwhile, a reference and mature technical achievement is provided for the development of subsequent models, the development period of similar products can be shortened, and the development cost is greatly reduced. Practice application shows that the method improves the comprehensive test level of the ground system in a complex multi-task concurrent test application scene based on 1553B communication, has the advantages of high reliability, wide application range, high test efficiency and the like, and has wide model application prospect and great engineering application value.
The above description is only a preferred embodiment of the present invention, and is not intended to limit the scope of the present invention, and all modifications and equivalents of the present invention, which are made by the contents of the present specification and the accompanying drawings, or directly/indirectly applied to other related technical fields, are included in the scope of the present invention.
Claims (10)
1. A multitask concurrency testing method, characterized in that the method comprises the steps of:
s1: acquiring configuration information, wherein the configuration information comprises basic information of concurrent tasks and task execution parameter information;
s2: starting a concurrent task test according to the configuration information;
s3: concurrently executing a test flow task and a periodic telemetry task according to the configuration information;
s4: and outputting a test result.
2. The method of claim 1, wherein the initiating concurrent task testing according to the configuration information comprises:
extracting the concurrent task information from the concurrent task basic information, and creating and starting concurrent multithreading; the communication instruction test execution process is controlled by setting three control states of starting, suspending and continuing.
3. The method of claim 2, wherein concurrently performing a test flow task and a periodic telemetry task based on the configuration information comprises:
carrying out concurrent protection operation on the test to ensure that the test flow thread and the remote cycle test thread can independently complete a complete communication process without interruption;
and setting an interrupt service program, and protecting the whole process of the interrupt service function by setting a completion flag switch in the interrupt service program.
4. The method of claim 3, wherein the performing a test flow task comprises:
the test flow thread sends a test instruction, carries out pattern matching with the configuration test item information through a sending address and an instruction regular expression, simulates a sending message, triggers an interrupt service program to execute message sending, and realizes the sending of the test instruction;
and the test process thread reads back the test result, performs pattern matching with the configuration test item information through the read-back data regular expression, simulates and sends a message, triggers the interrupt service program to execute message sending, reads back the test result and compares the test result with the criterion to judge whether the test is qualified or not, and obtains a conclusion that the test is qualified.
5. The method of claim 1, wherein outputting the test results comprises:
storing test process data in the test process, outputting a test report after the test is finished, recording the test result of each test item and the conclusion whether the test is qualified, and storing the data in different data files in a classified manner.
6. A multitasking concurrent testing system, said system comprising:
the acquisition module acquires configuration information, wherein the configuration information comprises basic information of concurrent tasks and task execution parameter information;
the starting module starts a concurrent task test according to the configuration information;
the test module is used for concurrently executing a test flow task and a periodic remote measurement task according to the configuration information;
and the output module outputs the test result.
7. The system of claim 6, wherein the initiating concurrent task testing according to the configuration information comprises:
the starting module extracts the concurrent task information from the concurrent task basic information, and creates and starts concurrent multithreading; the communication instruction test execution process is controlled by setting three control states of starting, suspending and continuing.
8. The system of claim 7, wherein concurrently performing a test flow task and a periodic telemetry task based on the configuration information comprises:
the test module performs concurrent protection operation on the test to ensure that the test flow thread and the remote cycle test thread can independently complete a complete communication process without interruption;
and setting an interrupt service program, and protecting the whole process of the interrupt service function by setting a completion flag switch in the interrupt service program.
9. The system of claim 8, wherein the performing a test flow task comprises:
the test module sends a test instruction through a test flow thread, performs pattern matching with the configuration test item information through a sending address and an instruction regular expression, simulates a sending message, triggers an interrupt service program to execute message sending, and realizes sending of the test instruction;
the test module reads back the test result through the test process thread, performs pattern matching with the configuration test item information through the read-back data regular expression, simulates to send a message, triggers the interrupt service program to execute message sending, reads back the test result and compares the test result with the criterion to judge whether the test is qualified or not.
10. The system of claim 6, wherein outputting the test results comprises:
the output module stores test process data in the test process, outputs a test report after the test is finished, records the test result of each test item and the conclusion whether the test is qualified, and stores the data in different data files in a classified manner.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110924548.5A CN113868029A (en) | 2021-08-12 | 2021-08-12 | Multitask concurrent test method and test system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110924548.5A CN113868029A (en) | 2021-08-12 | 2021-08-12 | Multitask concurrent test method and test system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN113868029A true CN113868029A (en) | 2021-12-31 |
Family
ID=78990533
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110924548.5A Pending CN113868029A (en) | 2021-08-12 | 2021-08-12 | Multitask concurrent test method and test system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113868029A (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2011060642A1 (en) * | 2009-11-23 | 2011-05-26 | 中兴通讯股份有限公司 | Automatic test system for distributed comprehensive service and method thereof |
CN102725735A (en) * | 2011-11-02 | 2012-10-10 | 华为技术有限公司 | Method and system for multithreading collaborative simulations |
CN107505833A (en) * | 2017-08-01 | 2017-12-22 | 南京理工大学 | A kind of flight control system and method based on embedded OS |
CN107562443A (en) * | 2017-07-17 | 2018-01-09 | 上海卫星工程研究所 | Satellite program control command maintaining method based on round-robin queue |
CN109245958A (en) * | 2018-09-14 | 2019-01-18 | 中国空间技术研究院 | Based on adaptive 1553B bus communication function test method and system |
CN111474441A (en) * | 2020-06-19 | 2020-07-31 | 北京机电工程研究所 | Customized comprehensive hardware-oriented evaluation method |
-
2021
- 2021-08-12 CN CN202110924548.5A patent/CN113868029A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2011060642A1 (en) * | 2009-11-23 | 2011-05-26 | 中兴通讯股份有限公司 | Automatic test system for distributed comprehensive service and method thereof |
CN102725735A (en) * | 2011-11-02 | 2012-10-10 | 华为技术有限公司 | Method and system for multithreading collaborative simulations |
CN107562443A (en) * | 2017-07-17 | 2018-01-09 | 上海卫星工程研究所 | Satellite program control command maintaining method based on round-robin queue |
CN107505833A (en) * | 2017-08-01 | 2017-12-22 | 南京理工大学 | A kind of flight control system and method based on embedded OS |
CN109245958A (en) * | 2018-09-14 | 2019-01-18 | 中国空间技术研究院 | Based on adaptive 1553B bus communication function test method and system |
CN111474441A (en) * | 2020-06-19 | 2020-07-31 | 北京机电工程研究所 | Customized comprehensive hardware-oriented evaluation method |
Non-Patent Citations (3)
Title |
---|
刘林秀;曹云峰;庄丽葵;王彪;: "倾转旋翼飞行器飞控软件的多线程实现", 信息与电子工程 * |
苏宇;孔璐;周珊;马云云;王金波;: "基于ARM&FPGA的1394仿真测试前端系统设计", 计算机测量与控制 * |
龚健;华更新;孙越;衣学慧;: "基于多种并发机制的卫星电子设备地面测试软件设计方法", 空间控制技术与应用 * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8793115B2 (en) | Interface converter for unified view of multiple computer system simulations | |
JPH04216174A (en) | Method and apparatus for logic simulation using hardware accelerator | |
US8484006B2 (en) | Method for dynamically adjusting speed versus accuracy of computer platform simulation | |
Claessen et al. | Finding race conditions in Erlang with QuickCheck and PULSE | |
US7277827B2 (en) | Device testing framework for creating device-centric scenario-based automated tests | |
KR880000860A (en) | Improvements on Programmable Logic Controllers | |
US7779302B2 (en) | Automated testing framework for event-driven systems | |
CN112115022B (en) | AADL-based IMA system health monitoring test method | |
CN110704314B (en) | Fault injection method for embedded software test | |
CN110688313B (en) | Fault injection method for software testing under VxWorks operating system | |
CN110704315A (en) | Fault injection device for embedded software test | |
CN110347735A (en) | The data forwarding of configurationization mends processing method, device and readable storage medium storing program for executing extremely | |
CN113868029A (en) | Multitask concurrent test method and test system | |
JP2008135008A (en) | Program module verification method | |
CN111506395B (en) | Method and device for realizing hybrid simulation full-digital virtual operating environment | |
Helmstetter et al. | A comparison of two SystemC/TLM semantics for formal verification | |
US8914274B1 (en) | Method and system for instruction set simulation with concurrent attachment of multiple debuggers | |
JP3339708B2 (en) | Event recording method | |
CN111858205B (en) | Chip debugging method and system | |
Huselius et al. | Starting conditions for post-mortem debugging using deterministic replay of real-time systems | |
WO2006091785A1 (en) | Interface converter for unified view of multiple computer system simulations | |
CN112835690B (en) | Method for timing operation execution capable of arranging flow | |
Tsai et al. | A replay mechanism for non-interference real-time software testing and debugging | |
Calvez et al. | Real-time behavior monitoring for multi-processor systems | |
Ribeiro¹ et al. | Kim Guldstrand Larsen², and Marcel Baunach¹ 1 Graz University of Technology, Graz, Austria {lbatistaribeiro, baunach}@ tugraz. at 2 Aalborg University, Aalborg, Denmark |
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 | ||
WD01 | Invention patent application deemed withdrawn after publication | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20211231 |