Abstract:Abstract: There are differences in processor architecture, memory capacity, storage type, interface specifications, and other aspects among hardware devices of different types and models. Automated testing requires writing test cases that are adapted to various hardware configurations. Considering the diversity of hardware, this undoubtedly increases the workload of test case writing and maintenance. During the automation testing of software and hardware device adaptation, a centralized analysis of the adaptation status of the software and hardware devices is conducted, resulting in a more random adaptation state. The scripts lack adaptation and hierarchical information, leading to a decrease in the pass rate of automation testing projects, an increase in time, and an inability to meet the operational requirements between the devices and the platform. Therefore, an automated testing platform for software and hardware device adaptation based on CPCI architecture was designed. In terms of hardware, a multi protocol wireless adapter and CPCI connector have been designed. In terms of software, a CPCI hierarchical architecture for software and hardware device adaptation is established based on the presentation layer, front-end intermediate layer, application layer, back-end intermediate layer, data layer, and other layers, and adaptation status data is output at the data layer. Based on the adaptation state equation of software and hardware devices, estimate the optimal adaptation state of the device, generate random trigger information, and automatically generate software and hardware device adaptation test scripts under the CPCI architecture, thereby achieving automated testing of software and hardware device adaptation. The final test results show that the platform has a pass rate of 100% for both projects, taking less than 50 seconds. The software and hardware devices have good interoperability and compatibility with the platform, which can meet the stability requirements of the platform's operation. |