CN115297110A - Control method, device and equipment of terminal equipment and storage medium - Google Patents

Control method, device and equipment of terminal equipment and storage medium Download PDF

Info

Publication number
CN115297110A
CN115297110A CN202110407946.XA CN202110407946A CN115297110A CN 115297110 A CN115297110 A CN 115297110A CN 202110407946 A CN202110407946 A CN 202110407946A CN 115297110 A CN115297110 A CN 115297110A
Authority
CN
China
Prior art keywords
target terminal
terminal device
cloud platform
request message
control
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110407946.XA
Other languages
Chinese (zh)
Inventor
金伟光
李秋林
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Jingdong Technology Holding Co Ltd
Original Assignee
Jingdong Technology Holding Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Jingdong Technology Holding Co Ltd filed Critical Jingdong Technology Holding Co Ltd
Priority to CN202110407946.XA priority Critical patent/CN115297110A/en
Publication of CN115297110A publication Critical patent/CN115297110A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/10Network architectures or network communication protocols for network security for controlling access to devices or network resources

Abstract

The application provides a control method, a control device, equipment and a storage medium of terminal equipment, wherein the method comprises the following steps: the control device determines preset operation to be executed on the application program, and sends an operation request message to the cloud platform according to the preset operation, the cloud platform controls each target terminal device to execute the preset operation according to the operation request message, and obtains an operation result of each target terminal device executing the preset operation, the cloud platform sends the operation result to the control device, and then the control device determines a test result of the application program according to the preset operation and the operation result. The testing efficiency of the application program is improved through the process, and the flexibility of the application program testing is improved.

Description

