CN108804302B - Remote testing method, system and related equipment - Google Patents
Remote testing method, system and related equipment Download PDFInfo
- Publication number
- CN108804302B CN108804302B CN201710307347.4A CN201710307347A CN108804302B CN 108804302 B CN108804302 B CN 108804302B CN 201710307347 A CN201710307347 A CN 201710307347A CN 108804302 B CN108804302 B CN 108804302B
- Authority
- CN
- China
- Prior art keywords
- test
- terminal
- user terminal
- terminals
- test terminal
- 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.)
- Active
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Prevention of errors by analysis, debugging or testing of software
- G06F11/3668—Testing of software
- G06F11/3672—Test management
- G06F11/3688—Test management for test execution, e.g. scheduling of test suites
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Prevention of errors by analysis, debugging or testing of software
- G06F11/3698—Environments for analysis, debugging or testing of software
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Telephonic Communication Services (AREA)
- Debugging And Monitoring (AREA)
Abstract
Description
技术领域technical field
本发明涉及互联网技术领域,尤其涉及一种远程测试方法、系统及相关设备。The invention relates to the technical field of the Internet, in particular to a remote testing method, system and related equipment.
背景技术Background technique
随着电子技术和互联网技术的快速发展,智能手机、平板电脑等终端上运行的应用程序(Application,APP)的种类和数量急剧增加,APP在上线之前需要对其进行适配测试,以保证APP上线后在不同品牌、型号的终端上都能稳定、流畅地运行。目前,在对APP进行终端适配测试时,通常是选择某型号的终端进行测试,测试完成后再选择其它型号的终端进行测试。显然,目前的终端适配测试方案的测试效率很低。With the rapid development of electronic technology and Internet technology, the types and numbers of applications (Application, APP) running on terminals such as smartphones and tablet computers have increased sharply. After going online, it can run stably and smoothly on terminals of different brands and models. At present, when performing a terminal adaptation test on an APP, a certain type of terminal is usually selected for testing, and after the test is completed, other types of terminals are selected for testing. Obviously, the test efficiency of the current terminal adaptation test scheme is very low.
发明内容Contents of the invention
本发明实施例提供了一种远程测试方法、系统及相关设备,可以实现多测试终端的同步测试,从而提高测试效率。Embodiments of the present invention provide a remote testing method, system and related equipment, which can realize synchronous testing of multiple testing terminals, thereby improving testing efficiency.
本发明实施例第一方面提供了一种远程测试方法,包括:The first aspect of the embodiment of the present invention provides a remote testing method, including:
所述用户终端获取针对所述主测试终端的操作事件。The user terminal acquires an operation event for the main test terminal.
所述用户终端根据所述操作事件生成针对所述多个测试终端的测试控制指令。The user terminal generates test control instructions for the plurality of test terminals according to the operation event.
所述用户终端向所述后台服务器发送所述测试控制指令,以使所述后台服务器通过所述客户端向所述多个测试终端转发所述测试控制指令,所述测试控制指令用于指示所述多个测试终端同步执行所述测试控制指令所指示的测试操作。The user terminal sends the test control instruction to the background server, so that the background server forwards the test control instruction to the multiple test terminals through the client, and the test control instruction is used to indicate the The multiple test terminals synchronously execute the test operation indicated by the test control instruction.
本发明实施例第二方面提供了一种远程测试方法,包括:The second aspect of the embodiment of the present invention provides a remote testing method, including:
所述后台服务器接收所述用户终端发送的针对所述多个测试终端的测试控制指令,所述测试控制指令由所述用户终端根据针对所述主测试终端的操作事件生成。The background server receives test control instructions for the multiple test terminals sent by the user terminal, and the test control instructions are generated by the user terminal according to an operation event for the main test terminal.
所述后台服务器通过所述客户端向所述多个测试终端转发所述测试控制指令,所述测试控制指令用于指示所述多个测试终端同步执行所述测试控制指令所指示的测试操作。The background server forwards the test control instruction to the plurality of test terminals through the client, and the test control instruction is used to instruct the plurality of test terminals to synchronously execute the test operation indicated by the test control instruction.
本发明实施例第三方面提供了一种用户终端,包括:The third aspect of the embodiment of the present invention provides a user terminal, including:
获取模块,用于获取针对所述主测试终端的操作事件。An acquisition module, configured to acquire operation events for the main test terminal.
生成模块,用于根据所述操作事件生成针对所述多个测试终端的测试控制指令。A generating module, configured to generate test control instructions for the plurality of test terminals according to the operation event.
发送模块,用于向所述后台服务器发送所述测试控制指令,以使所述后台服务器通过所述客户端向所述多个测试终端转发所述测试控制指令,所述测试控制指令用于指示所述多个测试终端同步执行所述测试控制指令所指示的测试操作。A sending module, configured to send the test control instruction to the background server, so that the background server forwards the test control instruction to the plurality of test terminals through the client, and the test control instruction is used to indicate The multiple test terminals execute the test operation indicated by the test control instruction synchronously.
本发明实施例第四方面提供了一种后台服务器,包括:The fourth aspect of the embodiment of the present invention provides a background server, including:
接收模块,用于接收所述用户终端发送的针对所述多个测试终端的测试控制指令,所述测试控制指令由所述用户终端根据针对所述主测试终端的操作事件生成。The receiving module is configured to receive test control instructions for the plurality of test terminals sent by the user terminal, where the test control instructions are generated by the user terminal according to an operation event for the main test terminal.
发送模块,用于通过所述客户端向所述多个测试终端转发所述测试控制指令,所述测试控制指令用于指示所述多个测试终端同步执行所述测试控制指令所指示的测试操作。A sending module, configured to forward the test control instruction to the plurality of test terminals through the client, the test control instruction is used to instruct the plurality of test terminals to synchronously execute the test operation indicated by the test control instruction .
本发明实施例第五方面提供了一种远程测试系统,包括:上述第三方面所述的用户终端和上述第四方面所述的后台服务器。The fifth aspect of the embodiments of the present invention provides a remote testing system, including: the user terminal described in the above third aspect and the background server described in the above fourth aspect.
本发明实施例中,用户终端获取针对主测试终端的操作事件,根据该操作事件生成针对多个测试终端的测试控制指令,并向后台服务器发送该测试控制指令,以使该后台服务器通过客户端向该多个测试终端转发该测试控制指令,以指示该多个测试终端同步执行该测试控制指令所指示的测试操作,从而可以实现多测试终端的同步测试,提高测试效率。In the embodiment of the present invention, the user terminal acquires an operation event for the main test terminal, generates test control instructions for a plurality of test terminals according to the operation event, and sends the test control instruction to the background server, so that the background server passes the client The test control instruction is forwarded to the plurality of test terminals to instruct the plurality of test terminals to synchronously execute the test operation indicated by the test control instruction, thereby realizing synchronous testing of multiple test terminals and improving test efficiency.
附图说明Description of drawings
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only These are some embodiments of the present invention. Those skilled in the art can also obtain other drawings based on these drawings without creative work.
图1是本发明实施例提供的一种云测试系统的架构示意图;Fig. 1 is a schematic diagram of the architecture of a cloud test system provided by an embodiment of the present invention;
图2是本发明实施例提供的一种远程测试方法的流程示意图;Fig. 2 is a schematic flow chart of a remote testing method provided by an embodiment of the present invention;
图3a是本发明实施例提供的一种用户终端的操作界面示意图;Fig. 3a is a schematic diagram of an operation interface of a user terminal provided by an embodiment of the present invention;
图3b是本发明实施例提供的一种操作位置转换示意图;Fig. 3b is a schematic diagram of an operating position conversion provided by an embodiment of the present invention;
图3c是本发明实施例提供的另一种用户终端的操作界面示意图;Fig. 3c is a schematic diagram of an operation interface of another user terminal provided by an embodiment of the present invention;
图3d是本发明实施例提供的又一种用户终端的操作界面示意图;Fig. 3d is a schematic diagram of an operation interface of another user terminal provided by an embodiment of the present invention;
图4是本发明实施例提供的一种用户终端的结构示意图;FIG. 4 is a schematic structural diagram of a user terminal provided by an embodiment of the present invention;
图5是本发明实施例提供的一种后台服务器的结构示意图;Fig. 5 is a schematic structural diagram of a background server provided by an embodiment of the present invention;
图6是本发明实施例提供的另一种用户终端的结构示意图;FIG. 6 is a schematic structural diagram of another user terminal provided by an embodiment of the present invention;
图7是本发明实施例提供的另一种后台服务器的结构示意图;Fig. 7 is a schematic structural diagram of another background server provided by an embodiment of the present invention;
图8是本发明实施例提供的一种远程测试系统的结构示意图。Fig. 8 is a schematic structural diagram of a remote testing system provided by an embodiment of the present invention.
具体实施方式Detailed ways
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.
本发明实施例所描述的用户终端和客户端具体可以是指笔记本电脑、台式电脑等。测试终端具体可以是指智能手机、平板电脑等。The user terminals and clients described in the embodiments of the present invention may specifically refer to notebook computers, desktop computers, and the like. Specifically, the test terminal may refer to a smart phone, a tablet computer, and the like.
请参阅图1,为本发明实施例提供的一种云测试系统的架构示意图。本实施例中所描述的云测试系统,包括:Please refer to FIG. 1 , which is a schematic diagram of the architecture of a cloud testing system provided by an embodiment of the present invention. The cloud test system described in this embodiment includes:
用户终端,用于提供给用户对测试终端进行测试操作、快捷操作等,实时显示测试终端的当前显示界面,用户通过观察测试终端的当前显示界面可以对测试终端对测试任务的执行情况进行直观的掌握,用户终端上可以安装浏览器应用,通过浏览器应用的界面进行测试操作、快捷操作等以及显示测试终端的当前显示界面,当然用户终端上也可以安装专用应用,通过该专用应用的界面进行测试操作、快捷操作等以及显示测试终端的当前显示界面。The user terminal is used to provide users with test operations and shortcut operations on the test terminal, and to display the current display interface of the test terminal in real time. By observing the current display interface of the test terminal, the user can intuitively monitor the execution of the test task by the test terminal Master, the browser application can be installed on the user terminal, and the test operation, shortcut operation, etc., and the current display interface of the test terminal can be displayed through the interface of the browser application. Test operations, shortcut operations, etc., and display the current display interface of the test terminal.
后台服务器,用于将用户终端发送的测试控制指令、快捷操作指令等向测试终端转发,以及将测试终端当前显示界面的图像数据和日志信息向用户终端转发,还可以存储测试终端与客户端的连接关系,即每一个测试终端所连接的客户端,形成测试终端的标识与客户端标识的对应关系,后台服务器连接客户端,后台服务器可以连接一台或者多台客户端,可以根据实际的测试终端需求量灵活设置客户端的数量。后台服务器与用户终端的通信连接可以包括采用网页套接字Web Socket协议的直连通道以及超文本传输协议(Hyper Text Transfer Protocol,HTTP)连接,Web Socket可以实现用户终端与后台服务器的全双工通信,提高数据传输效率,减少测试终端当前显示界面的图像数据从测试终端到用户终端的网络传输耗时,保证用户终端显示的测试终端的当前显示界面的刷新效率,使得测试终端之间的同步测试更加准确、稳定。Web Socket直连通道可以用于传输对实时性要求较高的测试控制指令、测试终端当前显示界面的图像数据和日志信息等,HTTP连接可以用于传输对实时性要求较低的快捷操作指令等。用户终端与各个测试终端之间的WebSocket连接复用上述Web Socket直连通道,不同测试终端之间的测试控制指令、当前显示界面的图像数据和日志信息等可以通过测试终端的标识(例如生产厂商、国际移动设备身份码(International Mobile Equipment Identity,IMEI))加以区分。The background server is used to forward the test control instructions and shortcut operation instructions sent by the user terminal to the test terminal, and to forward the image data and log information of the current display interface of the test terminal to the user terminal, and to store the connection between the test terminal and the client Relationship, that is, the client connected to each test terminal forms the corresponding relationship between the test terminal ID and the client ID. The background server is connected to the client, and the background server can be connected to one or more clients. Demand flexibly sets the number of clients. The communication connection between the background server and the user terminal can include a direct connection channel using the Web Socket Web Socket protocol and a hypertext transfer protocol (Hyper Text Transfer Protocol, HTTP) connection, and the Web Socket can realize full-duplex between the user terminal and the background server Communication, improve data transmission efficiency, reduce the time-consuming network transmission of the image data of the current display interface of the test terminal from the test terminal to the user terminal, ensure the refresh efficiency of the current display interface of the test terminal displayed by the user terminal, and make the synchronization between test terminals The test is more accurate and stable. The Web Socket direct connection channel can be used to transmit test control commands with high real-time requirements, image data and log information of the current display interface of the test terminal, etc. HTTP connection can be used to transmit shortcut operation commands with low real-time requirements, etc. . The WebSocket connection between the user terminal and each test terminal multiplexes the above-mentioned Web Socket direct connection channel, and the test control instructions between different test terminals, the image data and log information of the current display interface, etc. can be passed through the identification of the test terminal (such as the manufacturer's , International Mobile Equipment Identity (International Mobile Equipment Identity, IMEI)) to distinguish.
客户端,用于建立测试终端和后台服务器的连接,完成测试控制指令、快捷操作指令、测试终端当前显示界面的图像数据和日志信息等的转发,一个客户端下可以连接一个或者多个测试终端。The client is used to establish the connection between the test terminal and the background server, complete the forwarding of test control instructions, shortcut operation instructions, image data and log information of the current display interface of the test terminal, and one or more test terminals can be connected under one client .
测试终端,用于根据用户终端发送的测试控制指令完成用户指定的测试任务,例如对应用APP在不同机型测试终端上的适配情况进行测试,包括APP的安装、启动、使用、卸载等测试,并通过客户端、后台服务器向用户终端上报当前显示界面的图像数据和日志信息等。测试终端具体可以分为主测试终端和从测试终端,主测试终端的数量可以为一个,从测试终端的数量可以为一个或者多个,主测试终端是指用户在用户终端侧开展测试任务的直接操作对象,从测试终端根据用户对主测试终端的测试操作同步地执行相同的测试操作。The test terminal is used to complete the test tasks specified by the user according to the test control instructions sent by the user terminal, such as testing the adaptation of the application APP on different models of test terminals, including testing the installation, startup, use, and uninstallation of the APP , and report the image data and log information of the current display interface to the user terminal through the client and the background server. Test terminals can be specifically divided into main test terminals and slave test terminals. The number of master test terminals can be one, and the number of slave test terminals can be one or more. The operation object, the slave test terminal executes the same test operation synchronously according to the user's test operation on the master test terminal.
请参阅图2,为本发明实施例提供的一种远程测试方法的流程示意图。本实施例中所描述的远程测试方法,可以应用于图1所示的云测试系统,所述云测试系统包括用户终端、后台服务器、客户端和多个测试终端,所述多个测试终端包括主测试终端和从测试终端,所述多个测试终端通过所述客户端与所述后台服务器建立连接,所述方法包括以下步骤:Please refer to FIG. 2 , which is a schematic flowchart of a remote testing method provided by an embodiment of the present invention. The remote testing method described in this embodiment can be applied to the cloud testing system shown in FIG. A master test terminal and a slave test terminal, the plurality of test terminals establish a connection with the background server through the client, and the method includes the following steps:
201、用户终端获取针对主测试终端的操作事件。201. The user terminal acquires an operation event for the main test terminal.
具体实现中,在进行测试任务之前,用户首先可以从云测试系统提供的测试终端库中选择所需的对应型号的测试终端,并可以指定一个主测试终端,其它为从测试终端。In the specific implementation, before performing the test task, the user can first select the required test terminal of the corresponding model from the test terminal library provided by the cloud test system, and can designate a master test terminal, and the others are slave test terminals.
需要说明的是,针对不同用户可以根据其用户级别(如个人用户、企业用户等)或者付费情况(免费用户、付费用户等)限制其可以同步测试的测试终端的数量,也可以根据用户同步测试的测试终端的数量和/或使用时长等进行计费。It should be noted that for different users, the number of test terminals that can be tested synchronously can be limited according to their user level (such as individual users, enterprise users, etc.) The number of test terminals and/or the duration of use are billed.
其中,本实施例中以测试任务为对APP在不同测试终端上的适配情况进行测试,包括APP的安装、启动、使用、卸载等测试。Wherein, in this embodiment, the test task is to test the adaptation of the APP on different test terminals, including tests such as installation, startup, use, and uninstallation of the APP.
如图3a所示,用户终端显示屏的操作界面中显示有用户选择的4个测试终端的显示界面,其中,测试终端A为主测试终端,其它3个测试终端(测试终端B、C和D)为从测试终端,由于主测试终端是用户的直接操作对象,可以在用户终端显示屏的浏览器界面中为其分配较大的显示空间,以便于用户操作,为从测试终端分配较小的显示空间,以便于可以增加能够进行同步测试的测试终端的数量。As shown in Figure 3a, the display interface of four test terminals selected by the user is displayed in the operation interface of the user terminal display screen, wherein, test terminal A is the main test terminal, and the other three test terminals (test terminals B, C and D ) is the slave test terminal, since the master test terminal is the direct operation object of the user, a large display space can be allocated to it in the browser interface of the user terminal display screen, so as to facilitate the user's operation, and a smaller space can be allocated for the slave test terminal Display space so that the number of test terminals capable of simultaneous testing can be increased.
进一步地,开始测试任务时,用户可以通过图3a所示的操作界面只针对主测试终端的显示界面(具体可以是APP的应用界面)进行操作,则用户终端获取针对主测试终端的操作事件,操作事件的类型具体可以是点击操作。Further, when starting the test task, the user can operate only on the display interface of the main test terminal (specifically, the application interface of APP) through the operation interface shown in Figure 3a, then the user terminal obtains the operation event for the main test terminal, The type of the operation event may specifically be a click operation.
在一些可行的实施方式中,操作事件的类型具体还可以是滑动操作、悬浮手势操作等。In some feasible implementation manners, the type of the operation event may specifically be a slide operation, a hover gesture operation, and the like.
202、所述用户终端根据所述操作事件生成针对多个测试终端的测试控制指令。202. The user terminal generates test control instructions for multiple test terminals according to the operation event.
具体实现中,用户终端获取操作事件在主测试终端的显示屏中的第一操作位置(可以通过坐标等表示),根据第一操作位置、主测试终端的显示屏的屏幕参数和从测试终端的显示屏的屏幕参数,确定各个从测试终端的显示屏中的等效位置(记为第二操作位置),针对主测试终端的操作事件作用在从测试终端的等效位置时,与主测试终端执行相同的测试操作(如点击图3a所示的“下载”按钮),其中,屏幕参数可以包括屏幕尺寸、屏幕分辨率、长宽比等。用户终端确定各个从测试终端的第二操作位置后,将各个从测试终端的标识和各自的第二操作位置的对应关系、主测试终端的标识和第一操作位置的对应关系以及操作事件的类型生成测试控制指令。In the specific implementation, the user terminal acquires the first operation position (which can be expressed by coordinates, etc.) The screen parameters of the display screen determine the equivalent position (denoted as the second operating position) in the display screen of each slave test terminal. When the operation event of the master test terminal acts on the equivalent position of the slave test terminal, the Perform the same test operation (such as clicking the "Download" button shown in FIG. 3a), where the screen parameters may include screen size, screen resolution, aspect ratio, and the like. After the user terminal determines the second operating position of each slave test terminal, the corresponding relationship between the identifier of each slave test terminal and the respective second operating position, the corresponding relationship between the identifier of the master test terminal and the first operating position, and the type of operation event Generate test control instructions.
如图3b所示,假设测试终端A为主测试终端,测试终端B为从测试终端,测试终端A上的坐标(480,770)对应测试终端B上的坐标(350,630),则测试终端A到测试终端B的坐标转换系数为:横轴转换系数α=350/480,竖轴转换系数β=630/770,则进行某测试操作如果在测试终端A上需要点击的第一操作位置的坐标为(205,536),则对应测试终端B上需要点击的第二操作位置的坐标为(205*α,536*β),即(150,439)。As shown in Figure 3b, assuming that test terminal A is the master test terminal, test terminal B is the slave test terminal, and the coordinates (480, 770) on test terminal A correspond to the coordinates (350, 630) on test terminal B, then the test terminal The coordinate conversion coefficients from A to test terminal B are: horizontal axis conversion coefficient α=350/480, vertical axis conversion coefficient β=630/770, then a certain test operation needs to be clicked on the first operating position on test terminal A The coordinates are (205, 536), and the coordinates corresponding to the second operation position to be clicked on the test terminal B are (205*α, 536*β), that is, (150, 439).
在一些可行的实施方式中,如果操作事件的类型具体是滑动操作,例如,在主测试终端的显示界面上的左右滑动或上下滑动,则用户终端获取操作事件在主测试终端的显示屏中的第一操作位置,如果是直线滑动操作,则第一操作位置可以只包括滑动起点和滑动终点,如果是曲线滑动操作(如滑动轨迹为“S”形),则第一操作位置可以同时包括滑动起点、滑动终点以及在滑动过程中经历的每一个点,从而用户终端可以根据第一操作位置、主测试终端的显示屏的屏幕参数和从测试终端的显示屏的屏幕参数,确定第一操作位置在各个从测试终端的显示屏中的等效位置(记为第二操作位置),从而实现针对主测试终端的滑动操作作用在从测试终端的等效位置,与主测试终端执行相同的测试操作,例如,滑动操作对应的翻页测试、页面前进测试、页面后退测试、播放进度控制测试、音量调节测试或者亮度调节测试等。In some feasible implementation manners, if the type of the operation event is specifically a sliding operation, for example, sliding left and right or sliding up and down on the display interface of the main test terminal, the user terminal obtains the operation event on the display screen of the main test terminal. The first operating position, if it is a linear sliding operation, the first operating position may only include the sliding start point and the sliding end point, and if it is a curved sliding operation (such as the sliding track is "S" shape), then the first operating position may include sliding at the same time The starting point, the sliding end point, and each point experienced during the sliding process, so that the user terminal can determine the first operating position according to the first operating position, the screen parameters of the display screen of the master test terminal and the screen parameters of the display screen of the slave test terminal The equivalent position in the display screen of each slave test terminal (denoted as the second operating position), so that the sliding operation for the master test terminal acts on the equivalent position of the slave test terminal, and performs the same test operation as the master test terminal , for example, page turning test, page forward test, page back test, playback progress control test, volume adjustment test, or brightness adjustment test corresponding to the sliding operation.
203、所述用户终端向后台服务器发送所述测试控制指令,所述后台服务器接收所述测试控制指令。203. The user terminal sends the test control instruction to a background server, and the background server receives the test control instruction.
具体实现中,用户终端可以通过Web Socket与后台服务器建立直连通道,并可以通过Web Socket直连通道将测试控制指令发送给后台服务器。In the specific implementation, the user terminal can establish a direct connection channel with the background server through the Web Socket, and can send the test control command to the background server through the Web Socket direct connection channel.
204、所述后台服务器通过客户端向所述多个测试终端转发所述测试控制指令。204. The background server forwards the test control instruction to the multiple test terminals through the client.
205、所述多个测试终端同步执行所述测试控制指令所指示的测试操作。205. The multiple test terminals synchronously execute the test operation indicated by the test control instruction.
具体实现中,后台服务器可以通过客户端向多个测试终端转发测试控制指令,各个测试终端接收到测试控制指令后,获取测试控制指令携带的操作事件的类型,以及主测试终端从测试控制指令中查询自身标识对应的第一操作位置,各个从测试终端从测试控制指令中查询自身标识对应的第二操作位置,从而该多个测试终端同步执行测试控制指令所指示的操作事件的类型对应的测试操作,以操作事件的类型为点击操作为例,则主测试终端在自身的应用界面的第一操作位置执行点击操作,各个从测试终端同步在自身的应用界面的第二操作位置执行点击操作,从而主测试终端在自身的应用界面的第一操作位置执行点击操作与从测试终端同步在自身的应用界面的第二操作位置执行点击操作产生相同的操作效果。In the specific implementation, the background server can forward the test control command to multiple test terminals through the client. Query the first operating position corresponding to its own identification, and each slave test terminal inquires the second operating position corresponding to its own identification from the test control instruction, so that the multiple test terminals synchronously execute the test corresponding to the type of operation event indicated by the test control instruction Operation, taking the type of operation event as a click operation as an example, the master test terminal performs a click operation at the first operation position of its own application interface, and each slave test terminal performs a click operation at the second operation position of its own application interface synchronously, Therefore, the master test terminal performs the click operation at the first operation position of its own application interface and the slave test terminal synchronously performs the click operation at the second operation position of its own application interface to produce the same operation effect.
在一些可行的实施方式中,后台服务器存储有测试终端与客户端的连接关系,如果客户端有多个,则对于任一客户端,后台服务器将其连接的测试终端的操作位置以及操作事件的类型以测试控制指令的形式发送给该任一客户端,再由该任一客户端以测试控制指令的形式向连接的各个测试终端发送各自的操作位置以及操作事件的类型,从而测试终端可以只接收与自身相关的操作位置,进而在相应的操作位置执行操作事件的类型对应的测试操作。In some feasible implementations, the background server stores the connection relationship between the test terminal and the client. If there are multiple clients, for any client, the background server will connect the operating position of the test terminal and the type of the operation event. It is sent to any client in the form of test control instructions, and then any client sends the respective operation positions and types of operation events to each connected test terminal in the form of test control instructions, so that the test terminal can only receive The operation location related to itself, and then execute the test operation corresponding to the type of operation event at the corresponding operation location.
在一些可行的实施方式中,如果操作事件的类型具体是悬浮手势操作,例如,用户针对用户终端在空中画出“O”型手势,则用户终端解析出用户画出的手势为“O”型手势后,可以根据事先设定的悬浮手势与测试动作的对应关系确定出“O”型手势对应的测试动作(如关闭当前测试的应用),则用户终端生成的测试控制指令为关闭当前测试的应用,并向后台服务器发送该测试控制指令,后台服务器通过客户端向该多个测试终端转发该测试控制指令,该多个测试终端接收到该测试控制指令后同步关闭当前测试的应用。In some feasible implementation manners, if the type of the operation event is specifically a hover gesture operation, for example, the user draws an "O" gesture in the air towards the user terminal, the user terminal analyzes that the gesture drawn by the user is an "O" gesture. After the gesture, the test action corresponding to the "O" gesture (such as closing the current test application) can be determined according to the preset correspondence between the floating gesture and the test action, and the test control command generated by the user terminal is to close the current test. application, and send the test control command to the background server, the background server forwards the test control command to the multiple test terminals through the client, and the multiple test terminals synchronously close the current test application after receiving the test control command.
206、所述后台服务器通过所述客户端获取所述多个测试终端的当前显示界面的图像数据。206. The background server obtains the image data of the current display interface of the plurality of test terminals through the client.
207、所述后台服务器向所述用户终端发送所述多个测试终端的当前显示界面的图像数据。207. The background server sends image data of currently displayed interfaces of the multiple test terminals to the user terminal.
208、所述用户终端根据所述图像数据将所述多个测试终端的当前显示界面显示在所述用户终端的显示屏中。208. The user terminal displays current display interfaces of the multiple test terminals on a display screen of the user terminal according to the image data.
具体实现中,该多个测试终端实时将各自当前显示界面的图像数据通过连接的客户端上报给后台服务器,后台服务器可以通过Web Socket直连通道向用户终端发送该多个测试终端的当前显示界面的图像数据,用户终端根据各个测试终端在显示屏中的位置实时地将各自的当前显示界面展示出来,用户通过观察测试终端的当前显示界面可以对测试终端对测试任务的执行情况进行直观的掌握。In the specific implementation, the multiple test terminals report the image data of their current display interfaces to the background server through the connected client in real time, and the background server can send the current display interfaces of the multiple test terminals to the user terminal through the Web Socket direct connection channel The user terminal displays the current display interface of each test terminal in real time according to the position of each test terminal in the display screen, and the user can intuitively grasp the execution of the test task by the test terminal by observing the current display interface of the test terminal .
在一些可行的实施方式中,用户终端侧可以具备同步测试开关功能,具体实现可以如图3a所示,用户终端的操作界面中设有联动开关,联动开关关闭时,同步测试功能关闭,此时测试任务只对主测试终端有效。联动开关开启时,同步测试功能关闭开启,此时测试任务对主测试终端和从测试终端同步有效,从而可以支持灵活多样的测试场景。In some feasible implementation manners, the user terminal side may have a synchronous test switch function. The specific implementation may be as shown in FIG. 3a. A linkage switch is provided in the user terminal operation interface. The test task is only valid for the main test terminal. When the linkage switch is turned on, the synchronous test function is turned off and turned on. At this time, the test task is valid for the master test terminal and the slave test terminal synchronously, so that flexible and diverse test scenarios can be supported.
进一步地,用户在用户终端的操作界面中通过观察测试终端的当前显示界面,在发现存在有测试终端与其它测试终端不同步时,表明该测试终端的测试出现异常,若异常的测试终端为主测试终端,则可以关闭联动开关,单独对主测试终端进行独立调试,直到主测试终端恢复正常,然后可以再开启联动开关,继续进行主测试终端和从测试终端的同步测试;若异常的测试终端为从测试终端,则可以关闭联动开关,将从测试终端切换为主测试终端,单独对新的主测试终端进行独立调试,直到其恢复正常,然后可以再开启联动开关,继续进行主测试终端和从测试终端的同步测试。Further, when the user observes the current display interface of the test terminal in the operation interface of the user terminal, when it is found that there is a test terminal out of sync with other test terminals, it indicates that the test of the test terminal is abnormal, if the abnormal test terminal is the main test terminal, you can turn off the linkage switch, and independently debug the main test terminal until the main test terminal returns to normal, and then turn on the linkage switch to continue the synchronous test of the main test terminal and the slave test terminal; if the abnormal test terminal If it is a slave test terminal, you can turn off the linkage switch, switch the slave test terminal to the main test terminal, and independently debug the new main test terminal until it returns to normal, and then turn on the linkage switch to continue the main test terminal and Synchronous testing from a testing terminal.
在一些可行的实施方式中,从测试终端也可以支持独立操作,若异常的测试终端为从测试终端,则可以关闭联动开关,直接对异常的从测试终端(如图3a中的从测试终端B、C和D)进行独立调试,直到其恢复正常,然后可以再开启联动开关,继续进行主测试终端和从测试终端的同步测试。In some feasible embodiments, the slave test terminal can also support independent operation. If the abnormal test terminal is a slave test terminal, the linkage switch can be turned off, and the abnormal slave test terminal (such as slave test terminal B in Figure 3a) can be directly controlled. , C and D) carry out independent debugging until it returns to normal, and then turn on the linkage switch to continue the synchronization test of the master test terminal and the slave test terminal.
在一些可行的实施方式中,还可以对测试终端进行一些快捷操作,如图3c所示,包括一键安装APP,一键屏幕截图,快捷操作按钮,点击快捷操作按钮后可以调出一键启动应用、一键卸载应用等快捷操作选项。联动开关开启时,可以针对全部的测试终端执行快捷操作,也可以关闭联动开关后,对主测试终端单独执行快捷操作,或者对选中的一个或者多个从测试终端单独执行快捷操作,可以满足不同用户的个性化需求,有助于进一步提高测试效率。In some feasible implementations, some shortcut operations can also be performed on the test terminal, as shown in Figure 3c, including one-key installation of APP, one-key screenshot, and shortcut operation buttons. After clicking the shortcut operation button, one-key start Apps, one-click uninstall apps and other shortcut options. When the linkage switch is turned on, shortcut operations can be performed on all test terminals, or after the linkage switch is turned off, shortcut operations can be performed on the main test terminal alone, or on one or more selected slave test terminals, which can meet different requirements. The personalized needs of users will help to further improve the test efficiency.
其中,一键屏幕截图可以用于在测试终端进行测试任务过程中出现异常时,利用一键屏幕截图对用户终端的操作界面进行截屏,实现对异常的测试终端的记录,以便于后续的统计分析。Among them, the one-click screenshot can be used to take a screenshot of the operation interface of the user terminal when an abnormality occurs during the test task of the test terminal, so as to record the abnormal test terminal for subsequent statistical analysis .
在一些可行的实施方式中,各个测试终端在测试过程中可以记录测试终端的实时状态数据或者异常数据,并生成测试日志,上报给客户端保存,客户端还可以进一步将测试日志发送给后台服务器保存,从而相关运维人员可以根据客户端或者后台服务器保存的测试日志对测试终端存在的软件和/或硬件问题进行排查解决,例如,客户端或后台服务器可以对测试日志进行自动化解析评估,当测试日志中存在异常数据时发出告警通知,便于运维人员对相应的测试终端存在的软件和/或硬件问题进行及时地排查、解决。In some feasible embodiments, each test terminal can record the real-time status data or abnormal data of the test terminal during the test, and generate a test log, report it to the client for storage, and the client can further send the test log to the background server Save, so that relevant operation and maintenance personnel can troubleshoot and solve software and/or hardware problems existing in the test terminal according to the test logs saved by the client or the background server. For example, the client or the background server can automatically analyze and evaluate the test logs. When When there is abnormal data in the test log, an alarm notification is issued, which is convenient for the operation and maintenance personnel to timely investigate and solve the software and/or hardware problems existing in the corresponding test terminal.
需要说明的是,由于用户终端向后台服务器发送的测试控制指令,以及后台服务器向用户终端发送的图像数据对实时性要求较高,测试控制指令、图像数据可以通过WebSocket直连通道在用户终端和后台服务器之间传输,以保证测试操作的实时性。而快捷操作等对实时性要求较低的指令数据可以通过间接的传输路径在用户终端和后台服务器之间传输,例如,用户终端可以通过HTTP请求将快捷操作的指令数据发送给网域名称系统(Domain Name System,DNS),经DNS解析后快捷操作的指令数据发给NGINX(一种网页服务器),再由NGINX将快捷操作的指令数据向后台服务器转发。It should be noted that since the test control commands sent by the user terminal to the background server and the image data sent by the background server to the user terminal have high requirements for real-time performance, the test control commands and image data can be transmitted between the user terminal and the The background server is transmitted to ensure the real-time performance of the test operation. Instruction data with low real-time requirements such as shortcut operations can be transmitted between the user terminal and the background server through an indirect transmission path. For example, the user terminal can send the instruction data of shortcut operations to the domain name system ( Domain Name System, DNS), the command data of shortcut operation is sent to NGINX (a web server) after DNS resolution, and then NGINX forwards the command data of shortcut operation to the background server.
在一些可行的实施方式中,由于从测试终端的当前显示界面在用户终端操作界面中的显示区域较小,可以通过一些快捷键(如键盘上的Ctrl键或者多个按键的组合)调出放大镜工具,将放大镜停留在从测试终端当前显示界面的某显示区域即可对实现该显示区域的放大,如图3d所示。In some feasible implementation manners, since the current display interface of the test terminal has a smaller display area in the user terminal operation interface, some shortcut keys (such as the Ctrl key on the keyboard or a combination of multiple keys) can be used to call out the magnifying glass Tool, stay the magnifying glass on a certain display area of the current display interface of the test terminal to realize the magnification of the display area, as shown in Figure 3d.
在一些可行的实施方式中,由于某些APP在屏幕分辨率不同的显示界面中其应用界面布局可能会发生变化,通过获取操作事件的操作位置实现主测试终端和从测试终端的同步测试可能会出现不准确的情况,例如主测试终端上执行的测试操作为点击应用界面中的某一控件,而从测试终端上执行的测试操作却是点击应用界面中的其它控件。此时,其中一种可行的替代方案可以是:用户终端获取针对主测试终端的操作事件的操作位置,将操作位置发送给后台服务器,后台服务器将操作位置发送给连接主测试终端的客户端,由该客户端根据操作位置和主测试终端的屏幕参数等解析出该操作事件操作的控件,该客户端将操作的控件信息上报给后台服务器,由后台服务器向连接从测试终端的客户端发送操作的控件信息,当然如果主测试终端和从测试终端的数量较少,连接到了同一个客户端上,则此时客户端无需将操作的控件信息上报给后台服务器,进而各个客户端根据操作的控件信息指示各自连接的测试终端对操作的控件信息所指示的控件执行该操作事件(如点击、滑动、悬浮手势等),从而可以更加准确地实现多测试终端的同步测试。In some feasible implementations, since the layout of the application interface of some APPs may change in the display interface with different screen resolutions, it may be possible to achieve synchronous testing of the master test terminal and the slave test terminal by obtaining the operation position of the operation event. Inaccurate situations occur, for example, the test operation performed on the main test terminal is to click a certain control in the application interface, while the test operation performed on the secondary test terminal is to click other controls in the application interface. At this time, one of the feasible alternatives may be: the user terminal obtains the operation position of the operation event for the main test terminal, sends the operation position to the background server, and the background server sends the operation position to the client connected to the main test terminal, According to the operation location and the screen parameters of the main test terminal, the client parses out the control of the operation event operation, the client reports the operation control information to the background server, and the background server sends the operation to the client connected to the slave test terminal Of course, if the number of master test terminals and slave test terminals is small and they are connected to the same client, then the client does not need to report the operation control information to the background server at this time, and then each client can The information instructs the respective connected test terminals to perform the operation event (such as click, slide, hover gesture, etc.) on the control indicated by the control information of the operation, so that the synchronous test of multiple test terminals can be realized more accurately.
本发明实施例中,用户终端获取针对主测试终端的操作事件,根据该操作事件生成针对多个测试终端的测试控制指令,并向后台服务器发送该测试控制指令,该后台服务器通过客户端向该多个测试终端转发该测试控制指令,从而该多个测试终端同步执行该测试控制指令所指示的测试操作,从而可以实现多测试终端的同步测试,提高测试效率,并可以支持灵活丰富的测试场景。In the embodiment of the present invention, the user terminal acquires an operation event for the main test terminal, generates test control instructions for multiple test terminals according to the operation event, and sends the test control instruction to the background server, and the background server sends the test control instruction to the client through the client. Multiple test terminals forward the test control command, so that the multiple test terminals synchronously execute the test operation indicated by the test control command, so that synchronous testing of multiple test terminals can be realized, test efficiency can be improved, and flexible and rich test scenarios can be supported .
请参阅图4,为本发明实施例提供的一种用户终端的结构示意图。本实施例中所描述的用户终端,应用于云测试系统,所述云测试系统包括所述用户终端、后台服务器、客户端和多个测试终端,所述多个测试终端包括主测试终端和从测试终端,所述多个测试终端通过所述客户端与所述后台服务器建立连接,所述用户终端包括:Please refer to FIG. 4 , which is a schematic structural diagram of a user terminal provided by an embodiment of the present invention. The user terminal described in this embodiment is applied to a cloud test system, and the cloud test system includes the user terminal, a background server, a client, and multiple test terminals, and the multiple test terminals include a master test terminal and a slave test terminal. A test terminal, the multiple test terminals establish a connection with the background server through the client, and the user terminal includes:
获取模块401,用于获取针对所述主测试终端的操作事件。The obtaining
生成模块402,用于根据所述操作事件生成针对所述多个测试终端的测试控制指令。The
发送模块403,用于向所述后台服务器发送所述测试控制指令,以使所述后台服务器通过所述客户端向所述多个测试终端转发所述测试控制指令,所述测试控制指令用于指示所述多个测试终端同步执行所述测试控制指令所指示的测试操作。A sending
在一些可行的实施方式中,所述用户终端还包括:In some feasible implementation manners, the user terminal further includes:
接收模块404,用于接收所述后台服务器发送的所述多个测试终端的当前显示界面的图像数据。The receiving
显示模块405,用于根据所述图像数据将所述多个测试终端的当前显示界面显示在所述用户终端的显示界面中。The
在一些可行的实施方式中,所述生成模块402,具体用于:In some feasible implementation manners, the
获取所述操作事件在所述主测试终端的显示屏中的第一操作位置。Acquiring the first operation position of the operation event on the display screen of the main test terminal.
根据所述第一操作位置、所述主测试终端的显示屏的屏幕参数和所述从测试终端的显示屏的屏幕参数,确定针对所述从测试终端的测试操作在显示屏中的第二操作位置。According to the first operation position, the screen parameters of the display screen of the master test terminal and the screen parameters of the display screen of the slave test terminal, determine the second operation in the display screen for the test operation of the slave test terminal Location.
根据所述第一操作位置、所述第二操作位置和所述操作事件生成针对所述多个测试终端的测试控制指令。and generating test control instructions for the plurality of test terminals according to the first operating position, the second operating position and the operating event.
在一些可行的实施方式中,所述用户终端还包括确定模块406,其中:In some feasible implementation manners, the user terminal further includes a determining
所述确定模块406,用于根据测试终端选择操作从所述多个测试终端中确定出目标测试终端,所述目标测试终端包括所述主测试终端和/或至少一个所述从测试终端。The
所述获取模块401,还用于获取针对所述目标测试终端的快捷操作指令。The acquiring
所述发送模块403,还用于向所述后台服务器发送所述快捷操作指令,以使所述后台服务器通过所述客户端向所述目标测试终端转发所述快捷操作指令,所述快捷操作指令用于指示所述目标测试终端同步执行所述快捷操作指令所指示的快捷操作。The sending
在一些可行的实施方式中,所述发送模块403,具体用于:In some feasible implementation manners, the sending
通过与所述后台服务器之间的Web Socket直连通道向所述后台服务器发送所述测试控制指令。Send the test control instruction to the background server through the WebSocket direct connection channel with the background server.
可以理解的是,本实施例的数据信息处理装置的各功能模块的功能可根据上述方法实施例中的方法具体实现,其具体实现过程可以参照上述方法实施例的相关描述,此处不再赘述。It can be understood that the functions of each functional module of the data information processing device in this embodiment can be specifically implemented according to the method in the above method embodiment, and the specific implementation process can refer to the relevant description of the above method embodiment, and will not be repeated here. .
本发明实施例中,获取模块401获取针对主测试终端的操作事件,生成模块402根据该操作事件生成针对多个测试终端的测试控制指令,发送模块403向后台服务器发送该测试控制指令,以使该后台服务器通过客户端向该多个测试终端转发该测试控制指令,以指示该多个测试终端同步执行该测试控制指令所指示的测试操作,从而可以实现多测试终端的同步测试,提高测试效率。In the embodiment of the present invention, the
请参阅图5,为本发明实施例提供的一种后台服务器的结构示意图。本实施例中所描述的后台服务器,应用于云测试系统,所述云测试系统包括用户终端、所述后台服务器、客户端和多个测试终端,所述多个测试终端包括主测试终端和从测试终端,所述多个测试终端通过所述客户端与所述后台服务器建立连接,所述后台服务器包括:Please refer to FIG. 5 , which is a schematic structural diagram of a background server provided by an embodiment of the present invention. The background server described in this embodiment is applied to a cloud test system, and the cloud test system includes a user terminal, the background server, a client, and a plurality of test terminals, and the plurality of test terminals include a master test terminal and a slave test terminal. A test terminal, the multiple test terminals establish a connection with the background server through the client, and the background server includes:
接收模块501,用于接收所述用户终端发送的针对所述多个测试终端的测试控制指令,所述测试控制指令由所述用户终端根据针对所述主测试终端的操作事件生成。The receiving
发送模块502,用于通过所述客户端向所述多个测试终端转发所述测试控制指令,所述测试控制指令用于指示所述多个测试终端同步执行所述测试控制指令所指示的测试操作。A sending
在一些可行的实施方式中,所述发送模块502,还用于向所述用户终端发送所述多个测试终端的当前显示界面的图像数据,以使所述用户终端根据所述图像数据将所述多个测试终端的当前显示界面显示在所述用户终端的显示界面中。In some feasible implementation manners, the sending
在一些可行的实施方式中,所述接收模块501,还用于接收所述用户终端针对目标测试终端发送的快捷操作指令,所述目标测试终端包括所述主测试终端和/或至少一个所述从测试终端。In some feasible implementation manners, the receiving
所述发送模块502,还用于通过所述客户端向所述目标测试终端转发所述快捷操作指令,所述快捷操作指令用于指示所述目标测试终端同步执行所述快捷操作指令所指示的快捷操作。The sending
在一些可行的实施方式中,所述发送模块502,具体用于:In some feasible implementation manners, the sending
通过与所述用户终端之间的Web Socket直连通道向所述用户终端发送所述多个测试终端的当前显示界面的图像数据。Send the image data of the current display interface of the plurality of test terminals to the user terminal through the Web Socket direct connection channel with the user terminal.
可以理解的是,本实施例的数据信息处理装置的各功能模块的功能可根据上述方法实施例中的方法具体实现,其具体实现过程可以参照上述方法实施例的相关描述,此处不再赘述。It can be understood that the functions of each functional module of the data information processing device in this embodiment can be specifically implemented according to the method in the above method embodiment, and the specific implementation process can refer to the relevant description of the above method embodiment, and will not be repeated here. .
本发明实施例中,接收模块501接收用户终端发送的针对多个测试终端的测试控制指令,该测试控制指令由该用户终端根据针对主测试终端的操作事件生成,发送模块502通过客户端向该多个测试终端转发该测试控制指令,以指示该多个测试终端同步执行该测试控制指令所指示的测试操作,从而可以实现多测试终端的同步测试,提高测试效率。In the embodiment of the present invention, the receiving
请参阅图6,为本发明实施例提供的另一种用户终端的结构示意图。本实施例中所描述的用户终端,包括:处理器601、用户接口602、网络接口603及存储器604。其中,处理器601、用户接口602、网络接口603及存储器604可通过总线或其他方式连接,本发明实施例以通过总线连接为例。Please refer to FIG. 6 , which is a schematic structural diagram of another user terminal provided by an embodiment of the present invention. The user terminal described in this embodiment includes: a
其中,处理器601(或称CPU(Central Processing Unit,中央处理器))是用户终端的计算核心以及控制核心,其可以解析用户终端内的各类指令以及处理用户终端的各类数据,例如:CPU可以用于解析用户向用户终端所发送的开关机指令,并控制用户终端进行开关机操作;再如:CPU可以在用户终端内部结构之间传输各类交互数据,等等。用户接口602是实现用户与用户终端进行交互和信息交换的媒介,其具体体现可以包括用于输出的显示屏(Display)以及用于输入的键盘(Keyboard)等等,需要说明的是,此处的键盘既可以为实体键盘,也可以为触屏虚拟键盘,还可以为实体与触屏虚拟相结合的键盘。网络接口603可选的可以包括标准的有线接口、无线接口(如WI-FI、移动通信接口等),受处理器601的控制用于收发数据。存储器604(Memory)是用户终端中的记忆设备,用于存放程序和数据。可以理解的是,此处的存储器604既可以包括用户终端的内置存储器,当然也可以包括用户终端所支持的扩展存储器。存储器604提供存储空间,该存储空间存储了用户终端的操作系统,可包括但不限于:Windows系统(一种操作系统)、Android系统、IOS系统等等,本发明对此并不作限定。Among them, the processor 601 (or CPU (Central Processing Unit, central processing unit)) is the calculation core and control core of the user terminal, which can analyze various instructions in the user terminal and process various data of the user terminal, for example: The CPU can be used to analyze the power-on/off instructions sent by the user to the user terminal, and control the user terminal to perform power-on/off operations; another example: the CPU can transmit various interactive data between internal structures of the user terminal, and so on. The
在本发明实施例中,处理器601通过运行存储器604中的可执行程序代码:In the embodiment of the present invention, the
处理器601,用于获取针对所述主测试终端的操作事件。The
所述处理器601,还用于根据所述操作事件生成针对所述多个测试终端的测试控制指令。The
网络接口603,用于向所述后台服务器发送所述测试控制指令,以使所述后台服务器通过所述客户端向所述多个测试终端转发所述测试控制指令,所述测试控制指令用于指示所述多个测试终端同步执行所述测试控制指令所指示的测试操作。A
在一些可行的实施方式中,所述网络接口603,还用于接收所述后台服务器发送的所述多个测试终端的当前显示界面的图像数据。In some feasible implementation manners, the
用户接口602,用于根据所述图像数据将所述多个测试终端的当前显示界面显示在所述用户终端的显示界面中。The
在一些可行的实施方式中,所述处理器601,具体用于:In some feasible implementation manners, the
获取所述操作事件在所述主测试终端的显示屏中的第一操作位置。Acquiring the first operation position of the operation event on the display screen of the main test terminal.
根据所述第一操作位置、所述主测试终端的显示屏的屏幕参数和所述从测试终端的显示屏的屏幕参数,确定针对所述从测试终端的测试操作在显示屏中的第二操作位置。According to the first operation position, the screen parameters of the display screen of the master test terminal and the screen parameters of the display screen of the slave test terminal, determine the second operation in the display screen for the test operation of the slave test terminal Location.
根据所述第一操作位置、所述第二操作位置和所述操作事件生成针对所述多个测试终端的测试控制指令。and generating test control instructions for the plurality of test terminals according to the first operating position, the second operating position and the operating event.
在一些可行的实施方式中,所述处理器601,还用于根据测试终端选择操作从所述多个测试终端中确定出目标测试终端,所述目标测试终端包括所述主测试终端和/或至少一个所述从测试终端。In some feasible implementation manners, the
所述处理器601,还用于获取针对所述目标测试终端的快捷操作指令。The
所述网络接口603,还用于向所述后台服务器发送所述快捷操作指令,以使所述后台服务器通过所述客户端向所述目标测试终端转发所述快捷操作指令,所述快捷操作指令用于指示所述目标测试终端同步执行所述快捷操作指令所指示的快捷操作。The
在一些可行的实施方式中,所述网络接口603,具体用于:In some feasible implementation manners, the
通过与所述后台服务器之间的Web Socket直连通道向所述后台服务器发送所述测试控制指令。Send the test control instruction to the background server through the WebSocket direct connection channel with the background server.
具体实现中,本发明实施例中所描述的处理器601、用户接口602、网络接口603及存储器604可执行本发明实施例提供的一种远程测试方法的流程中所描述的实现方式,也可执行本发明实施例提供的一种用户终端中所描述的实现方式,在此不再赘述。In specific implementation, the
本发明实施例中,处理器601获取针对主测试终端的操作事件,根据该操作事件生成针对多个测试终端的测试控制指令,网络接口603向后台服务器发送该测试控制指令,以使该后台服务器通过客户端向该多个测试终端转发该测试控制指令,以指示该多个测试终端同步执行该测试控制指令所指示的测试操作,从而可以实现多测试终端的同步测试,提高测试效率。In the embodiment of the present invention, the
请参阅图7,为本发明实施例提供的另一种后台服务器的结构示意图。本实施例中所描述的后台服务器,包括:处理器701、网络接口702及存储器703。其中,处理器701、网络接口702及存储器703可通过总线或其他方式连接,本发明实施例以通过总线连接为例。Please refer to FIG. 7 , which is a schematic structural diagram of another background server provided by an embodiment of the present invention. The background server described in this embodiment includes: a
其中,处理器701(或称中央处理器(Central Processing Unit,CPU))是后台服务器的计算核心以及控制核心。网络接口702可选的可以包括标准的有线接口、无线接口(如WI-FI、移动通信接口等),受处理器701的控制用于收发数据。存储器703(Memory)是后台服务器的记忆设备,用于存放程序和数据。可以理解的是,此处的存储器703可以是高速RAM存储器,也可以是非不稳定的存储器(non-volatile memory),例如至少一个磁盘存储器;可选的还可以是至少一个位于远离前述处理器701的存储装置。存储器703提供存储空间,该存储空间存储了后台服务器的操作系统和可执行程序代码,可包括但不限于:Windows系统(一种操作系统)、Linux(一种操作系统)系统等等,本发明对此并不作限定。Wherein, the processor 701 (or central processing unit (Central Processing Unit, CPU)) is the calculation core and control core of the background server. The
在本发明实施例中,处理器701通过运行存储器703中的可执行程序代码,执行如下操作:In the embodiment of the present invention, the
处理器701,用于通过网络接口702接收所述用户终端发送的针对所述多个测试终端的测试控制指令,所述测试控制指令由所述用户终端根据针对所述主测试终端的操作事件生成。The
网络接口702,用于通过所述客户端向所述多个测试终端转发所述测试控制指令,所述测试控制指令用于指示所述多个测试终端同步执行所述测试控制指令所指示的测试操作。A
在一些可行的实施方式中,所述处理器701,还用于通过网络接口702向所述用户终端发送所述多个测试终端的当前显示界面的图像数据,以使所述用户终端根据所述图像数据将所述多个测试终端的当前显示界面显示在所述用户终端的显示界面中。In some feasible implementation manners, the
在一些可行的实施方式中,所述网络接口702,还用于接收所述用户终端针对目标测试终端发送的快捷操作指令,所述目标测试终端包括所述主测试终端和/或至少一个所述从测试终端。In some feasible implementation manners, the
所述网络接口702,还用于通过所述客户端向所述目标测试终端转发所述快捷操作指令,所述快捷操作指令用于指示所述目标测试终端同步执行所述快捷操作指令所指示的快捷操作。The
在一些可行的实施方式中,所述网络接口702,具体用于:In some feasible implementation manners, the
通过与所述用户终端之间的Web Socket直连通道向所述用户终端发送所述多个测试终端的当前显示界面的图像数据。Send the image data of the current display interface of the plurality of test terminals to the user terminal through the Web Socket direct connection channel with the user terminal.
具体实现中,本发明实施例中所描述的处理器701、网络接口702及存储器703可执行本发明实施例提供的一种远程测试方法的流程中所描述的实现方式,也可执行本发明实施例提供的一种后台服务器中所描述的实现方式,在此不再赘述。In specific implementation, the
本发明实施例中,处理器701通过网络接口702接收用户终端发送的针对多个测试终端的测试控制指令,该测试控制指令由该用户终端根据针对主测试终端的操作事件生成,网络接口702通过客户端向该多个测试终端转发该测试控制指令,以指示该多个测试终端同步执行该测试控制指令所指示的测试操作,从而可以实现多测试终端的同步测试,提高测试效率。In the embodiment of the present invention, the
请参阅图8,为本发明实施例提供的一种远程测试系统的结构示意图。本实施例中所描述的远程测试系统,包括:用户终端801、后台服务器802、客户端803和多个测试终端804,其中:Please refer to FIG. 8 , which is a schematic structural diagram of a remote testing system provided by an embodiment of the present invention. The remote test system described in this embodiment includes: a
用户终端801,用于获取针对多个测试终端804中的主测试终端的操作事件。The
所述用户终端801,还用于根据所述操作事件生成针对多个测试终端804的测试控制指令。The
所述用户终端801,还用于向后台服务器802发送所述测试控制指令。The
所述后台服务器802,用于接收所述测试控制指令。The
所述后台服务器802,还用于通过客户端803向所述多个测试终端804转发所述测试控制指令。The
所述多个测试终端804,用于同步执行所述测试控制指令所指示的测试操作。The
所述后台服务器802,还用于通过所述客户端803获取所述多个测试终端804的显示屏中当前显示界面的图像数据。The
所述后台服务器802,还用于向所述用户终端801发送所述多个测试终端804显示屏中当前显示界面的图像数据。The
所述用户终端801,还用于根据所述图像数据将所述多个测试终端804的当前显示界面显示在所述用户终端801的显示屏中。The
可以理解的是,本实施例的用户终端801、后台服务器802、客户端803和多个测试终端804的功能可根据上述方法实施例中的方法具体实现,其具体实现过程可以参照上述方法实施例的相关描述,此处不再赘述。It can be understood that the functions of the
本发明实施例中,用户终端801获取针对主测试终端的操作事件,根据该操作事件生成针对多个测试终端804的测试控制指令,并向后台服务器802发送该测试控制指令,该后台服务器802通过客户端803向该多个测试终端804转发该测试控制指令,从而该多个测试终端804同步执行该测试控制指令所指示的测试操作,从而可以实现多测试终端的同步测试,提高测试效率。In the embodiment of the present invention, the
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的程序可存储于一计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储记忆体(Read-Only Memory,ROM)或随机存储记忆体(Random AccessMemory,RAM)等。Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be implemented through computer programs to instruct related hardware, and the programs can be stored in a computer-readable storage medium. During execution, it may include the processes of the embodiments of the above-mentioned methods. Wherein, the storage medium may be a magnetic disk, an optical disk, a read-only memory (Read-Only Memory, ROM) or a random access memory (Random AccessMemory, RAM), etc.
以上所揭露的仅为本发明一种较佳实施例而已,当然不能以此来限定本发明之权利范围,本领域普通技术人员可以理解实现上述实施例的全部或部分流程,并依本发明权利要求所作的等同变化,仍属于发明所涵盖的范围。What is disclosed above is only a preferred embodiment of the present invention, and of course it cannot limit the scope of rights of the present invention. Those of ordinary skill in the art can understand all or part of the process for realizing the above embodiments, and according to the rights of the present invention The equivalent changes required still belong to the scope covered by the invention.
Claims (16)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201710307347.4A CN108804302B (en) | 2017-05-04 | 2017-05-04 | Remote testing method, system and related equipment |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201710307347.4A CN108804302B (en) | 2017-05-04 | 2017-05-04 | Remote testing method, system and related equipment |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN108804302A CN108804302A (en) | 2018-11-13 |
| CN108804302B true CN108804302B (en) | 2023-04-18 |
Family
ID=64053593
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201710307347.4A Active CN108804302B (en) | 2017-05-04 | 2017-05-04 | Remote testing method, system and related equipment |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN108804302B (en) |
Families Citing this family (18)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN109634856B (en) * | 2018-12-04 | 2021-12-17 | 北京云测信息技术有限公司 | IOS intelligent terminal remote real machine debugging system and method based on cloud service |
| CN109815120A (en) * | 2018-12-14 | 2019-05-28 | 深圳壹账通智能科技有限公司 | Applied test method, apparatus, computer equipment and storage medium |
| CN109600282A (en) * | 2018-12-26 | 2019-04-09 | 世纪龙信息网络有限责任公司 | Test macro and test method based on cloud prototype |
| CN109962925A (en) * | 2019-04-09 | 2019-07-02 | 苏州浪潮智能科技有限公司 | Method and device for testing terminal |
| CN110569184B (en) * | 2019-07-31 | 2023-06-16 | 重庆小雨点小额贷款有限公司 | Test method and terminal equipment |
| CN110716779A (en) * | 2019-09-17 | 2020-01-21 | 武汉鼎森电子科技有限公司 | Remote monitoring method |
| CN111324531A (en) * | 2020-02-05 | 2020-06-23 | 香港乐蜜有限公司 | Application testing method, device, electronic device and storage medium |
| CN111427525A (en) * | 2020-02-27 | 2020-07-17 | 深圳壹账通智能科技有限公司 | Synchronous control method, device, computer equipment and storage medium for cluster equipment |
| CN111444095A (en) * | 2020-03-25 | 2020-07-24 | 智者四海(北京)技术有限公司 | Test platform system and test method for mobile device |
| CN112540891B (en) * | 2021-01-27 | 2021-08-17 | 中国民航大学 | A remote control method and device for avionics bus test equipment |
| CN112964947A (en) * | 2021-02-04 | 2021-06-15 | 苏州华兴源创科技股份有限公司 | Control method and system of aging test equipment |
| CN112860572B (en) * | 2021-03-12 | 2024-03-22 | 杭州网易数之帆科技有限公司 | Cloud testing method, device, system, medium and electronic equipment of mobile terminal |
| CN113010428B (en) * | 2021-03-24 | 2023-10-24 | 腾讯科技(深圳)有限公司 | Method, device, medium and electronic equipment for testing server cluster |
| CN113138919B (en) * | 2021-04-19 | 2022-04-22 | 广州掌动智能科技有限公司 | Multi-client testing system and method |
| CN115237414B (en) * | 2021-04-23 | 2025-12-02 | Oppo广东移动通信有限公司 | Equipment control methods and apparatus, terminal equipment and readable storage media |
| CN113204494B (en) * | 2021-05-29 | 2023-05-12 | 长沙市到家悠享家政服务有限公司 | Terminal remote test platform and method, electronic equipment and readable medium |
| CN114466401B (en) * | 2022-03-02 | 2024-03-22 | 北京新氧科技有限公司 | Image transmission method and electronic equipment |
| CN114564403A (en) * | 2022-03-02 | 2022-05-31 | 北京新氧科技有限公司 | Information display method and computing equipment |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN201845234U (en) * | 2010-11-16 | 2011-05-25 | 北京航天数控系统有限公司 | Servo synchronous testing device |
| CN104618206A (en) * | 2015-02-09 | 2015-05-13 | 河南九洲计算机有限公司 | Family core accessing device for realizing intelligent community service and system thereof |
| CN105183630A (en) * | 2014-06-05 | 2015-12-23 | 腾讯科技(深圳)有限公司 | Method and device for testing application program |
| CN105224456A (en) * | 2015-09-29 | 2016-01-06 | 北京奇虎科技有限公司 | A kind of test script generates methods, devices and systems |
Family Cites Families (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN103927255B (en) * | 2013-01-16 | 2019-01-22 | 腾讯科技(深圳)有限公司 | Method for testing software, cloud test macro and its client based on cloud test macro |
| CN104038381B (en) * | 2013-03-07 | 2018-11-09 | 腾讯科技(深圳)有限公司 | Cloud test method, system, client and the server of application |
| KR20150029184A (en) * | 2013-09-09 | 2015-03-18 | 삼성에스디에스 주식회사 | Techniques for testing applications |
| CN105204986A (en) * | 2014-06-24 | 2015-12-30 | 广州市动景计算机科技有限公司 | Automated product testing method, server and mobile equipment |
| CN105335292A (en) * | 2015-11-12 | 2016-02-17 | 广州华多网络科技有限公司 | Application compatibility testing method and system |
-
2017
- 2017-05-04 CN CN201710307347.4A patent/CN108804302B/en active Active
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN201845234U (en) * | 2010-11-16 | 2011-05-25 | 北京航天数控系统有限公司 | Servo synchronous testing device |
| CN105183630A (en) * | 2014-06-05 | 2015-12-23 | 腾讯科技(深圳)有限公司 | Method and device for testing application program |
| CN104618206A (en) * | 2015-02-09 | 2015-05-13 | 河南九洲计算机有限公司 | Family core accessing device for realizing intelligent community service and system thereof |
| CN105224456A (en) * | 2015-09-29 | 2016-01-06 | 北京奇虎科技有限公司 | A kind of test script generates methods, devices and systems |
Non-Patent Citations (2)
| Title |
|---|
| Chaturi Singh等.Implementation of a VI-based multi-axis motion control system for automated test and measurement applications.《 TENCON 2008 - 2008 IEEE Region 10 Conference》.2009,第1-6页. * |
| 赵国庆等.智能变电站整体集成仿真测试系统研究.《江苏电机工程》.2016,第35卷(第1期),第66-69页. * |
Also Published As
| Publication number | Publication date |
|---|---|
| CN108804302A (en) | 2018-11-13 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN108804302B (en) | Remote testing method, system and related equipment | |
| US20130346858A1 (en) | Remote Control of Audio Application and Associated Sub-Windows | |
| CN111428166A (en) | Page configuration method, page element replacement method, apparatus, device and medium | |
| CN113608812B (en) | Remote control method, device, system and storage medium | |
| CN108763086A (en) | Script method for recording, terminal and computer readable storage medium based on remote real machine | |
| CN103685389A (en) | System and method for realizing user interface interaction through remotely controlling data terminal | |
| US20160328149A1 (en) | Display screen-based physical button simulation method and electronic device | |
| CN111866160B (en) | Multi-machine control method, device, equipment and storage medium | |
| CN105704487A (en) | Television stability testing method and device | |
| CN110858175A (en) | Test control method, master control equipment, controlled equipment and test system | |
| WO2022100033A1 (en) | Method and apparatus for debugging applet, electronic device and storage medium | |
| CN107203432A (en) | A kind of method and system of remote control Android device | |
| JP2022126789A (en) | Method and apparatus for controlling interface focus, electronic device and storage medium | |
| US20160364261A1 (en) | Apparatus and method for providing adaptive virtual desktop operating system service | |
| WO2023098732A1 (en) | Cross-device interaction method and apparatus, electronic device, and storage medium | |
| CN107102937B (en) | User interface testing method and device | |
| JP5519458B2 (en) | Plant monitoring control system and display screen management method | |
| CN111078104A (en) | Redirection method of multi-point touch equipment on cloud desktop and computer equipment | |
| CN106815150B (en) | Server-side interface test system and method | |
| CN110879676A (en) | Debugging control method, master control device, debugging server, controlled device and system | |
| JP5266416B1 (en) | Test system and test program | |
| JP2014035744A (en) | Verification management device, verification management method, and verification management program | |
| CN111782382A (en) | Task processing method and device, storage medium and electronic equipment | |
| US20240184414A1 (en) | Display Control Method and Apparatus for Pointer in Window, Device, and Storage Medium | |
| CN113709243B (en) | Equipment remote control method and device, electronic equipment and storage medium |
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 | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |