Test method, device, electronic device and storage medium

Through automated BMC and system login, combined with the interface operation of the KVM page, efficient and accurate testing of the KVM image mounting function is achieved, solving the problem of low testing efficiency and accuracy in the existing technology.

CN115686960BActive Publication Date: 2024-11-01SUMA TECH CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202211348504.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-10-31
Publication Date
2024-11-01
Estimated Expiration
2042-10-31

AI Technical Summary

Technical Problem

The prior art is difficult to conduct KVM mirror mount function test efficiently and accurately, resulting in low testing efficiency and accuracy.

Method used

By obtaining the operation information of the device to be tested from the configuration file, BMC login and system login are automatically realized, and the KVM service interface is triggered in the BMC page, and the image file mount is carried out through the mount interface in the KVM page, and after the system login is completed Drive letter detection, realize fully automated mirror mount function testing.

Benefits of technology

It improves the efficiency and testing accuracy of mirror mount function testing, realizes a fully automated testing process, and saves human resources and time.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115686960B_ABST
    Figure CN115686960B_ABST
Patent Text Reader

Abstract

The present application relates to a test method, device, electronic device and storage medium. The method comprises: obtaining the operation information of the device to be tested from a configuration file; performing the BMC login operation of the device to be tested based on the baseboard management controller BMC information in the operation information, and entering the BMC page corresponding to the device to be tested after the BMC login is successful; entering the KVM page corresponding to the device to be tested by triggering the KVM service interface in the BMC page, and performing the image file mounting operation of the device to be tested based on the image file address information in the operation information by triggering the mount interface in the KVM page; performing the system login operation of the device to be tested based on the system information in the operation information, and performing the drive letter detection operation after the system login is successful to obtain the image mounting test result for the device to be tested. The use of this method can efficiently and accurately implement the image mounting function test.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of testing technology, and in particular to a testing method, device, electronic equipment and storage medium. Background Art

[0002] In today's era of mass deployment of servers, it is very important to install the server system by mounting the image. The usual mounting method is to mount the configuration image file through the KVM (Keyboard Video Mouse) of the BMC (Baseboard Management Controller).

[0003] It is very important whether the KVM image mounting function can be mounted successfully every time, so a large number of experiments are needed to perform functional testing on the KVM image mounting function. That is, a method that can efficiently and accurately implement the KVM image mounting function test is needed. Summary of the invention

[0004] Based on this, the present application provides a testing method, device, electronic device and storage medium that can efficiently and accurately implement KVM image mounting function testing.

[0005] In a first aspect, the present application provides a testing method, the method comprising:

[0006] Get the running information of the device to be tested from the configuration file;

[0007] Based on the baseboard management controller BMC information in the operation information, a BMC login operation of the device to be tested is performed, and after the BMC login is successful, a BMC page corresponding to the device to be tested is entered;

[0008] Entering the KVM page corresponding to the device to be tested by triggering the KVM service interface in the BMC page, and performing the image file mounting operation of the device to be tested based on the image file address information in the running information by triggering the mount interface in the KVM page;

[0009] Based on the system information in the operation information, a system login operation of the device to be tested is performed, and after the system login is successful, a drive letter detection operation is performed to obtain a mirror mounting test result for the device to be tested.

[0010] The test method provided by the embodiment of the present disclosure can automatically implement BMC login and system login of the device to be tested based on the running information configured in the configuration file, and automatically start image file mounting after logging into the BMC. After logging into the system, the image mounting function test for the device to be tested is implemented through drive letter detection, which can improve the efficiency and test accuracy of the image mounting function test.

[0011] In one embodiment, the BMC information includes the BMC IP information of the device to be tested and the BMC account information of the device to be tested, and the system information includes the system IP information of the device to be tested and the system account information of the device to be tested;

[0012] The performing a BMC login operation of the device to be tested based on the baseboard management controller BMC information in the operation information includes:

[0013] Accessing the BMC login page of the device to be tested based on the BMC IP information of the device to be tested;

[0014] In the BMC login page, performing a BMC login operation of the device to be tested based on the BMC account information of the device to be tested;

[0015] The performing a system login operation of the device to be tested based on the system information in the operation information includes:

[0016] Accessing the system login page of the device to be tested based on the system IP information of the device to be tested;

[0017] In the system login page, a system login operation of the device to be tested is performed based on the system account information of the device to be tested.

[0018] The test method provided by the embodiment of the present disclosure can automatically implement BMC login and system login of the device to be tested based on the running information configured in the configuration file, so as to start the image mounting function after automatically logging into the BMC, perform drive letter detection after logging into the system, and implement the image mounting function test for the device to be tested, which can improve the efficiency and test accuracy of the image mounting function test.

[0019] In one of the embodiments, the step of entering the KVM page corresponding to the device to be tested by triggering the KVM service interface in the BMC page includes:

[0020] Obtaining a first page element corresponding to the KVM service interface in the BMC page;

[0021] By triggering the first page element, a KVM page corresponding to the device to be tested is entered.

[0022] The test method provided by the embodiment of the present disclosure can automatically realize BMC login of the device to be tested based on the running information configured in the configuration file, so that after automatically logging into the BMC, the KVM service interface is triggered through the page element, and then the KVM page starts the image mounting function, thereby realizing the image mounting function test for the device to be tested. The entire test process is fully automated, which can improve the efficiency and test accuracy of the image mounting function test.

[0023] In one of the embodiments, the step of performing an image file mounting operation on the device to be tested based on the image file address information in the operation information by triggering the mount interface in the KVM page includes:

[0024] Obtaining a second page element corresponding to the mount interface in the KVM page;

[0025] By triggering the second page element, accessing the image file storage area based on the image file address information in the operation information;

[0026] The image file is obtained from the image file storage area, and the image file mounting of the device to be tested is enabled based on the image file.

