A method and device for testing application compatibility

By obtaining and sending the control command set on the main terminal, multi-point operations of the application under test are realized, which solves the problem of low cloud mobile phone utilization and improves the efficiency of application compatibility testing and the utilization of slave terminals under test.

CN112416741BActive Publication Date: 2024-09-06SHANGHAI BILIBILI TECH CO LTD
View PDF 12 Cites 0 Cited by

Patent Information

Application Number
CN201911366668.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-12-26
Publication Date
2024-09-06
Estimated Expiration
2039-12-26

AI Technical Summary

Technical Problem

In the existing technology, web browsers cannot implement multi-point operations, resulting in low utilization of cloud mobile phones and inability to effectively conduct compatibility testing of applications.

Method used

Obtain the user's first control event set of the application under test through the main terminal, determine the control command set, and send it to the slave terminal under test, triggering the slave terminal under test to execute the second control event set, and finally receive and judge the application under test The compatibility results of the program enable multi-point operation compatibility testing of the application under test.

Benefits of technology

It improves the utilization rate of the slave terminal under test and the efficiency of application testing, and can effectively detect the compatibility of multi-point operation applications on the slave terminal under test.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112416741B
    Figure CN112416741B
Patent Text Reader

Abstract

The present invention relates to the field of computer technology, and discloses a method and device for testing application compatibility, which is used to solve the problem that the web browser cannot realize multi-point operation and the utilization rate of cloud mobile phones is low. The method includes: the master terminal obtains the first control event set executed by the user on the application to be tested, and determines the corresponding control command set based on the first control event set; then sends the control command set to the slave terminal to be tested to trigger the slave terminal to be tested to execute the second control event set on the application to be tested based on the control command set; finally, the master terminal receives the second control event set returned by the slave terminal to be tested, and determines the compatibility result of the application to be tested on the slave terminal to be tested based on the second control event set. The master terminal can realize multi-point operation on the application to be tested to detect the compatibility of multi-point operation type applications on the slave mobile phone to be tested, and improve the utilization rate of the slave terminal to be tested.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a method and device for testing application program compatibility. Background Art

[0002] With the development of science and technology, users can obtain corresponding application services through applications (Application, APP) installed on smart devices. For example, users use social APPs on mobile phones to chat with friends; for another example, users use computers to play games. Due to the diversity and differences of smart devices, once the APP is not compatible with a certain model of smart device, a large number of users will be lost. Therefore, after completing the development of the APP, the APP needs to be tested for compatibility.

[0003] Since the compatibility of APP needs to be tested on different models of smart devices, if each smart device is purchased, the compatibility cost will be greatly increased. Therefore, in the prior art, a cloud real machine testing platform is used for compatibility testing. Specifically, a connection is established between the browser on the network (Web) side and the cloud phone, and the browser controls the application to perform corresponding operations on the cloud phone.

[0004] The above method can only perform single-point operation on the cloud phone, and multi-point operation cannot be achieved, which reduces the utilization rate of the cloud phone. Summary of the invention

[0005] The embodiment of the present invention provides a method and device for testing the compatibility of an application program, which is used to solve the problem that a web browser cannot realize multi-point operation and the utilization rate of a cloud mobile phone is low.

[0006] The specific technical solutions provided by the embodiments of the present invention are as follows:

[0007] In a first aspect, an embodiment of the present invention provides a method for testing application compatibility, which is applied to a master terminal, and the testing method includes:

[0008] Acquire a first manipulation event set executed by a user on the application to be tested, and determine a corresponding manipulation command set based on the first manipulation event set;

[0009] Sending the control command set to the slave terminal to be tested, so as to trigger the slave terminal to be tested to execute a second control event set on the application to be tested based on the control command set;

[0010] The second control event set returned by the slave terminal to be tested is received, and based on the second control event set, a compatibility result of the application to be tested on the slave terminal to be tested is determined.

[0011] Optionally, before obtaining a first manipulation event set performed by a user on the application to be tested, the method further includes:

