CN112799936B - Embedded kernel engine algorithm of test measurement system - Google Patents

Embedded kernel engine algorithm of test measurement system Download PDF

Info

Publication number
CN112799936B
CN112799936B CN202110026525.2A CN202110026525A CN112799936B CN 112799936 B CN112799936 B CN 112799936B CN 202110026525 A CN202110026525 A CN 202110026525A CN 112799936 B CN112799936 B CN 112799936B
Authority
CN
China
Prior art keywords
module
test
embedded
data
test case
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
CN202110026525.2A
Other languages
Chinese (zh)
Other versions
CN112799936A (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.)
Hefei Meiangxing Electronic Technology Co ltd
Original Assignee
Hefei Meiangxing Electronic Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hefei Meiangxing Electronic Technology Co ltd filed Critical Hefei Meiangxing Electronic Technology Co ltd
Priority to CN202110026525.2A priority Critical patent/CN112799936B/en
Publication of CN112799936A publication Critical patent/CN112799936A/en
Application granted granted Critical
Publication of CN112799936B publication Critical patent/CN112799936B/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/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
    • 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/3692Test management for test results analysis

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)
  • Test And Diagnosis Of Digital Computers (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention belongs to the technical field of embedded test, and particularly discloses an embedded kernel engine algorithm of a test measurement system, which comprises an equipment data acquisition module, a data packet receiving and transmitting module, an execution module, a test plan making module, an embedded test case storage module, an embedded test case classification module and a data processing module, wherein the equipment data acquisition module is used for acquiring equipment hardware information and driving information, constructing and defining a communication protocol packet, packaging an API (application program interface) of equipment communication, and then sending key data to the execution module through the data packet receiving and transmitting module; the invention provides an embedded software framework capable of deploying different application logics, saves a great amount of time for manually writing test cases and test scripts, has better universality, has good system compatibility for various devices and software, and can meet the requirement of closed-loop real-time industrial test.

Description

Embedded kernel engine algorithm of test measurement system
Technical Field
The invention relates to the technical field of embedded testing, in particular to an embedded kernel engine algorithm of a testing and measuring system.
Background
An embedded system is a "control, monitoring or auxiliary device, machine and equipment operation device" (devices used to control, monitor, or assist the operation of equipment, machinery or plants) according to the definition of IEEE (institute of electrical and electronics engineers). It can be seen that the embedded system is a complex of software and hardware, and may also cover mechanical accessory devices. At present, a commonly accepted definition in China is as follows: application-centric, computer-technology-based, software and hardware-tailorable, application-system-compliant, multi-functional, reliable, cost-effective, volume-effective, power-hungry, special-purpose computer systems. Failure of the security of embedded systems can lead to catastrophic results, even for non-secure systems, with significant economic loss due to mass production. This requires rigorous testing, validation and verification of embedded systems, including embedded software. With the increasing use of software and microprocessors to control various embedded devices in more and more fields, it is increasingly important to quickly and efficiently test increasingly complex embedded software. The existing test measurement system needs to independently build and write test cases aiming at different embedded software and hardware, and different logic applications cannot be realized by different embedded software and hardware, so that the universality is poor.
Disclosure of Invention
The invention aims to provide an embedded kernel engine algorithm of a test measurement system so as to solve the problems in the background technology.
In order to achieve the above purpose, the present invention provides the following technical solutions: the embedded kernel engine algorithm of the test measurement system comprises an equipment data acquisition module, a data packet receiving and transmitting module, an execution module, a test plan making module, an embedded test case storage module, an embedded test case classification module and a data processing module, wherein the equipment data acquisition module is used for acquiring equipment hardware information and driving information, constructing and defining a communication protocol packet, packaging an API (application program interface) of equipment communication, and then sending key data to the execution module through the data packet receiving and transmitting module;
the test plan making module comprises upper PC software, the upper PC software is provided with a user interaction interface and provides a function of making test plan parameters for a user, after the user makes a detailed test plan comprising time length, frequency and the like through the test plan making module, the test plan making module generates a request instruction and sends the request instruction to the embedded test case classification module, the embedded test case storage module stores preset test scripts and embedded test cases, and the embedded test case classification module searches proper test cases from the embedded test case storage module according to the information in the request instruction and sends test case data to the execution module;
the execution module stores various preset test engines, and after receiving the test case data and the software and hardware data, the execution module calls the corresponding preset test engines to execute the test script to obtain a test result;
the data processing module comprises a reporting module and a man-machine interaction interface, wherein after the reporting module receives the test result, the reporting module classifies and sorts each item of data of the test result to generate a report, and the report is displayed through the man-machine interaction interface.
Preferably, the environment setting module is further provided with a user interaction interface, and the user views or changes parameters configured in the test environment through the user interaction interface.
Preferably, the configuration parameters in the test environment include an IP address, a port number, an IP address of the device under test, and port number information of the test instrument.
Preferably, the system further comprises a session module, the execution module is connected with the equipment data acquisition module through the session module, a user can change environmental parameters or send operation instructions through a user interaction interface, the environment setting module sends parameter configuration instructions and operation instructions to the equipment data acquisition module through the session module, and interaction is completed with equipment according to a communication interface packaged by the equipment data acquisition module.
Preferably, the searching script in the embedded test case storage module by the embedded test case classification module specifically includes the following steps: the embedded test case classification module firstly extracts various information in the request instruction, searches corresponding test case data according to the file path and the file name, and then extracts a required test script and test case from the test case data according to the script type and the test case identifier.
Preferably, the execution module comprises an interpreter, after receiving the data packet transmitted by the equipment data acquisition module, a section of special memory area is allocated for the test in the interpreter, a lookup table of the memory area is built, the lookup table is correspondingly updated after receiving the test case data, the data is written into the special memory area, a path search algorithm and constraint solution are utilized, and a test case set is generated through repeated iteration.
Preferably, the data processing module further comprises an abnormal information recording module, when error information such as abnormal data feedback and the like is generated in the testing process of the system, the error information is recorded in time, and workers are prompted through a human-computer interaction interface.
Preferably, the data processing module further comprises a log module, wherein the log module is used for tracking interaction records of the system and the equipment, recording execution results of each test command and storing according to specific date and time.
Compared with the prior art, the invention has the beneficial effects that: the invention provides an embedded software framework capable of deploying different application logics, saves a great amount of time for manually writing test cases and test scripts, has better universality, has good system compatibility for various devices and software, and can meet the requirement of closed-loop real-time industrial test.
Drawings
Fig. 1 is a schematic diagram of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
In the description of the present invention, it should be noted that the azimuth or positional relationship indicated by the terms "vertical", "upper", "lower", "horizontal", etc. are based on the azimuth or positional relationship shown in the drawings, and are merely for convenience of describing the present invention and simplifying the description, and do not indicate or imply that the apparatus or element referred to must have a specific azimuth, be constructed and operated in a specific azimuth, and thus should not be construed as limiting the present invention.
In the description of the present invention, it should also be noted that, unless explicitly specified and limited otherwise, the terms "disposed," "mounted," "connected," and "connected" are to be construed broadly, and may be, for example, fixedly connected, detachably connected, or integrally connected; can be mechanically or electrically connected; can be directly connected or indirectly connected through an intermediate medium, and can be communication between two elements. The specific meaning of the above terms in the present invention can be understood by those of ordinary skill in the art according to the specific circumstances.
Referring to fig. 1, the present invention provides a technical solution: the embedded kernel engine algorithm of the test measurement system comprises an equipment data acquisition module, a data packet receiving and transmitting module, an execution module, a test plan making module, an embedded test case storage module, an embedded test case classification module and a data processing module, wherein the equipment data acquisition module is used for acquiring equipment hardware information and driving information, constructing and defining a communication protocol packet, packaging an API (application program interface) of equipment communication, and then sending key data to the execution module through the data packet receiving and transmitting module;
the test plan making module comprises upper PC software, the upper PC software is provided with a user interaction interface and provides a function of making test plan parameters for a user, after the user makes a detailed test plan comprising time length, frequency and the like through the test plan making module, the test plan making module generates a request instruction and sends the request instruction to the embedded test case classification module, the embedded test case storage module stores preset test scripts and embedded test cases, and the embedded test case classification module searches proper test cases from the embedded test case storage module according to the information in the request instruction and sends test case data to the execution module;
the execution module stores various preset test engines, and after receiving the test case data and the software and hardware data, the execution module calls the corresponding preset test engines to execute the test script to obtain a test result;
the data processing module comprises a reporting module and a man-machine interaction interface, wherein after the reporting module receives the test result, the reporting module classifies and sorts each item of data of the test result to generate a report, and the report is displayed through the man-machine interaction interface.
The environment setting module is provided with a user interaction interface, and a user views or changes parameters configured in the test environment through the user interaction interface.
The configuration parameters in the test environment comprise the IP address and port number of the test instrument, the IP address and port number information of the equipment to be tested.
The system comprises a device data acquisition module, an execution module, a session module, an environment setting module, a parameter configuration module, a communication interface and a device data interaction module, wherein the execution module is connected with the device data acquisition module through the session module, a user can change environment parameters or send operation instructions through a user interaction interface, the environment setting module sends parameter configuration instructions and operation instructions to the device data acquisition module through the session module, and interaction is completed with the device according to the communication interface packaged by the device data acquisition module.
The embedded test case classification module searches scripts from the embedded test case storage module, and specifically comprises the following steps: the embedded test case classification module firstly extracts various information in the request instruction, searches corresponding test case data according to the file path and the file name, and then extracts a required test script and test case from the test case data according to the script type and the test case identifier.
The execution module comprises an interpreter, after receiving the data packet transmitted by the equipment data acquisition module, a section of special memory area is allocated for the test in the interpreter, a lookup table of the memory area is built, the lookup table is correspondingly updated after receiving the test case data, the data is written into the special memory area, a path search algorithm and constraint solution are utilized, and a test case set is generated through repeated iteration.
The data processing module further comprises an abnormal information recording module, when the system generates error information such as abnormal data feedback in the test process, the error information is recorded in time, and workers are prompted through a human-computer interaction interface.
The data processing module also comprises a log module, wherein the log module is used for tracking interaction records of the system and the equipment, recording execution results of each test command and storing according to specific date and time.
Although embodiments of the present invention have been shown and described, it will be understood by those skilled in the art that various changes, modifications, substitutions and alterations can be made therein without departing from the principles and spirit of the invention, the scope of which is defined in the appended claims and their equivalents.

Claims (6)

1. The embedded kernel engine algorithm of the test measurement system is characterized in that: the device comprises a device data acquisition module, a data packet receiving and transmitting module, an execution module, a test plan making module, an embedded test case storage module, an embedded test case classification module and a data processing module, wherein the device data acquisition module is used for acquiring device hardware information and driving information, constructing and defining a communication protocol packet, packaging an API interface of device communication, and then sending key data to the execution module through the data packet receiving and transmitting module;
the test plan making module comprises upper PC software, the upper PC software is provided with a user interaction interface and provides a function of making test plan parameters for a user, after the user makes a detailed test plan comprising time length and frequency information through the test plan making module, the test plan making module generates a request instruction and sends the request instruction to the embedded test case classification module, the embedded test case storage module stores preset test scripts and embedded test cases, and the embedded test case classification module searches proper test cases from the embedded test case storage module according to the information in the request instruction and sends test case data to the execution module;
the execution module stores various preset test engines, and after receiving the test case data and the software and hardware data, the execution module calls the corresponding preset test engines to execute the test script to obtain a test result;
the data processing module comprises a reporting module and a man-machine interaction interface, wherein after the reporting module receives the test result, the reporting module classifies and sorts each item of data of the test result to generate a report, and the report is displayed through the man-machine interaction interface;
the embedded test case classification module searches scripts from the embedded test case storage module, and specifically comprises the following steps: the embedded test case classification module firstly extracts various information in the request instruction, searches corresponding test case data according to the file path and the file name, and then extracts a required test script and test case from the test case data according to the script type and the test case identifier;
the execution module comprises an interpreter, after receiving the data packet transmitted by the equipment data acquisition module, a section of special memory area is allocated for the test in the interpreter, a lookup table of the memory area is built, the lookup table is correspondingly updated after receiving the test case data, the data is written into the special memory area, a path search algorithm and constraint solution are utilized, and a test case set is generated through repeated iteration.
2. The test measurement system embedded core engine algorithm of claim 1, wherein: the environment setting module is provided with a user interaction interface, and a user views or changes parameters configured in the test environment through the user interaction interface.
3. The test measurement system embedded core engine algorithm of claim 2, wherein: the configuration parameters in the test environment comprise the IP address and port number of the test instrument, the IP address and port number information of the equipment to be tested.
4. The test measurement system embedded core engine algorithm of claim 2, wherein: the system comprises a device data acquisition module, an execution module, a session module, an environment setting module, a parameter configuration module, a communication interface and a device data interaction module, wherein the execution module is connected with the device data acquisition module through the session module, a user can change environment parameters or send operation instructions through a user interaction interface, the environment setting module sends parameter configuration instructions and operation instructions to the device data acquisition module through the session module, and interaction is completed with the device according to the communication interface packaged by the device data acquisition module.
5. The test measurement system embedded core engine algorithm of claim 1, wherein: the data processing module further comprises an abnormal information recording module, when the system generates abnormal data feedback error information in the test process, the abnormal data feedback error information is recorded in time, and workers are prompted through a human-computer interaction interface.
6. The test measurement system embedded core engine algorithm of claim 1, wherein: the data processing module also comprises a log module, wherein the log module is used for tracking interaction records of the system and the equipment, recording execution results of each test command and storing according to specific date and time.
CN202110026525.2A 2021-01-08 2021-01-08 Embedded kernel engine algorithm of test measurement system Active CN112799936B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110026525.2A CN112799936B (en) 2021-01-08 2021-01-08 Embedded kernel engine algorithm of test measurement system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110026525.2A CN112799936B (en) 2021-01-08 2021-01-08 Embedded kernel engine algorithm of test measurement system

Publications (2)

Publication Number Publication Date
CN112799936A CN112799936A (en) 2021-05-14
CN112799936B true CN112799936B (en) 2024-03-12

Family

ID=75809510

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110026525.2A Active CN112799936B (en) 2021-01-08 2021-01-08 Embedded kernel engine algorithm of test measurement system

Country Status (1)

Country Link
CN (1) CN112799936B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114971934A (en) * 2022-05-28 2022-08-30 四川大学 Agricultural internet big data dual-engine algorithm of multi-intelligent greenhouse cluster

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101137170A (en) * 2007-09-04 2008-03-05 深圳市中兴移动通信有限公司 Software automatic testing instrument and method of embedded equipment
CN104063325A (en) * 2014-07-11 2014-09-24 电子科技大学 Automatic generation device and method for test cases of embedded software
CN111190812A (en) * 2019-12-12 2020-05-22 华东计算技术研究所(中国电子科技集团公司第三十二研究所) Automatic test framework based on embedded equipment
CN112148610A (en) * 2020-09-28 2020-12-29 深圳壹账通智能科技有限公司 Test case execution method and device, computer equipment and storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050204201A1 (en) * 2004-03-15 2005-09-15 Ramco Systems Limited Method and system for testing software development activity

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101137170A (en) * 2007-09-04 2008-03-05 深圳市中兴移动通信有限公司 Software automatic testing instrument and method of embedded equipment
CN104063325A (en) * 2014-07-11 2014-09-24 电子科技大学 Automatic generation device and method for test cases of embedded software
CN111190812A (en) * 2019-12-12 2020-05-22 华东计算技术研究所(中国电子科技集团公司第三十二研究所) Automatic test framework based on embedded equipment
CN112148610A (en) * 2020-09-28 2020-12-29 深圳壹账通智能科技有限公司 Test case execution method and device, computer equipment and storage medium

Also Published As

Publication number Publication date
CN112799936A (en) 2021-05-14

Similar Documents

Publication Publication Date Title
CN109361562B (en) Automatic testing method based on associated network equipment access
CN109840207B (en) AutoSAR-based network management automation test system and test method
CN102158370B (en) Automated testing method and system
CN106201892B (en) Abnormal interrupt source position finding and detection method for embedded software
CN102075789B (en) Method and system for quickly testing set top box
CN112799936B (en) Embedded kernel engine algorithm of test measurement system
CN101493793A (en) ATM test method and device
CN108052311B (en) Metering information system based on general system framework
CN110806730A (en) Big data operation and maintenance platform, server and storage medium
CN106649073A (en) Test method and device based on dynamic script template
CN104345662A (en) Process control apparatus and system, and method for determining normality thereof
CN106021066A (en) Fault information detection method and electronic device
CN109347812A (en) A kind of industry control bug excavation method and system
CN110704315B (en) Fault injection device for embedded software test
CN110688313A (en) Fault injection method for software test under VxWorks operating system
CN111130927A (en) Method for automatically realizing service test of network layer communication terminal equipment
CN109189679A (en) Interface test method and system, electronic equipment, storage medium
CN111125066A (en) Method and device for detecting functions of database audit equipment
CN110543415A (en) Computer software technology development and debugging system
CN109783294A (en) A kind of test method and system of server memory performance
CN105446882B (en) The method of testing of family expenses and similar applications electrical equipment software evaluation Black-box Testing system
CN114924546A (en) Calibration system and method for hardware-in-loop test
CN103457957A (en) Network penetration test system with self-adaption function and network penetration test method
CN105468526B (en) Family expenses and similar applications electrical equipment software evaluation Black-box Testing system
Zhang et al. Applying model-based system architecture process method for a human-robot digital twin 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
CP03 Change of name, title or address
CP03 Change of name, title or address

Address after: Embedded R&D Building 403, Advanced Technology Research Institute, University of Science and Technology of China, No. 5089 Wangjiang West Road, High tech Zone, Hefei City, Anhui Province, 230000

Patentee after: Hefei meiangxing Electronic Technology Co.,Ltd.

Country or region after: China

Address before: 230000 c102-83, Hefei National University Science Park, 602 Huangshan Road, high tech Zone, Hefei City, Anhui Province

Patentee before: Hefei meiangxing Electronic Technology Co.,Ltd.

Country or region before: China