[0027] The test method provided by the embodiment of the present disclosure can automatically realize BMC login of the device to be tested based on the running information configured in the configuration file, so that after automatically logging into the BMC, the KVM service interface is triggered through the page element, and then the KVM page is entered to trigger the mounting interface through the page element, so as to start the image mounting function based on the image file storage address, thereby realizing the image mounting function test for the device to be tested. The entire test process is fully automated, which can improve the efficiency and test accuracy of the image mounting function test.

[0028] In one of the embodiments, after the system login is successful, a drive letter detection operation is performed to obtain a mirror image mounting test result for the device to be tested, including:

[0029] After the system logs in successfully, the virtual image installation drive letter is detected in the system to obtain the corresponding first drive letter detection result;

[0030] When the first drive letter detection result indicates that the virtual image installation drive letter is not detected, the step of detecting the virtual image installation drive letter in the system is repeated at a first preset time interval until the number of detections reaches the first preset number of times, thereby obtaining an image mounting test result indicating that the image mounting failed.

[0031] The testing method provided by the embodiment of the present disclosure can implement image mounting function testing for the device to be tested based on the detection of the virtual image installation drive letter, thereby improving the efficiency and testing accuracy of the image mounting function testing.

[0032] In one embodiment, after the system login is successful, a drive letter detection operation is performed to obtain a mirror image mounting test result for the device to be tested, and further includes:

[0033] If the first drive letter detection result indicates that the virtual image installation drive letter is detected, stopping the image file mounting of the device to be tested;

[0034] Detect the virtual image installation drive letter in the system and obtain the corresponding second drive letter detection result;

[0035] When the second drive letter detection result indicates that the virtual image installation drive letter is detected, the step of detecting the virtual image installation drive letter in the system is repeated at a second preset time interval until the number of detections reaches the second preset number of times, thereby obtaining an image mount detection result indicating that the image mount failed.

[0036] The testing method provided by the embodiment of the present disclosure can implement image mounting function testing for the device to be tested based on the detection of the virtual image installation drive letter, thereby improving the efficiency and testing accuracy of the image mounting function testing.

[0037] In one embodiment, after the system login is successful, a drive letter detection operation is performed to obtain a mirror image mounting test result for the device to be tested, and further includes:

[0038] When the second drive letter detection result indicates that the virtual image installation drive letter is not detected, an image mounting test result indicating that the image is mounted successfully is obtained.

[0039] The testing method provided by the embodiment of the present disclosure can implement image mounting function testing for the device to be tested based on the detection of the virtual image installation drive letter, thereby improving the efficiency and testing accuracy of the image mounting function testing.

[0040] In one embodiment, the method further comprises:

[0041] After obtaining an image mounting test result indicating successful image mounting, if the number of tests is less than a preset number of tests, repeating the step of performing a BMC login operation on the device to be tested based on the baseboard management controller BMC information in the operation information until an image mounting test result indicating a failed image mounting is obtained or the number of tests reaches the preset number of tests;

[0042] According to the image mounting test result obtained in any test round, the test result for the device to be tested is obtained.

[0043] The testing method provided by the embodiment of the present disclosure can realize the automated testing of the image mounting function, can test the stability of the image mounting function through multiple rounds of testing processes, and can improve the efficiency and accuracy of the image mounting function testing.

[0044] In a second aspect, the present application further provides a testing device, the device comprising:

[0045] The acquisition module is used to obtain the operation information of the device to be tested from the configuration file;

[0046] A first processing module is used to perform a BMC login operation of the device to be tested based on the baseboard management controller BMC information in the operation information, and enter a BMC page corresponding to the device to be tested after the BMC login is successful;

[0047] A second processing module is used to enter the KVM page corresponding to the device to be tested by triggering the KVM service interface in the BMC page, and perform an image file mounting operation of the device to be tested based on the image file address information in the operation information by triggering the mounting interface in the KVM page;

[0048] The test module is used to perform a system login operation on the device to be tested based on the system information in the operation information, and after the system login is successful, perform a drive letter detection operation to obtain a mirror mount test result for the device to be tested.

[0049] In one embodiment, the BMC information includes the BMC IP information of the device to be tested and the BMC account information of the device to be tested, and the system information includes the system IP information of the device to be tested and the system account information of the device to be tested;

[0050] The first processing module is also used for:

[0051] Accessing the BMC login page of the device to be tested based on the BMC IP information of the device to be tested;

[0052] In the BMC login page, performing a BMC login operation of the device to be tested based on the BMC account information of the device to be tested;

[0053] The test module is also used to:

[0054] Accessing the system login page of the device to be tested based on the system IP information of the device to be tested;

[0055] In the system login page, a system login operation of the device to be tested is performed based on the system account information of the device to be tested.

[0056] In one embodiment, the second processing module is further configured to:

[0057] Obtaining a first page element corresponding to the KVM service interface in the BMC page;

[0058] By triggering the first page element, a KVM page corresponding to the device to be tested is entered.

[0059] In one embodiment, the second processing module is further configured to:

[0060] Obtaining a second page element corresponding to the mount interface in the KVM page;

[0061] By triggering the second page element, accessing the image file storage area based on the image file address information in the operation information;

[0062] The image file is obtained from the image file storage area, and the image file mounting of the device to be tested is enabled based on the image file.

[0063] In one embodiment, the test module is further used for:

[0064] After the system logs in successfully, the virtual image installation drive letter is detected in the system to obtain the corresponding first drive letter detection result;

[0065] When the first drive letter detection result indicates that the virtual image installation drive letter is not detected, the step of detecting the virtual image installation drive letter in the system is repeated at a first preset time interval until the number of detections reaches the first preset number of times, thereby obtaining an image mounting test result indicating that the image mounting failed.

[0066] In one embodiment, the test module is further used to:

[0067] If the first drive letter detection result indicates that the virtual image installation drive letter is detected, stopping the image file mounting of the device to be tested;