[0012] Based on the transmission control protocol, a command channel is established between the slave terminal to be tested, and the command channel is used to send the control command set to the slave terminal to be tested.

[0013] Optionally, determining a corresponding control command set based on the first control event set includes:

[0014] Analyze each first manipulation event respectively to determine a corresponding operation point, wherein one operation point represents a first manipulation event performed by a user on the application to be tested on the master terminal;

[0015] Analyze each operation point respectively to determine the operation command identifier corresponding to each operation point and the coordinate position corresponding to each operation point;

[0016] Each operation command identifier and each coordinate position are encapsulated as the control command set.

[0017] Optionally, determining the compatibility result of the application to be tested on the slave terminal to be tested based on the second manipulation event set includes:

[0018] When it is determined that the first manipulation event set is the same as the second manipulation event set, determining that the application to be tested is successfully compatible on the slave terminal to be tested;

[0019] When it is determined that the first manipulation event set is different from the second manipulation event set, it is determined that the application to be tested is not compatible with the slave terminal to be tested.

[0020] In a second aspect, an embodiment of the present invention further provides a method for testing application compatibility, which is applied to a slave terminal to be tested, and the testing method includes:

[0021] Receive the control command set sent by the main terminal;

[0022] Based on the manipulation command set, executing a second manipulation event set on the application to be tested;

[0023] The second manipulation event set is sent to the master terminal to trigger the master terminal to determine a compatibility result of the application to be tested on the slave terminal to be tested based on the second manipulation event set.

[0024] Optionally, based on the manipulation command set, executing a second manipulation event set on the application to be tested includes:

[0025] Parsing the control command set to determine the operation command identifier corresponding to each operation point and the coordinate position corresponding to each operation point;

[0026] Based on each operation command identifier and each coordinate position, a second manipulation event is executed on the application to be tested at a corresponding operation point.

[0027] In a third aspect, an embodiment of the present invention further provides a device for testing application compatibility, which is applied to a master terminal, and the device comprises:

[0028] an acquisition unit, configured to acquire a first manipulation event set executed by a user on the application to be tested, and determine a corresponding manipulation command set based on the first manipulation event set;

[0029] A sending unit, configured to send the control command set to the slave terminal to be tested, so as to trigger the slave terminal to be tested to execute a second control event set on the application to be tested based on the control command set;

[0030] The determination unit is configured to receive the second manipulation event set returned by the slave terminal to be tested, and determine a compatibility result of the application to be tested on the slave terminal to be tested based on the second manipulation event set.

[0031] Optionally, before obtaining a first manipulation event set performed by a user on the application to be tested, the obtaining unit is further configured to:

[0032] Based on the transmission control protocol, a command channel is established between the slave terminal to be tested, and the command channel is used to send the control command set to the slave terminal to be tested.

[0033] Optionally, based on the first manipulation event set, a corresponding manipulation command set is determined, and the acquisition unit is used to:

[0034] Analyze each first manipulation event respectively to determine a corresponding operation point, wherein one operation point represents a first manipulation event performed by a user on the application to be tested on the master terminal;

[0035] Analyze each operation point respectively to determine the operation command identifier corresponding to each operation point and the coordinate position corresponding to each operation point;

[0036] Each operation command identifier and each coordinate position are encapsulated as the control command set.

[0037] Optionally, based on the second manipulation event set, determining a compatibility result of the application to be tested on the slave terminal to be tested, the judging unit is configured to:

[0038] When it is determined that the first manipulation event set is the same as the second manipulation event set, determining that the application to be tested is successfully compatible on the slave terminal to be tested;

[0039] When it is determined that the first manipulation event set is different from the second manipulation event set, it is determined that the application to be tested is not compatible with the slave terminal to be tested.

[0040] In a fourth aspect, an embodiment of the present invention further provides a testing device for application program compatibility, which is applied to a slave terminal to be tested, and the testing device includes:

