CN-122019358-A - Ecological product testing method and system based on operating system layered architecture
Abstract
The invention provides an ecological product testing method and system based on an operating system layered architecture, which belong to the technical field of product testing, and the method comprises the steps of obtaining a preset layered testing strategy aiming at a target ecological product, wherein the preset layered strategy is defined based on the layered architecture of an operating system operated by the target ecological product, hardware adaptation of the target ecological product and functional realization acceptance requirements; and according to the preset layering test strategy, testing each layer of the target ecological product according to a layering architecture in sequence, outputting test results of each layer, and integrating the test results of each layer into a test report to be output. According to the invention, the test objects are layered according to the architecture, and different test strategies are defined for each layer based on hardware adaptation and functional requirements of the product, so that the test resources can be precisely oriented to changeable and customized levels without repeated input on stable and general levels, and the test efficiency can be remarkably improved.
Inventors
- LI YUEYAO
Assignees
- 深圳开鸿数字产业发展有限公司
Dates
- Publication Date
- 20260512
- Application Date
- 20251212
Claims (10)
- 1. An ecological product testing method based on an operating system layered architecture, which is characterized by comprising the following steps: acquiring a preset layering test strategy aiming at a target ecological product, wherein the preset layering strategy is defined based on a layering architecture of an operating system operated by the target ecological product and hardware adaptation and function realization acceptance requirements of the target ecological product; according to the preset layering test strategy, testing each layer of the target ecological product according to a layering architecture in sequence, and outputting test results of each layer; and integrating the test results of all the layers into a test report and outputting the test report.
- 2. The method for testing the ecological product based on the hierarchical architecture of the operating system according to claim 1, wherein the operating system operated by the target ecological product is a happy operating system, and the hierarchical architecture comprises an application layer, a framework service layer and a bottom floppy drive adaptation layer.
- 3. The method for testing an ecological product based on an operating system layered architecture according to claim 2, wherein the step of performing a test on the application layer comprises: Judging whether the system application in the application layer multiplexes the code of the verified trunk version of the operating system and has no customized modification; if all the system applications in the application layer multiplex the code of the verified trunk version of the operating system and have no customized modification, performing point detection test and free test on the system applications; and if the application layer contains the customized and modified user service application, performing full function test on the customized and modified user service application.
- 4. The method for testing an ecological product based on an operating system layered architecture according to claim 2, wherein the step of performing a test on the framework service layer comprises: judging whether the module of the frame service layer is consistent with the backbone version of the operating system and has no customized modification; multiplexing the existing test results of the backbone version on the modules in the framework service layer if all the modules in the framework service layer are consistent with the backbone version of the operating system and have no customized modification; and if the customized modification exists in the frame service layer, performing module test on the corresponding customized module in the frame service layer.
- 5. The method for testing an ecological product based on an operating system layered architecture according to claim 2, wherein the step of performing a test on the bottom soft drive adaptation layer comprises: Testing the hardware interface function of the bottom soft drive adaptation layer; Wherein the testing includes functional testing, stress testing, and stability testing.
- 6. The operating system hierarchy based ecological product testing method of claim 1, further comprising: obtaining the type to be authenticated of the target ecological product; And executing authentication test according to the standard requirement corresponding to the type to be authenticated, and outputting an authentication test result.
- 7. The operating system hierarchy based ecological product testing method of claim 2, further comprising: acquiring a secondary development kit matched with a target ecological product; judging whether the document data in the secondary development packet is published data obtained from a main project; carrying out document test on the document or multiplexing the existing test result of the published data according to the judgment result; And integrating the tools in the secondary development package into the test of the bottom soft drive adaptation layer to be synchronously executed.
- 8. An ecological product testing system based on an operating system layered architecture, comprising: The strategy acquisition module is used for acquiring a preset layering test strategy for the target ecological product, wherein the preset layering strategy is defined based on a layering architecture of an operating system operated by the target ecological product and hardware adaptation and function realization acceptance requirements of the target ecological product; the layering test module is used for sequentially testing each layer of the target ecological product according to the preset layering test strategy and outputting test results of each layer; And the report generation module is used for integrating the test results of all the layers into a test report and outputting the test report.
- 9. A terminal comprising a memory, a processor and an operating system hierarchy based ecological product testing program stored on the memory and operable on the processor, the operating system hierarchy based ecological product testing program when executed by the processor implementing the steps of the operating system hierarchy based ecological product testing method of any one of claims 1-7.
- 10. A computer readable storage medium, wherein the computer readable storage medium has stored thereon an ecological product testing program based on an operating system layered architecture, which when executed by a processor, implements the steps of the ecological product testing method based on an operating system layered architecture as claimed in any one of claims 1-7.
Description
Ecological product testing method and system based on operating system layered architecture Technical Field The invention relates to the technical field of product testing, in particular to an ecological product testing method and system based on an operating system layered architecture. Background In the process of testing the ecological products of the operating system, it is a great challenge to develop efficient testing strategies in the face of a wide variety of products (such as core boards, development boards and complete machines based on different chips). The prior art generally designs and executes a complete set of test schemes for each product individually, and this mode fails to fully consider the differences of different products in hardware adaptation depth and functional verification key points, resulting in insufficient pertinence and flexibility of test strategies. For example, for products similar to hardware platforms, the underlying adaptation test may be repeated in large numbers, while for products similar in function, the upper application test lacks a multiplexing mechanism. The one-cut testing method ensures that the testing resources cannot be optimally distributed according to the specific characteristics of the product, and the overall testing efficiency is low. Accordingly, the prior art has drawbacks and needs to be improved and developed. Disclosure of Invention The technical problem to be solved by the invention is to provide an ecological product testing method and system based on an operating system layered architecture aiming at the defects in the prior art, and aims to solve the problem of low overall testing efficiency in the prior art. The technical scheme adopted for solving the technical problems is as follows: in a first aspect, an embodiment of the present invention provides an ecological product testing method based on an operating system hierarchical architecture, where the method includes: acquiring a preset layering test strategy aiming at a target ecological product, wherein the preset layering strategy is defined based on a layering architecture of an operating system operated by the target ecological product and hardware adaptation and function realization acceptance requirements of the target ecological product; and testing each layer of the target ecological product according to the preset layering test strategy in turn according to a layering architecture, and outputting test results of each layer. In one embodiment, the operating system operated by the target ecological product is a happy operating system, and the layered architecture comprises an application layer, a framework service layer and a bottom floppy drive adaptation layer. In one embodiment, the step of performing a test on the application layer includes: Judging whether the system application in the application layer multiplexes the code of the verified trunk version of the operating system and has no customized modification; if all the system applications in the application layer multiplex the code of the verified trunk version of the operating system and have no customized modification, performing point detection test and free test on the system applications; and if the application layer contains the customized and modified user service application, performing full function test on the customized and modified user service application. In one embodiment, the step of performing a test on the framework service layer includes: judging whether the module of the frame service layer is consistent with the backbone version of the operating system and has no customized modification; multiplexing the existing test results of the backbone version on the modules in the framework service layer if all the modules in the framework service layer are consistent with the backbone version of the operating system and have no customized modification; and if the customized modification exists in the frame service layer, performing module test on the corresponding customized module in the frame service layer. In one embodiment, the step of performing a test on the bottom soft drive adaptation layer comprises: Testing the hardware interface function of the bottom soft drive adaptation layer; Wherein the testing includes functional testing, stress testing, and stability testing. In one embodiment, the method further comprises: obtaining the type to be authenticated of the target ecological product; And executing authentication test according to the standard requirement corresponding to the type to be authenticated, and outputting an authentication test result. In one embodiment, the method further comprises: acquiring a secondary development kit matched with a target ecological product; judging whether the document data in the secondary development packet is published data obtained from a main project; carrying out document test on the document or multiplexing the existing test result of the published data accordi