[0068] Detect the virtual image installation drive letter in the system and obtain the corresponding second drive letter detection result;

[0069] When the second drive letter detection result indicates that the virtual image installation drive letter is detected, the step of detecting the virtual image installation drive letter in the system is repeated at a second preset time interval until the number of detections reaches the second preset number of times, thereby obtaining an image mount detection result indicating that the image mount failed.

[0070] In one embodiment, the test module is further used to:

[0071] When the second drive letter detection result indicates that the virtual image installation drive letter is not detected, an image mounting test result indicating that the image is mounted successfully is obtained.

[0072] In one embodiment, the device further comprises:

[0073] A third processing module is used for, after obtaining an image mounting test result indicating successful image mounting, repeating the step of performing a BMC login operation on the device to be tested based on the baseboard management controller BMC information in the operation information when the test number is less than the preset test number, until an image mounting test result indicating a failed image mounting is obtained or the test number reaches the preset test number;

[0074] The report module is used to obtain the test result for the device to be tested according to the image mounting test result obtained in any test round.

[0075] In a third aspect, the present application further provides a computer device, wherein the computer device comprises a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, any one of the above-mentioned test methods is implemented.

[0076] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program implements any of the above-mentioned test methods when executed by a processor.

[0077] In a fifth aspect, the present application further provides a computer program product, wherein the computer program product comprises a computer program, and when the computer program is executed by a processor, any of the above-mentioned test methods is implemented.

[0078] The above-mentioned test method, device, electronic device and storage medium, the test device can obtain the operation information of the device to be tested from the configuration file, and based on the baseboard management controller BMC information in the operation information, perform the BMC login operation of the device to be tested, and after the BMC login is successful, enter the BMC page corresponding to the device to be tested. By triggering the KVM service interface in the BMC page, enter the KVM page corresponding to the device to be tested, and by triggering the mount interface in the KVM page, perform the image file mount operation of the device to be tested based on the image file address information in the operation information, based on the system information in the operation information, perform the system login operation of the device to be tested, and after the system login is successful, perform the drive letter detection operation to obtain the image mount test result for the device to be tested. The test method, device, electronic device and storage medium provided by the embodiment of the present disclosure can automatically realize the BMC login and system login of the device to be tested based on the operation information configured in the configuration file, and automatically start the image file mounting after logging in to the BMC, and realize the image mounting function test for the device to be tested through the drive letter detection after logging in to the system, which can improve the efficiency and test accuracy of the image mounting function test. BRIEF DESCRIPTION OF THE DRAWINGS

[0079] Figure 1 A flowchart of a testing method in one embodiment;

[0080] Figure 2 is a flow chart of step 104 in a testing method in one embodiment;

[0081] Figure 3 is a flow chart of step 108 in the testing method in one embodiment;

[0082] Figure 4 is a flow chart of step 106 in the testing method in one embodiment;

[0083] Figure 5 is a flow chart of step 106 in the testing method in one embodiment;

[0084] Figure 6 is a flow chart of step 108 in the testing method in one embodiment;

[0085] Figure 7 is a flow chart of step 108 in the testing method in one embodiment;

[0086] Figure 8 A flowchart of a testing method in one embodiment;

[0087] Fig. 9 A schematic diagram of a test method in one embodiment;

[0088] Fig.10is a structural block diagram of a testing device in one embodiment;

[0089] Fig.11 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0090] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0091] In today's era of massive server deployment, it is very important to install the server system by mounting the image. In the related art, the test of whether the image mounting is successful is implemented in the following ways, specifically:

[0092] The user logs in to the BMC through the Redfish interface according to the BMC IP address, and then remotely mounts the OS image on the OS (Operating System) server to the server to be installed through the Redfish interface according to the link path specified by the BMC, and establishes a virtual CDROM (Compact Disc Read-Only Memory). The user sends a command through the ipmitool tool to set the startup item for the next restart of the server to be installed to CDROM, and finally uses the ipmitool tool to remotely send a command to restart the server to be installed. In this way, after the server to be installed restarts, it will automatically start from the mounted virtual CDROM and start to automatically install the OS, thereby completing the remote automatic installation of the OS. However, the above process only tests whether the mounted image is installed successfully through manual testing, and does not implement the test of the image mounting function.

[0093] The embodiment of the present disclosure provides a testing method to implement efficient and accurate testing of an image mounting function.

[0094] Figure 1 This is a flow chart of a testing method according to an exemplary embodiment. This embodiment uses the method applied to a terminal as an example. It can be understood that the method can also be applied to a server, and can also be applied to a system including a terminal and a server, and is implemented through the interaction between the terminal and the server. The method includes the following steps:

[0095] In step 102, the operation information of the device to be tested is obtained from the configuration file.

[0096] In the disclosed embodiment, the operation information of the device to be tested can be configured in the configuration file in advance, which may include: the image file address information (absolute address of the image file) corresponding to the image file to be mounted in the image file storage area, the BMC information of the device to be tested (which may include BMC IP, account name and password of the BMC account, etc.), the system information of the device to be tested (which may include system IP, account name and password of the system account, etc.), the preset test times, etc. Then, the test device can obtain the operation information of the device to be tested from the configuration file during the test.

[0097] In step 104, based on the baseboard management controller BMC information in the operation information, a BMC login operation of the device to be tested is performed, and after the BMC login is successful, a BMC page corresponding to the device to be tested is entered.

[0098] In the disclosed embodiment, after obtaining the operation information of the device under test, the BMC of the device under test can be logged in based on the BMC information in the operation information, so as to enter the BMC page corresponding to the device under test after logging in to the BMC of the device under test.

[0099] In step 106, by triggering the KVM service interface in the BMC page, the KVM page corresponding to the device to be tested is entered, and by triggering the mount interface in the KVM page, the image file mount operation of the device to be tested is performed based on the image file address information in the running information.