[0041] A receiving unit, used for receiving a control command set sent by a master terminal;

[0042] An execution unit, configured to execute a second manipulation event set on the application to be tested based on the manipulation command set;

[0043] The returning unit is configured to send the second manipulation event set to the master terminal to trigger the master terminal to determine a compatibility result of the application to be tested on the slave terminal to be tested based on the second manipulation event set.

[0044] Optionally, based on the manipulation command set, a second manipulation event set is executed on the application to be tested, and the execution unit is used to:

[0045] Parsing the control command set to determine the operation command identifier corresponding to each operation point and the coordinate position corresponding to each operation point;

[0046] Based on each operation command identifier and each coordinate position, a second manipulation event is executed on the application to be tested at a corresponding operation point.

[0047] In a fifth aspect, an embodiment of the present invention further provides a computing device, including:

[0048] A memory for storing program instructions;

[0049] The processor is used to call the program instructions stored in the memory, and execute any one of the above-mentioned application program compatibility testing methods applied to the master terminal or any one of the above-mentioned application program compatibility testing methods applied to the slave terminal to be tested according to the obtained program.

[0050] In a sixth aspect, an embodiment of the present invention further provides a storage medium, comprising computer-readable instructions, which, when a computer reads and executes the computer-readable instructions, enables the computer to execute any one of the above-mentioned application compatibility testing methods.

[0051] The beneficial effects of the present invention are as follows:

[0052] In the embodiment of the present invention, the master terminal first obtains the first control event set executed by the user on the application to be tested, and determines the corresponding control command set based on the first control event set; then sends the control command set to the slave terminal to be tested to trigger the slave terminal to be tested to execute the second control event set on the application to be tested based on the control command set; finally, the master terminal receives the second control event set returned by the slave terminal to be tested, and determines the compatibility result of the application to be tested on the slave terminal to be tested based on the second control event set. The master terminal can implement multi-point operation of the application to be tested to detect the compatibility of multi-point operation applications on the slave terminal to be tested, thereby improving the utilization rate of the slave terminal to be tested and the test efficiency of the application on the slave terminal to be tested. BRIEF DESCRIPTION OF THE DRAWINGS

[0053] Figure 1 A flowchart of a method for testing application compatibility provided by an embodiment of the present invention;

[0054] Figure 2a A schematic diagram of operations performed by a slave terminal to be tested on a game application to be tested provided by an embodiment of the present invention;

[0055] Figure 2b A schematic diagram of operations performed by a video stream application program to be tested on a slave terminal to be tested provided by an embodiment of the present invention;

[0056] Figure 3 A schematic diagram of a process for testing the compatibility of a game APP on mobile phone B provided in an embodiment of the present invention;

[0057] Figure 4 A schematic diagram of the structure of a testing device for application program compatibility applied to a master terminal provided by an embodiment of the present invention;

[0058] Figure 5 A schematic diagram of the structure of a testing device for application program compatibility of a slave terminal to be tested provided by an embodiment of the present invention;

[0059] Figure 6 A schematic diagram of the structure of a computing device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0060] In view of the problem that the web browser cannot realize multi-point operation and the utilization rate of cloud mobile phones is low, the embodiment of the present invention provides a new solution. The solution is: the master terminal first obtains the first control event set executed by the user on the application to be tested, and determines the corresponding control command set based on the first control event set; then sends the control command set to the slave terminal to be tested to trigger the slave terminal to be tested to execute the second control event set on the application to be tested based on the control command set; finally, the master terminal receives the second control event set returned by the slave terminal to be tested, and determines the compatibility result of the application to be tested on the slave terminal to be tested based on the second control event set.

[0061] The preferred embodiments of the present invention are described in detail below in conjunction with the accompanying drawings.

[0062] Specifically, an embodiment of the present invention provides a system for testing application compatibility, the system comprising a master terminal and a slave terminal to be tested. Figure 1 As shown, the process of testing application compatibility in the embodiment of the present invention is as follows:

