Processing method and device of test equipment, electronic equipment and storage medium

CN114647544BActive Publication Date: 2026-10-20SHANGHAI WINGTECH INFORMATION TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210301059.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-03-24
Publication Date
2026-10-20
Estimated Expiration
2042-03-24

Smart Images

  • Figure CN114647544B_ABST
    Figure CN114647544B_ABST
Patent Text Reader

Abstract

The application relates to the technical field of automatic testing, and provides a processing method and device of a test device, electronic equipment and a storage medium. The method comprises the following steps: obtaining a target program name, a display type and a system time of the test device; updating a name identifier of the test device based on the target program name, the display type and the system time; controlling a sharing permission and a security permission of the test device based on a target control instruction; obtaining a multi-level device identifier of the test device based on a target acquisition instruction; and sending the name identifier and the multi-level device identifier to a server to enable the server to test the test device based on the name identifier and the multi-level device identifier after determining that the sharing permission and the security permission meet preset test conditions. The method can quickly complete information setting of the test device, saves labor costs, improves test efficiency, reduces the error test rate, and further meets the demand of an automatic test scene.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of automated testing technology, and in particular to a method, apparatus, electronic device, and storage medium for processing testing equipment. Background Technology

[0002] HLK (Hardware Lab.Kit, Test Automation Toolkit) certification is a mandatory certification for all laptop projects that ship with Microsoft systems.

[0003] In related technologies, HLK testing is often conducted more than 20 times per project from the R&D stage to the final formal report stage. Each test requires manual modification of the test machine settings, which takes about half an hour each time. Moreover, there are more than 10 settings that need to be manually modified. If even one setting is not set correctly, subsequent tests will fail. This requires the R&D team to check whether the environment settings are the cause. Not only is the testing speed slow and inefficient, but it also causes non-issues that are actually settings problems to be analyzed and processed as problem reports, wasting a lot of manpower and time.

[0004] Application content

[0005] Therefore, it is necessary to provide a processing method, apparatus, electronic device, and storage medium for the test equipment to address the aforementioned technical problems.

[0006] This application provides a method for processing a test device, the method comprising:

[0007] Obtain the target program name, display type, and system time of the test device;

[0008] Update the name identifier of the test device based on the target program name, the display type, and the system time;

[0009] The shared and security permissions of the test equipment are controlled based on target control commands.

[0010] The multi-level device identifier of the test equipment is obtained based on the target acquisition command;

[0011] The name identifier and the multi-level device identifier are sent to the server so that the server, after determining that the sharing permissions and the security permissions meet the preset test conditions, tests the test device based on the name identifier and the multi-level device identifier.

[0012] In one embodiment, the target program name for obtaining the test device includes:

[0013] Tools for obtaining the executable file of the target program;

[0014] Control the test device to run the executable tool and obtain the target program name.

[0015] In one embodiment, obtaining the display type of the test device includes:

[0016] Based on the display information instructions from the application programming interface, obtain the video graphics array device;

[0017] When the number of video graphics array devices is 1, the display type is determined to be an integrated graphics card;

[0018] When the number of video graphics array devices is 2, the production identifier corresponding to the video graphics array device is obtained. When the production identifier is all the first production identifier, the production identifier is all the second production identifier, the production identifier is the first production identifier and the second production identifier, the production identifier is the second production identifier and the third production identifier, and the production identifier is the first production identifier and the third production identifier, the display type is determined to be a discrete graphics card.

[0019] In one embodiment, obtaining the system time of the test device includes:

[0020] Get time acquisition command;

[0021] The test equipment is controlled to run the time acquisition command to acquire the system time.

[0022] In one embodiment, controlling the sharing and security permissions of the test device based on preset control commands includes:

[0023] The first control sub-instruction modifies the registry value to enable shared folder permissions for the test device, and the second control sub-instruction disables shared network permissions for the test device.

[0024] The third control sub-instruction disables the firewall of the test device, the fourth control sub-instruction disables the timeout sleep or display shutdown function of the test device, and the fifth control sub-instruction disables the security mode of the test device.

[0025] In one embodiment, obtaining the multi-level device identifier of the test device based on the target acquisition instruction includes:

[0026] The target function based on the application programming interface obtains the hardware identification codes of all device managers on the test device;

[0027] Based on the target acquisition instruction, the controller bus identifier, controller device identifier, and controller function identifier are respectively obtained from the hardware identification code as the multi-level device identifier.

[0028] In one embodiment, the method further includes:

[0029] Control the test device to execute the command to disable the login password, thereby disabling the login password operation of the test device.

[0030] This application provides a processing apparatus for a testing device, the apparatus comprising:

[0031] The Name Acquisition module is used to obtain the target program name of the test device;

[0032] The type acquisition module is used to acquire the display type of the test device;

[0033] The time acquisition module is used to acquire the system time of the test equipment;

[0034] The name update module is used to update the name identifier of the test device based on the target program name, the display type, and the system time.

[0035] The access control module is used to control the sharing permissions and security permissions of the test device based on the target control instructions;

[0036] The device identification module is used to acquire multi-level device identifications of the test device based on the target acquisition command.

[0037] The sending module is used to send the name identifier and the multi-level device identifier to the server so that the server, after determining that the sharing permission and the security permission meet the preset test conditions, tests the test device based on the name identifier and the multi-level device identifier.

