Test terminal device setting management method and device, and electronic device
By monitoring system event information of terminal devices and restricting user operations, and distinguishing between sensitive and non-sensitive settings, the problem of users arbitrarily modifying settings in the cloud real device testing platform is solved, ensuring the stability and consistency of the testing environment.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-06-16
- Publication Date
- 2026-03-24
AI Technical Summary
In cloud-based real device testing platforms, users have no restrictions on modifying the settings of test terminal devices, which leads to unstable device information and affects test results and subsequent use.
The management program monitors system event information of terminal devices, restricts user operations within the management program, and distinguishes between sensitive and non-sensitive settings. Sensitive settings require authentication before they can be operated, while non-sensitive settings are displayed directly.
It allows users to modify device settings to a limited extent, ensuring the stability and consistency of the testing environment and preventing dirty data in the test results and arbitrary changes to device information.
Smart Images

Figure CN115481376B_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of terminal device management, and in particular to a method, apparatus, electronic device, and computer-readable storage medium for setting and managing test terminal devices. Background Technology
[0002] Cloud-based real device testing platforms are becoming increasingly popular. Compared to testing with local devices, they offer significant advantages such as unified management, remote sharing, and a realistic and reliable testing environment.
[0003] The test terminal devices in the cloud testing platform are public devices for users, who can perform various operations and tests on them independently. However, some automated testing tasks and background testing services require stable device information and environment; for example, the Wi-Fi network, network type, and carrier cannot be changed arbitrarily, otherwise, it will result in corrupted test data. Furthermore, if a user sets a lock screen password for the device, it will affect subsequent users of the device. Therefore, how to limit user modification of device settings is a pressing issue that needs to be addressed. Summary of the Invention
[0004] This summary section is provided to briefly introduce the concepts, which will be described in detail in the detailed description section below. This summary section is not intended to identify key or essential features of the claimed technical solution, nor is it intended to limit the scope of the claimed technical solution.
[0005] In a first aspect, embodiments of this disclosure provide a method for setting and managing test terminal devices, running on a cloud testing platform, wherein the cloud testing platform includes at least one test terminal device, and the method for setting and managing the test terminal device includes:
[0006] Receive setting instructions from a remote terminal device to trigger the system of the test terminal device to issue event information;
[0007] In response to receiving a first event message indicating that system settings have been triggered, the system is redirected to a settings page; wherein the settings page includes components corresponding to the settings items in the system settings.
[0008] In response to receiving a second event message indicating that the component has been triggered, the type of the setting item corresponding to the component is determined;
[0009] When the type of the setting is a sensitive setting, the authentication page is displayed;
[0010] In response to receiving correct authentication information on the authentication page, a page displaying the settings corresponding to the component is generated;
[0011] When the type of the setting item is a non-sensitive setting item, the page of the setting item corresponding to the component is displayed; wherein, the page of the setting item is generated by the system of the terminal device.
[0012] Furthermore, the step of receiving a setting instruction from a remote terminal device to trigger the system of the test terminal device to issue event information includes:
[0013] Receive configuration instructions from remote terminal devices;
[0014] The management program installed on the test terminal uses a listening subroutine to listen for event information issued by the terminal device's system; wherein the listening subroutine uses the services provided by the system to receive event information issued by the system indicating changes in the user's page state.
[0015] Furthermore, the response to receiving the first event information indicating that system settings have been triggered, and redirecting to the settings page, includes:
[0016] In response to receiving a first event information indicating that system settings have been triggered, the settings items in the system settings are retrieved;
[0017] Generate and display a settings page based on the settings; or...
[0018] In response to receiving the first event information that the system settings have been triggered, retrieve and display the pre-generated settings page.
[0019] Furthermore, determining the type of the settings item corresponding to the component includes:
[0020] Parse the second event information to obtain the packet name of the second event information;
[0021] The type of the setting item corresponding to the component is determined based on the package name.
[0022] Furthermore, the method also includes:
[0023] When the type of the setting item is a sensitive setting item, an authentication information generation instruction is sent to the server; the authentication information generation instruction causes the server to generate the authentication information based on the information of the test terminal device and the generation time of the instruction.
[0024] Furthermore, the page displaying the settings items corresponding to the component includes:
[0025] The settings corresponding to the component are determined based on the package name;
[0026] The user will be redirected to the settings page in the system settings of the test terminal device.
[0027] Furthermore, the test terminal device is a rack device, and the management program is a rack program installed on the rack device. The rack program is used to receive instructions sent by a remote client to simulate user operations on the rack device.
[0028] Secondly, embodiments of this disclosure provide a setting management device for a test terminal device, operating on a cloud testing platform, wherein the cloud testing platform includes at least one test terminal device, characterized in that the setting management device for the test terminal device includes:
[0029] The event information receiving module is used to receive setting instructions from the remote terminal device to trigger the system of the test terminal device to issue event information;
[0030] The settings page redirection module is used to respond to the first event information of the system settings being triggered and redirect to the settings page; wherein, the settings page includes components corresponding to the settings items in the system settings;
[0031] A type determination module is used to determine the type of the setting item corresponding to the component in response to receiving a second event information that the component is triggered.
[0032] The authentication page display module is used to display the authentication page when the type of the setting item is a sensitive setting item;
[0033] The settings page display module is used to display the settings page corresponding to the component in response to receiving correct authentication information on the authentication page.
[0034] When the setting type is a non-sensitive setting item, the page corresponding to the component is displayed; wherein, the page of the setting item is generated by the system of the terminal device. Further, the event information receiving module is also used to: receive setting instructions from the remote terminal device; the management program installed in the test terminal uses a listening subroutine to listen for event information issued by the system of the terminal device; wherein the listening subroutine uses the services provided by the system to receive event information issued by the system indicating changes in the user page state.
[0035] Furthermore, the settings page redirection module is also used for:
[0036] In response to receiving a first event information indicating that system settings have been triggered, the settings items in the system settings are retrieved;
[0037] Generate and display a settings page based on the settings; or...
[0038] In response to receiving the first event information that the system settings have been triggered, retrieve and display the pre-generated settings page.
[0039] Furthermore, the type determination module is also used for:
[0040] Parse the second event information to obtain the packet name of the second event information;
[0041] The type of the setting item corresponding to the component is determined based on the package name.
[0042] Furthermore, the setting management device of the test terminal equipment also includes:
[0043] The instruction sending module is used to send an authentication information generation instruction to the server when the type of the setting item is a sensitive setting item; the authentication information generation instruction causes the server to generate the authentication information based on the information of the test terminal device and the generation time of the instruction.
[0044] Furthermore, the settings page display module is also used to: determine the settings corresponding to the component based on the package name; and jump to the settings page in the system settings of the test terminal device.
[0045] Furthermore, the test terminal device is a rack device, and the management program is a rack program installed on the rack device. The rack program is used to receive instructions sent by a remote user to simulate the user's operation on the rack device.
[0046] Thirdly, embodiments of this disclosure provide an electronic device, including: at least one processor; and,
[0047] A memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to perform the setting management method of any of the test terminal devices described in the first aspect above.
[0048] Fourthly, embodiments of this disclosure provide a non-transitory computer-readable storage medium, characterized in that the non-transitory computer-readable storage medium stores computer instructions for causing a computer to execute the setup and management method of any of the test terminal devices described in the first aspect.
[0049] This disclosure provides a method, apparatus, electronic device, and computer-readable storage medium for managing the settings of a test terminal device. The method includes: triggering the test terminal device's system to issue an event message; in response to receiving a first event message indicating that system settings have been triggered, redirecting to a settings page; in response to receiving a second event message indicating that a component has been triggered, determining the type of the setting item corresponding to the component; if the setting item is a sensitive setting item, displaying an authentication page; in response to receiving correct authentication information on the authentication page, displaying a page for the setting item corresponding to the component; and if the setting item is a non-sensitive setting item, displaying a page for the setting item corresponding to the component. This method solves the problem of how to limit user modification of device settings by restricting system settings operations to a management program.
[0050] The above description is merely an overview of the technical solution disclosed herein. In order to better understand the technical means of this disclosure and to implement it in accordance with the contents of the specification, and to make the above and other objects, features and advantages of this disclosure more apparent and understandable, preferred embodiments are described below in detail with reference to the accompanying drawings. Attached Figure Description
[0051] The above and other features, advantages, and aspects of the embodiments of this disclosure will become more apparent from the accompanying drawings and the following detailed description. Throughout the drawings, the same or similar reference numerals denote the same or similar elements. It should be understood that the drawings are schematic, and the originals and elements are not necessarily drawn to scale.
[0052] Figure 1 A flowchart illustrating the setting and management method for a test terminal device provided in this embodiment of the disclosure;
[0053] Figure 2 A further flowchart illustrating the setting and management method for the test terminal device provided in this embodiment of the disclosure;
[0054] Figure 3 This is a schematic diagram illustrating an application scenario of an embodiment of this disclosure;
[0055] Figure 4 A schematic diagram of the structure of an embodiment of the setting management device for a test terminal device provided in this disclosure;
[0056] Figure 5 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this disclosure. Detailed Implementation
[0057] Embodiments of this disclosure will now be described in more detail with reference to the accompanying drawings. While some embodiments of this disclosure are shown in the drawings, it should be understood that this disclosure can be implemented in various forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided to provide a more thorough and complete understanding of this disclosure. It should be understood that the accompanying drawings and embodiments of this disclosure are for illustrative purposes only and are not intended to limit the scope of protection of this disclosure.
[0058] It should be understood that the steps described in the method embodiments of this disclosure may be performed in different orders and / or in parallel. Furthermore, the method embodiments may include additional steps and / or omit the steps shown. The scope of this disclosure is not limited in this respect.
[0059] The term "comprising" and its variations as used herein are open-ended inclusions, meaning "including but not limited to". The term "based on" means "at least partially based on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". Definitions of other terms will be given in the description below.
[0060] It should be noted that the concepts of "first" and "second" mentioned in this disclosure are used only to distinguish different devices, modules or units, and are not used to limit the order of functions performed by these devices, modules or units or their interdependencies.
[0061] It should be noted that the terms "a" and "a plurality of" used in this disclosure are illustrative rather than restrictive, and those skilled in the art should understand that, unless otherwise expressly indicated in the context, they should be understood as "one or more".
[0062] The names of the messages or information regarding the setting and management of terminal devices among multiple devices in this disclosure are for illustrative purposes only and are not intended to limit the scope of these messages or information.
[0063] Figure 1This is a flowchart illustrating an embodiment of the test terminal device setting management method provided in this disclosure. The test terminal device setting management method provided in this embodiment can be executed by a test terminal device setting management device. This device can be implemented as software or a combination of software and hardware. The device can be integrated into a device within a test terminal device setting management system, such as a test terminal device setting management server or a test terminal device setting management system. In this disclosure, the test terminal device setting management method runs on a cloud testing platform, which includes at least one test terminal device. Figure 1 As shown, the method includes the following steps:
[0064] Step S101: Receive setting instructions from the remote terminal device to trigger the system of the test terminal device to issue event information.
[0065] The test terminal device is pre-installed with a management program that monitors event information emitted by the system of the test terminal device. Users can configure the test terminal device via remote terminal device settings to trigger the system to emit event information.
[0066] Optionally, step S101 includes:
[0067] Receive configuration instructions from remote terminal devices;
[0068] The management program installed on the test terminal uses a listening subroutine to listen for event information issued by the terminal device's system; wherein the listening subroutine uses the services provided by the system to receive event information issued by the system indicating changes in the user's page state.
[0069] Optionally, the management program includes a listening subroutine, which listens for event information emitted by the system of the test terminal device. Operations performed on the test terminal device cause changes to the user interface, and the event information indicates these changes, such as changes in focus, input content, or button clicks. The listening subroutine can obtain the currently active page and locate its content; or it can receive event information sent by the system. That is, the listening subroutine can actively monitor changes in the user interface, or the system can actively send event information generated by changes in the user interface to the listening subroutine.
[0070] Optionally, the listening subroutine uses the services provided by the system to receive event information issued by the system indicating changes in the user page state.
[0071] For example, the system in the test terminal device is an Android system, which provides AccessibilityService to receive event information sent by the system indicating changes in the user's page state. Based on this feature, the management program can use a service similar to AccessibilityService to implement the listening subroutine to listen for event information in the test terminal device.
[0072] Return to Appendix Figure 1 The setting management method for the test terminal device further includes step S102, which involves jumping to a setting page in response to receiving a first event information indicating that system settings have been triggered; wherein the setting page includes components corresponding to the setting items in the system settings.
[0073] The event information allows us to determine the triggered function in the user interface. For example, the user interface may include a system settings button or icon. Typically, clicking this button or icon leads to the system settings interface. However, system settings include many sensitive settings, such as wireless LAN settings, cellular network settings, and privacy settings used by the test terminal device. Therefore, in this disclosure, upon receiving a first event indicating that the system settings have been triggered, the user is redirected to a settings page generated by the management program. This restricts the user's operations to the management program, subjecting them to its control. The settings page includes components corresponding to the settings in the system settings, such as buttons, selection boxes, sliders, etc. These components are used to set system information or attributes.
[0074] Optionally, step S102 further includes:
[0075] In response to receiving a first event message indicating that system settings have been triggered, the settings items in the system settings are retrieved;
[0076] Generate and display a settings page based on the settings; or...
[0077] In response to receiving the first event information indicating that system settings have been triggered, the pre-generated settings page is retrieved and displayed.
[0078] In the above optional embodiments, the settings page is displayed in two ways. The first method is to dynamically obtain the settings items from the system settings, and then generate and display the settings page based on these settings items in the current test terminal device's system settings. This allows the management program to dynamically adapt to test terminal devices on different systems. By obtaining the system settings items provided by the system through the interface provided by the test terminal device's system, and then generating the settings page, the settings page displayed after installing the management program on test terminal devices on different systems may differ, eliminating the need for developers to develop management programs multiple times for different systems. The second method is to pre-generate the settings page. In this case, different settings pages can be pre-generated for different systems, or fixed settings items can be pre-set to pre-generate the settings page. Upon receiving the first event information, the pre-generated preset page can be obtained and displayed. This method displays the settings page faster and allows for the pre-setting of settings items to be displayed, thus blocking some settings items that users are not allowed to interact with.
[0079] Return to Appendix Figure 1 The setting management method for the test terminal device further includes step S103, in response to receiving second event information indicating that the component has been triggered, determining the type of the setting item corresponding to the component.
[0080] After the settings page is displayed, the user can select a component on the settings page to operate, such as clicking a button, clicking a selection box, sliding a slider, etc. When this component is triggered, the system sends a second event message. When the monitoring subroutine receives the second event message, it first determines the type of the setting item corresponding to the triggered component. The type of setting item includes sensitive settings items and non-sensitive settings items. Sensitive settings items are those that change the information or attributes of the test terminal device, such as the wireless LAN settings, cellular network settings, privacy settings, etc., used by the test terminal device. These settings items will affect the operation of other users and therefore cannot be modified arbitrarily. Non-sensitive settings items are those that do not affect the information or attributes of the test terminal device, such as the volume and screen brightness settings of the test terminal device. These settings will not affect the subsequent operation of other users, so users can operate these settings items as needed.
[0081] Optionally, determining the type of the setting item corresponding to the component includes:
[0082] Step S201: Parse the second event information to obtain the packet name of the second event information;
[0083] Step S202: Determine the type of the setting item corresponding to the component based on the package name.
[0084] In this optional embodiment, the second event information includes an information packet, which includes a packet name. The packet name is related to the name of the setting item corresponding to the component. For example, the packet name includes the name of the setting item. Thus, by parsing the packet name of the second event information, the name of the setting item can be obtained, and the type of the setting item can be determined from the name of the setting item. The type of the setting item is either a pre-defined sensitive setting item or a non-sensitive setting item. For example, a set of sensitive setting item names can be pre-defined. If, in this step, the parsed packet names match a name in the set of sensitive setting item names, then the type of the setting item corresponding to the component is a sensitive setting item; if, in the parsed packet names, no name matches a name in the set of sensitive setting item names, then the type of the setting item corresponding to the component is a non-sensitive setting item.
[0085] Return to Appendix Figure 1 The setting management method for the test terminal device further includes step S104, where, when the setting item is a sensitive setting item, an authentication page is displayed.
[0086] Because sensitive settings cannot be modified arbitrarily, the management program generates and displays an authentication page. For example, the authentication page includes a password input field for entering a password to determine if the user has permission to operate on the settings of the first type.
[0087] Optionally, the method further includes: when the type of the setting item is a sensitive setting item, sending an authentication information generation instruction to the server; the authentication information generation instruction causes the server to generate the authentication information based on the information of the test terminal device and the generation time of the instruction.
[0088] When the type of the setting item is determined to be a sensitive setting item, the management program simultaneously sends an authentication information generation instruction to the server. The server generates authentication information based on the authentication information generation instruction. The authentication information generation instruction includes information about the test terminal device, such as the ID of the test terminal device, and the generation time of the authentication information generation instruction. The generation time represents the system time of the test terminal device when the authentication information generation instruction is generated. The server generates authentication information using the ID of the test terminal device and the generation time. Since the IDs of the test terminal devices are different, it can be ensured that the authentication information generated for different test terminal devices is different. Since the generation times are not exactly the same, it can be ensured that the authentication information generated for the same test terminal device at different times is different. Thus, a one-time authentication information can be generated, which is only for the setting item corresponding to the second event information mentioned above. The authentication information is managed by the server administrator. Users apply to the server administrator to use the authentication information. If the server administrator believes that the user has the right to use the corresponding setting item, the authentication information is sent to the user.
[0089] Return to Appendix Figure 1 The setting management method for the test terminal device further includes step S105, which involves displaying a page for the setting items corresponding to the component in response to receiving correct authentication information on the authentication page.
[0090] When authentication information is received on the authentication page, it is determined whether the received authentication information is the same as the authentication information generated by the server. If they are the same, the authentication information is correct; otherwise, the authentication information is incorrect.
[0091] The step of determining whether the received authentication information is the same as the authentication information generated by the server may include: sending the received authentication information to the server and having the server determine whether the received authentication information is the same as the authentication information generated by the server; or receiving the authentication information sent by the server and determining whether the authentication information received from the authentication page is the same as the authentication information received from the server.
[0092] If they are the same, the page for the settings items corresponding to the component will be displayed, and the user can further configure the system of the test terminal device on the settings page.
[0093] If they are different, a rejection page is displayed, showing rejection information or the reason for rejection, to inform the user that they cannot operate the setting.
[0094] Return to Appendix Figure 1The setting management method of the test terminal device further includes step S106, where when the type of the setting item is the second type, the page of the setting item corresponding to the component is displayed; wherein the page of the setting item is generated by the system of the test terminal device.
[0095] If it is determined in step S103 that the type of the setting item is a non-sensitive setting item, then the page for the setting item corresponding to the component is displayed. That is, if the setting item is a non-sensitive setting item, the corresponding setting item page is directly displayed to receive subsequent user operations. In steps S105 and S106, the setting item page is generated by the system of the test terminal device, that is, by the system setting program of the test terminal device. In other words, after determining the setting item that the user wants to operate on, and the user has permission to operate on the setting item, the corresponding setting item page can continue to be provided by the system setting program of the test terminal device itself.
[0096] Optionally, the page displaying the settings items corresponding to the component includes:
[0097] The settings corresponding to the component are determined based on the package name;
[0098] The user will be redirected to the settings page in the system settings of the test terminal device.
[0099] That is, the setting item can be determined based on the package name parsed in step S201, and then the user is redirected to the setting item page provided by the system setting program, so that the user can operate the setting item.
[0100] Optionally, the test terminal device is a rack device, and the management program is a rack program installed on the rack device. The rack program is used to receive instructions sent by a remote user to simulate the user's operation on the rack device.
[0101] In steps S101 to S106 above, the management program monitors the event information issued by the system in the test terminal device. The event information describes the changes that have occurred in the test terminal device. By first limiting the operation of system settings to the management program, authenticating users through the management program, and then opening the corresponding settings to the authenticated users, the problem of not being able to allow users to modify the device settings to a limited extent is solved.
[0102] Figure 3 This is a schematic diagram illustrating an application scenario of an embodiment of this disclosure. For example... Figure 3As shown, this application scenario is a cloud-based real device testing platform. Device 301 represents a cloud-based real device, i.e., a rack device. Rack device 301 includes multiple mobile terminals under test. Each mobile terminal has a pre-installed rack program to receive commands from users of the rack device, simulating swiping, clicking, or other operations. Device 302 is the local management device for the rack, and device 303 is the remote user device for the rack. Users send commands to device 302 through device 303, such as selecting one of the rack devices 301 and opening system settings. Device 302 parses the command and sends it to the corresponding rack device 301. The rack program in rack device 301 receives the command from device 302 and simulates the user's swiping and clicking to operate the rack device 301. Rack device 301 includes an operating system, such as Android. The rack program monitors user actions on rack device 301. When it detects that the user clicked on system settings, the rack program generates a settings page to replace the system settings page, thus restricting user actions to the rack program. Later, when the user selects a button for a sensitive setting on the settings page, the rack program generates a password page, prompting the user to enter a password. At this point, the user obtains the password through other means, such as contacting the rack device administrator or automatically obtaining the password through the rack device's management platform. After the user enters the password, the rack program redirects to the corresponding settings page, allowing the user to operate on the settings provided by the system settings.
[0103] This disclosure provides a method, apparatus, electronic device, and computer-readable storage medium for managing the settings of a test terminal device. The method includes: triggering the test terminal device's system to issue an event message; in response to receiving a first event message indicating that system settings have been triggered, redirecting to a settings page; in response to receiving a second event message indicating that a component has been triggered, determining the type of the setting item corresponding to the component; if the setting item is a sensitive setting item, displaying an authentication page; in response to receiving correct authentication information on the authentication page, displaying a page for the setting item corresponding to the component; and if the setting item is a non-sensitive setting item, displaying a page for the setting item corresponding to the component. This method solves the problem of how to limit user modification of device settings by restricting system settings operations to a management program.
[0104] Although the steps in the above method embodiments have been described in the above order, those skilled in the art should understand that the steps in the embodiments of this disclosure are not necessarily executed in the above order. They can also be executed in reverse, in parallel, or in other orders. Moreover, those skilled in the art can add other steps based on the above steps. These obvious variations or equivalent substitutions should also be included within the protection scope of this disclosure, and will not be elaborated here.
[0105] Figure 4 This is a schematic diagram of the structure of an embodiment of the setting management device for a test terminal device provided in this disclosure. Figure 4 As shown, the device 400 includes: an event information receiving module 401, a settings page redirection module 402, a type determination module 403, an authentication page display module 404, and a settings item page display module 405. Among them,
[0106] Event information receiving module 401 is used to receive setting instructions from remote terminal devices to trigger the system of the test terminal device to issue event information;
[0107] The settings page redirection module 402 is used to redirect to the settings page in response to receiving a first event information that the system settings are triggered; wherein the settings page includes components corresponding to the settings items in the system settings;
[0108] The type determination module 403 is used to determine the type of the setting item corresponding to the component in response to receiving the second event information that the component is triggered;
[0109] The authentication page display module 404 is used to display the authentication page when the type of the setting item is a sensitive setting item;
[0110] The settings page display module 405 is used to display the settings page corresponding to the component in response to receiving correct authentication information in the authentication page; when the type of the setting is a non-sensitive setting, the settings page corresponding to the component is displayed; wherein the settings page is generated by the system of the terminal device.
[0111] Furthermore, the event information receiving module 401 is also used to: receive setting instructions from a remote terminal device; the management program installed in the test terminal uses a listening subroutine to listen for event information issued by the system of the terminal device; wherein the listening subroutine uses the services provided by the system to receive event information issued by the system indicating changes in the user page state.
[0112] Furthermore, the settings page redirection module 402 is also used for:
[0113] In response to receiving a first event information indicating that system settings have been triggered, the settings items in the system settings are retrieved;
[0114] Generate and display a settings page based on the settings; or...
[0115] In response to receiving the first event information that the system settings have been triggered, retrieve and display the pre-generated settings page.
[0116] Furthermore, the type determination module 403 is also used for:
[0117] Parse the second event information to obtain the packet name of the second event information;
[0118] The type of the setting item corresponding to the component is determined based on the package name.
[0119] Furthermore, the setting management device 400 of the test terminal equipment also includes:
[0120] The instruction sending module is used to send an authentication information generation instruction to the server when the type of the setting item is a sensitive setting item; the authentication information generation instruction causes the server to generate the authentication information based on the information of the test terminal device and the generation time of the instruction.
[0121] Furthermore, the settings page display module 405 is also used to: determine the settings corresponding to the component based on the package name; and jump to the settings page in the system settings of the test terminal device.
[0122] Furthermore, the test terminal device is a rack device, and the management program is a rack program installed on the rack device. The rack program is used to receive instructions sent by a remote user to simulate the user's operation on the rack device.
[0123] Figure 4 The device shown can perform Figure 1 and Figure 2 For the methods shown in the embodiments, the parts not described in detail in this embodiment can be referred to the following: Figure 1 and Figure 2 The relevant descriptions of the illustrated embodiments are provided below. For the execution process and technical effects of this technical solution, please refer to [link / reference]. Figure 1 and Figure 2 The descriptions in the illustrated embodiments will not be repeated here.
[0124] The following is for reference. Figure 5The diagram illustrates a structural schematic of an electronic device (e.g., a terminal device or a server) 500 suitable for implementing embodiments of the present disclosure. The terminal device in the embodiments of the present disclosure may include, but is not limited to, mobile terminals such as mobile phones, laptops, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), in-vehicle terminals (e.g., in-vehicle navigation terminals), and fixed terminals such as digital TVs and desktop computers. Figure 5 The electronic device shown is merely an example and should not be construed as limiting the functionality and scope of the embodiments disclosed herein.
[0125] like Figure 5 As shown, the electronic device 500 may include a processing unit (e.g., a central processing unit, a graphics processor, etc.) 501, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 502 or a program loaded from a storage device 508 into a random access memory (RAM) 503. The RAM 503 also stores various programs and data required for the operation of the electronic device 500. The processing unit 501, ROM 502, and RAM 503 are interconnected via a bus 504. An input / output (I / O) interface 505 is also connected to the bus 504.
[0126] Typically, the following devices can be connected to I / O interface 505: input devices 506 including, for example, touchscreens, touchpads, keyboards, mice, cameras, microphones, accelerometers, gyroscopes, etc.; output devices 507 including, for example, liquid crystal displays (LCDs), speakers, vibrators, etc.; storage devices 508 including, for example, magnetic tapes, hard disks, etc.; and communication devices 509. Communication device 509 allows electronic device 500 to communicate wirelessly or wiredly with other devices to exchange data. Although Figure 5 An electronic device 500 with various devices is shown; however, it should be understood that it is not required to implement or possess all of the devices shown. More or fewer devices may be implemented or possessed alternatively.
[0127] In particular, according to embodiments of this disclosure, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments of this disclosure include a computer program product comprising a computer program carried on a non-transitory computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via a communication device 509, or installed from a storage device 508, or installed from a ROM 502. When the computer program is executed by the processing device 501, it performs the functions defined in the methods of embodiments of this disclosure.
[0128] It should be noted that the computer-readable medium described in this disclosure can be a computer-readable signal medium or a computer-readable storage medium, or any combination thereof. A computer-readable storage medium can be, for example,—but not limited to—an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of a computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In this disclosure, a computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in connection with an instruction execution system, apparatus, or device. In this disclosure, a computer-readable signal medium can include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code. Such propagated data signals can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A computer-readable signal medium can be any computer-readable medium other than a computer-readable storage medium, which can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium can be transmitted using any suitable medium, including but not limited to: wires, optical fibers, RF (radio frequency), etc., or any suitable combination thereof.
[0129] In some implementations, clients and servers can communicate using any currently known or future-developed network protocol such as HTTP (Hypertext Transfer Protocol) and can interconnect with digital data communication (e.g., communication networks) of any form or medium. Examples of communication networks include local area networks (“LANs”), wide area networks (“WANs”), the Internet (e.g., the Internet of Things), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future-developed networks.
[0130] The aforementioned computer-readable medium may be included in the aforementioned electronic device; or it may exist independently and not assembled into the electronic device.
[0131] The aforementioned computer-readable medium carries one or more programs, which, when executed by the electronic device, cause the electronic device to: perform the setting and management method for the test terminal device described in any of the above embodiments.
[0132] Computer program code for performing the operations of this disclosure can be written in one or more programming languages or a combination thereof, including but not limited to object-oriented programming languages such as Java, Smalltalk, and C++, as well as conventional procedural programming languages such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network—including a local area network (LAN) or a wide area network (WAN)—or can be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0133] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this disclosure. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.
[0134] The units described in the embodiments of this disclosure can be implemented in software or hardware. The names of the units are not, in some cases, intended to limit the specific unit.
[0135] The functions described above in this document can be performed, at least in part, by one or more hardware logic components. For example, exemplary types of hardware logic components that can be used, without limitation, include: Field Programmable Gate Arrays (FPGAs), Application-Specific Integrated Circuits (ASICs), Application Standard Products (ASSPs), System-on-Chip (SoCs), Complex Programmable Logic Devices (CPLDs), and so on.
[0136] In the context of this disclosure, a machine-readable medium can be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, apparatus, or device. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can be, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.
[0137] According to one or more embodiments of this disclosure, an electronic device is provided, comprising: at least one processor; and,
[0138] A memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to execute the setting management method of any of the aforementioned test terminal devices.
[0139] According to one or more embodiments of the present disclosure, a non-transitory computer-readable storage medium is provided, characterized in that the non-transitory computer-readable storage medium stores computer instructions for causing a computer to execute the setup management method of any of the aforementioned test terminal devices.
[0140] The above description is merely a preferred embodiment of this disclosure and an explanation of the technical principles employed. Those skilled in the art should understand that the scope of this disclosure is not limited to technical solutions formed by specific combinations of the above-described technical features, but should also cover other technical solutions formed by arbitrary combinations of the above-described technical features or their equivalents without departing from the above-described concept. For example, technical solutions formed by substituting the above features with (but not limited to) technical features disclosed in this disclosure that have similar functions.
Claims
1. A method for setting and managing test terminal devices, running on a cloud testing platform, wherein the cloud testing platform includes at least one test terminal device, characterized in that, The test terminal device is equipped with a management program, and the setting and management method of the test terminal device includes: Receive setting instructions from a remote terminal device to trigger the system of the test terminal device to issue event information; In response to receiving a first event message indicating that system settings have been triggered, the system is redirected to the settings page of the management program; wherein the settings page includes components corresponding to the settings items in the system settings; In response to receiving second event information indicating that the component has been triggered, the second event information is parsed to obtain the package name of the second event information, and the type of the setting item corresponding to the component is determined based on the package name; When the type of the setting item is a sensitive setting item, the authentication page of the management program is displayed; In response to receiving correct authentication information on the authentication page, the settings corresponding to the component are determined according to the package name, and the system settings page of the test terminal device is redirected to display the settings page corresponding to the component. When the type of the setting item is a non-sensitive setting item, the setting item corresponding to the component is determined according to the package name, and the system settings page of the setting item in the test terminal device is redirected to display the setting item page corresponding to the component; wherein, the setting item page is generated by the system of the terminal device.
2. The method as described in claim 1, characterized in that, The process of receiving setting instructions from a remote terminal device to trigger the system of the test terminal device to issue event information includes: Receive configuration instructions from remote terminal devices; The management program installed on the test terminal uses a listening subroutine to listen for event information issued by the terminal device's system; wherein the listening subroutine uses the services provided by the system to receive event information issued by the system indicating changes in the user's page state.
3. The method as described in claim 1, characterized in that, The response to receiving the first event information that the system settings have been triggered, and redirecting to the settings page, includes: In response to receiving a first event information indicating that system settings have been triggered, the settings items in the system settings are retrieved; Generate and display a settings page based on the settings; or... In response to receiving the first event information that the system settings have been triggered, retrieve and display the pre-generated settings page.
4. The method as described in claim 1, characterized in that, The method further includes: When the type of the setting item is a sensitive setting item, an authentication information generation instruction is sent to the server; the authentication information generation instruction causes the server to generate the authentication information based on the information of the test terminal device and the generation time of the instruction.
5. The method as described in claim 2, characterized in that: The test terminal device is a rack device, and the management program is a rack program installed on the rack device. The rack program is used to receive instructions sent by a remote client to simulate user operations on the rack device.
6. A method and apparatus for setting and managing test terminal devices, operating on a cloud testing platform, wherein the cloud testing platform includes at least one test terminal device, characterized in that, The test terminal device is equipped with a management program, and the setting management device of the test terminal device includes: The event information receiving module is used to receive setting instructions from the remote terminal device to trigger the system of the test terminal device to issue event information; The settings page redirection module is used to respond to the first event information of the system settings being triggered and redirect to the management program settings page; wherein, the settings page includes components corresponding to the settings items in the system settings; The type determination module is used to respond to receiving second event information that the component is triggered, parse the second event information to obtain the package name of the second event information, and determine the type of the setting item corresponding to the component based on the package name; The authentication page display module is used to display the management program authentication page when the type of the setting item is a sensitive setting item; The settings page display module is used to respond to receiving correct authentication information on the authentication page, determine the settings corresponding to the component based on the package name, and jump to the settings page in the system settings of the test terminal device to display the settings page corresponding to the component. When the type of the setting is a non-sensitive setting item, the setting item corresponding to the component is determined according to the package name, and the system settings page of the setting item in the test terminal device is redirected to display the setting item page corresponding to the component; wherein, the setting item page is generated by the system of the terminal device.
7. An electronic device, comprising: Memory, used to store computer-readable instructions; as well as A processor for executing the computer-readable instructions such that the processor, when running, implements the method according to any one of claims 1-5.
8. A non-transitory computer-readable storage medium for storing computer-readable instructions that, when executed by a computer, cause the computer to perform the method of any one of claims 1-5.
Citation Information
Patent Citations
authentication method for entering an Android setting interface
CN109829291A
Privacy protection method and electronic equipment
CN111125770A