System capability test method, electronic equipment and storage medium
By loading the target test application on the test device, obtaining the operating system version and support capability set, and automatically matching the test case set, it solves the problem of cumbersome and low-efficiency device system capability testing after the operating system is transplanted, and achieves efficient system capability verification and accuracy.
Patent Information
- Application Number
- CN202410838716.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-26
- Publication Date
- 2024-10-11
AI Technical Summary
In the existing technology, the system capability test of the device after the operating system is transplanted is cumbersome and inefficient, and cannot effectively verify the system capability after the transplantation.
By loading the target test application on the test device, the operating system version and supporting capability set are obtained, and the target test case set that matches the system capability is automatically identified and matched to perform system capability testing.
It improves the convenience and efficiency of testing, avoids dependence on the development environment, improves testing accuracy, and can quickly locate and repair system capability problems.
Smart Images

Figure CN118760592A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of software testing, and in particular to a system capability testing method, electronic equipment and storage medium. Background Art
[0002] Due to the wide variety of operating system versions, differences between manufacturers, and different hardware device classifications (capabilities), after porting operating systems of different capabilities to devices, it is necessary to verify whether the ported system capabilities are stable and available.
[0003] In the existing technology, upper-level application drivers are usually used for manual verification. However, with the differences in hardware versions, the increase in manufacturers, the increase in device categories, and different system versions, the same actions will be frequently performed to verify the underlying capabilities of the system. The testing process is very cumbersome and inefficient. Summary of the invention
[0004] The invention provides a system capability test method, electronic equipment and storage medium to solve the problem that the system capability test of a device after operating system transplantation is complicated and inefficient.
[0005] According to one aspect of the present invention, a system capability testing method is provided, which is applied to a testing device, and the method comprises:
[0006] In response to an application loading trigger instruction from the server, a target test application is installed;
[0007] Obtain the operating system version and supported capability set of the test device according to the target test application;
[0008] Determine the target test case set corresponding to each system capability of the support capability set in the target test application according to the operating system version;
[0009] The supported capability set is tested according to the target test application and each target test case set.
[0010] According to another aspect of the present invention, a system capability testing method is provided, which is applied to a server, and the method comprises:
[0011] After establishing a communication connection with the test device, determine the corresponding target test application according to the operating system version of the test device;
[0012] The target test application is loaded into the test device, so that the test device performs a system capability test based on the target test application.
[0013] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising:
[0014] at least one processor; and
[0015] a memory communicatively connected to the at least one processor; wherein,
[0016] The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the system capability testing method described in any embodiment of the present invention.
[0017] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the system capability testing method described in any embodiment of the present invention when executed.
[0018] The technical solution of the embodiment of the present invention is applied to a test device, and the operating system version and supported capability set of the test device are obtained based on a target test application loaded on the test device, and a target test case set of each system capability is automatically identified and matched according to the operating system version and the supported capability set, and then the system capability test is performed according to the target test case set, thereby achieving effective verification of the system capability of the device after the operating system is transplanted, and improving the convenience and efficiency of the test; at the same time, the test process does not need to rely on external resources such as the development environment, thereby avoiding the influence of the external environment on the device during testing, and further improving the test accuracy.
[0019] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0021] Figure 1 is a flow chart of a system capability testing method provided according to Embodiment 1 of the present invention;
[0022] Figure 2 is a flow chart of a system capability testing method provided according to Embodiment 2 of the present invention;
[0023] Figure 3 is a flow chart of a system capability testing method provided according to Embodiment 3 of the present invention;
[0024] Figure 4 is a flow chart of a system capability testing method provided according to a fourth embodiment of the present invention;
[0025] Figure 5 is a flowchart of a system capability testing method provided according to Embodiment 4 of the present invention;
[0026] Figure 6 is a flowchart of another system capability testing method provided according to Embodiment 4 of the present invention;
[0027] Figure 7 is a structural schematic diagram of a system capability testing device provided according to Embodiment 5 of the present invention;
[0028] Figure 8 is a structural schematic diagram of a system capability testing device provided according to Embodiment 6 of the present invention;
[0029] Fig. 9 It is a structural schematic diagram of an electronic device for implementing the system capability testing method according to an embodiment of the present invention. DETAILED DESCRIPTION
[0030] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0031] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0032] Embodiment 1
[0033] Figure 1A flowchart of a system capability testing method is provided for the first embodiment of the present invention. This embodiment is applicable to the case of performing automated system capability testing on a device with an operating system transplanted thereto. The method can be executed by a system capability testing device. The system capability testing device can be implemented in the form of hardware and / or software. The system capability testing device can be configured in an electronic device. Figure 1 As shown, a system capability testing method provided in the first embodiment is applied to a testing device and specifically includes the following steps:
[0034] S110 . In response to an application loading trigger instruction from the server, install a target test application.
[0035] The test equipment may refer to various hardware devices that have been transplanted with the target operating system (OS), such as mobile phones, tablets, wearable devices, smart TVs, etc. It is understandable that the corresponding operating system can be transplanted according to the classification (capability) of the hardware device, so as to adapt and transplant the corresponding system capabilities for the device, such as Bluetooth, WiFi, Near Field Communication (NFC), camera, database, etc. The target operating system may include at least: OpenHarmony L2 standard system.
[0036] The server may refer to a device that, after establishing a communication connection with the test device, loads a corresponding target test application for the device. The server may be a personal computer (PC), such as a desktop computer, a laptop computer, or the like.
[0037] The application loading trigger instruction may refer to an instruction triggered by the server for installing the target test application on the test device. The target test application may refer to an application for implementing automated testing of the system capabilities of the test device migration, and the version of the target test application corresponds to the operating system version of the test device, that is, each version of the operating system has a corresponding target test application.
[0038] In an embodiment of the present invention, after the test device establishes a communication connection with the server, the test device can respond to the application loading trigger instruction of the server and load the target test application corresponding to the device operating system version, so that the system capability test can be automatically performed by calling the target test application.
[0039] S120. Obtain an operating system version and a supported capability set of the test device according to the target test application.
[0040] The support capability set may be used to describe the device capabilities of the test device. The support capability set includes all system capabilities corresponding to the test device, that is, each device corresponds to a different support capability set according to its hardware capabilities.
[0041] In an embodiment of the present invention, after the target test application is successfully loaded into the test device, the target test application can be run, and then the device parameter information corresponding to the test device, such as the operating system version and the supported capability set, can be obtained by calling the corresponding application programming interface (API). Each system capability in the supported capability set corresponds to one or more APIs.
[0042] S130 , determining a target test case set corresponding to each system capability of a support capability set in a target test application according to the operating system version.
[0043] The target test case set may refer to a test case set corresponding to each system capability in the support capability set of the test device, and each test case set includes one or more test cases corresponding to the system capability.
[0044] In an embodiment of the present invention, since the target test application is pre-configured with a target test case library corresponding to the operating system version of the test device, the corresponding target test case set can be matched in the above-mentioned target test case library according to the identification information of each system capability in the supported capability set, so that the corresponding system capability can be tested according to the target test case set.
[0045] S140: Testing the support capability set according to the target test application and each target test case set.
[0046] In an embodiment of the present invention, after determining the target test case sets corresponding to each system capability of the test device, each system capability can be automatically tested according to each target test case set and by calling the target test application, and corresponding test results can be generated, such as whether each test case corresponding to each system capability passes, the test execution time corresponding to a single system capability, the test execution time corresponding to all system capabilities, error codes, etc. Furthermore, the above test results can be visualized on the corresponding display interface of the target test application to help testers quickly understand the system capability test status of the test device, such as quickly locating the system capability that failed the test; at the same time, a more detailed test report can also be generated to help testers understand more test details of the test process and locate test problems more accurately.
[0047] The technical solution of the embodiment of the present invention is applied to a test device, and the operating system version and supported capability set of the test device are obtained based on a target test application loaded on the test device, and a target test case set of each system capability is automatically identified and matched according to the operating system version and the supported capability set, and then the system capability test is performed according to the target test case set, thereby achieving effective verification of the system capability of the device after the operating system is transplanted, and improving the convenience and efficiency of the test; at the same time, the test process does not need to rely on external resources such as the development environment, thereby avoiding the influence of the external environment on the device during testing, and further improving the test accuracy.
[0048] Embodiment 2
[0049] Figure 2 This is a flowchart of a system capability testing method provided in the second embodiment of the present invention, which is further optimized and expanded based on the above implementation, and can be combined with various optional technical solutions in the above implementation. Figure 2 As shown, a system capability testing method provided in the second embodiment is applied to a testing device and specifically includes the following steps:
[0050] S210: In response to an application loading trigger instruction from the server, install a target test application.
[0051] S220: Run the target test application, and call a preset device parameter acquisition interface to obtain the operating system version and supported capability set corresponding to the test device.
[0052] The preset device parameter acquisition interface may refer to a pre-configured API interface for acquiring device parameters of the test device. For example, the preset device parameter acquisition interface may include: a device system version acquisition interface, a support capability set acquisition interface, and the like.
[0053] In an embodiment of the present invention, after the target test application is successfully loaded into the test device, the target test application can be run, and then the operating system version and support capability set corresponding to the test device can be obtained by calling a pre-configured preset device parameter acquisition interface. For example, taking the operating system transplanted by the test device as the OpenHarmony L2 standard system, the operating system version corresponding to the test device can be obtained by calling the following API: systeminfo.getSystemInfoSync, and the support capability set corresponding to the test device can be obtained by calling the following API: getDeviceCapability.
[0054] S230. Determine the target test case library version corresponding to the operating system version according to the preset system test case mapping relationship.
[0055] The preset system use case mapping relationship can be understood as a mapping relationship established between different operating system versions of the test device and different versions of pre-created test case libraries, that is, each operating system version corresponds to a version of the test case library.
[0056] In an embodiment of the present invention, a pre-configured preset system use case mapping relationship can be obtained from not limited to a system use case mapping relationship configuration table or a system use case mapping relationship configuration file, and then a target test case library version corresponding to the operating system version of the test device can be matched according to the preset system use case mapping relationship.
[0057] S240: Determine a corresponding target test case library in the target test application according to the target test case library version.
[0058] In the embodiment of the present invention, since different versions of test case libraries are pre-configured in the target test application, the corresponding target test case library can be found in the target test application according to the target test case library version determined above.
[0059] S250 . According to the identification information of each system capability in the support capability set, search for a target test case set corresponding to each system capability in the target test case library.
[0060] In an embodiment of the present invention, based on the identification information of each system capability in the supporting capability set, such as the system capability ID, etc., a target test case set corresponding to each system capability can be found in the target test case library through data query methods including but not limited to numerical matching, string matching, fuzzy matching, etc.
[0061] It should be understood that if the system capability matching fails, that is, the corresponding target test case set cannot be matched in the target test case library according to the identification information of the system capability, then there is no need to perform subsequent system capability tests on the system capability, and the test results corresponding to the system capability can be directly marked as test failure.
[0062] S260 . According to each target test case set and the test execution mode corresponding to each target test case set, call the target test application to test the corresponding system capability and obtain the corresponding test result.
[0063] Among them, the test execution method may at least include: executing test cases one by one, executing test cases in batches, etc.
[0064] In the embodiment of the present invention, the target test application may be called to start the system capability test program preconfigured therein, so as to automatically execute the target test case sets corresponding to the system capabilities according to the test execution mode corresponding to each target test case set.
[0065] S270: Visually display the test results on the target display interface of the test application, and generate a corresponding test report in the target directory of the test device.
[0066] In an embodiment of the present invention, after executing the test on each system capability, a corresponding test result can be generated and rendered and displayed on the target display interface of the test application. For example, the test results of the system capabilities of the test equipment can be visualized in ways including but not limited to: visual charts, dashboards, and interactive operation controls, so as to prompt the test personnel to quickly understand the system capability test status of the test equipment. At the same time, a corresponding test report can be generated under the target directory of the test equipment to help the test personnel quickly and accurately locate the system capabilities that failed the test, thereby repairing related abnormal problems to ensure the stability and availability of various system capabilities after the test equipment system is transplanted.
[0067] The technical solution of the embodiment of the present invention is applied to a test device, and the operating system version and supported capability set of the test device are obtained based on the target test application loaded on the test device, and the target test case set of each system capability is automatically identified and matched according to the operating system version and the supported capability set, and then the system capability test is performed according to the target test case set, so that the adaptation test of the underlying capability of a wide variety of hardware devices transplanted with different versions of the operating system becomes more convenient and simple; through the generated test results and test reports, it can help testers to quickly and accurately locate the system capabilities that have failed the test, so as to repair related abnormal problems to ensure the stable availability of various system capabilities after the test device system is transplanted; at the same time, during the test process, the system capability test is only performed based on the test application loaded on the test device, avoiding the interference of the external environment during the device test, thereby improving the test accuracy; in addition, in the case where the system capability of the device may fail after the iterative update of the operating system version, by executing the system capability testing method, the failed system capability can be quickly and accurately found out, so that the problem of testing and locating the problem in the version iteration process is more accurate.
[0068] Embodiment 3
[0069] Figure 3 A flowchart of a system capability testing method is provided for the third embodiment of the present invention. This embodiment is applicable to the case of performing automated system capability testing on a device with an operating system transplanted thereto. The method can be executed by a system capability testing device. The system capability testing device can be implemented in the form of hardware and / or software. The system capability testing device can be configured in an electronic device. Figure 3 As shown, a system capability testing method provided in the third embodiment is applied to the server and specifically includes the following steps:
[0070] S310: After establishing a communication connection with the test device, determine a corresponding target test application according to the operating system version of the test device.
[0071] In an embodiment of the present invention, when it is necessary to perform a system capability test on a test device, the server can be communicatively connected with the test device to be tested, and then the operating system version of the test device can be obtained by calling the corresponding API, and the corresponding target test application can be determined based on the operating system version.
[0072] Further, based on the above-mentioned embodiment of the invention, S310 specifically includes:
[0073] S3101, in response to a user trigger operation, establishing a communication connection with a test device through a universal serial bus interface;
[0074] S3102, calling a preset device system version acquisition interface to obtain an operating system version corresponding to the test device;
[0075] S3103. Search for a corresponding target test application in a preset test application set according to the operating system version.
[0076] Among them, Universal Serial Bus (USB) is a serial bus standard that can be used for connection and communication between a server (such as a PC) and a test device.
[0077] The user trigger operation may refer to a trigger operation for establishing a communication connection between the server and the test device, for example, it may include but is not limited to: connecting the server and the test device using a data cable, turning on the USB debugging function of the test device, etc.
[0078] The preset device system version acquisition interface may refer to an API interface for acquiring the operating system version of the test device, such as systeminfo.getSystemInfoSync, etc. The preset test application set may refer to a set of test applications created in advance according to different versions of the operating system.
[0079] Specifically, the server can respond to the user's trigger operation, and then establish a communication connection with the test device through the USB interface, and then obtain the operating system version corresponding to the test device by calling the preset device system version acquisition interface such as systeminfo.getSystemInfoSync, and then use data query methods including but not limited to numerical matching, string matching, fuzzy matching, etc. to find the corresponding associated target test application in the pre-created preset test application set.
[0080] S320 . Load the target test application into the test device, so that the test device performs a system capability test based on the target test application.
[0081] In an embodiment of the present invention, after determining the target test application corresponding to the operating system version of the test device, the target test instructions can be loaded into the test device by calling a pre-configured application installation instruction, and then the subsequent test device can use the target test application to automatically perform system capability testing; wherein, the system capability testing process of the test device can refer to the above embodiment and will not be repeated here.
[0082] Furthermore, based on the above-mentioned embodiments of the invention, a system capability testing method provided by an embodiment of the invention further includes:
[0083] According to different versions of the operating system, corresponding versions of test applications are created, and each test application is stored in a preset test application set.
[0084] In an embodiment of the present invention, before executing the system capability test, a corresponding version of the test application can be created according to different versions of the operating system, that is, a corresponding test application is created for each version of the operating system, and each created test application is stored in a preset test application set, wherein the test application is configured with a system capability test program of the corresponding operating system version, and the test application can be a hap package created by the tester according to the actual system capability test process, and the system capability of the test device can be automatically tested by calling the corresponding version of the test application. The system capability test is performed by the corresponding version of the test application loaded on the test device end, without relying on external resources such as PC, development environment, etc., avoiding the influence of the external environment during the device test, thereby improving the test accuracy.
[0085] Furthermore, based on the above-mentioned embodiments of the invention, a system capability testing method provided by an embodiment of the invention further includes:
[0086] Create corresponding versions of the test case library based on the full system capabilities of different versions of the operating system.
[0087] In the embodiment of the present invention, considering the factors such as the various versions of the transplanted operating system, differences in manufacturers, and differences in hardware capabilities, in order to avoid the problem of complicated and inefficient system capability testing of the transplanted device, a test case library of corresponding versions can be created in advance for all system capabilities of different versions of the operating system, wherein the test case library contains test case sets created for each system capability. By creating a test case library for each system version, the test coverage of the device system capability test can be improved, thereby improving the test accuracy.
[0088] The technical solution of the embodiment of the present invention is applied to the server side. After establishing a communication connection with the test device, the corresponding target test application is determined according to the operating system version of the test device, and then the target test application is loaded into the test device, so that the test device performs a system capability test based on the target test application, thereby achieving effective verification of the system capability of the device after the operating system is transplanted, and improving the convenience and efficiency of the test.
[0089] Embodiment 4
[0090] Figure 4 This is a flowchart of a system capability testing method provided by Embodiment 4 of the present invention. Based on the above embodiments, this embodiment takes the test device transplanted with the Openharmony L2 standard system as an example to provide an implementation of a system capability testing method, which can realize the automated testing of the system capability of the device transplanted with the Openharmony L2 standard system. Figure 4 As shown, a system capability testing method provided by Embodiment 4 of the present invention is applied to a testing device and specifically includes the following steps:
[0091] S410: In response to a user triggering operation, the test device is communicatively connected to the server.
[0092] In the embodiment of the present invention, before executing the system capability, the server can obtain the system capability (interface) of different versions of the operating system, and create a test case library and a test application of the corresponding version, wherein the test case library is created in the following two ways:
[0093] 1) Directly use the test cases of the existing open source XTS corresponding to the underlying system capability interface; XTS (X TestSuite) refers to a system test suite for the OpenHarmony operating system, which aims to ensure the stability, security and compatibility of OpenHarmony software;
[0094] 2) Based on the interface test design specifications and product requirements, customized test case design is performed for the NAPI interface parameters of the system's underlying capabilities.
[0095] It is understandable that method 1 is a more general test with a coarse granularity but high test efficiency; method 2 can design test cases in a fine-grained manner according to the actual product demand range, which is more flexible, and the test will be more in-depth and targeted. Compared with method 1, it requires more design costs, and the test case execution efficiency is lower than that of method 1. In actual applications, different test case library creation methods can be reasonably selected according to different system capabilities, so as to create a test case library that meets the test requirements.
[0096] S420: In response to the application loading trigger instruction of the server, install the target test application.
[0097] S430: Run the target test application in the test device, and obtain the operating system version and support capability set corresponding to the test device by calling a preset device parameter acquisition interface.
[0098] S440. Match the corresponding target test case library version according to the operating system version.
[0099] S450 . In the target test application, select the target test case set of each system capability corresponding to the target test case library version in sequence according to the supported capability set.
[0100] S460: Execute the target test case set of each system capability and generate corresponding test results.
[0101] By saving the test results, the adaptation status of the underlying capabilities of the device system can be accurately output, improving test efficiency and accuracy.
[0102] like Figure 5 and 6 As shown, in a specific embodiment, it is assumed that a device D of a certain manufacturer has system capabilities Bluetooth, WiFi and database, and the transplantation has matched the device capability system OS4.0; the device D is connected through a PC (server), and then the corresponding target test application APP is selected according to the obtained device system version OS4.0, and the target test application APP is loaded into the device D through the application installation instruction; the target test application APP in the device D is run, and the target test application APP will automatically identify the system capabilities Bluetooth, WiFi and database transplanted by the device D; then, the target test application APP will match the acquired three system capabilities with the test case set in the test case library; after the capability matching is successful, the target test application APP will automatically execute the test case set corresponding to the three system capabilities. After the test execution is completed, the corresponding test results will be generated. The test results are divided into all transplanted capabilities passed, or any one fails and the output result is failed, etc., and a corresponding test report is generated; if the capability matching fails, the result will be directly output as failure, as well as which specific capability matching failed, and a corresponding test report will be generated.
[0103] The technical solution of the embodiment of the present invention is applied to a test device, which automatically identifies the different system capabilities of the device after the operating system is adapted through a target test application loaded on the test device, and automatically identifies and matches a target test case set for each system capability, thereby effectively verifying the system capability adaptation of the device after the operating system is transplanted according to the target test case set, thereby improving the convenience and efficiency of the test; at the same time, the test process does not need to rely on external resources such as the development environment, thereby avoiding the influence of the external environment during device testing, and further improving the test accuracy; in addition, in the case where the system capabilities of the device may become invalid after the iterative update of the operating system version, by executing the system capability testing method, the invalid system capabilities can be quickly and accurately identified, thereby repairing related abnormal problems to ensure the stable availability of various system capabilities of the test device after the system is transplanted.
[0104] Embodiment 5
[0105] Figure 7 This is a schematic diagram of the structure of a system capability testing device provided in Embodiment 5 of the present invention. Figure 7 As shown, the device is applied to test equipment, including:
[0106] An application installation module 51, for installing a target test application in response to an application loading trigger instruction of the server;
[0107] An acquisition module 52 is used to acquire an operating system version and a support capability set of a test device according to a target test application;
[0108] A capability matching module 53 is used to determine a target test case set corresponding to each system capability of the support capability set in the target test application according to the operating system version;
[0109] The capability testing module 54 is used to test the support capability set according to the target test application and each target test case set.
[0110] The technical solution of the embodiment of the present invention is applied to a test device, and the operating system version and supported capability set of the test device are obtained based on a target test application loaded on the test device, and a target test case set of each system capability is automatically identified and matched according to the operating system version and the supported capability set, and then the system capability test is performed according to the target test case set, thereby achieving effective verification of the system capability of the device after the operating system is transplanted, and improving the convenience and efficiency of the test; at the same time, the test process does not need to rely on external resources such as the development environment, thereby avoiding the influence of the external environment on the device during testing, and further improving the test accuracy.
[0111] Further, based on the above-mentioned embodiment of the invention, the acquisition module 52 includes:
[0112] The system version and capability set acquisition unit is used to run the target test application and call the preset device parameter acquisition interface to obtain the operating system version and supported capability set corresponding to the test device.
[0113] Further, based on the above-mentioned embodiment of the invention, the capability matching module 53 includes:
[0114] A test case library version determination unit, used to determine the target test case library version corresponding to the operating system version according to a preset system test case mapping relationship;
[0115] A case library determination unit, used to determine a corresponding target test case library in a target test application according to a target test case library version;
[0116] The capability matching unit is used to search for a target test case set corresponding to each system capability in the target test case library according to the identification information of each system capability in the supporting capability set.
[0117] Further, based on the above-mentioned embodiment of the invention, the capability testing module 54 includes:
[0118] The capability testing unit is used to call the target test application to test the corresponding system capability according to each target test case set and the test execution mode corresponding to each target test case set, and obtain the corresponding test result;
[0119] The test result display unit is used to visually display the test results on the target display interface of the test application and generate a corresponding test report under the target directory of the test device.
[0120] The system capability testing device provided in the embodiment of the present invention can execute the system capability testing method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.
[0121] Embodiment 6
[0122] Figure 8 This is a schematic diagram of the structure of a system capability testing device provided by Embodiment 6 of the present invention. Figure 8 As shown, the device is applied to the server, including:
[0123] The application determination module 61 is used to determine the corresponding target test application according to the operating system version of the test device after establishing a communication connection with the test device;
[0124] The application loading module 62 is used to load the target test application into the test device, so that the test device performs a system capability test based on the target test application.
[0125] The technical solution of the embodiment of the present invention is applied to the server side. After establishing a communication connection with the test device, the corresponding target test application is determined according to the operating system version of the test device, and then the target test application is loaded into the test device, so that the test device performs a system capability test based on the target test application, thereby achieving effective verification of the system capability of the device after the operating system is transplanted, and improving the convenience and efficiency of the test.
[0126] Further, based on the above-mentioned embodiment of the invention, the application determination module 61 includes:
[0127] A device connection unit, used to establish a communication connection with a test device via a universal serial bus interface in response to a user trigger operation;
[0128] A system version acquisition unit, used to call a preset device system version acquisition interface to acquire an operating system version corresponding to the test device;
[0129] The test application search unit is used to search for a corresponding target test application in a preset test application set according to the operating system version.
[0130] Further, based on the above-mentioned embodiment of the invention, the system capability testing device further includes:
[0131] The test application creation module is used to create corresponding versions of test applications according to different versions of the operating system, and store each test application in a preset test application set.
[0132] Further, based on the above-mentioned embodiment of the invention, the system capability testing device further includes:
[0133] The test case library creation module is used to create corresponding versions of the test case library according to the full system capabilities of different versions of the operating system.
[0134] The system capability testing device provided in the embodiment of the present invention can execute the system capability testing method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.
[0135] Embodiment 7
[0136] Fig. 9A schematic diagram of an electronic device 70 that can be used to implement an embodiment of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.
[0137] like Fig. 9 As shown, the electronic device 70 includes at least one processor 71, and a memory connected to the at least one processor 71, such as a read-only memory (ROM) 72, a random access memory (RAM) 73, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 71 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 72 or the computer program loaded from the storage unit 78 to the random access memory (RAM) 53. In the RAM 73, various programs and data required for the operation of the electronic device 70 can also be stored. The processor 71, the ROM 72, and the RAM 73 are connected to each other via a bus 74. An input / output (I / O) interface 75 is also connected to the bus 74.
[0138] A number of components in the electronic device 70 are connected to the I / O interface 75, including: an input unit 76, such as a keyboard, a mouse, etc.; an output unit 77, such as various types of displays, speakers, etc.; a storage unit 78, such as a disk, an optical disk, etc.; and a communication unit 79, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 79 allows the electronic device 70 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0139] The processor 71 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 71 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 71 performs the various methods and processes described above, such as a system capability testing method.
[0140] In some embodiments, the system capability test method may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 78. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 70 via the ROM 72 and / or the communication unit 79. When the computer program is loaded into the RAM 73 and executed by the processor 71, one or more steps of the system capability test method described above may be performed. Alternatively, in other embodiments, the processor 71 may be configured to perform the system capability test method in any other appropriate manner (e.g., by means of firmware).
[0141] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0142] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0143] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0144] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).
[0145] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.
[0146] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.
[0147] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.
[0148] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A system capability testing method, characterized in that: Applied to testing equipment, the method comprises: In response to an application loading trigger instruction from the server, a target test application is installed; Acquire the operating system version and supported capability set of the test device according to the target test application; Determine, in the target test application, a target test case set corresponding to each system capability of the support capability set according to the operating system version; The support capability set is tested according to the target test application and each of the target test case sets.
2. The method according to claim 1, characterized in that The obtaining the operating system version and the supported capability set of the test device according to the target test application includes: The target test application is run, and a preset device parameter acquisition interface is called to acquire the operating system version and the support capability set corresponding to the test device.
3. The method according to claim 1, characterized in that The step of determining, in the target test application according to the operating system version, a target test case set corresponding to each system capability of the support capability set includes: Determine the target test case library version corresponding to the operating system version according to the preset system case mapping relationship; Determine a corresponding target test case library in the target test application according to the target test case library version; According to the identification information of each of the system capabilities in the support capability set, the target test case set corresponding to each of the system capabilities is searched in the target test case library.
4. The method according to claim 1, characterized in that: The testing of the support capability set according to the target test application and each target test case set includes: According to each of the target test case sets and the test execution mode corresponding to each of the target test case sets, calling the target test application to test the corresponding system capability and obtaining the corresponding test result; The test results are visually displayed on the target display interface of the test application, and a corresponding test report is generated under the target directory of the test device.
5. A system capability testing method, characterized in that: Applied to the server, the method includes: After establishing a communication connection with the test device, determining a corresponding target test application according to the operating system version of the test device; The target test application is loaded into the test device, so that the test device performs a system capability test based on the target test application.
6. The method according to claim 5, characterized in that After establishing a communication connection with the test device, determining a corresponding target test application according to the operating system version of the test device includes: In response to a user trigger operation, establishing a communication connection with the test device via a universal serial bus interface; Calling a preset device system version acquisition interface to acquire the operating system version corresponding to the test device; The corresponding target test application is searched in a preset test application set according to the operating system version.
7. The method according to claim 5, characterized in that Also includes: According to different versions of the operating system, corresponding versions of the test applications are created, and each of the test applications is stored in a preset test application set.
8. The method according to claim 5, characterized in that Also includes: Create corresponding versions of the test case library based on the full system capabilities of different versions of the operating system.
9. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can perform the system capability testing method according to any one of claims 1 to 8.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the system capability testing method according to any one of claims 1 to 8 when executed.
Citation Information
Cited By
Compatibility testing method and system based on application program of swan Mongolia
CN121722672A
Method and system for testing compatibility of a honkong application
CN121722672B