[0038] This application provides a computer device, including a memory and a processor. The memory stores a computer program, and the processor executes the computer program to implement the steps of a processing method for a testing device provided in any embodiment of this application.

[0039] This application provides a computer-readable storage medium storing a computer program thereon, which, when executed by a processor, implements the steps of a processing method for a testing device provided in any embodiment of this application.

[0040] The testing equipment processing method, apparatus, electronic device, and storage medium provided in this application embodiment obtain the target program name, display type, and system time of the testing equipment; update the name identifier of the testing equipment based on the target program name, display type, and system time; control the sharing permissions and security permissions of the testing equipment based on target control instructions; obtain the multi-level device identifier of the testing equipment based on target acquisition instructions; and send the name identifier and multi-level device identifier to the server so that the server, after determining that the sharing permissions and security permissions meet the preset test conditions, tests the testing equipment based on the name identifier and multi-level device identifier. This can quickly complete the information setting of the testing equipment, improve testing efficiency while saving labor costs, and reduce the error test rate, further meeting the needs of automated testing scenarios. Attached Figure Description

[0041] Figure 1 This is an application scenario diagram of the processing method of the test device in one embodiment;

[0042] Figure 2 This is a flowchart of a testing device processing method in one embodiment;

[0043] Figure 3 This is a flowchart of the processing method of the test device in another embodiment;

[0044] Figure 4 This is a flowchart of the processing method for the test device in another embodiment;

[0045] Figure 5 This is a flowchart of the processing method for the test device in another embodiment;

[0046] Figure 6 Here is a flowchart of the processing method of the test device in one embodiment;

[0047] Figure 7 This is a schematic diagram of the processing device of the test equipment in one embodiment;

[0048] Figure 8 This is an internal structural diagram of a computer device in one embodiment. Detailed Implementation

[0049] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.

[0050] The processing method for the test equipment provided in this application can be applied to, for example... Figure 1 The application environment shown. Figure 1This diagram illustrates an application scenario of a testing device processing method in one embodiment. The application environment includes a testing device 102 and a server 104. The testing device 102 and server 104 communicate via a network. The testing device 102 acquires the target program name, display type, and system time. Based on these parameters, it updates its name identifier. It controls the sharing and security permissions of the testing device 102 based on target control instructions. It also acquires the multi-level device identifier of the testing device 102 based on target acquisition instructions. Finally, it sends the name identifier and multi-level device identifier to the server 104. After determining that the sharing and security permissions meet preset test conditions, the server tests the testing device 102 based on the name identifier and multi-level device identifier. The testing device 102 can be, but is not limited to, various personal computers, laptops, smartphones, tablets, and portable wearable devices. The server 104 can be a standalone server or a server cluster consisting of multiple servers.

[0051] In one embodiment, such as Figure 2 As shown, Figure 2 This is a flowchart of a testing device processing method in one embodiment. This embodiment mainly applies this method to... Figure 1 The method is illustrated using test equipment 102 as an example. In this embodiment, the method includes the following steps:

[0052] S202: Obtain the target program name, display type, and system time of the test device.

[0053] The target program name refers to the name of the Basic Input Output System (BIOS) in the test device, which is a set of programs embedded in a read-only memory chip on the motherboard of the test device. Display type refers to the type of graphics card in the test device, such as a dedicated graphics card or integrated graphics card. A dedicated graphics card is a separate card that needs to be plugged into a corresponding interface on the motherboard. An integrated graphics card is a special type of graphics card that generally does not have its own dedicated video memory (VRAM) and instead uses a portion of the system's main memory as VRAM; the specific amount is usually dynamically adjusted by the system as needed. System time refers to the current system time of the test device.

[0054] For example, the target program can be read and its name captured by executing a reading and capture tool in the system command prompt, but this application is not limited to this.

[0055] For example, a video graphics array device is obtained through a display information instruction, and the display type is determined based on the number and production identifier of the video graphics array device, but this application is not limited thereto.

[0056] For example, the system time of the test device is obtained based on a time acquisition command, but this application is not limited thereto.

[0057] Specifically, the test begins by setting instructions for the test equipment and obtaining the target program name, display type, and system time of the test equipment.

[0058] S 204, update the name identifier of the test device based on the target program name, display type and system time.

[0059] Among them, the name identifier can uniquely identify a test device.

[0060] Specifically, the system obtains the target program name, display type, and system time of the test device, executes the test device name modification command, and updates the test device's name identifier to a name identifier composed of the target program name, display type, and system time. For example, the system command prompt executes the command to add the test device name as "net user %BIOS name + integrated graphics / dedicated graphics + system time % / add", which updates the test device's name identifier based on the target program name, display type, and system time.

[0061] S206: Control the sharing and security permissions of test equipment based on target control commands.

[0062] Among them, target control instructions refer to instructions that modify the permissions of the test device, such as instructions to enable shared folder permissions on the test device, instructions to disable the firewall on the test device, etc., and this application does not impose specific restrictions.

[0063] For example, based on target control, registry values ​​are modified to enable shared folder permissions on the test device, disable shared network permissions on the test device, disable the firewall on the test device, disable the timeout to sleep or turn off the display function on the test device, and disable safe mode on the test device.