[0063] S101: The main terminal obtains a first manipulation event set executed by a user on the application to be tested, and determines a corresponding manipulation command set based on the first manipulation event set.

[0064] Before executing step 101, the master terminal establishes an image channel and a command channel with the slave terminal to be tested based on the Transmission Control Protocol (TCP), wherein the image channel is used for the master terminal to receive the real-time screen image of the slave terminal to be tested, and the command channel is used for the master terminal to send the control command set to the slave terminal to be tested. Through the established image channel and command channel, the real-time screen image of the slave terminal to be tested can be presented on the master terminal, and the control command set of the master terminal can be transmitted to the slave terminal to be tested in real time, thereby realizing the remote control of the slave terminal to be tested by the master terminal, and completing the test of the application compatibility.

[0065] Optionally, the process of the master terminal determining the corresponding control command set based on the first control event set is as follows:

[0066] A1. The main terminal analyzes each first manipulation event to determine a corresponding operation point, wherein one operation point represents a first manipulation event performed by a user on the application to be tested on the main terminal.

[0067] A2. The main terminal analyzes each operation point respectively, determines the operation command identifier corresponding to each operation point, and the coordinate position corresponding to each operation point. The operation command identifier includes at least one or a combination of the following: finger clicking the screen, finger moving the screen, finger long pressing the screen, finger leaving the screen, operating the power button, operating the return button, operating the volume up button or the volume down button.

[0068] A3. The main terminal encapsulates each operation command identifier and each coordinate position into a control command set.

[0069] The master terminal can implement multi-point operation on the application under test. By parsing multiple first control events input by the user, the coordinate positions and operation command identifiers of each operation point performed by the user on the application under test can be determined, so that the corresponding control command set can be sent to the slave terminal under test through a pre-established command channel to detect the compatibility of multi-point operation applications on the slave terminal under test.

[0070] S102: The master terminal sends a control command set to the slave terminal to be tested.

[0071] The master terminal sends the control command set to the slave terminal under test through the command channel.

[0072] S103: The slave terminal to be tested receives a control command set sent by the master terminal.

[0073] S104: The slave terminal to be tested executes a second manipulation event set on the application to be tested based on the manipulation command set.

[0074] Optionally, the process in which the slave terminal to be tested executes the second control event set on the application to be tested based on the control command set is as follows:

[0075] B1. The slave terminal to be tested parses the control command set to determine the operation command identifier of each operation point and the coordinate position of each operation point.

[0076] B2. The slave terminal to be tested executes a second manipulation event on the application to be tested at a corresponding operation point based on each operation command identifier and each coordinate position.

[0077] The slave terminal under test receives the control command set sent by the master terminal through the command channel, and determines the coordinate position and operation command identifier of each operation point executed by the user on the application under test by parsing the control command set, so that the corresponding control command can be executed on the application under test at the operation point corresponding to the same coordinate position on the slave terminal under test, so as to detect the compatibility of multi-point operation applications on the slave terminal under test.

[0078] For example, the control command set includes {operation point a (2, 3), finger clicks the screen}, {operation point b (3, 1), finger moves the screen}, {volume up key, press the volume up key}, so refer to Figure 2a As shown, in the game application to be tested, the operation point a in the 2nd row and 3rd column performs the operation of clicking the screen with a finger, and the operation point b in the 3rd row and 1st column performs the operation of moving the screen with a finger, and pressing the volume up button.

[0079] For another example, the control command set includes {operation point c (3, 3), finger short press screen & finger move screen}, {operation point d (9, 3), finger short press screen & finger move screen}, {operation point e (14, 6), finger click screen & finger move screen}, therefore, refer to Figure 2b As shown, in the video application to be tested, the operation points c to e at the slave terminal to be tested first perform the operation of clicking the screen with a finger, and then perform the operation of moving the screen with a finger, so as to realize the function of enlarging the video screen in the operation area.

[0080] S105: The slave terminal to be tested sends the second control event set to the master terminal.

[0081] The slave terminal to be tested sends the log recording the second control event set to the master terminal.

[0082] S106: The master terminal receives the second manipulation event set returned by the slave terminal to be tested, and determines the compatibility result of the application program to be tested on the slave terminal to be tested based on the second manipulation event set.

[0083] Optionally, the process in which the master terminal determines the compatibility result of the application program to be tested on the slave terminal to be tested based on the second control event set is as follows:

[0084] The master terminal retrieves the log recording the first set of manipulation events, compares the two logs, and when it is determined that the first set of manipulation events is the same as the second set of manipulation events, determines that the application to be tested is successfully compatible on the slave terminal to be tested; when it is determined that the first set of manipulation events is the same as the second set of manipulation events, determines that the application to be tested is not successfully compatible on the slave terminal to be tested.

[0085] Based on the above embodiment, a specific application scenario is used to provide further detailed description, in which mobile phone A is the master terminal, mobile phone B is the slave terminal to be tested, and the game APP is the application to be tested. Figure 3 shown.

[0086] S301: Mobile phone A establishes a TCP connection with mobile phone B through the locally installed mobile phone controller by scanning the QR code of mobile phone B on the cloud real device platform;

[0087] S302: Mobile phone A receives and presents the screen image of mobile phone B through the image channel;

[0088] S303: Mobile phone A opens the game APP installed on mobile phone B;

[0089] S304: Mobile phone A simultaneously executes the following two first operation events: performing a finger tapping operation on the operation point f (7, 14) to control the game character to realize a jumping function; performing a finger long pressing operation on the operation point g (26, 26) to control the game character to realize a function of moving forward all the time;

[0090] S305: Mobile phone A sends the control command set to mobile phone B through the command channel;

[0091] S306: Mobile phone B parses the control command set to obtain the corresponding operation point coordinate position and operation command identifier;

[0092] S307: Mobile phone B simultaneously executes the following two second operation events: performing a finger tapping operation on the operation point f (7, 14) to control the game character to realize a jumping function; performing a finger long pressing operation on the operation point g (26, 26) to control the game character to realize a function of moving forward all the time;

[0093] S308: Mobile phone B returns the log recording the second operation event set to mobile phone A;

[0094] S309: Mobile phone A retrieves the log recording the first set of operation events, and when it is determined that the first set of operation events is the same as the second set of operation events, it is determined that the game APP is successfully compatible with mobile phone B; when it is determined that the first set of operation events is different from the second set of operation events, it is determined that the game APP is not successfully compatible with mobile phone B.

[0095] Based on the same inventive concept, in an embodiment of the present invention, a device for testing the compatibility of an application program applied to a master terminal is provided. Figure 4 As shown, the test device at least includes an acquisition unit 401, a sending unit 402 and a judgment unit 403, wherein:

[0096] An acquisition unit 401 is used to acquire a first manipulation event set executed by a user on the application to be tested, and determine a corresponding manipulation command set based on the first manipulation event set;

[0097] A sending unit 402 is used to send the control command set to the slave terminal to be tested, so as to trigger the slave terminal to be tested to execute a second control event set on the application to be tested based on the control command set;

[0098] The determination unit 403 is configured to receive the second manipulation event set returned by the slave terminal to be tested, and determine a compatibility result of the application to be tested on the slave terminal to be tested based on the second manipulation event set.

[0099] Optionally, before obtaining a first manipulation event set performed by a user on the application to be tested, the obtaining unit 401 is further configured to:

[0100] Based on the transmission control protocol, a command channel is established between the slave terminal to be tested, and the command channel is used to send the control command set to the slave terminal to be tested.

[0101] Optionally, based on the first manipulation event set, a corresponding manipulation command set is determined, and the acquisition unit 401 is used to:

[0102] Analyze each first manipulation event respectively to determine a corresponding operation point, wherein one operation point represents a first manipulation event performed by a user on the application to be tested on the master terminal;

