C / S (Client / Server) architecture extensible embedded operating system automatic test system

By designing an embedded operating system automated testing system with C/S architecture, the problems of poor management of the test process and lack of scalability in the existing technology are solved, and the efficiency and accuracy of multi-platform testing are achieved, and the sustainable testing needs of embedded operating system product upgrades are met.

CN119829419AInactive Publication Date: 2025-04-15BEIJING INST OF COMP TECH & APPL

Patent Information

Application Number
CN202411696561.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-25
Publication Date
2025-04-15
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

The existing technology cannot effectively manage the testing process of embedded operating systems, lacks scalability, and cannot meet the sustainable testing requirements for the upgrade of embedded operating systems products.

Method used

An embedded operating system automation test system with a scalable C/S architecture is designed. Through the LAN connection between the client and the server, a distributed network system is formed, which realizes multiple testers to conduct automated tests at the same time. By restarting the connection between the control box and the target hardware platform, the isolation and efficient management of the test process are ensured.

Benefits of technology

It realizes automated testing of embedded operating systems for multiple processor platforms, improves testing efficiency, ensures the accuracy and sustainability of the testing process, and meets the incremental testing needs of embedded operating system product upgrades.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119829419A_ABST
    Figure CN119829419A_ABST
Patent Text Reader

Abstract

The invention relates to a C / S (Client / Server) framework extensible embedded operating system automatic test system, and belongs to the technical field of embedded operating system test. The system architecture comprises a client, a server, a restart control box, a target hardware platform and a connecting cable. According to the method, a tester can simultaneously carry out automatic testing of embedded operating systems of a plurality of processor target platforms, it is ensured that the testing processes of all hardware platforms are mutually isolated and do not interfere with one another, and the testing efficiency can be greatly improved. The test case and the to-be-tested hardware platform can be continuously expanded and managed, and the incremental test requirement of embedded operating system product development is met. And aiming at customized test requirements or tasks, corresponding specific automatic tests can be carried out, and flexible and efficient management of the test process is realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the technical field of embedded operating system testing, and in particular relates to an embedded operating system automatic testing system with an expandable C / S architecture. Background Art

[0002] With the rapid development of domestic embedded operating systems and the continuous expansion of their compatibility and support for domestic and foreign hardware platforms, the development and iteration of embedded operating system products has accelerated, and the scale of testing has continued to increase, which has put forward higher requirements for embedded operating system testing and testing process management, and the completion of regression verification testing in a short period of time.

[0003] However, since the embedded operating system adopts cross-compilation, the development environment of the operating system is separated from the operating environment. Code editing and compilation, module cutting, etc. are performed on the host machine to form a loadable file, which is then loaded into the target machine through serial ports, debuggers, networks, etc. for operation. Its workflow makes its testing different from other types of software: the embedded operating system is closely related to the hardware platform, which makes the testing process complex and has certain particularities. There are no ready-made testing tools for embedded operating system testing. It is usually done by manually writing test cases, executing tests, and analyzing results. Traditional manual testing has a large workload, low efficiency, and high error rate. It is difficult to meet the development and testing needs of embedded operating systems. Improving the efficiency and accuracy of embedded operating system testing is an urgent problem to be solved in this field.

[0004] The Chinese patent "CN117453537A Embedded Operating System Automated Testing Method, Device, Electronic Equipment and Medium" discloses an embedded operating system automated testing method, device, electronic equipment and medium. The embedded system file is generated through the embedded system source code, and it is sent to the host computer with the test program, the target embedded test device is started and the test program is run, and the test results are returned to the server, thereby realizing the automated testing of the embedded operating system.

[0005] The technical solution described in the Chinese patent "CN117453537A Embedded Operating System Automated Testing Method, Device, Electronic Equipment and Medium" cannot test embedded operating systems of different processor platforms at the same time; it does not provide an effective test process management solution for different testing requirements; it is not scalable and cannot meet the sustainable testing requirements of embedded operating system product upgrades. Summary of the invention

[0006] 1. Technical issues to be resolved

[0007] The technical problem to be solved by the present invention is how to provide an embedded operating system automated testing system with an expandable C / S architecture to solve the problem that the prior art does not provide an effective test process management solution; it is not scalable and cannot meet the sustainable testing requirements of embedded operating system product upgrades.

[0008] (II) Technical solution

[0009] In order to solve the above technical problems, the present invention proposes an automated testing system for an embedded operating system with an expandable C / S architecture, the system comprising: a client, a server, a restart control box, a target hardware platform and a connecting cable; the client and the server establish a local area network through a network to form a distributed network system with a C / S architecture, the client is connected to the restart control box through a USB, and is connected to the target hardware platform through a serial port and a network, the restart control box is connected to the target hardware platform through a signal line, and an automated testing environment that multiple testers use simultaneously is realized under the control of the system software;