[0064] Specifically, the system obtains the current open and closed information of each shared permission and security permission of the test device, determines the target open and closed information of each shared permission and security permission of the test device based on the test conditions, and controls the opening and closing of each shared permission and security permission of the test device to meet the test conditions by means of relevant open and close instructions if the target open and close information is not met.

[0065] S208: Obtain the multi-level device identifier of the test device based on the target acquisition command.

[0066] Among them, the target acquisition instruction refers to the instruction to acquire the controller bus identifier, controller device identifier, and controller function identifier of the test equipment; the multi-level device identifier includes, but is not limited to, the controller bus identifier, controller device identifier, and controller function identifier.

[0067] For example, the target function of the application programming interface obtains the hardware identification code of all device managers on the test device, and the controller bus identifier, controller device identifier and controller function identifier are obtained from the hardware identification code based on the target acquisition instruction as multi-level device identifiers, but it is not limited thereto, and this application does not specifically limit it.

[0068] S210: Send the name identifier and multi-level device identifier to the server so that the server can test the test device based on the name identifier and multi-level device identifier after determining that the sharing permissions and security permissions meet the preset test conditions.

[0069] Specifically, the name identifier and multi-level device identifier are sent to the server. After the server detects that the opening and closing information corresponding to the sharing permissions and security permissions meet the test requirements, it tests the test device based on the name identifier and multi-level device identifier.

[0070] Therefore, this embodiment obtains the target program name, display type, and system time of the test device, updates the name identifier of the test device based on the target program name, display type, and system time, controls the sharing permissions and security permissions of the test device based on the target control command, obtains the multi-level device identifier of the test device based on the target acquisition command, and sends the name identifier and multi-level device identifier to the server so that the server can test the test device based on the name identifier and multi-level device identifier after determining that the sharing permissions and security permissions meet the preset test conditions. This can quickly complete the information setting of the test device, improve test efficiency while saving labor costs, and reduce the error test rate, further meeting the needs of automated testing scenarios.

[0071] Figure 3 This is a flowchart of the processing method of the test device in another embodiment. Figure 3 Is Figure 2 Based on the illustrated embodiment, S202 further includes:

[0072] S202a: A tool for obtaining the executable file of the target program, controlling the test device to run the executable file tool, and obtaining the name of the target program.

[0073] Among them, executable file tools refer to tools that read and capture the program names of the basic input / output system. For example, to obtain the BIOS's "AMIDEWIN.exe" executable file tool, you can execute "AMIDEWIN.exe / bp" in the system command prompt to capture the BIOS program name.

[0074] S202b: Display information instructions based on the application programming interface (API) to obtain the video graphics array device. If the number of video graphics array devices is 1, the display type is determined to be an integrated graphics card.

[0075] S 202c, when the number of video graphics array devices is 2, obtain the production identifier corresponding to the video graphics array device. When the production identifier is the first production identifier, the production identifier is the second production identifier, the production identifier is the first production identifier and the second production identifier, the production identifier is the second production identifier and the third production identifier, and the production identifier is the first production identifier and the third production identifier, determine that the display type is a dedicated graphics card.

[0076] The application programming interface (API) refers to the application programming interface of the test device system, including instructions used to capture and display information, i.e., display information instructions, such as the display information instruction "WMIC PATH Win32_videocontrollerGET description" to capture detailed information of the video graphics array device.

[0077] Among them, the production identifier refers to the manufacturer that uniquely identifies the video graphics array device.

[0078] Specifically, when the number of video graphics array devices is 1, the display type is determined to be an integrated graphics card. When the number of video graphics array devices is 2, the production identifier corresponding to the video graphics array device is obtained. When the production identifiers are all the first production identifier, all the production identifiers are the second production identifier, the production identifiers are the first production identifier and the second production identifier, the production identifiers are the second production identifier and the third production identifier, and the production identifiers are the first production identifier and the third production identifier, the display type is determined to be a discrete graphics card.

[0079] For example, if the captured video graphics array device is a single device, it is definitely an integrated graphics card. If it is two video graphics array devices, determine whether the configuration of the two video graphics array devices is one of the following combinations: both first production identifiers are AMD device information, both second production identifiers are Intel device information, one second production identifier is Intel device information + one first production identifier is AMD device information, one second production identifier is Intel device information + one third production identifier is NV device information, and one first production identifier is AMD device information + one third production identifier is NV device information. All five of these combinations are dedicated graphics cards. The other two VGA devices are integrated graphics cards.

[0080] S202d: Time acquisition command, controls the test equipment to acquire system time.

[0081] Among them, the time acquisition command refers to the fixed command built into the test equipment to capture time.

[0082] Specifically, the command to control the test equipment's running time is used to obtain the system time. For example, the time acquisition command is:

[0083] The command “echo %date:~0,4%%date:~5,2%%date:~8,2%%time:~0,2%%time:~3,2%%time:~6,2%” retrieves the system time.

[0084] Therefore, this embodiment can quickly obtain the target program name, display type and system time of the test device by executing various instructions, thereby reducing the error test rate and improving test efficiency.

[0085] Figure 4 This is a flowchart of the testing device processing method in another embodiment. Figure 4 Is Figure 3 Based on the illustrated embodiment, a further description of a possible implementation of S206 is provided.