[0103] Analyze each operation point respectively to determine the operation command identifier corresponding to each operation point and the coordinate position corresponding to each operation point;

[0104] Each operation command identifier and each coordinate position are encapsulated as the control command set.

[0105] Optionally, based on the second manipulation event set, determining a compatibility result of the application to be tested on the slave terminal to be tested, the judging unit 403 is configured to:

[0106] When it is determined that the first manipulation event set is the same as the second manipulation event set, determining that the application to be tested is successfully compatible on the slave terminal to be tested;

[0107] When it is determined that the first manipulation event set is different from the second manipulation event set, it is determined that the application to be tested is not compatible with the slave terminal to be tested.

[0108] Based on the same inventive concept, in an embodiment of the present invention, a testing device for application program compatibility applied to a slave terminal to be tested is provided. Figure 5 As shown, the test device at least includes a receiving unit 501, an execution unit 502 and a return unit 503, wherein:

[0109] The receiving unit 501 is used to receive a control command set sent by the master terminal;

[0110] An execution unit 502 is used to execute a second manipulation event set on the application to be tested based on the manipulation command set;

[0111] The returning unit 503 is configured to send the second manipulation event set to the master terminal to trigger the master terminal to determine a compatibility result of the application to be tested on the slave terminal to be tested based on the second manipulation event set.

[0112] Optionally, based on the manipulation command set, a second manipulation event set is executed on the application to be tested, and the execution unit 502 is used to:

[0113] Parsing the control command set to determine the operation command identifier corresponding to each operation point and the coordinate position corresponding to each operation point;

[0114] Based on each operation command identifier and each coordinate position, a second manipulation event is executed on the application to be tested at a corresponding operation point.

[0115] Based on the same inventive concept, in an embodiment of the present invention, a computing device is provided, referring to Figure 6 As shown, at least a memory 601 and a processor 602 are included, wherein the memory 601 and the processor 602 communicate with each other via a communication bus;

[0116] Memory 601, used for storing program instructions;

[0117] Processor 602, configured to obtain a first manipulation event set executed by a user on the application to be tested, and determine a corresponding manipulation command set based on the first manipulation event set;

[0118] Sending the control command set to the slave terminal to be tested, so as to trigger the slave terminal to be tested to execute a second control event set on the application to be tested based on the control command set;

[0119] receiving the second control event set returned by the slave terminal to be tested, and determining the compatibility result of the application to be tested on the slave terminal to be tested based on the second control event set; or,

[0120] Receive the control command set sent by the main terminal;

[0121] Based on the manipulation command set, executing a second manipulation event set on the application to be tested;

[0122] The second manipulation event set is sent to the master terminal to trigger the master terminal to determine a compatibility result of the application to be tested on the slave terminal to be tested based on the second manipulation event set.

[0123] Based on the same inventive concept, in an embodiment of the present invention, a storage medium is provided, which at least includes:

[0124] Acquire a first manipulation event set executed by a user on the application to be tested, and determine a corresponding manipulation command set based on the first manipulation event set;

[0125] Sending the control command set to the slave terminal to be tested, so as to trigger the slave terminal to be tested to execute a second control event set on the application to be tested based on the control command set;

[0126] receiving the second control event set returned by the slave terminal to be tested, and determining the compatibility result of the application to be tested on the slave terminal to be tested based on the second control event set; or,

[0127] Receive the control command set sent by the main terminal;

[0128] Based on the manipulation command set, executing a second manipulation event set on the application to be tested;

[0129] The second manipulation event set is sent to the master terminal to trigger the master terminal to determine a compatibility result of the application to be tested on the slave terminal to be tested based on the second manipulation event set.

[0130] To summarize, in an embodiment of the present invention, the master terminal first obtains a first control event set executed by a user on an application to be tested, and determines a corresponding control command set based on the first control event set; then sends the control command set to a slave terminal to be tested, so as to trigger the slave terminal to be tested to execute a second control event set on the application to be tested based on the control command set; finally, the master terminal receives a second control event set returned by the slave terminal to be tested, and determines a compatibility result of the application to be tested on the slave terminal to be tested based on the second control event set.