Control method, device and equipment of terminal equipment and storage medium
Technical Field
The present application relates to the field of control technologies, and in particular, to a method, an apparatus, a device, and a storage medium for controlling a terminal device.
Background
The terminal device can install application programs, and some application programs need to utilize hardware resource information of the terminal device. Before the application programs are on-line, the application programs need to be tested for terminal equipment with different models and different system versions.
In the actual testing process, terminal devices of various models and system versions need to be collected, and testers operate application programs in the terminal devices to obtain testing results of the application programs.
However, the inventor of the present application finds that the above test method is inefficient in implementing the present application.
Disclosure of Invention
The application provides a control method, a control device and a control storage medium of a terminal device, which are used for improving the testing efficiency of an application program.
In a first aspect, the present application provides a method for controlling a terminal device, where the method is applied to a cloud platform, and multiple terminal devices are connected to the cloud platform, and the method includes:
receiving an operation request message sent by a control device, wherein the operation request message indicates at least one target terminal device in the plurality of terminal devices to execute preset operation on an application program;
controlling each target terminal device to execute the preset operation according to the operation request message, and acquiring an operation result of each target terminal device executing the preset operation;
and sending the operation result to the control equipment, wherein the preset operation and the operation result are used for determining the test result of the application program.
In a possible implementation manner, a plurality of proxy services are run in the cloud platform, and each proxy service is used for controlling at least part of the terminal device;
controlling each target terminal device to execute the preset operation according to the operation request message, and obtaining an operation result of each target terminal device executing the preset operation, including:
determining a target proxy service for controlling the target terminal device from the plurality of proxy services for any target terminal device in the at least one target terminal device;
and controlling the target terminal equipment to execute the preset operation through the target proxy service, and acquiring an operation result of the target terminal equipment executing the preset operation.
In a possible implementation manner, the operation request message includes retry indication information, where the retry indication information is used to indicate a retry number of the preset operation; controlling the target terminal device to execute the preset operation through the target proxy service, and acquiring an operation result of the target terminal device executing the preset operation, including:
performing a control step, the control step comprising: controlling the target terminal equipment to execute the preset operation through the target proxy service, and acquiring an operation result of the target terminal equipment executing the preset operation;
if the operation result is failure, the control step is repeatedly executed until the operation result is success, or the operation result is determined to be failure when the execution times of the control step is more than or equal to the retry times.
In a possible implementation manner, before receiving the operation request message sent by the control device, the method further includes:
receiving an occupation request message sent by the control device, wherein the occupation request message is used for requesting to occupy the at least one target terminal device;
determining the occupation result of the control equipment to each target terminal equipment according to the current state of each target terminal equipment;
and sending the occupation result to the control equipment.
In one possible implementation, the occupation request message includes: authorization information of the control device; determining, according to the current state of each of the target terminal devices, an occupation result of the control device on each of the target terminal devices, including:
determining whether the control equipment has the authority of occupying the terminal equipment or not according to the authorization information;
and if the control equipment has the right of occupying the terminal equipment, determining the occupation result of the control equipment to each target terminal equipment according to the current state of each target terminal equipment.
In a possible implementation manner, determining, for any target terminal device in the at least one target terminal device, an occupation result of the control device on the target terminal device according to a current state of the target terminal device includes:
if the current state of the target terminal equipment is not available, determining that the occupation result of the control equipment on the target terminal equipment is failure; alternatively, the first and second electrodes may be,
and if the current state of the target terminal equipment is occupiable, determining that the occupation result of the control equipment on the target terminal equipment is successful.
In a possible implementation, the method further includes:
and if the control equipment does not have the authority of occupying the terminal equipment, determining that the occupation result of the control equipment on the at least one target terminal equipment is failure.
In a possible implementation manner, after sending the operation result to the control device, the method further includes:
receiving a release request message sent by the control device, wherein the release request message is used for requesting to release the at least one target terminal device;
and updating the current state of the at least one target terminal device to be available.
In a second aspect, the present application provides a control method for a terminal device, which is applied to a control device, and the method includes:
determining a preset operation to be executed on the application program;
sending an operation request message to a cloud platform according to the preset operation; the cloud platform is accessed with a plurality of terminal devices, and the operation request message is used for instructing the cloud platform to control at least one target terminal device in the plurality of terminal devices to execute the preset operation on the application program, and acquiring an operation result of each target terminal device executing the preset operation;
receiving the operation result sent by the cloud platform;
and determining a test result of the application program according to the preset operation and the operation result.
In a possible implementation manner, the operation request message includes retry indication information, where the retry indication information is used to indicate a retry number of the preset operation, and the operation result is obtained by the cloud platform controlling the target terminal device to repeatedly execute the preset operation N times, where N is a natural number less than or equal to the retry number.
In a possible implementation manner, before sending the operation request message to the cloud platform, the method further includes:
determining the at least one target terminal device for testing the application;
sending an occupation request message to the cloud platform, wherein the occupation request message is used for requesting to occupy the at least one target terminal device;
and receiving the occupation result of the control equipment to each target terminal equipment, which is sent by the cloud platform.
In one possible implementation, the occupation request message includes: authorization information of the control device, where the authorization information is used for enabling the cloud platform to determine whether the control device has a right to occupy a terminal device.
In a possible implementation manner, after receiving the operation result sent by the cloud platform, the method further includes:
and sending a release request message to the cloud platform, wherein the release request message is used for requesting to release the at least one target terminal device.
In a third aspect, the present application provides a control apparatus for a terminal device, which is applied to a cloud platform, where a plurality of terminal devices are accessed in the cloud platform, and the apparatus includes:
a receiving module, configured to receive an operation request message sent by a control device, where the operation request message indicates at least one target terminal device in the plurality of terminal devices to perform a preset operation on an application;
the processing module is used for controlling each target terminal device to execute the preset operation according to the operation request message and acquiring an operation result of each target terminal device executing the preset operation;
and the sending module is used for sending the operation result to the control equipment, and the preset operation and the operation result are used for determining the test result of the application program.
In a possible implementation manner, a plurality of proxy services are run in the cloud platform, and each proxy service is used for controlling at least part of the terminal device; the processing module is specifically configured to:
determining a target proxy service for controlling the target terminal device from the plurality of proxy services for any target terminal device in the at least one target terminal device;
and controlling the target terminal equipment to execute the preset operation through the target proxy service, and acquiring an operation result of the target terminal equipment executing the preset operation.
In a possible implementation manner, the operation request message includes retry indication information, where the retry indication information is used to indicate a retry number of the preset operation; the processing module is specifically configured to:
performing a control step, the control step comprising: controlling the target terminal equipment to execute the preset operation through the target proxy service, and acquiring an operation result of the target terminal equipment executing the preset operation;
if the operation result is failure, the control step is repeatedly executed until the operation result is success, or the operation result is determined to be failure when the execution times of the control step is more than or equal to the retry times.
In a possible implementation manner, the receiving module is further configured to: receiving an occupation request message sent by the control device, wherein the occupation request message is used for requesting to occupy the at least one target terminal device; the processing module is further configured to:
determining the occupation result of the control equipment to each target terminal equipment according to the current state of each target terminal equipment;
the sending module is further configured to: and sending the occupation result to the control equipment.
In one possible implementation, the occupation request message includes: authorization information of the control device; the processing module is specifically configured to:
determining whether the control equipment has the authority of occupying the terminal equipment or not according to the authorization information;
and if the control equipment has the right of occupying the terminal equipment, determining the occupation result of the control equipment to each target terminal equipment according to the current state of each target terminal equipment.
In a possible implementation manner, for any target terminal device in the at least one target terminal device, the processing module is specifically configured to:
if the current state of the target terminal equipment is not available, determining that the occupation result of the control equipment on the target terminal equipment is failure; alternatively, the first and second electrodes may be,
and if the current state of the target terminal equipment is occupiable, determining that the occupation result of the control equipment on the target terminal equipment is successful.
In a possible implementation manner, the processing module is further configured to:
and if the control equipment does not have the authority of occupying the terminal equipment, determining that the occupation result of the control equipment on the at least one target terminal equipment is failure.
In a possible implementation manner, the receiving module is further configured to: receiving a release request message sent by the control device, wherein the release request message is used for requesting to release the at least one target terminal device;
the processing module is further configured to: and updating the current state of the at least one target terminal device to be occupiable.
In a fourth aspect, the present application provides a control apparatus for a terminal device, which is applied to a control device, and the apparatus includes:
the processing module is used for determining preset operation to be executed on the application program;
the sending module is used for sending an operation request message to the cloud platform according to the preset operation; the cloud platform is accessed with a plurality of terminal devices, and the operation request message is used for instructing the cloud platform to control at least one target terminal device in the plurality of terminal devices to execute the preset operation on the application program, and acquiring an operation result of each target terminal device executing the preset operation;
the receiving module is used for receiving the operation result sent by the cloud platform;
the processing module is further configured to determine a test result of the application program according to the preset operation and the operation result.
In a possible implementation manner, the operation request message includes retry indication information, where the retry indication information is used to indicate a retry number of the preset operation, and the operation result is obtained by the cloud platform controlling the target terminal device to repeatedly execute the preset operation N times, where N is a natural number less than or equal to the retry number.
In a possible implementation manner, the processing module is further configured to: determining the at least one target terminal device for testing the application;
the sending module is further configured to: sending an occupation request message to the cloud platform, wherein the occupation request message is used for requesting to occupy the at least one target terminal device;
the receiving module is further configured to: and receiving the occupation result of the control equipment to each target terminal equipment, which is sent by the cloud platform.
In one possible implementation, the occupation request message includes: authorization information of the control device, where the authorization information is used for enabling the cloud platform to determine whether the control device has a right to occupy a terminal device.
In a possible implementation manner, the sending module is further configured to: and sending a release request message to the cloud platform, wherein the release request message is used for requesting to release the at least one target terminal device.
In a fifth aspect, the present application provides an electronic device, comprising: a memory for storing a computer program and a processor for executing the computer program to implement the method according to any of the first aspect or to implement the method according to any of the second aspect.
In a sixth aspect, the present application provides a computer-readable storage medium comprising: a computer program implementing the method according to any one of the first aspect or the second aspect when executed by a processor.
In a seventh aspect, the present application provides a computer program product comprising: a computer program implementing the method according to any one of the first aspect or the second aspect when executed by a processor.
The application provides a control method, a control device, equipment and a storage medium of terminal equipment, wherein the method comprises the following steps: the control device determines preset operation to be executed on the application program, and sends an operation request message to the cloud platform according to the preset operation, the cloud platform controls each target terminal device to execute the preset operation according to the operation request message, and obtains an operation result of each target terminal device executing the preset operation, the cloud platform sends the operation result to the control device, and then the control device determines a test result of the application program according to the preset operation and the operation result. In the process, the control function of the cloud platform on the control equipment is utilized, the cloud platform is used for controlling the terminal equipment to perform preset operation, the application program is tested, and the testing efficiency of the application program is improved. Furthermore, through the interaction process of the control equipment and the cloud platform, the control equipment can operate the terminal equipment autonomously and flexibly according to the test requirement, the management capability of the terminal equipment is opened to the control equipment by the cloud platform, even if the application program is a third party, the application program can be tested by using the terminal equipment in the cloud platform conveniently through the process, and the flexibility of application program testing is improved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without inventive exercise.
Fig. 1 is a schematic diagram of a possible application scenario provided in an embodiment of the present application;
fig. 2 is a schematic flowchart of a control method for a terminal device according to an embodiment of the present disclosure;
fig. 3 is a schematic diagram of a control manner for a terminal device according to an embodiment of the present application;
fig. 4 is a schematic flowchart of another control method for a terminal device according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of a control apparatus of a terminal device according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of another control apparatus of a terminal device according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be described clearly and completely with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only some embodiments of the present application, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terms "first," "second," "third," "fourth," and the like in the description and in the claims of the present application and in the above-described drawings (if any) are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
As mentioned above, some applications need to utilize hardware resource information of the terminal device when running. Before the application programs are on-line, the application programs need to be tested for terminal equipment with different models and different system versions.
In the actual testing process, terminal devices of various models and system versions need to be collected, and testers operate application programs in the terminal devices to obtain testing results of the application programs. However, the inventor of the present application finds that the above test method is inefficient in implementing the present application.
In some possible implementation manners, terminal devices of various models and system versions can be connected to the cloud platform. The cloud platform can control the terminal device by communicating with the terminal device, for example, the terminal device can be controlled to execute preset operation.
Therefore, when a certain application program needs to be tested, the control function of the cloud platform on the terminal equipment can be utilized, and the application program can be tested through the cloud platform. Specifically, according to the test logic of the application program, test codes are added in the cloud platform. And when the cloud platform executes the test code, the control terminal equipment executes preset operation and acquires an operation result. And then, the cloud platform determines a test result of the application program according to the operation result. Therefore, the testing efficiency is improved to a certain degree.
However, the inventors have found that the above-described means has at least the following problems: for the third-party application program, if the test code of the third-party application program is added to the cloud platform, the cloud platform can be coupled with more test functions, and the maintainability of the cloud platform is reduced. In addition, the testing process of the third-party application program needs to depend on the cloud platform, so that the autonomy and flexibility of the test are reduced.
In order to solve at least one of the above technical problems, an embodiment of the present application provides a method for controlling a terminal device. In order to facilitate understanding of the scheme of the present application, an application scenario of the present application is first described with reference to fig. 1.
Fig. 1 is a schematic diagram of a possible application scenario provided in an embodiment of the present application. As shown in fig. 1, the application scenario includes: terminal device 101, cloud platform 102 and control device 103. The number of the terminal devices 101 may be multiple, and the multiple terminal devices 101 are all connected to the cloud platform 102.
It should be noted that the terminal device 101 may be accessed into the cloud platform 102 in various ways. In some examples, terminal device 101 may be accessible through a wireless network. In other examples, the terminal device 101 may access the cloud platform 102 in a wired manner, for example, may access a Universal Serial Bus (USB). This embodiment is not limited to this.
The terminal devices connected to the cloud platform 102 may be terminal devices of different models and different system versions. Terminal device 101 may include, but is not limited to: the system comprises a mobile phone, a notebook computer, a platform computer, a personal computer, an intelligent sound box, an intelligent wearable device and the like.
The cloud platform 102 may also be referred to as a cloud computing platform. The cloud platform 102 may include one or more servers. The cloud platform 102 may communicate with the terminal device 101 and control the terminal device 101 to perform some operations. The cloud platform 102 may also obtain some information of the terminal device 101, for example, obtain an operation result of the operation.
The control device 103 and the cloud platform 102 are connected via a network. The control device 103 may control the terminal device 101 to perform a specific operation by using the cloud platform 102 through interaction with the cloud platform 102, so as to implement testing of the application program.
The application program may be a third party application program. The control device 103 may be an electronic device for testing third party applications. Illustratively, the control device 103 may have test code running therein. The control device 103 is an electronic device with data processing capabilities including, but not limited to: personal computers, tablet computers, desktop computers, notebook computers, servers, and the like.
According to the technical scheme, the control device can determine preset operation to be executed on the application program according to the test logic, send the operation request message to the cloud platform according to the preset operation, and the cloud platform controls at least one target terminal device to execute the preset operation according to the operation request message and obtains operation results of the preset operation executed by each target terminal device. And the cloud platform sends the operation result to the control equipment. In this way, the control device can determine the test result of the application program according to the preset operation and the operation result.
In the process, through the interaction process of the control equipment and the cloud platform, the control equipment can autonomously and flexibly operate the terminal equipment according to the test requirement, which is equivalent to that the cloud platform opens the management capability of the terminal equipment to the control equipment, and even if the application program is a third party, the application program can be conveniently tested by using the terminal equipment in the cloud platform through the process, so that the test efficiency of the application program is improved, and the test flexibility is improved.
The technical solution of the present application will be described in detail below with specific examples. The following several specific embodiments may be combined with each other, and details of the same or similar concepts or processes may not be repeated in some embodiments.
Fig. 2 is a flowchart illustrating a control method for a terminal device according to an embodiment of the present application. As shown in fig. 2, the method of the present embodiment includes:
s201: the control device determines a preset operation to be performed on the application program.
Wherein, the application program is the application program to be tested. The application program of the present embodiment needs to use hardware information of the terminal device. For example, the application needs to use the operational capabilities of the terminal device, such as: click, slide, install, uninstall, screenshot, etc. For another example, the application needs to obtain hardware resource information of the terminal device, such as a Central Processing Unit (CPU) resource, a memory resource, a device identifier, a network resource, a traffic resource, and the like.
The control device may determine a preset operation to be performed on the application program according to a test requirement or a test logic.
In this embodiment, the preset operation is an operation required to be performed in the process of testing the application program. The preset operation may include one or more of the following: the method comprises the steps of installing the application program, uninstalling the application program, starting the application program, operating an interface of the application program and acquiring interface information of the application program.
The operation performed on the interface of the application program includes but is not limited to: and performing click operation, sliding operation, text input operation and the like on the control in the interface. The operation of acquiring the interface information of the application program includes but is not limited to: and carrying out screenshot operation on the interface and obtaining control information in the interface.
The control information refers to control tree information of the interface, that is, information of the identifiers, types, attributes, and the like of all the controls in the interface. After the control device obtains the information of each control, a developer can write a test code according to the information of each control. For example, a click operation is performed on the control 1, a slide operation is performed on the control 2, a text input operation is performed on the control 3, and the like.
Further, the relevant control in the interface of the application program can be operated in the test code. For example, some controls may be clicked, some other controls may be slid, and some other controls may be text-entered.
S202: and the control equipment sends an operation request message to the cloud platform according to the preset operation, wherein the operation request message is used for indicating at least one target terminal equipment to execute the preset operation on the application program.
Correspondingly, the cloud platform receives an operation request message sent by the control device.
In this embodiment, a plurality of terminal devices are accessed to the cloud platform. The control device may instruct one or more terminal devices (i.e., target terminal devices) therein to perform a preset operation on the application according to the test requirement or the test logic.
S203: and the cloud platform controls each target terminal device to execute the preset operation according to the operation request message, and obtains an operation result of each target terminal device executing the preset operation.
After receiving the operation request message, the cloud platform may control each target terminal device to execute the preset operation according to the operation request message. The cloud platform can also obtain operation results of the preset operations executed by each target terminal device.
The operation result refers to a result of the cloud platform controlling the target terminal device to execute the preset operation. For example, if the preset operation is to click the control 1 in the interface, if the cloud platform control terminal device successfully executes the click of the control 1, the operation result is successful, and if the cloud platform control terminal device fails to execute the click of the control 1, the operation result is failed.
In some possible implementation manners, the cloud platform sends, to each target terminal device, an operation instruction for instructing execution of a preset operation according to the operation request message. And the target terminal equipment executes preset operation according to the received operation instruction. And the target terminal equipment sends the operation result of the preset operation to the cloud platform. Therefore, the cloud platform obtains an operation result of the target terminal device executing the preset operation.
In an application scenario of the embodiment of the application, the number of terminal devices accessing the cloud platform may be large, in order to ensure the control efficiency of the cloud platform on the terminal devices, a plurality of proxy services may be run in the cloud platform, and each proxy service is used for controlling at least part of the terminal devices.
After receiving the operation request message sent by the control device, the cloud platform may determine, for any target terminal device indicated by the control device, a target proxy service for controlling the target terminal device from the plurality of proxy services, then control the target terminal device to execute a preset operation through the target proxy service, and obtain an operation result of the target terminal device executing the preset operation.
Fig. 3 is a schematic diagram of a control method for a terminal device according to an embodiment of the present application. As shown in fig. 3, a plurality of proxy services (4 proxy services are taken as an example in fig. 3) run in the cloud platform. Each proxy service may be responsible for controlling one or more terminal devices. The present embodiment is not limited to the number of terminal devices that are in charge of control for each proxy service.
For example, with reference to fig. 3, it is assumed that 12 terminal devices are connected to the cloud platform, the proxy service 1 is responsible for controlling the terminal devices 1 to 4, the proxy service 2 is responsible for controlling the terminal devices 5 to 6, the proxy service 3 is responsible for controlling the terminal devices 7 to 10, and the proxy service 4 is responsible for controlling the terminal devices 11 to 12.
If the control device instructs to execute the preset operation on the terminal device 2, 8, 12, the terminal device 2 may be controlled to execute the preset operation through the proxy service 1, the terminal device 8 may be controlled to execute the preset operation through the proxy service 3, and the terminal device 12 may be controlled to execute the preset operation through the proxy service 4.
It can be understood that the control efficiency of the cloud platform on the terminal device can be improved by adopting a plurality of proxy services.
Further, in an application scenario of the embodiment of the application, multiple types of terminal devices may be connected to the cloud platform. Different types of terminal devices may have different models or different system versions, etc. The cloud platform may control different types of terminal devices in different manners. In some possible implementations, each proxy service is used to control one type of terminal device, and different proxy services control different types of terminal devices.
In this way, for any target terminal device indicated by the control device, the target proxy service can be determined from the plurality of proxy services according to the type of the target terminal device. And then, controlling the target terminal equipment to execute preset operation through the target proxy service, and acquiring an operation result of the target terminal equipment executing the preset operation.
In the implementation mode, one proxy service controls the terminal devices of the same type, so that the proxy service adopts the same control mode for the terminal devices in charge of the proxy service, and the control efficiency of the cloud platform on the terminal devices can be further improved.
In a possible implementation manner, the operation request message may include retry indication information, where the retry indication information is used to indicate a retry number of a preset operation. In this way, for any target terminal device indicated by the control device, the cloud platform performs the following control steps:
and controlling the target terminal equipment to execute the preset operation through the target proxy service, and acquiring an operation result of the target terminal equipment executing the preset operation.
If the operation result is failure, the control steps are repeatedly executed until the operation result is success.
Or determining that the operation result is failure until the execution number of the control step is greater than or equal to the retry number.
In the implementation mode, the retry indication information is included in the operation request message, so that the cloud platform automatically controls the target terminal device to retry to execute the preset operation under the condition that the operation result of the target terminal device executing the preset operation is failure, the problem of accidental execution failure caused by network factors is avoided, and the accuracy of the test result of the application program is ensured.
S204: and the cloud platform sends the operation result to the control equipment.
Correspondingly, the control equipment receives the operation result sent by the cloud platform.
S205: and the control equipment determines the test result of the application program according to the preset operation and the operation result.
In this embodiment, the preset operation and the operation result of the preset operation may be used to determine the test result of the application program. That is, the control apparatus may determine whether the test of the application program passes according to the preset operation and the operation result of the preset operation.
It should be noted that this embodiment describes a process in which the control device controls the target terminal device to perform a preset operation. In practical applications, the test of the application program usually requires a plurality of operations, and therefore, the above steps S201 to S204 may be executed in a loop for a plurality of times. Thus, in S205, the control device may determine the test result of the application program according to the plurality of operations and the operation results of the plurality of operations.
The method for controlling the terminal device provided by the embodiment comprises the following steps: the control device determines preset operation to be executed on the application program, and sends an operation request message to the cloud platform according to the preset operation, the cloud platform controls each target terminal device to execute the preset operation according to the operation request message, and obtains an operation result of each target terminal device executing the preset operation, the cloud platform sends the operation result to the control device, and then the control device determines a test result of the application program according to the preset operation and the operation result. In the process, the control function of the cloud platform on the control equipment is utilized, the cloud platform is used for controlling the terminal equipment to perform preset operation, the application program is tested, and the testing efficiency of the application program is improved. Furthermore, through the interaction process of the control equipment and the cloud platform, the control equipment can autonomously and flexibly operate the terminal equipment according to the test requirement, which is equivalent to that the cloud platform opens the management capability of the terminal equipment to the control equipment, so that even if the application program is a third party application program, the application program can be conveniently tested by using the terminal equipment in the cloud platform through the process, and the flexibility of the application program test is improved.
On the basis of the above-mentioned embodiments, the following describes the present application in more detail with reference to a more specific embodiment.
Fig. 4 is a flowchart illustrating another control method for a terminal device according to an embodiment of the present application. As shown in fig. 4, the method of this embodiment includes:
s401: the control device determines at least one target terminal device for testing the application.
Specifically, the control device may determine at least one target terminal device for testing the application program from all terminal devices accessing the cloud platform according to the test requirement.
S402: and the control equipment sends an occupation request message to the cloud platform, wherein the occupation request message is used for requesting to occupy the at least one target terminal equipment.
Correspondingly, the cloud platform receives an occupation request message sent by the control device.
Illustratively, the occupation request message may include an identification of the at least one target terminal device. It should be understood that after one control device occupies the target terminal device, the target terminal device cannot be occupied by other control devices, so that the target terminal device is controlled by only one control device, and the accuracy of the test result is ensured.
S403: and the cloud platform determines the occupation result of the control equipment on each target terminal device according to the current state of each target terminal device.
For example, the cloud platform may maintain the current state of each terminal device in a database. The state of a terminal device may include: occupiable and non-occupiable. The occupiable means that the terminal equipment is in a normal running state and can be occupied by the control equipment. The non-occupation specifically includes two cases, one is that the terminal device is occupied, and the other is that the terminal device is out of order.
Specifically, for any target terminal device, if the current state of the target terminal device is not available, for example, the target terminal device is already occupied by other control devices, or the target terminal device fails, it is determined that the result of occupation of the target terminal device by the control device is failure.
And if the current state of the target terminal equipment is occupiable, namely the target terminal equipment is in a normal operation state and is not occupied by other control equipment, determining that the occupation result of the control equipment on the target terminal equipment is successful.
And under the condition that the occupation result of the control equipment on the target terminal equipment is determined to be successful, the cloud platform updates the current state of the target terminal equipment to be occupied and records the occupation relation between the target terminal equipment and the control equipment.
In one possible implementation, the occupation request message may include: authorization information of the control device. The authorization information may also be referred to as authentication information (key). The authorization information is used for enabling the cloud platform to judge whether the control device has the authority for controlling the terminal device.
For example, the control device may apply for the authority of controlling the terminal device from the cloud platform in advance. The cloud platform distributes authorization information for the control equipment and specifies the validity period of the authorization information. When the control equipment sends the occupation request message to the cloud platform, the authorization information is carried in the occupation request message.
Therefore, after receiving the occupation request message, the cloud platform determines whether the control device has the right to occupy the terminal device according to the authorization information carried in the occupation request message. Illustratively, if the authorization information carried in the occupation request message is consistent with the authorization information allocated to the control device by the cloud platform, and the authorization information is within the validity period, it indicates that the control device has the right to occupy the terminal device. If the authorization information carried in the occupation request message is inconsistent with the authorization information allocated to the control device by the cloud platform, or if the authorization information is consistent with the authorization information allocated to the control device by the cloud platform, the authorization information is not in the validity period, which indicates that the control device does not have the authority to occupy the terminal device.
And under the condition that the cloud platform determines that the control equipment has the authority of occupying the terminal equipment, the cloud platform determines the occupation result of the control equipment on each target terminal equipment according to the current state of each target terminal equipment.
And under the condition that the cloud platform determines that the control equipment does not have the authority of occupying the terminal equipment, the cloud platform determines that the occupation result of the control equipment on each target terminal equipment is failure.
S404: and the cloud platform sends the occupation result to the control equipment.
Correspondingly, the control equipment receives the occupation result sent by the cloud platform.
It should be understood that, after the control device receives the occupation result, if the occupation result is a failure, the control device may determine whether to retry according to the actual situation. Optionally, when the occupation result is a failure, the occupation result may also carry a failure reason, so that the control device may perform specific processing according to the failure reason. For example, if the failure reason is that the authorization information is expired, the control device may reapply the authorization information to the cloud platform. If the failure reason is that the target terminal device is already occupied, the control device may try to occupy other terminal devices, or wait for the target terminal device to be released and try to occupy again.
If the occupancy result is successful, the subsequent S405 to S409 are continuously executed.
S405: the control device determines a preset operation to be performed on the application program.
S406: and the control equipment sends an operation request message to the cloud platform according to the preset operation.
Correspondingly, the cloud platform receives an operation request message sent by the control device. The operation request message indicates the at least one target terminal device to execute a preset operation on the application program.
S407: and the cloud platform controls each target terminal device to execute the preset operation according to the operation request message, and obtains an operation result of each target terminal device executing the preset operation.
S408: and the cloud platform sends the operation result to the control equipment.
Correspondingly, the control equipment receives the operation result sent by the cloud platform.
S409: and the control equipment determines the test result of the application program according to the preset operation and the operation result.
It is to be understood that S405 to S408 may be executed circularly multiple times. Specific implementation manners of S405 to S409 can refer to the detailed description of the embodiment shown in fig. 2, and are not described herein again.
S410: and the control equipment sends a release request message to the cloud platform, wherein the release request message is used for requesting to release the at least one target terminal equipment.
Specifically, after the application program is tested, the control device may send a release request message to the cloud platform, and include the identifier of the at least one target terminal device in the release request message to request release of the at least one target terminal device.
Correspondingly, the cloud platform receives a release request message sent by the control device.
S411: and the cloud platform updates the current state of the at least one target terminal device to be occupiable.
Optionally, the method may further include:
s412: and the cloud platform sends the release result to the control equipment.
It can be understood that after the current state of each target terminal device is updated to be occupiable by the cloud platform, the target terminal devices can be occupied by other subsequent control devices.
According to the control method of the terminal device, the control device can autonomously and flexibly operate the terminal device according to the test requirement through the interaction process of the control device and the cloud platform, which is equivalent to that the cloud platform opens the management capability of the terminal device to the control device, so that even if the application program is a third party application program, the terminal device in the cloud platform can be conveniently used for testing the application program through the process, the test efficiency of the application program is improved, and the test flexibility is improved. In addition, in this embodiment, the control device first occupies the target terminal device, and controls the target terminal device when the occupation is successful, thereby avoiding interference caused by controlling one terminal device by a plurality of control devices, and ensuring accuracy of the test result.
Fig. 5 is a schematic structural diagram of a control device of a terminal device according to an embodiment of the present application. The apparatus of this embodiment may be in the form of software and/or hardware, and the apparatus may be deployed in a cloud platform, where a plurality of terminal devices are connected to the cloud platform. As shown in fig. 5, the control device 500 of the terminal device provided in this embodiment includes: a receiving module 501, a processing module 502 and a sending module 503.
The receiving module 501 is configured to receive an operation request message sent by a control device, where the operation request message indicates that at least one target terminal device in the multiple terminal devices performs a preset operation on an application;
a processing module 502, configured to control each target terminal device to execute the preset operation according to the operation request message, and obtain an operation result of each target terminal device executing the preset operation;
a sending module 503, configured to send the operation result to the control device, where the preset operation and the operation result are used to determine a test result of the application program.
In a possible implementation manner, a plurality of proxy services are run in the cloud platform, and each proxy service is used for controlling at least part of the terminal device; the processing module 502 is specifically configured to:
determining a target proxy service for controlling the target terminal device from the plurality of proxy services for any target terminal device in the at least one target terminal device;
and controlling the target terminal equipment to execute the preset operation through the target proxy service, and acquiring an operation result of the target terminal equipment executing the preset operation.
In a possible implementation manner, the operation request message includes retry indication information, where the retry indication information is used to indicate a retry number of the preset operation; the processing module 502 is specifically configured to:
performing a control step, the control step comprising: controlling the target terminal equipment to execute the preset operation through the target proxy service, and acquiring an operation result of the target terminal equipment executing the preset operation;
and if the operation result is failure, repeatedly executing the control step until the operation result is success, or determining that the operation result is failure when the execution times of the control step is greater than or equal to the retry times.
In a possible implementation manner, the receiving module 501 is further configured to: receiving an occupation request message sent by the control device, wherein the occupation request message is used for requesting to occupy the at least one target terminal device;
the processing module 502 is further configured to: determining the occupation result of the control equipment to each target terminal equipment according to the current state of each target terminal equipment;
the sending module 503 is further configured to: and sending the occupation result to the control equipment.
In one possible implementation, the occupation request message includes: authorization information of the control device; the processing module 502 is specifically configured to:
determining whether the control equipment has the authority of occupying the terminal equipment or not according to the authorization information;
and if the control equipment has the right of occupying the terminal equipment, determining the occupation result of the control equipment to each target terminal equipment according to the current state of each target terminal equipment.
In a possible implementation manner, for any target terminal device in the at least one target terminal device, the processing module 502 is specifically configured to:
if the current state of the target terminal equipment is not available, determining that the occupation result of the control equipment on the target terminal equipment is failure; alternatively, the first and second electrodes may be,
and if the current state of the target terminal equipment is occupiable, determining that the occupation result of the control equipment on the target terminal equipment is successful.
In a possible implementation manner, the processing module 502 is further configured to:
and if the control equipment does not have the authority of occupying the terminal equipment, determining that the occupation result of the control equipment on the at least one target terminal equipment is failure.
In a possible implementation manner, the receiving module 501 is further configured to: receiving a release request message sent by the control device, wherein the release request message is used for requesting to release the at least one target terminal device;
the processing module 502 is further configured to: and updating the current state of the at least one target terminal device to be available.
The apparatus of this embodiment may be configured to execute the method for controlling the terminal device executed by the cloud platform in any of the method embodiments, and the implementation principle and the technical effect are similar, which are not described herein again.
Fig. 6 is a schematic structural diagram of another control apparatus of a terminal device according to an embodiment of the present application. The means may be in the form of software and/or hardware, which may be provided in the control device. As shown in fig. 6, the control device 600 of the terminal device provided in this embodiment may include: a sending module 601, a processing module 602 and a receiving module 603.
The processing module 602 is configured to determine a preset operation to be performed on the application program;
a sending module 601, configured to send an operation request message to the cloud platform according to the preset operation; the cloud platform is accessed with a plurality of terminal devices, and the operation request message is used for instructing the cloud platform to control at least one target terminal device in the plurality of terminal devices to execute the preset operation on the application program, and acquiring an operation result of each target terminal device executing the preset operation;
a receiving module 603, configured to receive the operation result sent by the cloud platform;
the processing module 602 is further configured to determine a test result of the application program according to the preset operation and the operation result.
In a possible implementation manner, the operation request message includes retry indication information, where the retry indication information is used to indicate a retry number of the preset operation, and the operation result is obtained by the cloud platform controlling the target terminal device to repeatedly execute the preset operation N times, where N is a natural number less than or equal to the retry number.
In a possible implementation manner, the processing module 602 is further configured to: determining the at least one target terminal device for testing the application;
the sending module 601 is further configured to: sending an occupation request message to the cloud platform, wherein the occupation request message is used for requesting to occupy the at least one target terminal device;
the receiving module 603 is further configured to: and receiving the occupation result of the control equipment to each target terminal equipment, which is sent by the cloud platform.
In one possible implementation, the occupation request message includes: authorization information of the control device, where the authorization information is used for enabling the cloud platform to determine whether the control device has a right to occupy a terminal device.
In a possible implementation manner, the sending module 601 is further configured to: and sending a release request message to the cloud platform, wherein the release request message is used for requesting to release the at least one target terminal device.
The apparatus of this embodiment may be configured to execute the control method of the terminal device executed by the control device in any of the method embodiments, and the implementation principle and the technical effect are similar, which are not described herein again.
Fig. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present application. The electronic device can be deployed in a cloud platform and can also be used as a control device. As shown in fig. 7, the electronic device 700 provided in this embodiment includes: a processor 701 and a memory 702.
A memory 702 for storing a computer program; a processor 701 configured to execute the computer program stored in the memory to implement one or more steps of the control method of the terminal device in the above-described embodiments. For details, reference may be made to the related description in the foregoing method embodiments, and the implementation principle and the technical effect are similar, which are not described herein again.
Alternatively, the memory 702 may be separate or integrated with the processor 701. When the memory 702 is a separate device from the processor 701, the electronic device 700 may further include: a bus 703 for connecting the memory 702 and the processor 701.
Optionally, the electronic device 700 of this embodiment may further include a communication component 704 for communicating with other devices.
An embodiment of the present application further provides a computer-readable storage medium, where the computer-readable storage medium includes a computer program, and the computer program is configured to implement one or more steps in the control method for a terminal device in any of the above method embodiments, and the implementation principle and the technical effect are similar, and are not described herein again.
An embodiment of the present application further provides a chip, including: a memory and a processor, where the memory stores a computer program, and the processor runs the computer program to execute one or more steps in the control method of the terminal device in any of the above method embodiments, where the implementation principle and the technical effect are similar, and are not described herein again.
An embodiment of the present application further provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, the computer program implements one or more steps in the control method of the terminal device in any of the above method embodiments, and the implementation principle and the technical effect are similar, and details are not described here.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described device embodiments are merely illustrative, and for example, the division of the modules is only one logical division, and other divisions may be realized in practice, for example, a plurality of modules may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or modules, and may be in an electrical, mechanical or other form.
The modules described as separate parts may or may not be physically separate, and parts displayed as modules may or may not be physical units, may be located in one position, or may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment.
In addition, functional modules in the embodiments of the present application may be integrated into one processing unit, or each module may exist alone physically, or two or more modules are integrated into one unit. The unit formed by the modules can be realized in a hardware form, and can also be realized in a form of hardware and a software functional unit.
The integrated module implemented in the form of a software functional module may be stored in a computer-readable storage medium. The software functional module is stored in a storage medium and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device) or a processor (processor) to execute some steps of the methods according to the embodiments of the present application.
It should be understood that the Processor may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of a method disclosed in the incorporated application may be directly implemented by a hardware processor, or may be implemented by a combination of hardware and software modules in the processor.
The memory may comprise a high-speed RAM memory, and may further comprise a non-volatile storage NVM, such as at least one disk memory, and may also be a usb disk, a removable hard disk, a read-only memory, a magnetic or optical disk, etc.
The bus may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, an Extended ISA (EISA) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, the buses in the figures of the present application are not limited to only one bus or one type of bus.
The storage medium may be implemented by any type or combination of volatile and non-volatile memory devices, such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks. A storage media may be any available media that can be accessed by a general purpose or special purpose computer.
An exemplary storage medium is coupled to the processor such the processor can read information from, and write information to, the storage medium. Of course, the storage medium may also be integral to the processor. The processor and the storage medium may reside in an Application Specific Integrated Circuits (ASIC). Of course, the processor and the storage medium may reside as discrete components in an electronic device or host device.
Those of ordinary skill in the art will understand that: all or a portion of the steps of implementing the above-described method embodiments may be performed by hardware associated with program instructions. The program may be stored in a computer-readable storage medium. When executed, the program performs steps comprising the method embodiments described above; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
Finally, it should be noted that: the above embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present application.