[0010] The client and the restart control box work together to realize personnel login, use case compilation, use case download, execution monitoring, process management, automatic reset, abnormal statistics, and report generation;

[0011] The server includes a database and a file server to implement test case storage management, test result storage management, and user history record storage;

[0012] The target hardware platform includes the hardware platform supported by the embedded operating system;

[0013] The server installs and configures the database system, while the client installs the automated testing system software.

[0014] (III) Beneficial effects

[0015] The present invention proposes an embedded operating system automation test system with a C / S architecture that can be expanded. The present invention proposes an embedded operating system automation test system with a C / S architecture that can be expanded. Compared with the prior art, the advantages of the present invention are: testers can carry out embedded operating system automation tests on multiple processor target platforms at the same time, and ensure that the test processes of each hardware platform are isolated from each other and do not interfere with each other, which can greatly improve the test efficiency. It can sustainably expand and manage test cases and hardware platforms to be tested to meet the incremental test requirements of embedded operating system product development. According to customized test requirements or tasks, corresponding specific automated tests can be carried out to achieve flexible and efficient management of the test process. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] Figure 1 The overall structure diagram of the embedded operating system automatic test system that can be expanded based on C / S architecture of the present invention;

[0017] Figure 2 This is a diagram of the software module composition of the embedded operating system automated testing system;

[0018] Figure 3 Automated test system "system management" execution process for embedded operating systems;

[0019] Figure 4 This is the overall operation flow chart of the embedded operating system automated testing system software. DETAILED DESCRIPTION

[0020] In order to make the purpose, content and advantages of the present invention more clear, the specific implementation methods of the present invention are further described in detail below in conjunction with the drawings and examples.

[0021] The present invention designs an embedded operating system automatic testing system with an expandable C / S architecture. The method can greatly improve the embedded operating system testing efficiency, ensure the testing accuracy, reduce the testing cost, and solve the existing defects:

[0022] 1) With the C / S architecture design, testers can carry out automated testing of embedded operating systems on different processor platforms on multiple clients at the same time, and the test processes such as test case compilation, downloading, and result analysis are isolated from each other without interfering with each other, effectively improving test efficiency.

[0023] 2) Through the authority control and system management module design, users with administrator privileges can maintain and expand embedded operating system test cases and supported processor hardware platforms, provide visual configuration of hardware platform related parameters, and manage test case grouping, addition, deletion, import, and export, which can meet the needs of embedded operating system verification testing for multiple processor platforms, as well as incremental management and continuous application of test cases.

[0024] 3) Through the design of the test task management module, the test process and test requirements are refined, and test tasks are established according to the customized test requirements of specific projects. Visual configuration is used to pre-select test cases and hardware platform parameters, etc., to achieve automatic compilation and operation of corresponding test cases, execution process tracking, test result comparison and display, test report generation and export, etc., to ensure flexible and efficient management of the test process.

[0025] The present invention proposes an embedded operating system automatic testing system with an expandable C / S architecture. Figure 1 As shown, the system architecture includes: a client, a server, a restart control box, a target hardware platform and connection cables.

[0026] The client and the server establish a local area network through the network, forming a distributed network system with a C / S architecture. The client connects to the restart control box through USB, connects to the target hardware platform through the serial port and the network, and the restart control box and the target hardware platform are connected through a signal line, realizing an automated test environment that can be used by multiple testers at the same time under the control of the system software.

[0027] The client and the restart control box work together to realize functions such as personnel login, use case compilation, use case download, execution monitoring, process management, automatic reset, abnormal statistics, and report generation.

[0028] The server includes database, file server, etc., which realizes functions such as test case storage management, test result storage management, user resume record storage, etc.

[0029] The target hardware platforms include domestic and foreign hardware platforms supported by embedded operating systems, such as Loongson, Phytium, and Intel processor target machines.

[0030] The server installs and configures the database system, while the client mainly installs the automated test system software. Overall, the scalable embedded operating system automated test system based on the C / S architecture is designed and implemented through four functional modules, namely the basic functional module, task management module, data management module, and system management module. The automated test system functional modules are as shown in the attached figure. Figure 2 As shown in the figure, the functions of each module are summarized as follows:

[0031] (1) Basic function module, used to implement user login authentication, permission control and log management functions.

[0032] Login verification is used to complete system user authentication.

[0033] Permission control is used to complete system user function access permission control. The system presets two roles: administrator and tester.

[0034] Log management is used to view, delete, and export system login logs. The administrator role has system management and log management access rights. For system management, see the description of the system management module. Testers have access rights to other functions except system management.