[0131] The master terminal in the embodiment of the present invention can implement multi-point operation on the application to be tested, so as to detect the compatibility of the multi-point operation application on the slave mobile phone to be tested, thereby improving the utilization rate of the slave terminal to be tested.

[0132] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.

[0133] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0134] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0135] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0136] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.

Claims

1. A method for testing application compatibility, characterized in that: Applied to the master terminal, the test method includes: Acquire a first manipulation event set executed by a user on the application to be tested, and determine a corresponding manipulation command set based on the first manipulation event set; The control command set is sent to the slave terminal to be tested, so as to trigger the slave terminal to be tested to execute a second control event set on the application to be tested based on the control command set; the slave terminal to be tested is a terminal on the cloud real machine platform; the master terminal receives and presents the screen image of the slave terminal to be tested through the image channel; the application to be tested is installed on the slave terminal to be tested; receiving the second control event set returned by the slave terminal to be tested, and determining a compatibility result of the application to be tested on the slave terminal to be tested based on the second control event set; The determining of the corresponding control command set based on the first control event set includes: Analyze each first manipulation event respectively to determine a corresponding operation point, wherein one operation point represents a first manipulation event performed by a user on the application to be tested on the master terminal; Analyze each operation point respectively to determine the operation command identifier corresponding to each operation point and the coordinate position corresponding to each operation point; Encapsulating each operation command identifier and each coordinate position into the control command set; Wherein, determining the compatibility result of the application to be tested on the slave terminal to be tested based on the second control event set includes: When it is determined that the first manipulation event set is the same as the second manipulation event set, determining that the application to be tested is successfully compatible on the slave terminal to be tested; When it is determined that the first manipulation event set is different from the second manipulation event set, it is determined that the application to be tested is not compatible with the slave terminal to be tested.

2. The method according to claim 1, characterized in that Before obtaining a first manipulation event set executed by a user on the application to be tested, the method further includes: Based on the transmission control protocol, a command channel is established between the slave terminal to be tested, and the command channel is used to send the control command set to the slave terminal to be tested.

3. A method for testing application compatibility, characterized in that: Applied to a slave terminal to be tested, the test method comprises: Receive the control command set sent by the main terminal; Based on the control command set, a second control event set is executed on the application to be tested; the slave terminal to be tested is a terminal on the cloud real machine platform; the master terminal receives and presents the screen image of the slave terminal to be tested through the image channel; the application to be tested is installed on the slave terminal to be tested; Sending the second manipulation event set to the master terminal to trigger the master terminal to determine a compatibility result of the application to be tested on the slave terminal to be tested based on the second manipulation event set; The control command set is obtained by the main terminal through the following steps: The master terminal analyzes each first manipulation event to determine a corresponding operation point, wherein one operation point represents a first manipulation event performed by a user on the application to be tested on the master terminal; The main terminal analyzes each operation point respectively to determine the operation command identifier corresponding to each operation point and the coordinate position corresponding to each operation point; The main terminal encapsulates each operation command identifier and each coordinate position into the control command set; Wherein, determining the compatibility result of the application to be tested on the slave terminal to be tested based on the second control event set includes: When it is determined that the first manipulation event set is the same as the second manipulation event set, determining that the application to be tested is successfully compatible on the slave terminal to be tested; When it is determined that the first manipulation event set is different from the second manipulation event set, it is determined that the application to be tested is not compatible with the slave terminal to be tested.

4. The method according to claim 3, characterized in that Based on the manipulation command set, executing a second manipulation event set on the application to be tested includes: Parsing the control command set to determine the operation command identifier corresponding to each operation point and the coordinate position corresponding to each operation point; Based on each operation command identifier and each coordinate position, a second manipulation event is executed on the application to be tested at a corresponding operation point.