Claims (18)

1. A control method of terminal equipment is applied to a cloud platform, wherein a plurality of terminal equipment are accessed into the cloud platform, and the method comprises the following steps:
receiving an operation request message sent by a control device, wherein the operation request message indicates at least one target terminal device in the plurality of terminal devices to execute preset operation on an application program;
controlling each target terminal device to execute the preset operation according to the operation request message, and acquiring an operation result of each target terminal device executing the preset operation;
and sending the operation result to the control equipment, wherein the preset operation and the operation result are used for determining the test result of the application program.
2. The method according to claim 1, wherein a plurality of proxy services are run in the cloud platform, and each proxy service is used for controlling at least part of the terminal device;
controlling each target terminal device to execute the preset operation according to the operation request message, and obtaining an operation result of each target terminal device executing the preset operation, including:
determining a target proxy service for controlling the target terminal device from the plurality of proxy services for any target terminal device in the at least one target terminal device;
and controlling the target terminal equipment to execute the preset operation through the target proxy service, and acquiring an operation result of the target terminal equipment executing the preset operation.
3. The method according to claim 2, wherein the operation request message includes retry indication information indicating a number of retries of the preset operation; controlling the target terminal device to execute the preset operation through the target proxy service, and acquiring an operation result of the target terminal device executing the preset operation, including:
performing a control step, the control step comprising: controlling the target terminal equipment to execute the preset operation through the target proxy service, and acquiring an operation result of the target terminal equipment executing the preset operation;
if the operation result is failure, the control step is repeatedly executed until the operation result is success, or the operation result is determined to be failure when the execution times of the control step is more than or equal to the retry times.
4. The method according to any one of claims 1 to 3, wherein before receiving the operation request message sent by the control device, the method further comprises:
receiving an occupation request message sent by the control device, wherein the occupation request message is used for requesting to occupy the at least one target terminal device;
determining the occupation result of the control equipment to each target terminal equipment according to the current state of each target terminal equipment;
and sending the occupation result to the control equipment.
5. The method of claim 4, wherein the occupancy request message comprises: authorization information of the control device; determining, according to the current state of each of the target terminal devices, an occupation result of the control device on each of the target terminal devices, including:
determining whether the control equipment has the authority of occupying the terminal equipment or not according to the authorization information;
and if the control equipment has the right of occupying the terminal equipment, determining the occupation result of the control equipment to each target terminal equipment according to the current state of each target terminal equipment.
6. The method according to claim 5, wherein determining, for any target terminal device of the at least one target terminal device, an occupation result of the target terminal device by the control device according to the current state of the target terminal device includes:
if the current state of the target terminal equipment is not available, determining that the occupation result of the control equipment on the target terminal equipment is failure; alternatively, the first and second electrodes may be,
and if the current state of the target terminal equipment is occupiable, determining that the occupation result of the control equipment on the target terminal equipment is successful.
7. The method of claim 5, further comprising:
and if the control equipment does not have the authority of occupying the terminal equipment, determining that the occupation result of the control equipment on the at least one target terminal equipment is failure.
8. The method of claim 4, wherein after sending the operation result to the control device, further comprising:
receiving a release request message sent by the control device, wherein the release request message is used for requesting to release the at least one target terminal device;
and updating the current state of the at least one target terminal device to be occupiable.
9. A control method of a terminal device is applied to a control device, and the method comprises the following steps:
determining a preset operation to be executed on the application program;
sending an operation request message to a cloud platform according to the preset operation; the cloud platform is accessed with a plurality of terminal devices, and the operation request message is used for instructing the cloud platform to control at least one target terminal device in the plurality of terminal devices to execute the preset operation on the application program, and acquiring an operation result of each target terminal device executing the preset operation;
receiving the operation result sent by the cloud platform;
and determining a test result of the application program according to the preset operation and the operation result.
10. The method according to claim 9, wherein the operation request message includes retry indication information, the retry indication information is used to indicate a number of retries of the preset operation, and the operation result is obtained by the cloud platform controlling the target terminal device to repeatedly execute the preset operation N times, where N is a natural number less than or equal to the number of retries.
11. The method according to claim 9 or 10, wherein before sending the operation request message to the cloud platform, the method further comprises:
determining the at least one target terminal device for testing the application;
sending an occupation request message to the cloud platform, wherein the occupation request message is used for requesting to occupy the at least one target terminal device;
and receiving the occupation result of the control equipment to each target terminal equipment, which is sent by the cloud platform.
12. The method of claim 11, wherein the occupancy request message comprises: authorization information of the control device, where the authorization information is used for enabling the cloud platform to determine whether the control device has a right to occupy a terminal device.
13. The method of claim 11, wherein after receiving the operation result sent by the cloud platform, the method further comprises:
and sending a release request message to the cloud platform, wherein the release request message is used for requesting to release the at least one target terminal device.
14. The control device of the terminal device is applied to a cloud platform, wherein a plurality of terminal devices are connected to the cloud platform, and the device comprises:
a receiving module, configured to receive an operation request message sent by a control device, where the operation request message indicates at least one target terminal device in the plurality of terminal devices to perform a preset operation on an application;
the processing module is used for controlling each target terminal device to execute the preset operation according to the operation request message and acquiring an operation result of each target terminal device executing the preset operation;
and the sending module is used for sending the operation result to the control equipment, and the preset operation and the operation result are used for determining the test result of the application program.
15. A control device of a terminal device is applied to a control device, and the device comprises:
the processing module is used for determining preset operation to be executed on the application program;
the sending module is used for sending an operation request message to the cloud platform according to the preset operation; the cloud platform is accessed with a plurality of terminal devices, and the operation request message is used for instructing the cloud platform to control at least one target terminal device in the plurality of terminal devices to execute the preset operation on the application program, and acquiring an operation result of each target terminal device executing the preset operation;
the receiving module is used for receiving the operation result sent by the cloud platform;
the processing module is further configured to determine a test result of the application program according to the preset operation and the operation result.
16. An electronic device, comprising: a memory for storing a computer program and a processor for executing the computer program to implement the method of any one of claims 1 to 8 or to implement the method of any one of claims 9 to 13.
17. A computer-readable storage medium, comprising: a computer program which, when executed by a processor, implements the method of any one of claims 1 to 8 or implements the method of any one of claims 9 to 13.
18. A computer program product, comprising: a computer program which, when executed by a processor, implements the method of any one of claims 1 to 8 or implements the method of any one of claims 9 to 13.
CN202110407946.XA 2021-04-15 2021-04-15 Control method, device and equipment of terminal equipment and storage medium Pending CN115297110A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110407946.XA CN115297110A (en) 2021-04-15 2021-04-15 Control method, device and equipment of terminal equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110407946.XA CN115297110A (en) 2021-04-15 2021-04-15 Control method, device and equipment of terminal equipment and storage medium