[0035] (2) Test task management module, which is specifically used to configure and manage test task related information, including test task information maintenance, test task execution, test task result display and test report export functions.

[0036] Test task information maintenance involves basic task information, test case list, hardware platform parameters, serial port network communication parameter settings, and provides test task creation, editing, and deletion functions.

[0037] Test task execution automatically compiles, downloads and runs test cases based on task information and requirements, and provides execution progress tracking and display.

[0038] The test task result display is used to display the test task case execution status and statistical analysis results online.

[0039] Test report export is used to generate a word file test report that meets standard format requirements.

[0040] (3) Data management module, specifically data retrieval function. It realizes data retrieval of historical test tasks and provides data screening according to different retrieval conditions.

[0041] (4) System management module, which specifically implements user management, test case management, hardware platform configuration, test case and task query functions.

[0042] User management is used to manage system users and provides functions such as adding, modifying, deactivating, and querying.

[0043] Test case management is used to build test cases and provides functions such as case grouping, adding, importing, exporting, case information maintenance, case verification, and case status management.

[0044] Hardware platform configuration is used to manage and maintain relevant platform information such as processor types and compilation parameters supported by the embedded operating system.

[0045] Test case and task query is used to complete the conditional search of test cases and test tasks. The automated test system administrator accesses the system management module. The execution process is as shown in the attached figure. Figure 3 shown.

[0046] The overall operation process of the scalable embedded operating system automation test system based on C / S architecture is shown in the attached figure. Figure 4 shown.

[0047] S1. The automated test system software starts, and first starts the login verification. According to the input account and password, it determines whether the current user is a legitimate user and the user authority. The user authority includes two roles: administrator and tester;

[0048] S2. If you are an administrator, you can perform the functions provided by the system management module according to specific needs, including user management, test case management, hardware platform configuration, test case and task query functions;

[0049] S3. If you are a tester, execute the functions provided by the test task management module. First, create a test task, set the basic information of the task, select the test cases to be used in this task to form a test case list, set the hardware platform parameters and serial port network communication parameters to maintain the test task information;

[0050] S4. Continue to execute the test task execution function provided by the test task management module, select a test case in the test case list, and compile the test case. If an image is generated, download the test case image to the target hardware platform through the network. If no image is generated, continue to compile the next test case;

[0051] S4. After downloading the use case image, run the use case image. During the running process, the execution progress will be tracked and displayed. If an exception occurs, the abnormal location will be displayed. Use the restart control box to restart the target hardware platform and download the next use case image. If there is no exception, use the restart control box to restart the target hardware platform and download the next use case image.

[0052] S5. Determine whether the test is completed based on the test case list.

[0053] If completed, determine whether there is a need to change the test. If not, execute the test task result display function provided by the test task management module to display the test task case execution status and statistical analysis results. At the same time, the test report can be exported as needed to form a test report in word file format;

[0054] If the test is not completed, continue to download the next test case image;

[0055] S6. If there is a need to change the test, reselect the test cases to be used in this task to form a test case list;

[0056] S7. Execution completed.

[0057] The key points of the present invention are:

[0058] The present invention designs an embedded operating system automated testing system with an expandable C / S architecture, which enables testers to carry out automated testing of embedded operating systems on different processor platforms at the same time, and makes the testing processes non-interfering with each other, thereby greatly improving the testing efficiency. It provides an expandable and maintainable management method for test cases and processor hardware platforms, which can continuously meet the requirements for embedded operating system product upgrade testing. Through the test task management design, it can respond to customized test requirements, and has flexible and efficient test process management capabilities.

[0059] Effects of the present invention:

[0060] The present invention proposes an embedded operating system automated testing system with an expandable C / S architecture. Compared with the prior art, the present invention has the advantages that testers can carry out automated testing of embedded operating systems for multiple processor target platforms at the same time, and ensure that the testing processes of various hardware platforms are isolated from each other and do not interfere with each other, which can greatly improve the testing efficiency. The test cases and the hardware platforms to be tested can be continuously expanded and managed to meet the incremental testing requirements of the development of embedded operating system products. According to customized testing requirements or tasks, corresponding specific automated testing can be carried out to achieve flexible and efficient management of the testing process.

[0061] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the technical principles of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.

Claims

1. A C / S architecture scalable embedded operating system automated testing system, characterized in that: The system includes: client, server, restart control box, target hardware platform and connecting cables; the client and server establish a local area network through the network to form a distributed network system with C / S architecture, the client connects to the restart control box through USB, connects to the target hardware platform through the serial port and the network, the restart control box and the target hardware platform are connected through a signal line, and an automated test environment is realized under the control of the system software that multiple testers can use at the same time; The client and the restart control box work together to realize personnel login, use case compilation, use case download, execution monitoring, process management, automatic reset, abnormal statistics, and report generation; The server includes a database and a file server to implement test case storage management, test result storage management, and user history record storage; The target hardware platform includes the hardware platform supported by the embedded operating system; The server installs and configures the database system, while the client installs the automated testing system software.