[0086] S206a: Modify registry values ​​based on the first control sub-instruction to enable shared folder permissions for the test device, and disable shared network permissions for the test device based on the second control sub-instruction.

[0087] S206b, based on the third control sub-command, disables the firewall of the test device; based on the fourth control sub-command, disables the test device's timeout-entry sleep or display-off function; and based on the fifth control sub-command, disables the security mode of the test device.

[0088] Among them, the first control sub-instruction refers to the instruction to enable or disable the shared folder permissions of the test device; the second control sub-instruction refers to the instruction to enable or disable the shared network permissions of the test device; the third control sub-instruction refers to the instruction to enable or disable the firewall of the test device; the fourth control sub-instruction refers to the instruction to enable or disable the timeout sleep or monitor shutdown function of the test device; and the fifth control sub-instruction refers to the instruction to enable or disable the security mode of the test device.

[0089] Specifically, based on the first control sub-instruction, the registry values ​​are modified to enable shared folder permissions on the test device. For example, the registry settings are changed to: "EnableLUA" (disable administrator mode permissions), "SaveZoneInformation" (enable folder permissions), "LowRiskFileTypes" (low security mode), "ConsentPromptBehaviorAdmin" (grant the same permissions as the administrator), "LocalAccountTokenFilterPolicy" (local security mode), "everyoneincludesanonymous" (user permissions), and "restrictnullsessaccess" (attribute permission settings). By modifying the registry values, all settings with relevant shared folder permissions are enabled, allowing the test device to have sharing functionality.

[0090] Specifically, based on the second control sub-command, the shared network permissions of the test device are disabled. For example, the following commands are executed: "netsh advfirewall firewall set rule group="network discovery" new enable="yes" (disable network discovery function) netsh advfirewall firewall set rule group="File and PrinterSharing" new enable="yes" (disable network file sharing) netsh advfirewall set allprofilesstate off (disable file status permissions) net share Users="C:\Users / GRANT:Everyone,Full" (all users can share)", to disable the network and prevent the test device from having its network functions affected by the firewall.

[0091] Specifically, the firewall of the test device is turned off based on the third control sub-command. For example, execute "netshadvfirewall set allprofiles state off (turn off file state permissions) net share Users=C:\Users / GRANT:Everyone,Full (all users can share)" to turn off the firewall so that the test device will not be affected by the firewall's network function.

[0092] Specifically, based on the fourth control sub-instruction, the timeout sleep or display shutdown function of the test device is turned off to prevent the test device from shutting down or going to sleep during testing. Therefore, the timeout setting is turned off to keep the system in normal state and prevent it from entering standby mode.

[0093] For example, executing the fourth control subcommand "powercfg-list (find power status), powercfg-setactive 381b4222-f694-41f0-9685-ff5bb260df2e (balanced power status), powercfg-change-monitor-timeout-ac 0 (set monitor off to 0 seconds without turning off), powercfg-change-standby-timeout-ac 0 (set sleep to 0 seconds without sleeping), powercfg-setactive 8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c (advanced power status), powercfg-change-monitor-timeout-ac 0 (set monitor off to 0 seconds without turning off), powercfg-change-standby-timeout-ac 0 (set sleep to 0 seconds without sleeping), powercfg-setactive" a1841308-3541-4fab-bc81-f71556f20b4apowercfg-change-monitor-timeout-ac 0 (sets the monitor to stay on for 0 seconds) powercfg-change-standby-timeout-ac 0 (sets the sleep timeout to 0 seconds).

[0094] Specifically, the safe mode of the test device is turned off based on the fifth control sub-instruction. For example, the safe mode can be turned off by using a tool to execute the command. After executing "srwin / osdef others / verbose (command to turn off safe mode)" in the system command prompt, "shutdown / r" is executed to control the safe mode of the test device to be turned off. The test device can then further confirm whether the safe mode has been turned off to further ensure the normal processing of the test and improve the test efficiency.

[0095] Therefore, by using multiple control commands to control the sharing permissions and security permissions of the test equipment to a state that meets the test conditions, the normal processing of the test is further guaranteed, thereby improving test efficiency and meeting the high efficiency requirements of the test.

[0096] Figure 5 This is a flowchart of the testing device processing method in another embodiment. Figure 5 Is Figure 4 Based on the illustrated embodiment, a further description of a possible implementation of S208 is provided.

[0097] S208a: Obtain the hardware identification codes of all device managers on the test device based on the application programming interface target function.

[0098] S208b: Based on the target acquisition instruction, the controller bus identifier, controller device identifier, and controller function identifier are obtained from the hardware identification code as multi-level device identifiers.

[0099] Among them, the application programming interface (API) refers to the application programming interface in the test device; the target function refers to the hardware identification code capture tool in the API; the hardware identification code refers to the unique identifier of the hardware; and the target acquisition instruction refers to the instruction to acquire multi-level device identifiers from the hardware identification code. The target acquisition instructions are different for different levels of device identifiers, and the specific settings are selected according to the application scenario. For example, the target acquisition instruction is A to acquire the controller bus identifier, the target acquisition instruction is B to acquire the controller device identifier, and the target acquisition instruction is C to acquire the controller function identifier.