[0100] In the disclosed embodiment, after entering the BMC page of the device to be tested, a KVM service interface can be obtained in the BMC page, and the KVM service interface is an interface for triggering entry into the KVM page, and the KVM page is a page corresponding to the KVM image mounting function. After obtaining the KVM service interface, the KVM interface can be triggered to enter the KVM page of the device to be tested. After entering the KVM page of the device to be tested, the mount interface in the KVM page can be obtained, and the mount interface can be triggered to obtain the image file based on the image file address information and enable the image file mounting.

[0101] In step 108, based on the system information in the operation information, a system login operation of the device to be tested is performed, and after the system login is successful, a drive letter detection operation is performed to obtain a mirror mounting test result for the device to be tested.

[0102] In the embodiment of the present disclosure, after enabling the image file mounting, the system of the device to be tested can be logged in based on the system information of the device to be tested, and after logging in to the system of the device to be tested, a drive letter detection operation can be performed on the device to be tested, so as to obtain the image mounting test result for the device to be tested by detecting the virtual image installation drive letter of the system to be tested.

[0103] Among them, the image mount test result is used to characterize whether the image mount function test is successful or not. Exemplarily, the image mount test result may include a first image mount test result and a second image mount test result, wherein the first image mount test result is used to characterize the success of the image mount, and the second image mount test result is used to characterize the failure of the image mount.

[0104] Based on the test method provided by the embodiment of the present disclosure, the test device can obtain the operation information of the device to be tested from the configuration file, and based on the baseboard management controller BMC information in the operation information, perform the BMC login operation of the device to be tested, and enter the BMC page corresponding to the device to be tested after the BMC login is successful. By triggering the KVM service interface in the BMC page, enter the KVM page corresponding to the device to be tested, and by triggering the mount interface in the KVM page, perform the image file mount operation of the device to be tested based on the image file address information in the operation information, perform the system login operation of the device to be tested based on the system information in the operation information, and after the system login is successful, perform the drive letter detection operation to obtain the image mount test result for the device to be tested. The test method provided by the embodiment of the present disclosure can automatically realize the BMC login and system login of the device to be tested based on the operation information configured in the configuration file, and automatically start the image file mounting after logging in to the BMC, and realize the image mounting function test for the device to be tested through the drive letter detection after logging in to the system, which can improve the efficiency and test accuracy of the image mounting function test.

[0105] In an exemplary embodiment, the BMC information includes the BMC IP information of the device to be tested and the BMC account information of the device to be tested, and the system information includes the system IP information of the device to be tested and the system account information of the device to be tested; Figure 2 As shown, in step 104, based on the baseboard management controller BMC information in the operation information, a BMC login operation of the device to be tested is performed, including:

[0106] In step 202, a BMC login page of the device to be tested is accessed based on the BMC IP information of the device to be tested;

[0107] In step 204, in the BMC login page, a BMC login operation of the device to be tested is performed based on the BMC account information of the device to be tested.

[0108] In the disclosed embodiment, the BMC IP address of the device to be tested may be the IP address of the BMC login page of the device to be tested, and the BMC login page is a page for logging into the BMC, that is, the BMC login page of the device to be tested may be accessed through the BMC IP address of the device to be tested. After entering the BMC login page, the BMC login may be performed based on the BMC account information (including information such as the account name and password) of the device to be tested, so as to enter the BMC page of the device to be tested after successfully logging into the BMC, and the BMC page includes the BMC management page of the device to be tested.

[0109] Reference Figure 3 As shown, in step 108, based on the system information in the operation information, a system login operation of the device to be tested is performed, including:

[0110] In step 302, a system login page of the device to be tested is accessed based on the system IP information of the device to be tested;

[0111] In step 304, in the system login page, a system login operation of the device to be tested is performed based on the system account information of the device to be tested.

[0112] In the disclosed embodiment, the system IP address of the device to be tested may be the IP address of the system login page of the device to be tested, and the system login page is a page for logging into the operating system of the device to be tested, that is, the system login page of the device to be tested may be accessed through the system IP address of the device to be tested. After entering the system login page, the operating system login of the device to be tested may be performed based on the system account information of the device to be tested (including information such as the account name and password), so that after successfully logging into the operating system, the image mounting function test for the device to be tested may be implemented by performing a drive letter detection on the operating system.

[0113] The test method provided by the embodiment of the present disclosure can automatically implement BMC login and system login of the device to be tested based on the running information configured in the configuration file, so as to start the image mounting function after automatically logging into the BMC, perform drive letter detection after logging into the system, and implement the image mounting function test for the device to be tested, which can improve the efficiency and test accuracy of the image mounting function test.

[0114] In an exemplary embodiment, referring to Figure 4 As shown, in step 106, by triggering the KVM service interface in the BMC page, entering the KVM page corresponding to the device to be tested includes:

[0115] In step 402, a first page element corresponding to the KVM service interface is obtained in the BMC page;

[0116] In step 404, the KVM page corresponding to the device to be tested is entered by triggering the first page element.

[0117] In the embodiment of the present disclosure, the KVM service interface has a corresponding first page element in the BMC page, and the first page element may be a specific form of expression of the KVM service interface, for example, the first page element may be an icon, a control, etc. The first page element corresponding to the KVM service interface may be obtained from the BMC page by image recognition or the like, or the display position corresponding to the first page element in the BMC page may be pre-set, and then the first page element may be obtained according to the display position corresponding to the first page element in the BMC page.

[0118] After obtaining the first page element, the first page element can be triggered to trigger the KVM service interface and enter the KVM page corresponding to the device to be tested, so as to start the image mounting function in the KVM page and perform the image mounting function test.