2. The C / S architecture expandable embedded operating system automatic testing system as claimed in claim 1, characterized in that: The hardware platforms include: Loongson, Phytium, and Intel processor target machines.

3. The C / S architecture expandable embedded operating system automated testing system as claimed in claim 1, characterized in that: The system includes: basic function module, task management module, data management module and system management module; Basic function module, used to implement user login verification, permission control and log management functions; The test task management module is used to configure and manage test task related information, including test task information maintenance, test task execution, test task result display and test report export functions; Data management module, used for data retrieval, realizes data retrieval of historical test tasks, and provides data screening according to different retrieval conditions; The system management module is used to implement user management, test case management, hardware platform configuration, test case and task query functions.

4. The C / S architecture expandable embedded operating system automated testing system as claimed in claim 3, characterized in that: Login verification is used to complete system user authentication; Permission control is used to complete the system user function access permission control. The system presets two roles: administrator and tester; Log management is used to view, delete, and export system login logs.

5. The C / S architecture expandable embedded operating system automatic testing system as claimed in claim 4, characterized in that: The administrator role has access rights to system management and log management, and the tester role has access rights to other functions except system management.

6. The C / S architecture expandable embedded operating system automatic testing system as claimed in claim 3, characterized in that: Test task information maintenance involves basic task information, test case list, hardware platform parameters, serial port network communication parameter settings, and provides test task creation, editing, and deletion functions; Test task execution automatically compiles, downloads and runs test cases based on task information and requirements, and provides execution progress tracking and display; Test task result display is used to display the test task case execution status and statistical analysis results online; Test report export is used to generate a word file test report that meets standard format requirements.

7. The C / S architecture expandable embedded operating system automated testing system as claimed in claim 3, characterized in that: User management is used to manage system users, providing the functions of adding, modifying, deactivating and querying. Test case management is used to build test cases, provide case grouping, adding, importing, exporting, case information maintenance, case verification, and case status management; Hardware platform configuration is used to manage and maintain relevant platform information supported by embedded operating systems; Test case and task queries are used to complete conditional retrieval of test cases and test tasks.

8. The C / S architecture expandable embedded operating system automatic testing system as claimed in claim 7, characterized in that: Relevant platform information includes: processor type and compilation parameters.

9. The C / S architecture expandable embedded operating system automated testing system according to any one of claims 1 to 8, characterized in that: The system's operating procedures include: S1. The automated test system software starts, and first starts the login verification. According to the input account and password, it determines whether the current user is a legitimate user and the user authority. The user authority includes two roles: administrator and tester; S2. If you are an administrator, you can perform the functions provided by the system management module according to specific needs, including user management, test case management, hardware platform configuration, test case and task query functions; S3. If you are a tester, execute the functions provided by the test task management module. First, create a test task, set the basic information of the task, select the test cases to be used in this task to form a test case list, set the hardware platform parameters and serial port network communication parameters to maintain the test task information; S4. Continue to execute the test task execution function provided by the test task management module, select a test case in the test case list, and compile the test case; if an image is generated, download the test case image to the target hardware platform through the network; if no image is generated, continue to compile the next test case; S4. After downloading the use case image, run the use case image. During the running process, the execution progress will be tracked and displayed. If an exception occurs, the abnormal location will be displayed. Use the restart control box to restart the target hardware platform and download the next use case image. If there is no exception, use the restart control box to restart the target hardware platform and download the next use case image. S5. Determine whether the test is completed based on the test case list; S6. If there is a need to change the test, reselect the test cases to be used in this task to form a test case list; S7. Execution completed.

10. The C / S architecture expandable embedded operating system automatic testing system according to claim 9, characterized in that: The S5 specifically includes: If completed, determine whether there is a need to change the test. If not, execute the test task result display function provided by the test task management module to display the test task case execution status and statistical analysis results. At the same time, the test report can be exported as needed to form a test report in word file format; If the test is not completed, continue to download the next test case image.

Citation Information

Patent Citations

  • Automatic testing method and device for embedded operating system, electronic equipment and medium

    CN117453537A

  • Method for automatically testing embedded software

    CN104407971A

  • Method and system for managing cloud service API based on government affair cloud platform

    CN111880950A

  • Embedded software automatic testing method and system

    CN116820992A

  • Multi-platform automatic testing method and system based on domestic graphics processor

    CN117234827A

Cited By

  • Multi-chip scene-oriented operating system automatic test system and method

    CN122132244A