[0100] Specifically, the target function based on the application programming interface obtains the hardware identification codes of all device managers on the test device. In other words, the identification of the test device needs to be read during the test. The identification number of the test device can be captured through code tools for setting. That is, the target function of the system application programming interface captures the hardware identification codes of all device managers. For example, after capturing the hardware identification codes of all device managers, device description information, location information, etc. can be defined. The complete information of the controller location information, "Location Information", can be captured, including Controller Bus ID, Controller Device ID, and Controller Function ID.

[0101] For example, using the Windows API (System Application Programming Interface), capture all HWIDs from the Device Manager: Global Const$DIGCF_PRESENT = 0x00000002 (first read Device Manager), Global Const$DIGCF_ALLCLASSES = 0x00000004 (capture all categories), Global Const$DIGCF_PROFILE = 0x00000008 (capture all attributes), Global Const$SPDRP_HARDWAREID = (0x00000001); / / HardwareID(R / W) (capture all device IDs), Global Const$SPDRP_BUSNUMBER = (0x00000015); / / (Capture BUS device number), then define Class name (define all categories), Friendly name (define all attributes), Device description (capture all devices), Location Information (all information about the device).

[0102] Furthermore, based on the target acquisition instruction, the controller bus identifier, controller device identifier, and controller function identifier are obtained from the hardware identification code as multi-level device identifiers. Specifically, the controller bus identifier acquisition instruction is executed to retrieve the controller bus identifier from the aforementioned "Location Information". For example, executing "$result5=Dllcall($dll,"int","SetupDiGetDeviceRegistryProperty","dword",(retrieve device registry)$hDevInfo,"ptr",$pSP_DEVINFO_DATA,"dword",(retrieve device name)$SPDRP_LOCATION_INFORMATION,"dword*",0,"str","","dword",2048,"dword*",0)(retrieve all device information)Local$XhciLeftnum1=StringInStr($result 5[5],"bus")(List all bus numbers)Local$XhciBUS1=StringTrimLeft($result5[5],$XhciLeftnum1+3)(Grab the bus number of XHCI)Local$XhciRightnum1=StringInStr($XhciBUS1,",")(Grab the bus number of XHCI)Local$XhciStringLen=StringLen($XhciBUS1)(Grab the bus number of XHCI)$XhciBUS1=StringTrimRight($XhciBUS1,$XhciStringLen-$XhciRightnum1+1)(This is the desired bus number).

[0103] Among them, BUS (bus) is the first node of PCI (Peripheral Component Interconnect) devices and XHCI (eXtensible Host Controller Interface).

[0104] Execute the command to obtain the controller device identifier, and retrieve the controller device identifier from the above "Location Information". For example, execute "Local$XhciLeftnum2=StringInStr($result5[5],"device") (retrieves all device numbers)Local$XhciBUS2=StringTrimLeft($result5[5],$XhciLeftnum2+6)(retrieves the device number of XHCI)Local$XhciRightnum2=StringInStr($XhciBUS2,",")(retrieves the device number of XHCI)Local$XhciStringLen=StringLen($XhciBUS2)(retrieves the device number of XHCI)$XhciBUS2=StringTrimRight($XhciBUS2,$XhciStringLen-$XhciRightnum2+1)(is the desired device number)"

[0105] Execute the command to obtain the controller function identifier. Grab the controller function identifier from the above "Location Information". For example, execute "Local$XhciLeftnum3=StringInStr($result5[5],"function") (grab all function numbers)Local$XhciBUS3=StringTrimLeft($result5[5],$XhciLeftnum3+8)(which is the desired function number)".

[0106] In this embodiment of the application, after obtaining the controller bus identifier, controller device identifier, and controller function identifier, the obtained controller bus identifier, controller device identifier, and controller function identifier are stored in a shared folder so that the server can obtain the controller bus identifier, controller device identifier, and controller function identifier through the shared folder.

[0107] Therefore, the system automatically acquires and uploads multi-level device identifiers, such as controller bus identifier, controller device identifier, and controller function identifier, to the server, further improving testing efficiency and meeting the high-efficiency testing requirements.

[0108] Figure 6 Here is a flowchart of the processing method of the test device in one embodiment. Figure 6 Is Figure 2 Based on the illustrated embodiment, it further includes:

[0109] S601: Controls the test equipment to execute the command to disable the login password, thereby disabling the login password operation of the test equipment.

[0110] The login password refers to the password used to log in to the test device. By controlling the test device to execute a command to disable the login password, the login password operation can be disabled. For example, executing the command "net user%account%%empty%" / add", where "%account%" is the name of the test device and "%empty%" means no password is required. This further ensures the normal execution of subsequent tests and improves testing efficiency.

[0111] It should be understood that, although Figures 2-6 The steps in the flowchart are shown sequentially as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order in which these steps are executed, and they can be performed in other orders. Figures 2-6 At least some of the steps in the process may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least some of the sub-steps or stages of other steps.

[0112] In one embodiment, such as Figure 7 As shown, a processing device for a test equipment is provided, including: a name acquisition module 302, a type acquisition module 304, a time acquisition module 306, a name update module 308, an access control module 310, a device identifier acquisition module 312, and a sending module 314, wherein...

[0113] The name acquisition module 302 is used to acquire the target program name of the test device;

[0114] The type acquisition module 304 is used to acquire the display type of the test device;

[0115] Time acquisition module 306 is used to acquire the system time of the test equipment;