[0119] The test method provided by the embodiment of the present disclosure can automatically realize BMC login of the device to be tested based on the running information configured in the configuration file, so that after automatically logging into the BMC, the KVM service interface is triggered through the page element, and then the KVM page starts the image mounting function, thereby realizing the image mounting function test for the device to be tested. The entire test process is fully automated, which can improve the efficiency and test accuracy of the image mounting function test.

[0120] In an exemplary embodiment, referring to Figure 5 As shown, in step 106, by triggering the mount interface in the KVM page, the image file mount operation of the device to be tested is performed based on the image file address information in the running information, including:

[0121] In step 502, a second page element corresponding to the mount interface is obtained in the KVM page;

[0122] In step 504, by triggering the second page element, access to the image file storage area is performed based on the image file address information in the operation information;

[0123] In step 506, the image file is obtained from the image file storage area, and the image file mounting of the device to be tested is enabled based on the image file.

[0124] In the disclosed embodiment, the mounting interface has a corresponding second page element in the KVM page, and the second page element may be a specific form of expression of the mounting interface, for example, the second page element may be an icon, a control, or other element. After entering the KVM page, the second page element corresponding to the mounting interface may be obtained from the KVM page by image recognition or other means, or the corresponding display position of the second page element in the KVM page may be pre-set, and then the second page element may be obtained according to the corresponding display position of the second page element in the KVM page.

[0125] After obtaining the second page element, the second page element can be triggered to trigger the mounting interface. After the mounting interface is triggered, the image mounting function of the device to be tested can be triggered, and the image file storage area can be accessed according to the image file address information to obtain the image file from the image file storage area, and the image file can be mounted in the device to be tested.

[0126] The test method provided by the embodiment of the present disclosure can automatically realize BMC login of the device to be tested based on the running information configured in the configuration file, so that after automatically logging into the BMC, the KVM service interface is triggered through the page element, and then the KVM page is entered to trigger the mounting interface through the page element, so as to start the image mounting function based on the image file storage address, thereby realizing the image mounting function test for the device to be tested. The entire test process is fully automated, which can improve the efficiency and test accuracy of the image mounting function test.

[0127] In an exemplary embodiment, referring to Figure 6 In step 108, after the system login is successful, a drive letter detection operation is performed to obtain the image mounting test result for the device to be tested, including:

[0128] In step 602, after the system login is successful, the virtual image installation drive letter is detected in the system to obtain a corresponding first drive letter detection result;

[0129] In step 604, when the first drive letter detection result indicates that the virtual image installation drive letter is not detected, the step of detecting the virtual image installation drive letter in the system is repeated at intervals of a first preset time until the number of detections reaches a first preset number of times, thereby obtaining an image mounting test result indicating that the image mounting failed.

[0130] In the disclosed embodiment, after the image file is successfully mounted, a corresponding virtual image installation drive letter (Media) will be generated inside the operating system. After successfully logging into the operating system of the device to be tested, the virtual image installation drive letter can be detected in the operating system to obtain a corresponding first drive letter detection result. In the case where the virtual image installation drive letter is not detected, a first drive letter detection result can be obtained to characterize that the virtual image installation drive letter is not detected, and it can be determined that the image file of the device to be tested has not been successfully mounted, or, in the case where the virtual image installation drive letter is detected, a first drive letter detection result can be obtained to characterize that the virtual image installation drive letter is detected, and it can be determined that the image file of the device to be tested is successfully mounted.

[0131] In the case where the first drive letter detection result indicates that the virtual image installation drive letter is not detected, after an interval of the first preset time, the step of detecting the virtual image installation drive letter in the system to obtain the corresponding first drive letter detection result can be repeated. If the number of detections for the virtual image installation drive letter has reached the first preset number of times, and the virtual image installation drive letter is not detected within the first preset number of times, it can be determined that the image file has failed to mount, and an image mount detection result indicating that the image mount has failed is obtained. The first preset number of times is the preset number of detections of the virtual image installation drive letter, for example: 5 times, and the first preset time is the preset interval time, for example: 5 seconds. In the embodiments of the present disclosure, the first preset number of times and the first preset time are not specifically limited.

[0132] The testing method provided by the embodiment of the present disclosure can implement image mounting function testing for the device to be tested based on the detection of the virtual image installation drive letter, thereby improving the efficiency and testing accuracy of the image mounting function testing.

[0133] In an exemplary embodiment, referring to Figure 7 As shown, in step 108, after the system login is successful, a drive letter detection operation is performed to obtain the image mounting test result for the device to be tested, which may also include:

[0134] In step 702, when the first drive letter detection result indicates that the virtual image installation drive letter is detected, the image file mounting of the device to be tested is stopped;

[0135] In step 704, the virtual image installation drive letter is detected in the system to obtain a corresponding second drive letter detection result;

[0136] In step 706, when the second drive letter detection result indicates that the virtual image installation drive letter is detected, the step of detecting the virtual image installation drive letter in the system is repeated at intervals of a second preset time until the number of detections reaches the second preset number of times, thereby obtaining an image mount detection result indicating that the image mount failed.

[0137] In the embodiment of the present disclosure, after the image file is successfully mounted, the operating system will generate a corresponding virtual image installation drive letter (Media), and after the image file mounting is stopped, the operating system will clear the corresponding virtual image installation drive letter. If the first drive letter detection result indicating that the virtual image installation drive letter is detected is obtained within the first preset number of times, it can be determined that the image file is mounted successfully, and the image file mounting can be stopped to further test the image mounting function.

[0138] After stopping the mounting of the image file, the detection of the virtual image installation drive letter can continue. When the virtual image installation drive letter is detected, a second drive letter detection result can be obtained, which is used to characterize the detection of the virtual image installation drive letter, and it can be determined that the stopping of the mounting of the image file of the device to be tested has not been successful. Alternatively, when the virtual image installation drive letter is not detected, a second drive letter detection result can be obtained, which is used to characterize the failure to detect the virtual image installation drive letter, and it can be determined that the stopping of the mounting of the image file of the device to be tested has failed.