Publications (1)

Publication Number Publication Date
CN115297110A true CN115297110A (en) 2022-11-04

Family

ID=83818711

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110407946.XA Pending CN115297110A (en) 2021-04-15 2021-04-15 Control method, device and equipment of terminal equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115297110A (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109002396A (en) * 2018-07-13 2018-12-14 北京云测信息技术有限公司 A kind of method for testing software, device and system
CN109815116A (en) * 2018-12-14 2019-05-28 深圳壹账通智能科技有限公司 A kind of method for testing software and equipment platform and computer readable storage medium
CN109960642A (en) * 2017-12-22 2019-07-02 百度在线网络技术(北京)有限公司 Automatic test approach and device
US20200034281A1 (en) * 2017-01-11 2020-01-30 Smartlytics Llc, Dba Quantyzd System and method for automated intelligent mobile application testing
CN111090577A (en) * 2019-10-12 2020-05-01 平安壹钱包电子商务有限公司 Multi-terminal synchronous testing method and device, computer equipment and storage medium
CN111813687A (en) * 2020-07-20 2020-10-23 网易(杭州)网络有限公司 Test method, test device, control terminal, test equipment and storage medium
CN111965996A (en) * 2020-06-29 2020-11-20 北京百度网讯科技有限公司 Intelligent device control method, device, equipment and storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20200034281A1 (en) * 2017-01-11 2020-01-30 Smartlytics Llc, Dba Quantyzd System and method for automated intelligent mobile application testing
CN109960642A (en) * 2017-12-22 2019-07-02 百度在线网络技术(北京)有限公司 Automatic test approach and device
CN109002396A (en) * 2018-07-13 2018-12-14 北京云测信息技术有限公司 A kind of method for testing software, device and system
CN109815116A (en) * 2018-12-14 2019-05-28 深圳壹账通智能科技有限公司 A kind of method for testing software and equipment platform and computer readable storage medium
CN111090577A (en) * 2019-10-12 2020-05-01 平安壹钱包电子商务有限公司 Multi-terminal synchronous testing method and device, computer equipment and storage medium
CN111965996A (en) * 2020-06-29 2020-11-20 北京百度网讯科技有限公司 Intelligent device control method, device, equipment and storage medium
CN111813687A (en) * 2020-07-20 2020-10-23 网易(杭州)网络有限公司 Test method, test device, control terminal, test equipment and storage medium

Similar Documents

Publication Publication Date Title
US9614931B2 (en) Identifying a resource set require for a requested application and launching the resource set in a container for execution in a host operating system
CN111427596B (en) Software upgrading method and device and terminal equipment
CN106843947B (en) Method and device for processing code defects
CN107220085B (en) Method for automatically upgrading RAID card firmware
CN110837391B (en) Application program hot updating method and device, storage medium and electronic equipment
CN108647139B (en) System test method, device, storage medium and electronic device
CN111158987A (en) Health check method and device of micro-service architecture
CN115297110A (en) Control method, device and equipment of terminal equipment and storage medium
CN110401934B (en) Method for managing equipment, management equipment and computer readable storage medium
CN106528199A (en) Method and terminal for updating automobile instrument panel system
CN107688479B (en) Android system network cluster, construction method thereof, and Android system network cluster data processing method and system
CN114116027A (en) Method, system, terminal and storage medium for automatically installing drive for PCIE equipment
CN115437903A (en) Interface test method, device, apparatus, storage medium, and program
CN105867961A (en) System upgrading and degrading method and device
CN112328288A (en) Method, system, equipment and storage medium for updating server component
CN113448644B (en) Operating system ring3 mode OC hard disk configuration method, device, terminal and storage medium
CN113868231B (en) Data structure updating method and device
US11928040B2 (en) API adapter test system, API adapter test assistance device, API adapter test assistance method, and API adapter test assistance program
CN115309327A (en) Method and device for controlling reading and writing of cloud disk, electronic equipment and storage medium
CN113760446A (en) Resource scheduling method, device, equipment and medium
CN117472407A (en) Platform upgrading method, device, equipment and medium based on k8s cluster construction
CN112394956A (en) Method and device for upgrading feature library and computer equipment
CN116431463A (en) Interface automatic test method and device, storage medium and electronic equipment
CN105278980A (en) System updating method and apparatus, and server
CN114218281A (en) Method and device for generating unique identification number

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination