System testing method and device
By generating and installing mirror files and automating system testing, the problems of manual operation dependency and driver compatibility are solved, testing efficiency and accuracy are improved, and hardware and operating system compatibility is ensured.
Patent Information
- Application Number
- CN202411320696.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-20
- Publication Date
- 2024-12-17
AI Technical Summary
The prior art relies on manual operation in system compatibility testing, resulting in high cost, low efficiency, and reduced accuracy, and the default driver of the operating system is incompatible with hardware, affecting the adaptability of the test.
By generating a mirror file based on the configuration information of the system to be tested, including version information, kernel information and driver information, it is automatically installed and tested, ensuring driver compatibility with hardware and reducing manual intervention.
It improves the efficiency, accuracy and adaptability of system testing, reduces labor costs, avoids the risk of misoperation, and ensures compatibility between drivers and hardware.
Smart Images

Figure CN119149428A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a system testing method and device. Background Art
[0002] With the rapid development of cloud computing technology, the performance and stability of infrastructure services need to be guaranteed at the server level. Therefore, during operation and maintenance, it is necessary to consider the compatibility between the driver and the operating system, as well as between the driver and the server hardware.
[0003] However, in the existing technology, system compatibility testing is often done manually, including manually dividing the test partitions, manually installing the environment, and other steps. This process not only wastes a lot of labor costs and reduces the test efficiency, but also may reduce the test accuracy due to misoperation due to too many manual intervention operation links. In addition, the driver installed by default in the operating system may be incompatible with the board in the server hardware, which will make the test process impossible and reduce the adaptability of the system test. Summary of the invention
[0004] In view of this, the embodiments of the present disclosure provide a system testing method, device, electronic device and storage medium, which can reduce the labor cost of system testing and improve the efficiency, accuracy and adaptability of system testing.
[0005] In a first aspect, an embodiment of the present disclosure provides a system testing method, including:
[0006] Generate an image file of the system to be tested according to the configuration information corresponding to the system to be tested; the configuration information includes version information, kernel information and driver information of the system to be tested, and identification information of the server to be tested corresponding to the system to be tested;
[0007] Based on the image file, install the system to be tested into the server to be tested;
[0008] The system to be tested is tested according to the test items pre-configured for the system to be tested.
[0009] Optionally, based on the image file, the system to be tested is installed in the server to be tested, including:
[0010] Determine the test partition in the hard disk of the server under test and put the image file into the test partition;
[0011] Generate a boot configuration file for the system to be tested; the boot configuration file includes parameters and path information required to start the system to be tested;
[0012] The hard disk is set as the priority startup item, and based on the boot configuration file and the priority startup item, the system to be tested is installed into the test partition of the server to be tested.
[0013] Optionally, after installing the image file of the system to be tested into the server to be tested, the process further includes:
[0014] The installation time of installing the system to be tested on the server to be tested based on the image file is recorded, and in response to the installation time exceeding a preset threshold, installation exception information is generated.
[0015] Optionally, after the system to be tested is installed in the server to be tested, the following steps are further included:
[0016] Collect software reporting information and hardware equipment information from the server under test;
[0017] In response to the collected software reporting information and hardware device information not being consistent with preset collection items, it is determined that the system to be tested has a configuration anomaly problem in the tested server, and configuration anomaly information corresponding to the configuration anomaly problem is generated.
[0018] Optionally, the system to be tested is tested according to test items pre-configured for the system to be tested, including:
[0019] The test items are sent to the server under test, and the test scripts corresponding to the test items are called to test the system under test; wherein the test scripts corresponding to the test items are pre-generated.
[0020] Optionally, after testing the system to be tested according to the test items pre-configured for the system to be tested, the method further includes:
[0021] Based on the test results of the test items, the installation time of installing the system to be tested on the server to be tested, and the configuration anomalies of the system to be tested, the test results of the system to be tested in the server to be tested are determined.
[0022] In a second aspect, an embodiment of the present disclosure provides a system testing device, including:
[0023] A generation module is used to generate an image file of the system to be tested according to the configuration information corresponding to the system to be tested; the configuration information includes version information, kernel information and driver information of the system to be tested, and identification information of the tested server corresponding to the system to be tested;
[0024] The installation module is used to install the system to be tested into the server to be tested based on the image file;
[0025] The test module is used to test the system to be tested according to the test items pre-configured for the system to be tested.
[0026] In a third aspect, an embodiment of the present disclosure further provides an electronic device, comprising: a processor, a memory and a bus, wherein the memory stores machine-readable instructions executable by the processor, and when the computer device is running, the processor and the memory communicate through the bus, and when the machine-readable instructions are executed by the processor, the above-mentioned first aspect, or the steps in any optional implementation of the first aspect are performed.
[0027] In a fourth aspect, an embodiment of the present disclosure further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the above-mentioned first aspect, or any optional implementation of the first aspect are executed.
[0028] In a fifth aspect, an embodiment of the present disclosure further provides a computer program product, including a computer program, which implements the method of any of the above embodiments when executed by a processor.
[0029] Any one of the above aspects or any implementation method of any one of the aspects, by generating an image file of the system to be tested according to the configuration information corresponding to the system to be tested; the configuration information includes version information, kernel information and driver information of the system to be tested, and identification information of the server to be tested corresponding to the system to be tested; based on the image file, the system to be tested is installed in the server to be tested; the system to be tested is tested according to the test items pre-configured for the system to be tested. Thus, the image file of the system to be tested can be customized according to the configuration information corresponding to the system to be tested, which solves the problem that the default preset driver in the system to be tested is incompatible with the server hardware, ensures that compatibility tests between the driver and the operating system and between the driver and the server hardware can be performed under any circumstances, and improves the applicability and efficiency of the system test. And reduce the links of manual intervention test operation, saving labor costs; in addition, it also reduces the risk of misoperation caused by manual intervention, and improves the efficiency and accuracy of the system test.
[0030] The effects of the above-mentioned system testing device, electronic device and storage medium can be found in the description of the above-mentioned system testing method, which will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] In order to more clearly illustrate the technical solutions of the embodiments of the present disclosure, the following briefly introduces the drawings required for use in the embodiments. The drawings herein are incorporated into the specification and constitute a part of the specification. These drawings illustrate embodiments consistent with the present disclosure and are used together with the specification to illustrate the technical solutions of the present disclosure. It should be understood that the following drawings only illustrate certain embodiments of the present disclosure and should not be regarded as limiting the scope. For ordinary technicians in this field, other relevant drawings can be obtained based on these drawings without creative work.
[0032] Figure 1 A flow chart of a system testing method provided by an embodiment of the present disclosure is shown;
[0033] Figure 2 A schematic diagram of a system testing device provided by an embodiment of the present disclosure is shown;
[0034] Figure 3 An exemplary system architecture is shown in which embodiments of the present disclosure may be applied;
[0035] Figure 4 A schematic diagram of the structure of a computer system of a terminal device or a server used to implement an embodiment of the present disclosure is shown. DETAILED DESCRIPTION
[0036] In order to make the purpose, technical scheme and advantages of the embodiments of the present disclosure clearer, the technical scheme in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are only part of the embodiments of the present disclosure, rather than all of the embodiments. The components of the embodiments of the present disclosure generally described and shown in the drawings here can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present disclosure provided in the drawings is not intended to limit the scope of the present disclosure for protection, but merely represents the selected embodiments of the present disclosure. Based on the embodiments of the present disclosure, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present disclosure.
[0037] It should be noted that in the technical solution of the present invention, the collection, use, storage, sharing and transfer of user personal information involved are in compliance with the provisions of relevant laws and regulations, and it is necessary to inform the user and obtain the user's consent or authorization. When applicable, the user's personal information is de-identified and / or anonymized and / or encrypted.
[0038] According to research, the field of cloud computing technology has developed rapidly in recent years, and the performance and stability of infrastructure services need to be guaranteed at the server hardware level. There are many types of servers and hardware components on the market, and the compatibility of driver software and underlying hardware needs to be considered during operation and maintenance. In addition, upper-level businesses sometimes frequently upgrade operating systems and kernel versions, and the compatibility of different versions of operating systems and kernels can vary greatly, which requires that the driver layer not only consider compatibility with hardware, but also compatibility with different operating systems. If there are problems with the compatibility of the operating system, kernel, driver, and hardware of online services, the performance of the components will be weakened at the least, and the server will be paralyzed at the worst, or even the cluster will be offline, with catastrophic consequences. Therefore, it is necessary to conduct compatibility tests on the operating system and hardware drivers in particular to ensure the stability and performance of hardware services.
[0039] However, in the existing technology, system compatibility testing is often done manually, including manually dividing the test partitions, manually installing the environment, and other steps. This process not only wastes a lot of labor costs and reduces the test efficiency, but also may reduce the test accuracy due to misoperation due to too many manual intervention operation links. In addition, the driver installed by default in the operating system may be incompatible with the board in the server hardware, which will make the test process impossible and reduce the adaptability of the system test.
[0040] Based on the above research, the disclosed embodiment provides a system testing method, which generates an image file of the system to be tested according to the configuration information corresponding to the system to be tested; the configuration information includes the version information, kernel information and driver information of the system to be tested, and the identification information of the server to be tested corresponding to the system to be tested; based on the image file, the system to be tested is installed in the server to be tested; the system to be tested is tested according to the test items pre-configured for the system to be tested. In this way, the image file of the system to be tested can be customized according to the configuration information corresponding to the system to be tested, which solves the problem that the default preset driver in the system to be tested is incompatible with the server hardware, ensures that the compatibility test between the driver and the operating system and between the driver and the server hardware can be performed under any circumstances, and improves the applicability and efficiency of the system test. And it reduces the links of manual intervention test operation, saving labor costs; in addition, it also reduces the risk of misoperation caused by manual intervention, and improves the efficiency and accuracy of system testing.
[0041] The raising of the above problems and the solutions are the results obtained by the inventor after practice and careful research. The discovery process of the above problems and the solutions proposed for the above problems should be the contributions made by the inventor to the present disclosure during the disclosure process.
[0042] The technical solutions in the present disclosure will be clearly and completely described below in conjunction with the drawings in the present disclosure. Obviously, the described embodiments are only part of the embodiments of the present disclosure, rather than all of the embodiments. The components of the present disclosure generally described and shown in the drawings here can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present disclosure provided in the drawings is not intended to limit the scope of the present disclosure claimed for protection, but merely represents the selected embodiments of the present disclosure. Based on the embodiments of the present disclosure, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present disclosure.
[0043] It should be noted that similar reference numerals and letters denote similar items in the following drawings, and therefore, once an item is defined in one drawing, further definition and explanation thereof is not required in subsequent drawings.
[0044] To facilitate understanding of this embodiment, a system testing method disclosed in the embodiment of the present disclosure is first introduced in detail. The execution subject of the system testing method provided in the embodiment of the present disclosure is generally a computer device with certain computing capabilities, and the computer device includes, for example: a terminal device or a server or other processing device, and the terminal device can be a user equipment (User Equipment, UE), a mobile device, a user terminal, a terminal, a cellular phone, a cordless phone, a personal digital assistant (Personal Digital Assistant, PDA), a handheld device, a computing device, a vehicle-mounted device, a wearable device, etc. In some possible implementations, the system testing method can be implemented by a processor calling a computer-readable instruction stored in a memory.
[0045] See also Figure 1 FIG. 1 is a flowchart of a system testing method provided by an embodiment of the present disclosure, wherein the method includes S101 to S103, wherein:
[0046] S101: Generate an image file of the system to be tested according to configuration information corresponding to the system to be tested; the configuration information includes version information, kernel information and driver information of the system to be tested, and identification information of a server to be tested corresponding to the system to be tested.
[0047] In this step, the image file of the system to be tested can be customized and generated according to the configuration information corresponding to the system to be tested.
[0048] In the disclosed embodiment, the configuration information may include the version information of the system to be tested. Because different versions of operating systems may have different library and software package versions, these differences may affect the compatibility of the kernel and the driver, so when generating the image file of the system to be tested, the specific version of the operating system to be tested can be specified.
[0049] In the disclosed embodiment, the configuration information may also include kernel information of the system to be tested. Since some enterprises or development teams may customize the official kernel version to add specific functions or optimize performance, these customized kernels may have compatibility issues with official drivers. Therefore, when generating the image file of the system to be tested, the kernel information of the current operating system may also be clarified.
[0050] In the disclosed embodiment, the configuration information may also include driver information of the system to be tested. This is because the operating system usually presets a default driver, and the default driver may be incompatible with the board in the server hardware; in addition, the difference in the driver may also affect the performance and stability of the hardware. Therefore, when generating the image file of the system to be tested, the driver information of the operating system may also be determined to ensure that the driver can work normally on the operating system and is compatible with the server board for subsequent testing.
[0051] In the disclosed embodiment, the configuration information may also include identification information of the server to be tested for the system to be tested, and the identification information may include the model of the server. This is because differences in server hardware may affect the compatibility of the kernel and the driver, and different server models may use different hardware components. These differences may cause the driver to fail to run properly on certain hardware. Therefore, the model of the server to be tested can be clarified through the identification information, thereby ensuring that the test can proceed smoothly.
[0052] In the embodiment of the present disclosure, if a server cluster is involved, the configuration information may also include the serial number of the tested server in the server cluster. In addition, the system IP (Internet Protocol) address, out-of-band IP address, user password and other information corresponding to the tested server may also be entered into the execution subject of the embodiment of the present disclosure, thereby accessing and managing the tested server.
[0053] In a specific implementation, the user can upload the kernel and driver to the execution subject of the embodiment of the present disclosure in the rpm and src.rpm formats respectively. After the user has configured the kernel and driver of the system to be tested, the execution subject of the embodiment of the present disclosure can generate a customized image file of the system to be tested according to the kernel and driver uploaded by the user; wherein, the src.rpm format can implement the process of compiling the driver, thereby being able to meet the needs of customized installation of the driver. It should be noted here that the formats of the above kernel and driver are only used as an example of a preferred implementation in the embodiment of the present disclosure, and do not constitute an improper limitation of the present invention.
[0054] S102: Based on the image file, the system to be tested is installed in the server to be tested.
[0055] In this step, after obtaining the image file corresponding to the system to be tested, the system to be tested can be installed in the server to be tested based on the image file to perform compatibility testing.
[0056] In an embodiment of the present disclosure, the system to be tested is installed in the server to be tested based on the image file, including: determining a test partition in the hard disk of the server to be tested, and placing the image file into the test partition; generating a boot configuration file for the system to be tested; the boot configuration file includes parameters and path information required to start the system to be tested; setting the hard disk as a priority startup item, and installing the system to be tested in the test partition of the server to be tested based on the boot configuration file and the priority startup item.
[0057] In a specific implementation, a tool for managing hard disk partitions can be used to determine the test partition in the tested server, such as the fdisk tool, the parted tool, the LVM tool, etc. In this way, the operation steps of manual partitioning in the prior art can be completed by the automatic partitioning tool, thereby improving the efficiency and accuracy of the system test. It should be noted that the embodiment of the present disclosure does not specifically limit the selection of different partitioning tools, and in actual application, it is based on the ability to achieve its functions.
[0058] After the test partition is determined, the test partition can be formatted and a file system can be created therein. Formatting can erase all data on the test partition and prepare for the new file system so that it can store the image file and install the system to be tested corresponding to the image file. Then the image file can be copied to the determined test partition, so that the system files and software environment in the image file can be extracted to the physical hard disk of the server under test. After the necessary information such as the system files and software environment in the image file is copied to the physical hard disk of the server under test, the grub-mkconfig tool (a tool for generating a GRUB boot loader configuration file; GRUB, GrandUnified Bootloader, a multi-operating system boot loader) can be used to generate a boot configuration file. The boot configuration file here contains information required by the boot loader, such as kernel location, startup parameters and path information, etc. The boot configuration file can ensure that the system to be tested is found and correctly loaded at startup. In addition, when installing the system to be tested, the boot startup sequence can also be configured. For example, the hard disk can be set as the priority startup item, so that the system can be started from the hard disk test partition of the server under test first at startup, thereby entering the installed system to be tested. After completing the above steps, the server under test can be restarted. During the restart process, the system to be tested can be installed in the server under test according to the boot configuration file and the priority startup items to perform subsequent test steps.
[0059] In an embodiment of the present disclosure, after the image file of the system to be tested is installed in the server to be tested, it also includes: recording the installation time of installing the system to be tested in the server to be tested based on the image file, and generating installation exception information in response to the installation time exceeding a preset threshold.
[0060] In a specific implementation, the installation time can be recorded during the process of installing the system to be tested on the server to be tested based on the image file. If the recorded installation time exceeds the preset time threshold, corresponding installation exception information can be generated so that relevant personnel can check the installation log according to the installation exception information and locate compatibility issues. Alternatively, the installation status of the system to be tested can also be recorded. If the installation of the system to be tested fails, installation failure exception information can be generated.
[0061] In the embodiment of the present disclosure, after the system to be tested is installed in the server to be tested, it also includes: collecting software reporting information and hardware device information in the server to be tested; in response to the collected software reporting information and hardware device information not being consistent with preset collection items, determining that the system to be tested has a configuration abnormality problem in the server to be tested, and generating configuration abnormality information corresponding to the configuration abnormality problem.
[0062] In a specific implementation, a user can issue a configuration collection task to the server under test. The collection task can indicate the software and hardware devices that need to be collected, and can also indicate the collection method, etc. The embodiment of the present disclosure does not specifically limit this. After collecting the software reporting information and hardware device information, the execution subject of the embodiment of the present disclosure can compare it with the preset collection items. If the information of some collection items is missing, it indicates that the driver cannot be perfectly compatible with the system to be tested and the server under test, and then the configuration exception information can be generated according to the missing collection items. Exemplarily, assuming that the preset collection items include PCIE boards (Peripheral Component Interconnect Express, used to add additional functions to the computer or improve the performance of existing functions), and the software reporting information and hardware device information obtained through the collection do not include PCIE boards, then the configuration exception information of "missing PCIE board information" can be generated to indicate the configuration exception problem encountered by the relevant personnel.
[0063] In another possible implementation, in addition to determining whether the preset collection items are met, it is also possible to determine whether the collected software reporting information and hardware device information are consistent with the actual situation. For example, assuming that the collected CPU (Central Processing Unit) model is A, and the memory size is 64GB; while the actual CPU model is B, and the memory size is 32GB; then it indicates that the collected information is inconsistent with the actual situation, and corresponding configuration exception information can also be generated at this time to indicate that there is a configuration exception problem between the current system to be tested and the server under test.
[0064] S103: Testing the system to be tested according to the test items pre-configured for the system to be tested.
[0065] In an embodiment of the present disclosure, the system to be tested is tested according to the test items pre-configured for the system to be tested, including: sending the test items to the server under test, calling the test script corresponding to the test items to test the system to be tested; wherein the test script corresponding to the test items is pre-generated.
[0066] In a specific implementation, the test items to be tested can be configured for the system to be tested before or after the system to be tested is installed in the server to be tested, such as memory performance test, network card performance test, CPU stability test and functional test, etc. The embodiments of the present disclosure do not make specific limitations on this. After configuring the test items corresponding to the system to be tested, these test items can be sent to the server to be tested. After receiving these test items, the server to be tested can use the test scripts corresponding to these test items for detection. The test script here can be pre-developed by the developer and stored in the server to be tested; it can also be automatically generated by calling relevant tools after receiving the test items. The embodiments of the present disclosure do not make specific limitations on this, and it is subject to the ability to achieve its functions.
[0067] In one possible implementation, when configuring multiple test items, you can also set a test order for each test item, and then generate a test set containing the test order, and send the test set to the server under test, and the server under test can be tested according to the order of the test items in the test set. This ensures that before a test item is tested, its dependencies are ready or have been tested, thereby improving the efficiency of system testing. By testing each test item, you can evaluate whether the hardware performance and stability of the server under test meet the requirements in the specified system, kernel, and driver environment to be tested, as well as whether the various hardware components of the server can be recognized normally and whether the functions in the business scenario meet the requirements.
[0068] In the embodiment of the present disclosure, after testing the system to be tested according to the test items pre-configured for the system to be tested, it also includes: determining the test results of the system to be tested in the server to be tested based on the test results of the test items, the installation time of installing the system to be tested on the server to be tested, and configuration abnormalities of the system to be tested.
[0069] In a specific implementation, after each test item is executed or after all test items are executed, the corresponding test results, the execution log of the test script, and the system log of the system to be tested can be reported to the execution subject of the embodiment of the present disclosure. The execution subject of the embodiment of the present disclosure can determine the compatibility test results of the system to be tested in the tested server based on the reported information and the installation exception information and configuration exception information obtained in the aforementioned steps. If it is determined that there is an abnormal problem, the corresponding prompt information can also be generated and pushed to the relevant personnel or equipment to locate the problem point.
[0070] According to a second aspect of the embodiment of the present disclosure, Figure 2 As shown, a system testing device 200 is provided, comprising:
[0071] The generation module 201 is used to generate an image file of the system to be tested according to the configuration information corresponding to the system to be tested; the configuration information includes version information, kernel information and driver information of the system to be tested, and identification information of the server to be tested corresponding to the system to be tested;
[0072] An installation module 202 is used to install the system to be tested into the server to be tested based on the image file;
[0073] The testing module 203 is used to test the system to be tested according to the test items pre-configured for the system to be tested.
[0074] Optionally, the installation module 202 is specifically used for:
[0075] Determine the test partition in the hard disk of the server under test and put the image file into the test partition;
[0076] Generate a boot configuration file for the system to be tested; the boot configuration file includes parameters and path information required to start the system to be tested;
[0077] The hard disk is set as the priority startup item, and based on the boot configuration file and the priority startup item, the system to be tested is installed into the test partition of the server to be tested.
[0078] Optionally, the installation module 202 is further used for:
[0079] The installation time of installing the system to be tested on the server to be tested based on the image file is recorded, and in response to the installation time exceeding a preset threshold, installation exception information is generated.
[0080] Optionally, the installation module 202 is further used for:
[0081] Collect software reporting information and hardware equipment information from the server under test;
[0082] In response to the collected software reporting information and hardware device information not being consistent with preset collection items, it is determined that the system to be tested has a configuration anomaly problem in the tested server, and configuration anomaly information corresponding to the configuration anomaly problem is generated.
[0083] Optionally, the testing module 203 is specifically used for:
[0084] The test items are sent to the server under test, and the test scripts corresponding to the test items are called to test the system under test; wherein the test scripts corresponding to the test items are pre-generated.
[0085] Optionally, the testing module 203 is further used for:
[0086] Based on the test results of the test items, the installation time of installing the system to be tested on the server to be tested, and the configuration anomalies of the system to be tested, the test results of the system to be tested in the server to be tested are determined.
[0087] According to the third aspect of an embodiment of the present disclosure, there is provided an electronic device for system testing, comprising: one or more processors; a storage device for storing one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement the method provided by the first aspect of the embodiment of the present disclosure.
[0088] According to a fourth aspect of an embodiment of the present disclosure, a computer-readable medium is provided, on which a computer program is stored, and when the program is executed by a processor, the method provided by the first aspect of the embodiment of the present disclosure is implemented.
[0089] Figure 3 An exemplary system architecture 300 is shown to which a system testing method or a system testing apparatus implemented by the present disclosure can be applied.
[0090] like Figure 3 As shown, the system architecture 300 may include terminal devices 301, 302, 303, a network 304 and a server 305. The network 304 is used to provide a medium for communication links between the terminal devices 301, 302, 303 and the server 305. The network 304 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.
[0091] Users can use terminal devices 301, 302, 303 to interact with server 305 through network 304 to receive or send messages, etc. Various communication client applications can be installed on terminal devices 301, 302, 303, such as shopping applications, web browser applications, search applications, instant messaging tools, email clients, social platform software, etc. (only for example).
[0092] The terminal devices 301 , 302 , and 303 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop computers, and desktop computers, etc.
[0093] The server 305 may be a server that provides various services, such as a background management server (only an example) that provides support for shopping websites browsed by users using the terminal devices 301, 302, and 303. The background management server may process the received system test request and feed back the processing result (only an example) to the terminal device.
[0094] It should be noted that the system testing method provided in the embodiment of the present invention is generally performed by the server 305, and accordingly, the system testing device is generally set in the server 305. The system testing method provided in the embodiment of the present invention can also be performed by the terminal devices 301, 302, and 303, and accordingly, the system testing device can be set in the terminal devices 301, 302, and 303.
[0095] It should be understood that Figure 3 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to implementation requirements.
[0096] Reference below Figure 4 , which shows a schematic diagram of the structure of a computer system 400 of a terminal device suitable for implementing an embodiment of the present invention. Figure 4 The terminal device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.
[0097] like Figure 4 As shown, the computer system 400 includes a central processing unit (CPU) 401, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 402 or a program loaded from a storage part 408 into a random access memory (RAM) 403. In the RAM 403, various programs and data required for the operation of the system 400 are also stored. The CPU 401, the ROM 402, and the RAM 403 are connected to each other through a bus 404. An input / output (I / O) interface 405 is also connected to the bus 404.
[0098] The following components are connected to the I / O interface 405: an input section 406 including a keyboard, a mouse, etc.; an output section 407 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 408 including a hard disk, etc.; and a communication section 409 including a network interface card such as a LAN card, a modem, etc. The communication section 409 performs communication processing via a network such as the Internet. A drive 410 is also connected to the I / O interface 405 as needed. A removable medium 411, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 410 as needed, so that a computer program read therefrom is installed into the storage section 408 as needed.
[0099] In particular, according to the embodiments disclosed in the present invention, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present invention include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program contains program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 409, and / or installed from the removable medium 411. When the computer program is executed by the central processing unit (CPU) 401, the above-mentioned functions defined in the system of the present invention are executed.
[0100] It should be noted that the computer-readable medium shown in the present invention may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, 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 above. In the present invention, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present invention, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.
[0101] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present invention. In this regard, each box in the flow chart or block diagram can represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0102] The modules involved in the embodiments of the present invention may be implemented by software or hardware. The modules described may also be set in a processor. For example, a processor includes a generation module, an installation module, and a test module, wherein the names of these modules do not constitute a limitation on the modules themselves in certain cases. For example, the installation module may also be described as "a module for installing the system to be tested into the server to be tested based on an image file".
[0103] As another aspect, the present invention also provides a computer-readable medium, which may be included in the device described in the above embodiment; or it may exist independently without being assembled into the device. The above computer-readable medium carries one or more programs, and when the above one or more programs are executed by a device, the device implements the following method: generating an image file of the system to be tested according to configuration information corresponding to the system to be tested; the configuration information includes version information, kernel information and driver information of the system to be tested, and identification information of the server to be tested corresponding to the system to be tested; installing the system to be tested into the server to be tested based on the image file; and testing the system to be tested according to the test items pre-configured for the system to be tested.
[0104] Finally, it should be noted that the above-described embodiments are only specific implementation methods of the present disclosure, which are used to illustrate the technical solutions of the present disclosure, rather than to limit them. The protection scope of the present disclosure is not limited thereto. Although the present disclosure is described in detail with reference to the above-described embodiments, ordinary technicians in the field should understand that any technician familiar with the technical field can still modify the technical solutions recorded in the above-described embodiments within the technical scope disclosed in the present disclosure, or can easily think of changes, or make equivalent replacements for some of the technical features therein; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present disclosure, and should be included in the protection scope of the present disclosure. Therefore, the protection scope of the present disclosure shall be based on the protection scope of the claims.
Claims
1. A system testing method, characterized in that: include: Generate an image file of the system to be tested according to the configuration information corresponding to the system to be tested; The configuration information includes version information, kernel information and driver information of the system to be tested, and identification information of the server to be tested corresponding to the system to be tested; Based on the image file, installing the system to be tested into the server to be tested; The system to be tested is tested according to the test items pre-configured for the system to be tested.
2. The method according to claim 1, characterized in that: Based on the image file, installing the system to be tested into the server to be tested includes: Determine a test partition in the hard disk of the tested server, and put the image file into the test partition; Generate a boot configuration file for the system to be tested; the boot configuration file includes parameters and path information required to start the system to be tested; The hard disk is set as a priority startup item, and based on the boot configuration file and the priority startup item, the system to be tested is installed in the test partition of the server to be tested.
3. The method according to claim 1, characterized in that After the image file of the system to be tested is installed in the server to be tested, the method further includes: The installation time of installing the system to be tested on the server to be tested based on the image file is recorded, and in response to the installation time exceeding a preset threshold, installation abnormality information is generated.
4. The method according to claim 1, characterized in that: Testing the system to be tested according to the test items pre-configured for the system to be tested, including: The test item is sent to the server under test, and the test script corresponding to the test item is called to test the system under test; wherein the test script corresponding to the test item is pre-generated.
5. The method according to claim 1, characterized in that After the system to be tested is installed in the server to be tested, the method further includes: Collecting software reporting information and hardware equipment information in the tested server; In response to the collected software reporting information and hardware device information not being consistent with preset collection items, it is determined that the system to be tested has a configuration abnormality problem in the server under test, and configuration abnormality information corresponding to the configuration abnormality problem is generated.
6. The method according to any one of claims 1 to 5, characterized in that: After testing the system to be tested according to the test items pre-configured for the system to be tested, the method further includes: Based on the test results of the test items, the installation time of installing the system to be tested on the server to be tested, and the configuration anomaly problem, the test results of the system to be tested in the server to be tested are determined.
7. A system testing device, characterized in that: include: A generation module, used to generate an image file of the system to be tested according to configuration information corresponding to the system to be tested; The configuration information includes version information, kernel information and driver information of the system to be tested, and identification information of the server to be tested corresponding to the system to be tested; An installation module, used for installing the system to be tested into the server to be tested based on the image file; The testing module is used to test the system to be tested according to the test items pre-configured for the system to be tested.
8. An electronic device, characterized in that: include: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 6.
9. A computer readable medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 6 is implemented.
10. A computer program product, comprising a computer program, which, when executed by a processor, implements the method according to any one of claims 1 to 6.