[0139] In the case where the second drive letter detection result indicates that the virtual image installation drive letter is detected, after an interval of the second preset time length, the step of detecting the virtual image installation drive letter in the system to obtain the corresponding second drive letter detection result can be repeated after an interval of the second preset time length. If the number of detections for the virtual image installation drive letter has reached the second preset number of times, and the virtual image installation drive letter is detected within the second preset number of times, it can be determined that the image file has failed to stop mounting, and an image mounting detection result indicating the image mounting failure is obtained, completing the current round of image mounting function testing. Among them, the second preset number of times is the preset number of detections of the virtual image installation drive letter, for example: 5 times, and the second preset time length is the preset interval time length, for example: 5 seconds. In the disclosed embodiment, the second preset number of times and the second preset time length are not specifically limited. The second preset number of times may be the same as the first preset number of times, or may be different, and the second preset time length may be the same as the first preset time length, or may be different.

[0140] The testing method provided by the embodiment of the present disclosure can implement image mounting function testing for the device to be tested based on the detection of the virtual image installation drive letter, thereby improving the efficiency and testing accuracy of the image mounting function testing.

[0141] In an exemplary embodiment, in step 108, after the system login is successful, a drive letter detection operation is performed to obtain a mirror image mounting test result for the device to be tested, which may also include:

[0142] When the second drive letter detection result indicates that the virtual image installation drive letter is not detected, an image mounting test result indicating that the image is mounted successfully is obtained.

[0143] In the disclosed embodiment, if a second drive letter detection result indicating that a virtual image installation drive letter is detected is obtained within a second preset number of times, it can be determined that the image file has been successfully stopped from mounting, and the current round of image mounting function test is completed.

[0144] The testing method provided by the embodiment of the present disclosure can implement image mounting function testing for the device to be tested based on the detection of the virtual image installation drive letter, thereby improving the efficiency and testing accuracy of the image mounting function testing.

[0145] In an exemplary embodiment, referring to Figure 8 As shown, the above method may also include:

[0146] In step 802, after obtaining the image mounting test result indicating successful image mounting, if the number of tests is less than the preset number of tests, repeating the step of performing the BMC login operation of the device to be tested based on the baseboard management controller BMC information in the operation information until the image mounting test result indicating failure of image mounting is obtained or the number of tests reaches the preset number of tests;

[0147] In step 804, a test result for the device to be tested is obtained according to the image mounting test result obtained in any test round.

[0148] In the disclosed embodiment, after obtaining the image mounting test result indicating successful image mounting, it is determined whether the number of tests corresponding to the current test round is less than the preset number of tests. If the current number of tests is less than the preset number of tests, the aforementioned steps of performing BMC login and system login based on the operation information are repeated until the number of tests reaches the preset number of tests, or an image mounting test result indicating a failed image mounting is obtained in any test round, and the image mounting function test of the device to be tested is stopped. A test report is generated based on the image mounting test results obtained in each test round and information such as the test time, and the test result for the device to be tested is obtained.

[0149] The testing method provided by the embodiment of the present disclosure can realize the automated testing of the image mounting function, can test the stability of the image mounting function through multiple rounds of testing processes, and can improve the efficiency and accuracy of the image mounting function testing.

[0150] In order to enable those skilled in the art to better understand the embodiments of the present disclosure, the embodiments of the present disclosure are described below through specific examples.

[0151] Reference Fig. 9As shown, before the test, in step A1, the user needs to configure the necessary environment on the control end (test device), install the corresponding Python execution environment, and place the mounted image file in the test folder (image file storage area).

[0152] In step A2, the control end sets the following operating parameters in the form of a configuration file: image file name, image file absolute path (image file address information), BMC IP of the test end server (device to be tested), BMC user name and password, test end system IP, system user name and password, and number of tests.

[0153] In step A3, based on the operating parameters, the control end automatically controls the browser driver to open the web page, logs in to the BMC web page of the test end according to the configured BMC IP, BMC user name and password of the test end server, finds the KVM service interface according to the first web page element in the BMC, and automatically opens the test end KVM page through the KVM service interface.

[0154] In step A4, after opening the test end KVM page, the control end finds the KVM image mounting service interface (mounting interface) according to the second web page element in KVM, automatically enters the image file absolute path through the KVM image mounting service interface, and mounts and starts the specified image file.

[0155] In step A5, after starting to mount the image file, the control end logs in to the test end system according to the configured test end system IP, system user name and password, and executes the lsblk command to detect whether the virtual image installation drive letter Media is successfully generated. The detection mechanism is to execute the command 5 times, each time with an interval of 5 seconds. As long as Media generation is detected, it is considered that the image is mounted successfully and continues to run downward; if Media generation is not detected for 5 times, it is considered that the test fails, and the test is stopped to obtain the image mounting test result indicating that the image mounting fails;

[0156] In step A6, after detecting that the Media is successfully generated, the control end stops the image mounting operation on the KVM page, logs in to the test end system and executes the lsblk command to detect whether the virtual image installation drive Media is automatically cleared. The detection mechanism is to execute the command 5 times, each time at an interval of 5 seconds. As long as the Media is automatically cleared, it is considered that the image mounting is stopped successfully and the operation continues. If the Media is not automatically cleared for 5 times, it is considered that the test has failed, and the test is stopped to obtain the image mounting test result indicating that the image mounting has failed.

[0157] In step A7, after stopping mounting the image Media, the test number corresponding to the current test round is compared with the configured preset test number. If the number is less than or equal to the preset test number, jump to step A3 to continue running. When the number reaches the preset test number, stop the test and generate a test report.