[0116] The name update module 308 is used to update the name identifier of the test device based on the target program name, the display type, and the system time.

[0117] The access control module 310 is used to control the sharing permissions and security permissions of the test device based on the target control instructions;

[0118] The device identifier acquisition module 312 is used to acquire the multi-level device identifier of the test device based on the target acquisition instruction;

[0119] The sending module 314 is used to send the name identifier and the multi-level device identifier to the server so that the server, after determining that the sharing permission and the security permission meet the preset test conditions, tests the test device based on the name identifier and the multi-level device identifier.

[0120] In an embodiment of this application, the name acquisition module 302 is specifically used for:

[0121] Tools for obtaining the executable file of the target program;

[0122] Control the test device to run the executable tool and obtain the target program name.

[0123] In the first embodiment of this application, the type acquisition module 304 is specifically used for:

[0124] Based on the display information instructions from the application programming interface, obtain the video graphics array device;

[0125] When the number of video graphics array devices is 1, the display type is determined to be an integrated graphics card;

[0126] When the number of video graphics array devices is 2, the production identifier corresponding to the video graphics array device is obtained. When the production identifier is all the first production identifier, the production identifier is all the second production identifier, the production identifier is the first production identifier and the second production identifier, the production identifier is the second production identifier and the third production identifier, and the production identifier is the first production identifier and the third production identifier, the display type is determined to be a discrete graphics card.

[0127] In the first embodiment of this application, the time acquisition module 306 is specifically used for:

[0128] Get time acquisition command;

[0129] The test equipment is controlled to run the time acquisition command to acquire the system time.

[0130] In one embodiment of this application, the access control module 310 is specifically used for:

[0131] The first control sub-instruction modifies the registry value to enable shared folder permissions for the test device, and the second control sub-instruction disables shared network permissions for the test device.

[0132] The third control sub-instruction disables the firewall of the test device, the fourth control sub-instruction disables the timeout sleep or display shutdown function of the test device, and the fifth control sub-instruction disables the security mode of the test device.

[0133] In an embodiment of this application, the device identifier acquisition module 312 is specifically used for:

[0134] The target function based on the application programming interface obtains the hardware identification codes of all device managers on the test device;

[0135] Based on the target acquisition instruction, the controller bus identifier, controller device identifier, and controller function identifier are respectively obtained from the hardware identification code as the multi-level device identifier.

[0136] In one embodiment of this application, the device further includes: a control shutdown module, used for:

[0137] Control the test device to execute the command to disable the login password, thereby disabling the login password operation of the test device.

[0138] In the above embodiments, the target program name, display type, and system time of the test device are obtained. The name identifier of the test device is updated based on the target program name, display type, and system time. The sharing permissions and security permissions of the test device are controlled based on the target control instructions. The multi-level device identifier of the test device is obtained based on the target acquisition instructions. The name identifier and multi-level device identifier are sent to the server so that the server can test the test device based on the name identifier and multi-level device identifier after determining that the sharing permissions and security permissions meet the preset test conditions. This can quickly complete the information setting of the test device, save labor costs, improve test efficiency, and reduce the error test rate, further meeting the needs of automated testing scenarios.

[0139] Specific limitations regarding the processing unit of the testing equipment can be found in the limitations on the processing method of the testing equipment described above, and will not be repeated here. Each module in the processing unit of the aforementioned testing equipment can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in hardware or independently of the processor in the computer device, or stored in software in the memory of the computer device, so that the processor can call and execute the operations corresponding to each module.

[0140] In one embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as follows: Figure 8As shown, the computer device includes a processor, memory, communication interface, display screen, and input devices connected via a system bus. The processor provides computing and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system and computer programs. The internal memory provides an environment for the operation of the operating system and computer programs stored in the non-volatile storage media. The communication interface is used for wired or wireless communication with external terminals; wireless communication can be achieved through WiFi, carrier networks, near-field communication (NFC), or other technologies. When the computer program is executed by the processor, it implements a processing method for a test device. The display screen can be an LCD screen or an e-ink screen. The input devices can be a touch layer covering the display screen, buttons, a trackball, or a touchpad located on the computer device casing, or an external keyboard, touchpad, or mouse.

[0141] Those skilled in the art will understand that Figure 8 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.

[0142] In one embodiment, the processing apparatus of the testing device provided in this application can be implemented as a computer program, and the computer program can be implemented as follows: Figure 8 The computer device shown is running on this device. The computer device's memory can store the various program modules that make up the processing unit of the test device, for example, Figure 7 The computer program consisting of the name acquisition module 302, type acquisition module 304, time acquisition module 306, name update module 308, access control module 310, device identifier acquisition module 312, and sending module 314, as shown, enables the processor to execute the steps in the processing method of the test device of the various embodiments of this application described in this specification.

[0143] For example, Figure 8 The computer equipment shown can be used as follows Figure 7 The name acquisition module 302, type acquisition module 304, and time acquisition module 306 of the processing device of the test equipment shown execute S202, the name update module 308 executes S204, the access control module 310 executes S206, the device identification acquisition module 312 executes S208, and the sending module 314 executes S2010.