5. A device for testing application compatibility, characterized in that: Applied to the main terminal, the test device comprises: an acquisition unit, configured to acquire a first manipulation event set executed by a user on the application to be tested, and determine a corresponding manipulation command set based on the first manipulation event set; A sending unit, configured to send the control command set to a slave terminal to be tested, so as to trigger the slave terminal to be tested to execute a second control event set on the application to be tested based on the control command set; the slave terminal to be tested is a terminal on a cloud real machine platform; the master terminal receives and presents a screen image of the slave terminal to be tested through an image channel; the application to be tested is installed on the slave terminal to be tested; a determination unit, configured to receive the second manipulation event set returned by the slave terminal to be tested, and determine a compatibility result of the application to be tested on the slave terminal to be tested based on the second manipulation event set; Wherein, the acquisition unit is used for: Analyze each first manipulation event respectively to determine a corresponding operation point, wherein one operation point represents a first manipulation event performed by a user on the application to be tested on the master terminal; Analyze each operation point respectively to determine the operation command identifier corresponding to each operation point and the coordinate position corresponding to each operation point; Encapsulating each operation command identifier and each coordinate position into the control command set; Wherein, determining the compatibility result of the application to be tested on the slave terminal to be tested based on the second control event set includes: When it is determined that the first manipulation event set is the same as the second manipulation event set, determining that the application to be tested is successfully compatible on the slave terminal to be tested; When it is determined that the first manipulation event set is different from the second manipulation event set, it is determined that the application to be tested is not compatible with the slave terminal to be tested.

6. A device for testing application compatibility, characterized in that: Applied to a slave terminal to be tested, the test device comprises: A receiving unit, used for receiving a control command set sent by a master terminal; An execution unit is used to execute a second control event set on the application to be tested based on the control command set; the slave terminal to be tested is a terminal on the cloud real machine platform; the master terminal receives and presents the screen image of the slave terminal to be tested through the image channel; the application to be tested is installed on the slave terminal to be tested; a returning unit, configured to send the second manipulation event set to the master terminal, so as to trigger the master terminal to determine a compatibility result of the application to be tested on the slave terminal to be tested based on the second manipulation event set; The control command set is obtained by the main terminal through the following steps: The master terminal analyzes each first manipulation event to determine a corresponding operation point, wherein one operation point represents a first manipulation event performed by a user on the application to be tested on the master terminal; The main terminal analyzes each operation point respectively to determine the operation command identifier corresponding to each operation point and the coordinate position corresponding to each operation point; The main terminal encapsulates each operation command identifier and each coordinate position into the control command set; Wherein, determining the compatibility result of the application to be tested on the slave terminal to be tested based on the second control event set includes: When it is determined that the first manipulation event set is the same as the second manipulation event set, determining that the application to be tested is successfully compatible on the slave terminal to be tested; When it is determined that the first manipulation event set is different from the second manipulation event set, it is determined that the application to be tested is not compatible with the slave terminal to be tested.

7. A computing device, characterized in that include: A memory for storing program instructions; A processor is used to call the program instructions stored in the memory, and execute the method described in any one of claims 1 to 2 or the method described in any one of claims 3 to 4 according to the obtained program.

8. A storage medium, characterized in that: The method comprises computer-readable instructions. When a computer reads and executes the computer-readable instructions, the computer executes the method according to any one of claims 1 to 2 or claims 3 to 4.

9. A computer program product, characterized in that The computer program product includes computer-readable instructions. When a computer reads and executes the computer-readable instructions, the computer executes the method according to any one of claims 1 to 2 or claims 3 to 4.

Citation Information

Patent Citations

  • Method for testing mobile application in batch and equipment used in method

    CN104717337A

  • Test method and apparatus for application in mobile terminal

    CN105224449A

  • Application compatibility testing method and system

    CN105335292A

  • Application program compatibility testing method and device

    CN107193729A

  • Parallel following test equipment of mobile terminal, cloud true mobile terminal and parallel following test method of mobile terminal

    CN108307021A