[0158] The disclosed embodiment provides an automated testing method for the BMC KVM image mounting function, and the implementation of the testing method can be based on the Python language. First, the user needs to configure the necessary environment on the control end, install the corresponding Python execution environment, configure the test document parameters, and place the image file to be mounted into the tool file, and then run the test tool. The tool will run according to the settings in the configuration document. The tool will record the test data in the log file throughout the process. After all the tests are completed, the tool will generate a complete test report based on the log file. The BMC KVM automatically starts and stops the image mounting, the number of tests that can control the start and stop of the BMC KVM image mounting can be controlled, and a lot of time and human resources can be saved. After the test is completed, a report document is automatically generated to record the process and information of each image mounting.

[0159] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0160] Based on the same inventive concept, the embodiment of the present application also provides a test device for implementing the test method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more test device embodiments provided below can refer to the limitations on the test method above, and will not be repeated here.

[0161] In one embodiment, Fig.10 As shown, a testing device is provided, including: an acquisition module 1002, a first processing module 1004, a second processing module 1006 and a testing module 1008, wherein:

[0162] The acquisition module 1002 is used to acquire the operation information of the device to be tested from the configuration file;

[0163] The first processing module 1004 is used to perform a BMC login operation of the device to be tested based on the baseboard management controller BMC information in the operation information, and enter a BMC page corresponding to the device to be tested after the BMC login is successful;

[0164] The second processing module 1006 is used to enter the KVM page corresponding to the device to be tested by triggering the KVM service interface in the BMC page, and perform an image file mounting operation of the device to be tested based on the image file address information in the running information by triggering the mounting interface in the KVM page;

[0165] The test module 1008 is used to perform a system login operation on the device to be tested based on the system information in the operation information, and after the system login is successful, perform a drive letter detection operation to obtain a mirror mounting test result for the device to be tested.

[0166] Based on the test device provided by the embodiment of the present application, the test device can obtain the operation information of the device to be tested from the configuration file, and based on the baseboard management controller BMC information in the operation information, perform the BMC login operation of the device to be tested, and after the BMC login is successful, enter the BMC page corresponding to the device to be tested. By triggering the KVM service interface in the BMC page, enter the KVM page corresponding to the device to be tested, and by triggering the mount interface in the KVM page, perform the image file mount operation of the device to be tested based on the image file address information in the operation information, perform the system login operation of the device to be tested based on the system information in the operation information, and after the system login is successful, perform the drive letter detection operation to obtain the image mount test result for the device to be tested. The test device provided by the embodiment of the present disclosure can automatically realize the BMC login and system login of the device to be tested based on the operation information configured in the configuration file, and automatically start the image file mounting after logging in to the BMC, and realize the image mounting function test for the device to be tested through the drive letter detection after logging in to the system, which can improve the efficiency and test accuracy of the image mounting function test.

[0167] In one embodiment, the BMC information includes the BMC IP information of the device to be tested and the BMC account information of the device to be tested, and the system information includes the system IP information of the device to be tested and the system account information of the device to be tested;

[0168] The first processing module 1004 is further configured to:

[0169] Accessing the BMC login page of the device to be tested based on the BMC IP information of the device to be tested;

[0170] In the BMC login page, performing a BMC login operation of the device to be tested based on the BMC account information of the device to be tested;

[0171] The testing module 1008 is also used for:

[0172] Accessing the system login page of the device to be tested based on the system IP information of the device to be tested;

[0173] In the system login page, a system login operation of the device to be tested is performed based on the system account information of the device to be tested.

[0174] In one embodiment, the second processing module 1006 is further configured to:

[0175] Obtaining a first page element corresponding to the KVM service interface in the BMC page;

[0176] By triggering the first page element, a KVM page corresponding to the device to be tested is entered.

[0177] In one embodiment, the second processing module 1006 is further configured to:

[0178] Obtaining a second page element corresponding to the mount interface in the KVM page;

[0179] By triggering the second page element, accessing the image file storage area based on the image file address information in the operation information;

[0180] The image file is obtained from the image file storage area, and the image file mounting of the device to be tested is enabled based on the image file.

[0181] In one embodiment, the testing module 1008 is further configured to:

[0182] After the system logs in successfully, the virtual image installation drive letter is detected in the system to obtain the corresponding first drive letter detection result;

[0183] When the first drive letter detection result indicates that the virtual image installation drive letter is not detected, the step of detecting the virtual image installation drive letter in the system is repeated at a first preset time interval until the number of detections reaches the first preset number of times, thereby obtaining an image mounting test result indicating that the image mounting failed.

[0184] In one embodiment, the test module 1008 is further configured to:

[0185] If the first drive letter detection result indicates that the virtual image installation drive letter is detected, stopping the image file mounting of the device to be tested;

[0186] Detect the virtual image installation drive letter in the system and obtain the corresponding second drive letter detection result;

[0187] When the second drive letter detection result indicates that the virtual image installation drive letter is detected, the step of detecting the virtual image installation drive letter in the system is repeated at a second preset time interval until the number of detections reaches the second preset number of times, thereby obtaining an image mount detection result indicating that the image mount failed.

[0188] In one embodiment, the testing module 1008 is further configured to:

[0189] When the second drive letter detection result indicates that the virtual image installation drive letter is not detected, an image mounting test result indicating that the image is mounted successfully is obtained.

[0190] In one embodiment, the device further comprises:

[0191] A third processing module is used for, after obtaining an image mounting test result indicating successful image mounting, repeating the step of performing a BMC login operation on the device to be tested based on the baseboard management controller BMC information in the operation information when the test number is less than the preset test number, until an image mounting test result indicating a failed image mounting is obtained or the test number reaches the preset test number;

[0192] The report module is used to obtain the test result for the device to be tested according to the image mounting test result obtained in any test round.

[0193] Each module in the above-mentioned test device can be implemented in whole or in part by software, hardware and a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute the operations corresponding to each module above.