[0144] In one embodiment, a computer device is provided, including a memory and a processor. The memory stores a computer program, and the processor, when executing the computer program, performs the following steps: obtaining the target program name, display type, and system time of the test device; updating the name identifier of the test device based on the target program name, display type, and system time; controlling the sharing permissions and security permissions of the test device based on target control instructions; obtaining the multi-level device identifier of the test device based on target acquisition instructions; and sending the name identifier and multi-level device identifier to a server so that the server, after determining that the sharing permissions and security permissions meet preset test conditions, tests the test device based on the name identifier and multi-level device identifier.

[0145] In one embodiment, when the processor executes the computer program, it further performs the following step: obtaining the target program name of the test device includes:

[0146] Tools for obtaining the executable file of the target program;

[0147] Control the test device to run the executable tool and obtain the target program name.

[0148] In one embodiment, when the processor executes the computer program, it further performs the following steps: obtaining the display type of the test device includes:

[0149] Based on the display information instructions from the application programming interface, obtain the video graphics array device;

[0150] When the number of video graphics array devices is 1, the display type is determined to be an integrated graphics card;

[0151] When the number of video graphics array devices is 2, the production identifier corresponding to the video graphics array device is obtained. When the production identifier is all the first production identifier, the production identifier is all the second production identifier, the production identifier is the first production identifier and the second production identifier, the production identifier is the second production identifier and the third production identifier, and the production identifier is the first production identifier and the third production identifier, the display type is determined to be a discrete graphics card.

[0152] In one embodiment, when the processor executes the computer program, it further performs the following steps: obtaining the system time of the test device includes:

[0153] Get time acquisition command;

[0154] The test equipment is controlled to run the time acquisition command to acquire the system time.

[0155] In one embodiment, when the processor executes the computer program, it further implements the following steps: controlling the sharing permissions and security permissions of the test device based on preset control instructions, including:

[0156] The first control sub-instruction modifies the registry value to enable shared folder permissions for the test device, and the second control sub-instruction disables shared network permissions for the test device.

[0157] The third control sub-instruction disables the firewall of the test device, the fourth control sub-instruction disables the timeout sleep or display shutdown function of the test device, and the fifth control sub-instruction disables the security mode of the test device.

[0158] In one embodiment, when the processor executes the computer program, it further implements the following steps: obtaining the multi-level device identifier of the test device based on the target acquisition instruction includes:

[0159] The target function based on the application programming interface obtains the hardware identification codes of all device managers on the test device;

[0160] Based on the target acquisition instruction, the controller bus identifier, controller device identifier, and controller function identifier are respectively obtained from the hardware identification code as the multi-level device identifier.

[0161] In one embodiment, the processor, when executing a computer program, further implements the following steps: the method further includes:

[0162] Control the test device to execute the command to disable the login password, thereby disabling the login password operation of the test device.

[0163] In the above embodiments, the target program name, display type, and system time of the test device are obtained. The name identifier of the test device is updated based on the target program name, display type, and system time. The sharing permissions and security permissions of the test device are controlled based on the target control instructions. The multi-level device identifier of the test device is obtained based on the target acquisition instructions. The name identifier and multi-level device identifier are sent to the server so that the server can test the test device based on the name identifier and multi-level device identifier after determining that the sharing permissions and security permissions meet the preset test conditions. This can quickly complete the information setting of the test device, save labor costs, improve test efficiency, and reduce the error test rate, further meeting the needs of automated testing scenarios.

[0164] 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, it performs the following steps: obtaining the target program name, display type, and system time of the test device; updating the name identifier of the test device based on the target program name, display type, and system time; controlling the sharing permissions and security permissions of the test device based on the target control instructions; obtaining the multi-level device identifier of the test device based on the target acquisition instructions; and sending the name identifier and the multi-level device identifier to a server so that the server, after determining that the sharing permissions and security permissions meet the preset test conditions, tests the test device based on the name identifier and the multi-level device identifier.

[0165] In one embodiment, when the computer program is executed by a processor, it performs the following steps: obtaining the target program name of the test device includes:

[0166] Tools for obtaining the executable file of the target program;

[0167] Control the test device to run the executable tool and obtain the target program name.

[0168] In one embodiment, when the computer program is executed by a processor, it performs the following steps: obtaining the display type of the test device includes:

[0169] Based on the display information instructions from the application programming interface, obtain the video graphics array device;

[0170] When the number of video graphics array devices is 1, the display type is determined to be an integrated graphics card;

[0171] When the number of video graphics array devices is 2, the production identifier corresponding to the video graphics array device is obtained. When the production identifier is all the first production identifier, the production identifier is all the second production identifier, the production identifier is the first production identifier and the second production identifier, the production identifier is the second production identifier and the third production identifier, and the production identifier is the first production identifier and the third production identifier, the display type is determined to be a discrete graphics card.

[0172] In one embodiment, when the computer program is executed by the processor, it performs the following steps: obtaining the system time of the test device includes:

[0173] Get time acquisition command;

[0174] The test equipment is controlled to run the time acquisition command to acquire the system time.

[0175] In one embodiment, when a computer program is executed by a processor, it performs the following steps: controlling the sharing permissions and security permissions of the test device based on preset control instructions, including:

[0176] The first control sub-instruction modifies the registry value to enable shared folder permissions for the test device, and the second control sub-instruction disables shared network permissions for the test device.

[0177] The third control sub-instruction disables the firewall of the test device, the fourth control sub-instruction disables the timeout sleep or display shutdown function of the test device, and the fifth control sub-instruction disables the security mode of the test device.

[0178] In one embodiment, when a computer program is executed by a processor, it performs the following steps: obtaining the multi-level device identifier of the test device based on the target acquisition instruction includes:

[0179] The target function based on the application programming interface obtains the hardware identification codes of all device managers on the test device;

[0180] Based on the target acquisition instruction, the controller bus identifier, controller device identifier, and controller function identifier are respectively obtained from the hardware identification code as the multi-level device identifier.

[0181] In one embodiment, when a computer program is executed by a processor, it performs the following steps: the method further includes:

[0182] Control the test device to execute the command to disable the login password, thereby disabling the login password operation of the test device.

[0183] In the above embodiments, the target program name, display type, and system time of the test device are obtained. The name identifier of the test device is updated based on the target program name, display type, and system time. The sharing permissions and security permissions of the test device are controlled based on the target control instructions. The multi-level device identifier of the test device is obtained based on the target acquisition instructions. The name identifier and multi-level device identifier are sent to the server so that the server can test the test device based on the name identifier and multi-level device identifier after determining that the sharing permissions and security permissions meet the preset test conditions. This can quickly complete the information setting of the test device, save labor costs, improve test efficiency, and reduce the error test rate, further meeting the needs of automated testing scenarios.

[0184] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. Any references to memory, databases, or other media used in the embodiments provided in this 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, or optical storage, etc. Volatile memory can include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in various forms, such as static random access memory (SRAM) and dynamic random access memory (DRAM), etc.

[0185] The technical features of the above embodiments can be combined in any way. For the sake of brevity, 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.

[0186] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of the patent application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this patent application should be determined by the appended claims.

Claims

1. A method for processing testing equipment, characterized in that, include: Obtain the target program name, display type, and system time of the test device; Update the name identifier of the test device based on the target program name, the display type, and the system time; The shared and security permissions of the test equipment are controlled based on target control commands. The multi-level device identifier of the test equipment is obtained based on the target acquisition command; The name identifier and the multi-level device identifier are sent to the server so that the server, after determining that the sharing permissions and the security permissions meet the preset test conditions, tests the test device based on the name identifier and the multi-level device identifier.

2. The method according to claim 1, characterized in that, The target program name for obtaining the test equipment includes: Tools for obtaining the executable file of the target program; Control the test device to run the executable tool and obtain the target program name.

3. The method according to claim 1, characterized in that, The acquisition of the display type of the test device includes: Based on the display information instructions from the application programming interface, obtain the video graphics array device; When the number of video graphics array devices is 1, the display type is determined to be an integrated graphics card; When the number of video graphics array devices is 2, the production identifier corresponding to the video graphics array device is obtained. When the production identifier is all the first production identifier, the production identifier is all the second production identifier, the production identifier is the first production identifier and the second production identifier, the production identifier is the second production identifier and the third production identifier, and the production identifier is the first production identifier and the third production identifier, the display type is determined to be a discrete graphics card.

4. The method according to claim 1, characterized in that, The acquisition of the system time of the test device includes: Get time acquisition command; The test equipment is controlled to run the time acquisition command to acquire the system time.

5. The method according to any one of claims 1-4, characterized in that, The test equipment's sharing and security permissions are controlled based on preset control commands, including: The system modifies registry values ​​based on the first control sub-instruction to enable shared folder permissions for the test device, disables shared network permissions for the test device based on the second control sub-instruction, disables the firewall for the test device based on the third control sub-instruction, disables the timeout sleep function for the test device based on the fourth control sub-instruction, or disables the display for the test device based on the fourth control sub-instruction, and disables the safe mode for the test device based on the fifth control sub-instruction.

6. The method according to any one of claims 1-4, characterized in that, The step of obtaining the multi-level device identifier of the test device based on the target acquisition instruction includes: The target function based on the application programming interface obtains the hardware identification codes of all device managers on the test device; Based on the target acquisition instruction, the controller bus identifier, controller device identifier, and controller function identifier are respectively obtained from the hardware identification code as the multi-level device identifier.

7. The method according to any one of claims 1-4, characterized in that, Also includes: Control the test device to execute the command to disable the login password, thereby disabling the login password operation of the test device.

8. A processing device for a testing equipment, characterized in that, include: The Name Acquisition module is used to obtain the target program name of the test device. The type acquisition module is used to acquire the display type of the test device; The time acquisition module is used to acquire the system time of the test equipment; The name update module is used to update the name identifier of the test device based on the target program name, the display type, and the system time. The access control module is used to control the sharing permissions and security permissions of the test device based on the target control instructions; The device identification module is used to acquire multi-level device identifications of the test device based on the target acquisition command. The sending module is used to send the name identifier and the multi-level device identifier to the server so that the server, after determining that the sharing permission and the security permission meet the preset test conditions, tests the test device based on the name identifier and the multi-level device identifier.

9. An electronic device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that, When the processor executes the computer program, it implements the steps of the processing method of the test device according to any one of claims 1 to 7.

10. A storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the steps of the processing method of the test device according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Software automated testing unified operation platform

    CN103136101A

  • Equipment testing method and device, server and readable storage medium

    CN111782547A