[0194] In one embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as follows: Fig.11As shown. The computer device includes a processor, a memory, a communication interface, a display screen and an input device connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be achieved through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, a test method is implemented. The display screen of the computer device can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covered on the display screen, or a key, trackball or touchpad set on the computer device housing, or an external keyboard, touchpad or mouse, etc.

[0195] Those skilled in the art will understand that Fig.11 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0196] In one embodiment, a computer device is further provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above method embodiments when executing the computer program.

[0197] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments are implemented.

[0198] In one embodiment, a computer program product is provided, including a computer program, which implements the steps in the above method embodiments when executed by a processor.

[0199] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties.

[0200] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.

[0201] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0202] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. A testing method, characterized in that: The method comprises: Get the running information of the device to be tested from the configuration file; Based on the baseboard management controller BMC information in the operation information, a BMC login operation of the device to be tested is performed, and after the BMC login is successful, a BMC page corresponding to the device to be tested is entered; Entering the KVM page corresponding to the device to be tested by triggering the KVM service interface in the BMC page, and performing the image file mounting operation of the device to be tested based on the image file address information in the running information by triggering the mount interface in the KVM page; Based on the system information in the operation information, a system login operation of the device to be tested is performed, and after the system login is successful, a virtual image installation drive letter is detected in the system to obtain a corresponding first drive letter detection result; If the first drive letter detection result indicates that the virtual image installation drive letter is detected, stopping the image file mounting of the device to be tested; Detect the virtual image installation drive letter in the system and obtain the corresponding second drive letter detection result; When the second drive letter detection result indicates that the virtual image installation drive letter is detected, the step of detecting the virtual image installation drive letter in the system is repeated at a second preset time interval until the number of detections reaches the second preset number of times, thereby obtaining an image mount detection result indicating that the image mount failed.

2. The method according to claim 1, characterized in that The BMC information includes the BMCIP information of the device to be tested and the BMC account information of the device to be tested, and the system information includes the system IP information of the device to be tested and the system account information of the device to be tested; The performing a BMC login operation of the device to be tested based on the baseboard management controller BMC information in the operation information includes: Accessing the BMC login page of the device to be tested based on the BMC IP information of the device to be tested; In the BMC login page, performing a BMC login operation of the device to be tested based on the BMC account information of the device to be tested; The performing a system login operation of the device to be tested based on the system information in the operation information includes: Accessing the system login page of the device to be tested based on the system IP information of the device to be tested; In the system login page, a system login operation of the device to be tested is performed based on the system account information of the device to be tested.

3. The method according to claim 1 or 2, characterized in that: The step of triggering the KVM service interface in the BMC page to enter the KVM page corresponding to the device to be tested includes: Obtaining a first page element corresponding to the KVM service interface in the BMC page; By triggering the first page element, a KVM page corresponding to the device to be tested is entered.

4. The method according to claim 1 or 2, characterized in that: The triggering of the mount interface in the KVM page and performing the image file mount operation of the device to be tested based on the image file address information in the operation information includes: Obtaining a second page element corresponding to the mount interface in the KVM page; By triggering the second page element, accessing the image file storage area based on the image file address information in the operation information; The image file is obtained from the image file storage area, and image file mounting of the device to be tested is enabled based on the image file.

5. The method according to claim 1 or 2, characterized in that: The method further comprises: When the first drive letter detection result indicates that the virtual image installation drive letter is not detected, the step of detecting the virtual image installation drive letter in the system is repeated at a first preset time interval until the number of detections reaches a first preset number of times, thereby obtaining an image mounting test result indicating that the image mounting failed.

6. The method according to claim 1, characterized in that The method further comprises: When the second drive letter detection result indicates that the virtual image installation drive letter is not detected, an image mounting test result indicating that the image is mounted successfully is obtained.

7. The method according to claim 6, characterized in that The method further comprises: After obtaining an image mounting test result indicating successful image mounting, if the number of tests is less than a preset number of tests, repeating the step of performing a BMC login operation on the device to be tested based on the baseboard management controller BMC information in the operation information until an image mounting test result indicating a failed image mounting is obtained or the number of tests reaches the preset number of tests; According to the image mounting test result obtained in any test round, the test result for the device to be tested is obtained.

8. A testing device, characterized in that: The device comprises: The acquisition module is used to obtain the operation information of the device to be tested from the configuration file; A first processing module is used to perform a BMC login operation of the device to be tested based on the baseboard management controller BMC information in the operation information, and enter a BMC page corresponding to the device to be tested after the BMC login is successful; A second processing module is used to enter the KVM page corresponding to the device to be tested by triggering the KVM service interface in the BMC page, and perform an image file mounting operation of the device to be tested based on the image file address information in the operation information by triggering the mounting interface in the KVM page; A test module is used to perform a system login operation on the device to be tested based on the system information in the running information; after the system login is successful, detect the virtual image installation drive letter in the system to obtain a corresponding first drive letter detection result; when the first drive letter detection result indicates that the virtual image installation drive letter is detected, stop the image file mounting of the device to be tested; detect the virtual image installation drive letter in the system to obtain a corresponding second drive letter detection result; when the second drive letter detection result indicates that the virtual image installation drive letter is detected, repeat the step of detecting the virtual image installation drive letter in the system at intervals of a second preset time length until the number of detections reaches a second preset number of times, to obtain an image mounting detection result indicating that the image mounting has failed.

9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.

11. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.

Citation Information

Patent Citations

  • Method and device for baseboard management controller to mount file through KVM

    CN108319524A

  • Formatting test method and device of storage equipment, terminal equipment and storage medium

    CN114694742A

  • Stability testing method and device for hard disk to concurrently execute multiple files, computer equipment and medium

    CN115168124A

  • System and method of web-based keyboard, video and mouse (KVM) redirection and application of the same

    US20140281894A1

  • Virtualized device-based test system and method thereof

    US20210073108A1