CN111382048A - Management method and device for mobile equipment on real machine test platform - Google Patents
Management method and device for mobile equipment on real machine test platform Download PDFInfo
- Publication number
- CN111382048A CN111382048A CN201811626410.1A CN201811626410A CN111382048A CN 111382048 A CN111382048 A CN 111382048A CN 201811626410 A CN201811626410 A CN 201811626410A CN 111382048 A CN111382048 A CN 111382048A
- Authority
- CN
- China
- Prior art keywords
- mobile device
- state
- mobile
- daemon
- mobile equipment
- 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.)
- Granted
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR 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; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/22—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
- G06F11/2294—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing by remote test
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Debugging And Monitoring (AREA)
Abstract
本发明提供了一种真机测试平台上移动设备的管理方法和装置。该方法应用于移动设备端,包括:当所述移动设备与代理服务器连接后,通过所述代理服务器以不挂起运行的方式在所述移动设备中启动指定守护进程;通过所述指定守护进程检测所述移动设备的当前设备状态,并判断所述当前设备状态是否异常;若是,则通过所述指定守护进程根据所述移动设备的信息从所述真机测试平台获取用于维护所述移动设备的测试用例脚本;通过所述指定守护进程解析并执行所述测试用例脚本,以对所述移动设备进行维护。本发明能够持续监控移动设备的状态并针对异常状态获取并执行相应的测试用例脚本,以实现对移动设备的自动化维护。
The invention provides a management method and device for mobile equipment on a real machine test platform. The method is applied to a mobile device, and includes: after the mobile device is connected to a proxy server, starting a designated daemon process in the mobile device through the proxy server in a manner that does not suspend operation; using the designated daemon process Detecting the current device state of the mobile device, and judging whether the current device state is abnormal; A test case script of the device; the test case script is parsed and executed by the designated daemon to maintain the mobile device. The present invention can continuously monitor the state of the mobile device and obtain and execute the corresponding test case script according to the abnormal state, so as to realize the automatic maintenance of the mobile device.
Description
技术领域technical field
本发明涉及远程真机测试技术领域,特别是一种真机测试平台上移动设备的管理方法和装置、计算机存储介质以及计算设备。The invention relates to the technical field of remote real machine testing, in particular to a management method and device for mobile equipment on a real machine testing platform, a computer storage medium and a computing device.
背景技术Background technique
远程真机测试平台是一种远程控制手机使用的平台,能够提供云端的真机操作,从而为用户提供移动端app的功能模块、性能、安全、容量、兼容性、易用性、硬件环境、交叉事件、接口等测试,极大地方便了手机软件和app的开发和测试。The remote real machine test platform is a platform for remotely controlling the use of mobile phones, which can provide real machine operation in the cloud, so as to provide users with the functional modules, performance, security, capacity, compatibility, ease of use, hardware environment, Cross-event, interface and other tests greatly facilitate the development and testing of mobile software and apps.
在进行移动测试时,手机与代理服务器(如PC(Personal Computer,个人计算机)代理)通过USB(Universal Serial Bus,通用串行总线)数据线或WiFi网络建立adb(Android Debug Bridge,安卓调试桥)连接,并在手机上开启开发者选项下的USB调试模式,从而用户能够通过代理服务器对测试平台上的手机进行操作和测试。然而,真机测试平台上通常具有成百上千台手机设备,在日常运行过程中经常会出现某些手机设备的USB连接断线、开发者模式自动关闭等异常,影响测试的正常进行。此时,需要专门的维护人员对设备进行相应的维护处理,增加了人力成本,且效率低下。During mobile testing, mobile phone and proxy server (such as PC (Personal Computer) proxy) establish adb (Android Debug Bridge, Android Debug Bridge) through USB (Universal Serial Bus, Universal Serial Bus) data line or WiFi network Connect, and enable the USB debugging mode under the developer options on the mobile phone, so that the user can operate and test the mobile phone on the test platform through the proxy server. However, there are usually hundreds or thousands of mobile phone devices on the real machine test platform. In the daily operation process, there are often abnormalities such as disconnection of the USB connection of some mobile phone devices, automatic shutdown of the developer mode, etc., which affect the normal operation of the test. At this time, specialized maintenance personnel are required to perform corresponding maintenance processing on the equipment, which increases labor costs and is inefficient.
因此,亟需一种能够实时监测真机测试平台上手机的异常状态并自动对异常的手机进行维护的方法。Therefore, there is an urgent need for a method that can monitor the abnormal state of the mobile phone on the real device test platform in real time and automatically maintain the abnormal mobile phone.
发明内容SUMMARY OF THE INVENTION
鉴于上述问题,提出了本发明以便提供一种克服上述问题或者至少部分地解决上述问题的真机测试平台上移动设备的管理方法和装置、计算机存储介质以及计算设备。In view of the above problems, the present invention is proposed to provide a mobile device management method and apparatus on a real machine test platform, a computer storage medium and a computing device that overcome the above problems or at least partially solve the above problems.
根据本发明实施例的一方面,提供了一种真机测试平台上移动设备的管理方法,应用于移动设备端,包括:According to an aspect of the embodiments of the present invention, a method for managing mobile devices on a real machine test platform is provided, applied to the mobile device, including:
当所述移动设备与代理服务器连接后,通过所述代理服务器以不挂起运行的方式在所述移动设备中启动指定守护进程;After the mobile device is connected to the proxy server, start a designated daemon process in the mobile device through the proxy server in a manner that does not suspend operation;
通过所述指定守护进程检测所述移动设备的当前设备状态,并判断所述当前设备状态是否异常;Detect the current device state of the mobile device through the designated daemon process, and determine whether the current device state is abnormal;
若是,则通过所述指定守护进程根据所述移动设备的信息从所述真机测试平台获取用于维护所述移动设备的测试用例脚本;If so, obtain a test case script for maintaining the mobile device from the real machine test platform through the designated daemon process according to the information of the mobile device;
通过所述指定守护进程解析并执行所述测试用例脚本,以对所述移动设备进行维护。The test case script is parsed and executed by the designated daemon to maintain the mobile device.
可选地,所述指定守护进程为java守护进程;Optionally, the designated daemon process is a java daemon process;
通过所述代理服务器以不挂起运行的方式在所述移动设备中启动指定守护进程,包括:Start the specified daemon process in the mobile device through the proxy server without suspending the operation, including:
通过所述代理服务器的adb进程的nohup命令在所述移动设备中运行目标dex文件,以启动所述java守护进程。The target dex file is run in the mobile device through the nohup command of the adb process of the proxy server to start the java daemon process.
可选地,所述目标dex文件是通过Android软件开发工具包将包含设备状态监控和测试用例脚本执行逻辑的可执行jar包转换而成,并预先被配置在所述移动设备中。Optionally, the target dex file is converted from an executable jar package containing device status monitoring and test case script execution logic through an Android software development kit, and is preconfigured in the mobile device.
可选地,所述移动设备使用USB或WiFi通过adb命令与所述代理服务器连接。Optionally, the mobile device uses USB or WiFi to connect with the proxy server through an adb command.
可选地,通过所述指定守护进程检测所述移动设备的当前设备状态,包括:Optionally, the current device state of the mobile device is detected by the designated daemon process, including:
通过所述指定守护进程定期检测所述移动设备的当前设备状态。The current device state of the mobile device is periodically detected by the designated daemon.
可选地,判断所述当前设备状态是否异常,包括:Optionally, judging whether the current device state is abnormal, including:
判断USB连接是否断线;和/或Determine if the USB connection is broken; and/or
判断开发者模式是否自动关闭。Determines whether developer mode is automatically turned off.
可选地,在检测所述移动设备的当前设备状态后,所述方法还包括:Optionally, after detecting the current device state of the mobile device, the method further includes:
将所述移动设备的当前设备状态上报至所述真机测试平台。The current device state of the mobile device is reported to the real device test platform.
可选地,所述测试用例脚本是根据设备型号、操作系统版本和/或设备异常类型在所述真机测试平台中预先配置的;Optionally, the test case script is pre-configured in the real machine test platform according to the device model, operating system version and/or device exception type;
通过所述指定守护进程根据所述移动设备的信息从所述真机测试平台获取用于维护所述移动设备的测试用例脚本,包括:Obtain a test case script for maintaining the mobile device from the real machine test platform according to the information of the mobile device through the designated daemon, including:
通过所述指定守护进程,根据当前设备状态的异常类型、所述移动设备的型号和/或所述移动设备的操作系统版本从所述真机测试平台获取用于维护所述移动设备的测试用例脚本。Through the designated daemon process, a test case for maintaining the mobile device is obtained from the real machine test platform according to the abnormal type of the current device state, the model of the mobile device and/or the operating system version of the mobile device script.
可选地,所述测试用例脚本是json格式的。Optionally, the test case script is in json format.
可选地,对所述移动设备进行维护,包括:Optionally, maintaining the mobile device includes:
在所述测试用例脚本中通过指定方法名和参数模拟用户操作。Simulate user operations by specifying method names and parameters in the test case script.
可选地,所述用户操作包括下列至少之一:Optionally, the user operation includes at least one of the following:
休眠、滑动屏幕、点击。Sleep, swipe, tap.
可选地,执行所述测试用例脚本,包括:Optionally, executing the test case script includes:
通过自动化测试框架执行所述测试用例脚本。The test case script is executed by an automated testing framework.
可选地,所述方法还包括:Optionally, the method further includes:
若判断出所述当前设备状态未出现异常,则令所述指定守护进程等待下一次进行所述移动设备的当前设备状态的检测。If it is determined that the current device state is not abnormal, the designated daemon process is made to wait for the next detection of the current device state of the mobile device.
根据本发明实施例的另一方面,还提供了一种真机测试平台上移动设备的管理装置,应用于移动设备端,包括:According to another aspect of the embodiments of the present invention, there is also provided a management device for a mobile device on a real machine test platform, which is applied to the mobile device, including:
进程启动模块,适于当所述移动设备与代理服务器连接后,通过所述代理服务器以不挂起运行的方式在所述移动设备中启动指定守护进程;a process startup module, adapted to start a designated daemon process in the mobile device through the proxy server in a manner that does not suspend operation after the mobile device is connected to the proxy server;
状态检测模块,适于通过所述指定守护进程检测所述移动设备的当前设备状态,并判断所述当前设备状态是否异常;a state detection module, adapted to detect the current device state of the mobile device through the designated daemon process, and determine whether the current device state is abnormal;
脚本获取模块,适于若判断出所述当前设备状态异常,则通过所述指定守护进程根据所述移动设备的信息从所述真机测试平台获取用于维护所述移动设备的测试用例脚本;以及a script obtaining module, adapted to obtain a test case script for maintaining the mobile device from the real machine test platform through the designated daemon process according to the information of the mobile device if it is judged that the current device state is abnormal; as well as
脚本解析执行模块,适于通过所述指定守护进程解析并执行所述测试用例脚本,以对所述移动设备进行维护。The script parsing and execution module is adapted to parse and execute the test case script through the designated daemon process, so as to maintain the mobile device.
可选地,所述指定守护进程为java守护进程;Optionally, the designated daemon process is a java daemon process;
所述进程启动模块还适于:The process startup module is also adapted to:
通过所述代理服务器的adb进程的nohup命令在所述移动设备中运行目标dex文件,以启动所述java守护进程。The target dex file is run in the mobile device through the nohup command of the adb process of the proxy server to start the java daemon process.
可选地,所述目标dex文件是通过Android软件开发工具包将包含设备状态监控和测试用例脚本执行逻辑的可执行jar包转换而成,并预先被配置在所述移动设备中。Optionally, the target dex file is converted from an executable jar package containing device status monitoring and test case script execution logic through an Android software development kit, and is preconfigured in the mobile device.
可选地,所述移动设备使用USB或WiFi通过adb命令与所述代理服务器连接。Optionally, the mobile device uses USB or WiFi to connect with the proxy server through an adb command.
可选地,所述状态检测模块还适于:Optionally, the state detection module is further adapted to:
通过所述指定守护进程定期检测所述移动设备的当前设备状态。The current device state of the mobile device is periodically detected by the designated daemon.
可选地,所述状态检测模块还适于:Optionally, the state detection module is further adapted to:
判断USB连接是否断线;和/或Determine if the USB connection is broken; and/or
判断开发者模式是否自动关闭。Determines whether developer mode is automatically turned off.
可选地,所述状态检测模块还适于:Optionally, the state detection module is further adapted to:
在检测所述移动设备的当前设备状态后,将所述移动设备的当前设备状态上报至所述真机测试平台。After detecting the current device state of the mobile device, the current device state of the mobile device is reported to the real machine test platform.
可选地,所述测试用例脚本是根据设备型号、操作系统版本和/或设备异常类型在所述真机测试平台中预先配置的;Optionally, the test case script is pre-configured in the real machine test platform according to the device model, operating system version and/or device exception type;
所述脚本获取模块还适于:The script acquisition module is also adapted to:
通过所述指定守护进程,根据当前设备状态的异常类型、所述移动设备的型号和/或所述移动设备的操作系统版本从所述真机测试平台获取用于维护所述移动设备的测试用例脚本。Through the designated daemon process, a test case for maintaining the mobile device is obtained from the real machine test platform according to the abnormal type of the current device state, the model of the mobile device and/or the operating system version of the mobile device script.
可选地,所述测试用例脚本是json格式的。Optionally, the test case script is in json format.
可选地,所述脚本解析执行模块还适于:Optionally, the script parsing execution module is further adapted to:
在所述测试用例脚本中通过指定方法名和参数模拟用户操作。Simulate user operations by specifying method names and parameters in the test case script.
可选地,所述用户操作包括下列至少之一:Optionally, the user operation includes at least one of the following:
休眠、滑动屏幕、点击。Sleep, swipe, tap.
可选地,所述脚本解析执行模块还适于:Optionally, the script parsing execution module is further adapted to:
通过自动化测试框架执行所述测试用例脚本。The test case script is executed by an automated testing framework.
可选地,所述装置还包括:Optionally, the device further includes:
进程等待模块,适于若判断出所述当前设备状态未出现异常,则令所述指定守护进程等待下一次进行所述移动设备的当前设备状态的检测。The process waiting module is adapted to make the designated daemon wait for the next detection of the current device state of the mobile device if it is determined that the current device state is not abnormal.
根据本发明实施例的再一方面,还提供了一种计算机存储介质,所述计算机存储介质存储有计算机程序代码,当所述计算机程序代码在计算设备上运行时,导致所述计算设备执行根据上文中任一项所述的真机测试平台上移动设备的管理方法。According to yet another aspect of the embodiments of the present invention, there is also provided a computer storage medium, where the computer storage medium stores computer program codes, which, when the computer program codes are executed on a computing device, cause the computing device to execute according to the The management method of a mobile device on a real machine test platform described in any one of the above.
根据本发明实施例的又一方面,还提供了一种计算设备,包括:According to yet another aspect of the embodiments of the present invention, a computing device is also provided, including:
处理器;以及processor; and
存储有计算机程序代码的存储器;memory in which computer program code is stored;
当所述计算机程序代码被所述处理器运行时,导致所述计算设备执行根据上文中任一项所述的真机测试平台上移动设备的管理方法。When the computer program code is executed by the processor, it causes the computing device to execute the method for managing a mobile device on a real machine test platform according to any one of the above.
本发明实施例提出的真机测试平台上移动设备的管理方法和装置,当移动设备在真机测试平台上线时,通过代理服务器以不挂起运行的方式在该移动设备中启动指定守护进程,进而通过指定守护进程检测该移动设备的当前设备状态并判断是否异常,若是,则根据移动设备的信息从真机测试平台获取用于维护该移动设备的测试用例脚本,并对该测试用例脚本进行解析和执行,从而实现对该移动设备的维护操作。由于指定守护进程以不挂起运行的方式启动,即使移动设备出现USB连接断线或开发者模式自动关闭的异常状态,指定守护进程仍能够处于运行状态,进而能够持续监控移动设备的状态并针对异常状态获取并执行相应的测试用例脚本,以实现对移动设备的自动化维护。The method and device for managing a mobile device on a real machine test platform provided by the embodiment of the present invention, when the mobile device goes online on the real machine test platform, start a designated daemon process in the mobile device through a proxy server in a manner that does not suspend operation, Then, the current device status of the mobile device is detected by the designated daemon process and whether it is abnormal, if so, the test case script for maintaining the mobile device is obtained from the real machine test platform according to the information of the mobile device, and the test case script is executed. Parse and execute, so as to implement maintenance operations on the mobile device. Since the designated daemon is started in a way that does not suspend, even if the mobile device is in an abnormal state where the USB connection is disconnected or the developer mode is automatically turned off, the designated daemon can still be in the running state, so as to continuously monitor the state of the mobile device and target The abnormal state is obtained and the corresponding test case script is executed to realize the automatic maintenance of the mobile device.
进一步地,通过根据当前设备状态的异常类型、移动设备的型号和/或移动设备的操作系统版本从真机测试平台获取预先配置的针对不同移动设备型号、系统版本和异常类型的测试用例脚本,并在测试用例脚本中通过指定方法名和参数来模拟一系列的用户操作,能够实现通过执行测试用例脚本来对具有固定处理步骤的异常状态问题进行准确的自动化处理。Further, by obtaining preconfigured test case scripts for different mobile device models, system versions and abnormal types from the real machine test platform according to the abnormal type of the current device state, the model of the mobile device and/or the operating system version of the mobile device, And by specifying method names and parameters in the test case script to simulate a series of user operations, it can realize the accurate automatic processing of abnormal state problems with fixed processing steps by executing the test case script.
上述说明仅是本发明技术方案的概述,为了能够更清楚了解本发明的技术手段,而可依照说明书的内容予以实施,并且为了让本发明的上述和其它目的、特征和优点能够更明显易懂,以下特举本发明的具体实施方式。The above description is only an overview of the technical solutions of the present invention, in order to be able to understand the technical means of the present invention more clearly, it can be implemented according to the content of the description, and in order to make the above and other purposes, features and advantages of the present invention more obvious and easy to understand , the following specific embodiments of the present invention are given.
根据下文结合附图对本发明具体实施例的详细描述,本领域技术人员将会更加明了本发明的上述以及其他目的、优点和特征。The above and other objects, advantages and features of the present invention will be more apparent to those skilled in the art from the following detailed description of the specific embodiments of the present invention in conjunction with the accompanying drawings.
附图说明Description of drawings
通过阅读下文优选实施方式的详细描述,各种其他的优点和益处对于本领域普通技术人员将变得清楚明了。附图仅用于示出优选实施方式的目的,而并不认为是对本发明的限制。而且在整个附图中,用相同的参考符号表示相同的部件。在附图中:Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are for the purpose of illustrating preferred embodiments only and are not to be considered limiting of the invention. Also, the same components are denoted by the same reference numerals throughout the drawings. In the attached image:
图1示出了根据本发明一实施例的真机测试平台上移动设备的管理方法的流程图;1 shows a flowchart of a method for managing a mobile device on a real machine test platform according to an embodiment of the present invention;
图2示出了Android系统的apk构建流程图;Fig. 2 shows the apk construction flow chart of Android system;
图3示出了根据本发明另一实施例的真机测试平台上移动设备的管理方法的流程图;Fig. 3 shows the flow chart of the management method of the mobile device on the real machine test platform according to another embodiment of the present invention;
图4示出了根据本发明一实施例的真机测试平台上移动设备的管理装置的结构示意图;以及FIG. 4 shows a schematic structural diagram of an apparatus for managing a mobile device on a real machine test platform according to an embodiment of the present invention; and
图5示出了根据本发明另一实施例的真机测试平台上移动设备的管理装置的结构示意图。FIG. 5 shows a schematic structural diagram of an apparatus for managing a mobile device on a real machine test platform according to another embodiment of the present invention.
具体实施方式Detailed ways
下面将参照附图更详细地描述本公开的示例性实施例。虽然附图中显示了本公开的示例性实施例,然而应当理解,可以以各种形式实现本公开而不应被这里阐述的实施例所限制。相反,提供这些实施例是为了能够更透彻地理解本公开,并且能够将本公开的范围完整的传达给本领域的技术人员。Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited by the embodiments set forth herein. Rather, these embodiments are provided so that the present disclosure will be more thoroughly understood, and will fully convey the scope of the present disclosure to those skilled in the art.
远程真机测试平台是进行移动设备软件和app开发和测试的重要工具。真机测试平台上通常具有成百上千台移动设备以供操作,在日常运行过程中经常会出现某些移动设备的USB连接断线、开发者模式自动关闭等异常,影响测试的正常进行。现有技术中,针对这种异常,需要专门的维护人员对设备进行相应的维护处理,增加了人力成本,且效率低下。并且,现有技术中,在USB调试或开发者模式下通过adb命令直接启动java进程。以这种方式启动的java进程依赖于设备的USB连接,当USB连接断开时,该java进程会被杀死,无法有效起到监控设备状态并进行维护的作用。The remote real machine test platform is an important tool for mobile device software and app development and testing. There are usually hundreds or thousands of mobile devices on the real machine test platform for operation. In the daily operation process, there are often abnormalities such as disconnection of the USB connection of some mobile devices, automatic shutdown of the developer mode, etc., which affect the normal operation of the test. In the prior art, in response to such an abnormality, specialized maintenance personnel are required to perform corresponding maintenance processing on the equipment, which increases labor costs and is inefficient. Moreover, in the prior art, the java process is directly started through the adb command in USB debugging or developer mode. The java process started in this way depends on the USB connection of the device. When the USB connection is disconnected, the java process will be killed and cannot effectively monitor and maintain the device status.
为解决上述技术问题,本发明实施例提出一种真机测试平台上移动设备的管理方法。图1示出了根据本发明一实施例的真机测试平台上移动设备的管理方法的流程图。参见图1,该方法应用于移动设备端,至少可以包括以下步骤S102至步骤S108。In order to solve the above technical problem, an embodiment of the present invention proposes a management method for a mobile device on a real machine test platform. FIG. 1 shows a flowchart of a method for managing a mobile device on a real machine test platform according to an embodiment of the present invention. Referring to FIG. 1 , the method is applied to a mobile device and may at least include the following steps S102 to S108.
步骤S102,当移动设备与代理服务器连接后,通过代理服务器以不挂起运行的方式在该移动设备中启动指定守护进程。Step S102, after the mobile device is connected to the proxy server, start the designated daemon process in the mobile device through the proxy server in a manner that does not suspend operation.
步骤S104,通过指定守护进程检测该移动设备的当前设备状态,并判断当前设备状态是否异常。In step S104, the current device state of the mobile device is detected by a designated daemon process, and it is determined whether the current device state is abnormal.
步骤S106,若是,则通过指定守护进程根据移动设备的信息从真机测试平台获取用于维护该移动设备的测试用例脚本。Step S106, if yes, obtain a test case script for maintaining the mobile device from the real machine test platform by specifying the daemon process according to the information of the mobile device.
步骤S108,通过指定守护进程解析并执行该测试用例脚本,以对该移动设备进行维护。Step S108, parse and execute the test case script by specifying a daemon process to maintain the mobile device.
本发明实施例提出的真机测试平台上移动设备的管理方法,当移动设备在真机测试平台上线时,通过代理服务器以不挂起运行的方式在该移动设备中启动指定守护进程,进而通过指定守护进程检测该移动设备的当前设备状态并判断是否异常,若是,则根据移动设备的信息从真机测试平台获取用于维护该移动设备的测试用例脚本,并对该测试用例脚本进行解析和执行,从而实现对该移动设备的维护操作。由于指定守护进程以不挂起运行的方式启动,即使移动设备出现USB连接断线或开发者模式自动关闭的异常状态,指定守护进程仍能够处于运行状态,进而能够持续监控移动设备的状态并针对异常状态获取并执行相应的测试用例脚本,以实现对移动设备的自动化维护。The method for managing a mobile device on a real machine test platform provided by the embodiment of the present invention, when the mobile device goes online on the real machine test platform, starts a designated daemon process in the mobile device through a proxy server in a way that does not suspend operation, and then passes The designated daemon detects the current device status of the mobile device and judges whether it is abnormal. If so, obtain the test case script for maintaining the mobile device from the real machine test platform according to the information of the mobile device, and parse and analyze the test case script. Execute, so as to realize the maintenance operation of the mobile device. Since the designated daemon is started in a way that does not suspend, even if the mobile device is in an abnormal state where the USB connection is disconnected or the developer mode is automatically turned off, the designated daemon can still be in the running state, so as to continuously monitor the state of the mobile device and target The abnormal state is obtained and the corresponding test case script is executed to realize the automatic maintenance of the mobile device.
上文提及的移动设备可以包括手机、平板电脑、智能手表等智能移动终端,其上可以搭载操作系统,并拥有接入互联网的能力。优选地,移动设备上搭载Android系统。代理服务器可为PC代理,其在启动后与真机测试平台的后台心跳连接,即,通过心跳机制来确保代理服务器与真机测试平台之间的通讯连接的有效性。The mobile devices mentioned above may include smart mobile terminals such as mobile phones, tablet computers, and smart watches, which can be equipped with an operating system and have the ability to access the Internet. Preferably, the mobile device is equipped with an Android system. The proxy server can be a PC proxy, which is connected to the background heartbeat of the real machine test platform after being started, that is, the validity of the communication connection between the proxy server and the real machine test platform is ensured through a heartbeat mechanism.
上文步骤S102中,移动设备可以通过adb命令与代理服务器连接。In the above step S102, the mobile device may connect with the proxy server through the adb command.
在一种方式中,移动设备可使用USB数据线与代理服务器相连,之后在移动设备中启用USB调试,并在代理服务器的命令行输入adb devices命令,即可建立移动设备与代理服务器的通讯连接,以通过代理服务器对移动设备进行调试。In one way, the mobile device can use a USB data cable to connect to the proxy server, then enable USB debugging in the mobile device, and enter the adb devices command on the command line of the proxy server to establish a communication connection between the mobile device and the proxy server , to debug mobile devices through a proxy server.
在另一种方式中,移动设备可使用WiFi网络与代理服务器相连,获取移动设备的IP地址后,在代理服务器中执行adb connect命令,通过移动设备的IP地址和端口号(一般为5555),即可建立移动设备与代理服务器的通讯连接,以通过代理服务器对移动设备进行调试。In another way, the mobile device can use the WiFi network to connect with the proxy server, after obtaining the IP address of the mobile device, execute the adb connect command in the proxy server, and pass the IP address and port number (usually 5555) of the mobile device, The communication connection between the mobile device and the proxy server can be established to debug the mobile device through the proxy server.
在一个可选的实施例中,指定守护进程为java守护进程。此时,通过代理服务器以不挂起运行的方式在移动设备中启动指定守护进程的步骤可以进一步实施为:In an optional embodiment, the designated daemon process is a java daemon process. At this point, the step of starting the specified daemon process in the mobile device through the proxy server without suspending operation can be further implemented as:
通过代理服务器的adb进程的nohup命令在移动设备中运行目标dex文件,以启动java守护进程。Run the target dex file in the mobile device through the nohup command of the adb process of the proxy server to start the java daemon.
Nohup命令运行由Command参数和任何相关的Arg参数指定的命令,使进程忽略所有挂起SIGHUP信号而继续运行。Dex文件是一种能够被dalvik虚拟机(DVM)or ART(AndroidRuntime)虚拟机执行并加载的二进制流文件格式,其与class文件相比去掉了冗余信息,并且整合了整个java工程的类信息,文件体积小,加载速度快。The Nohup command runs the command specified by the Command parameter and any associated Arg parameters, causing the process to continue running regardless of any pending SIGHUP signals. Dex file is a binary stream file format that can be executed and loaded by dalvik virtual machine (DVM) or ART (Android Runtime) virtual machine. Compared with class file, redundant information is removed and the class information of the entire java project is integrated. , the file size is small and the loading speed is fast.
Android应用层用Java和kotlin编程语言实现,编译Android应用时编译器先将Java和kotlin语言编译成java字节码,然后将该字节码文件转换为对应的dex文件。在Android系统内部可以直接通过dalvik虚拟机的命令dalvikvm运行dex文件,并且Android系统支持nohup命令。下面列出了在Android系统内通过adb命令启动java进程的一个代码示例:The Android application layer is implemented in Java and kotlin programming languages. When compiling Android applications, the compiler first compiles Java and kotlin languages into java bytecodes, and then converts the bytecode files into corresponding dex files. Inside the Android system, the dex file can be run directly through the command dalvikvm of the dalvik virtual machine, and the Android system supports the nohup command. The following lists a code example to start the java process through the adb command in the Android system:
adb shell“nohup dalvikvm-cp/data/local/tmp/traget.dexcom.abc.opentest.main>/dev/null 2>&1&”adb shell "nohup dalvikvm-cp/data/local/tmp/traget.dexcom.abc.opentest.main>/dev/null 2>&1&"
通过nohup命令启动的java进程,即使移动设备的USB连接断开或开发者模式关闭后,仍可处于运行状态。The java process started by the nohup command can still be running even after the USB connection of the mobile device is disconnected or the developer mode is turned off.
进一步地,上文提及的目标dex文件是通过Android SDK(Software DevelopmentKit,软件开发工具包)将包含设备状态监控和测试用例脚本执行逻辑的可执行jar包转换而成,并预先被配置在移动设备中。Further, the target dex file mentioned above is converted from the executable jar package containing the device status monitoring and test case script execution logic through the Android SDK (Software DevelopmentKit, software development kit), and is pre-configured on the mobile phone. in the device.
下面结合图2所示的Android系统的apk(Android Package)构建流程图对目标dex文件的生成和配置过程进行说明。The generation and configuration process of the target dex file will be described below in conjunction with the apk (Android Package) construction flow chart of the Android system shown in FIG. 2 .
参见图2,在一个典型apk构建流程中,首先,通过AAPT(Android Asset PackagingTool)工具将java工程的res文件夹下的资源文件打包成R.java文件和resources.arsc文件,如果有aidl,则通过aidl工具将aidl接口转化为java接口类。接着,通过java编译器将R.java和aidl.java编译为class文件。然后,通过dx.bat将源码class文件和第三方jar或者library打包成dex文件。再然后,apkbuilder工具将所有没有编译的资源(assets、so、jni)、resources.arsc文件以及生成的dex文件打包生成一个apk文件。最后,通过配置的签名文件(Debug or Release Keystore,调试或发布秘钥库)利用jarsigner工具对apk进行签名,得到签名后的apk(signed apk),并进而利用zipalign工具对signed apk进行对齐优化,使通过内存映射访问apk文件时的速度更快,减少运行时内存的使用。Referring to Figure 2, in a typical apk construction process, first, use the AAPT (Android Asset PackagingTool) tool to package the resource files under the res folder of the java project into R.java files and resources.arsc files. If there is aidl, then The aidl interface is converted into a java interface class through the aidl tool. Next, compile R.java and aidl.java into class files through the java compiler. Then, package the source class file and third-party jar or library into a dex file through dx.bat. Then, the apkbuilder tool packages all uncompiled resources (assets, so, jni), resources.arsc files, and generated dex files to generate an apk file. Finally, use the jarsigner tool to sign the apk through the configured signature file (Debug or Release Keystore, debug or release keystore) to obtain the signed apk (signed apk), and then use the zipalign tool to align and optimize the signed apk, Makes accessing apk files faster through memory mapping, reducing runtime memory usage.
具体地,针对本发明实施例中的目标dex文件,首先创建一个java工程,根据上述构建流程实现包括设备状态监控和测试用例脚本执行逻辑在内的业务逻辑之后,生成可执行jar包source.jar。然后,通过Android SDK中的dx.bat工具将该可执行jar包转换成dex包。以下为通过Android SDK工具将该可执行jar包转换成dex包的一个代码示例:Specifically, for the target dex file in the embodiment of the present invention, a java project is first created, and after implementing business logic including device status monitoring and test case script execution logic according to the above construction process, an executable jar package source.jar is generated . Then, convert the executable jar package into a dex package through the dx.bat tool in the Android SDK. The following is a code example of converting the executable jar package into a dex package through the Android SDK tool:
//\SDK\build-tools\27.0.3\dx.bat//\SDK\build-tools\27.0.3\dx.bat
dx--dex--output=traget.dex source.jardx--dex--output=traget.dex source.jar
上文步骤S104中,通过指定守护进程检测移动设备的当前设备状态,并判断当前设备状态是否异常。In the above step S104, the current device state of the mobile device is detected by the designated daemon process, and it is determined whether the current device state is abnormal.
优选地,通过指定守护进程定期检测移动设备的当前设备状态,以实现对移动设备的状态监控。设备状态的检测周期可按实际需要进行设定,如设定为1小时、10分钟等,本发明对此不作限制。Preferably, the current device state of the mobile device is periodically detected by a designated daemon process, so as to monitor the state of the mobile device. The detection period of the equipment state can be set according to actual needs, such as 1 hour, 10 minutes, etc., which is not limited in the present invention.
优选地,判断当前设备状态是否异常还可以进一步实施为:Preferably, judging whether the current device state is abnormal can be further implemented as:
判断移动设备的USB连接是否断线;和/或Determine if the USB connection of the mobile device is disconnected; and/or
判断移动设备的开发者模式是否自动关闭。Determines whether the developer mode of the mobile device is automatically turned off.
例如,当检测到显示USB连接已断开的提示,但并未检测到USB数据线的插拔操作,则可以判断移动设备的USB连接断线。再例如,当检测到显示开发者模式已关闭的提示,但并未检测到用户对开发者模式选项的关闭操作,则可以判断移动设备的开发者模式已自动关闭。For example, when a prompt indicating that the USB connection has been disconnected is detected, but the plug-in operation of the USB data cable is not detected, it can be determined that the USB connection of the mobile device is disconnected. For another example, when a prompt indicating that the developer mode has been turned off is detected, but the user's operation of turning off the developer mode option is not detected, it can be determined that the developer mode of the mobile device has been turned off automatically.
在一个可选的实施例中,在通过指定守护进程检测移动设备的当前设备状态后,还可以将该移动设备的当前设备状态上报至真机测试平台,具体地,上报至真机测试平台的后台系统。In an optional embodiment, after the current device state of the mobile device is detected by the designated daemon process, the current device state of the mobile device may also be reported to the real device test platform, and specifically, the current device state of the mobile device may be reported to the real device test platform. backend system.
在前文所述的实施方式中,通过移动设备内部的指定守护进程检测当前设备状态并判断当前设备状态是否异常。在另一种可替换的实施方式中,也可以在将移动设备的当前设备状态上报至真机测试平台后,由真机测试平台判断当前设备状态是否异常,并向该指定守护进程返回判断结果。在此实施方式中,判断当前设备状态是否异常的操作和依据与上文相同,在此不另赘述。In the aforementioned embodiments, the current device state is detected by a designated daemon process inside the mobile device and it is determined whether the current device state is abnormal. In another alternative embodiment, after the current device state of the mobile device is reported to the real device test platform, the real device test platform may determine whether the current device state is abnormal, and return the determination result to the designated daemon process. In this implementation manner, the operation and basis for judging whether the current device state is abnormal are the same as the above, and are not repeated here.
上文步骤S106中,若判断出当前设备状态异常,则通过指定守护进程根据移动设备的信息从真机测试平台获取用于维护移动设备的测试用例脚本。其中,该测试用例脚本是预先配置在真机测试平台的后台系统中,其采用自定义脚本规则实现。此处提及的移动设备的信息可以包括移动设备厂商、操作系统版本等。In the above step S106, if it is determined that the current device state is abnormal, a test case script for maintaining the mobile device is obtained from the real machine test platform through the designated daemon process according to the information of the mobile device. Wherein, the test case script is pre-configured in the background system of the real machine test platform, which is implemented by using custom script rules. The information of the mobile device mentioned here may include the manufacturer of the mobile device, the version of the operating system, and the like.
在一个可选的实施例中,该测试用例脚本采用json格式。json(JavaScriptObject Notation,JS对象简谱)是一种轻量级的数据交换格式,采用完全独立于编程语言的文本格式来存储和表示数据,易于人阅读和编写,同时也易于机器解析和生成,并有效地提升网络传输效率。In an optional embodiment, the test case script is in json format. JSON (JavaScriptObject Notation, JS Object Notation) is a lightweight data exchange format that uses a text format that is completely independent of programming languages to store and represent data, which is easy for humans to read and write, and easy for machines to parse and generate. Effectively improve network transmission efficiency.
在一个可选的实施例中,该测试用例脚本是根据设备型号、操作系统版本和/或设备异常类型在真机测试平台中预先配置的。此时,通过指定守护进程根据移动设备的信息从真机测试平台获取用于维护移动设备的测试用例脚本的步骤还可以进一步实施为:In an optional embodiment, the test case script is pre-configured in the real machine test platform according to the device model, operating system version and/or device exception type. At this time, the step of acquiring the test case script for maintaining the mobile device from the real machine test platform by specifying the daemon process according to the information of the mobile device can be further implemented as follows:
通过指定守护进程,根据当前设备状态的异常类型、移动设备的型号和/或移动设备的操作系统版本从真机测试平台获取用于维护该移动设备的测试用例脚本。此处提及的当前设备状态的异常类型可以包括USB连接断线和/或开发者模式自动关闭。By specifying the daemon process, the test case script for maintaining the mobile device is obtained from the real machine test platform according to the abnormal type of the current device state, the model of the mobile device and/or the operating system version of the mobile device. The abnormal types of the current device state mentioned here may include disconnection of USB connection and/or automatic shutdown of developer mode.
上文步骤S108中,通过指定守护进程解析并执行测试用例脚本,以对移动设备进行维护。In the above step S108, the test case script is parsed and executed by the designated daemon process, so as to maintain the mobile device.
在一个可选的实施例中,通过自动化测试框架来自动化执行该测试用例脚本以维护该移动设备。In an optional embodiment, the test case script is automatically executed by an automated testing framework to maintain the mobile device.
优选地,通过在该测试用例脚本中通过指定方法名和参数模拟用户操作,来实现自动化执行对移动设备的维护操作。模拟的用户操作可以包括休眠、滑动屏幕、点击等操作中的至少之一。下面列出了用于维护异常状态下的移动设备的测试用例脚本的一个示例:Preferably, by simulating user operations by specifying method names and parameters in the test case script, automatic execution of maintenance operations on the mobile device is realized. The simulated user operation may include at least one of operations such as sleeping, sliding the screen, and clicking. An example of a test case script for maintaining a mobile device in an abnormal state is listed below:
[[
{"function":"sleep","params":[2],"expects":[]},{"function":"sleep","params":[2],"expects":[]},
{"function":"swipe","params":[613,1264,690,566],"expects":[]},{"function":"swipe","params":[613,1264,690,566],"expects":[]},
{"function":"sleep","params":[2],"expects":[]},{"function":"sleep","params":[2],"expects":[]},
{"function":"swipe","params":[654,1246,699,244],"expects":[]},{"function":"swipe","params":[654,1246,699,244],"expects":[]},
{"function":"sleep","params":[2],"expects":[]},{"function":"sleep","params":[2],"expects":[]},
{"function":"swipe","params":[684,1130,277,0],"expects":[]},{"function":"swipe","params":[684,1130,277,0],"expects":[]},
{"function":"sleep","params":[4],"expects":[]},{"function":"sleep","params":[4],"expects":[]},
{"function":"swipe","params":[464,721,464,721],"expects":[]},{"function":"swipe","params":[464,721,464,721],"expects":[]},
{"function":"sleep","params":[11],"expects":[]},{"function":"sleep","params":[11],"expects":[]},
{"function":"clickbymd5","params":["29ecb03e5763e493717649999bf35e68"],"expects":[]}{"function":"clickbymd5","params":["29ecb03e5763e493717649999bf35e68"],"expects":[]}
]]
由于对于USB连接断线、开发者模式自动关闭等设备异常问题的处理通常具有固定的处理步骤,通过在测试用例脚本中以指定方法名和参数模拟一系列的用户操作,则在发现设备异常时,只需获取并执行该测试用例脚本便可实现对异常设备的自动化维护,而无需专门的维护人员,极大地节省了人力成本,提高了维护效率。Since there are usually fixed processing steps for handling device exceptions such as USB connection disconnection and automatic shutdown of developer mode, by simulating a series of user operations with specified method names and parameters in the test case script, when a device exception is found, Only by acquiring and executing the test case script, the automatic maintenance of abnormal equipment can be realized without special maintenance personnel, which greatly saves labor costs and improves maintenance efficiency.
在一个可选的实施例中,本发明的方法还可以包括以下步骤:In an optional embodiment, the method of the present invention may further comprise the following steps:
若判断出当前设备状态未出现异常,则令该指定守护进程等待下一次进行移动设备的当前设备状态的检测。If it is determined that the current device state is not abnormal, the designated daemon process is made to wait for the next detection of the current device state of the mobile device.
以上介绍了图1所示实施例的各个环节的多种实现方式,下面将通过具体实施例来详细介绍本发明的真机测试平台上移动设备的管理方法的实现过程。Various implementations of each link of the embodiment shown in FIG. 1 have been described above. The following will describe in detail the implementation process of the mobile device management method on the real machine test platform of the present invention through specific embodiments.
图3示出了根据本发明一具体实施例的真机测试平台上移动设备的管理方法的流程示意图。本实施例中结合了移动设备端、代理服务器和真机测试平台对真机测试平台上移动设备的管理方法进行具体说明。在本实施例中,移动设备为手机,代理服务器为PC代理。参见图3所示,该方法应用于手机端,至少可以包括以下步骤S302至步骤S310。FIG. 3 shows a schematic flowchart of a method for managing a mobile device on a real machine test platform according to a specific embodiment of the present invention. In this embodiment, the mobile device terminal, the proxy server and the real device test platform are combined to describe the management method of the mobile device on the real device test platform. In this embodiment, the mobile device is a mobile phone, and the proxy server is a PC proxy. Referring to FIG. 3 , the method is applied to a mobile phone terminal, and may at least include the following steps S302 to S310.
步骤S302,使用USB通过adb命令与PC代理建立连接。Step S302, using USB to establish a connection with the PC agent through an adb command.
具体地,手机使用USB数据线与PC相连,之后在手机中启用USB调试,并在PC代理的命令行输入adb devices命令,即可建立连接。Specifically, the mobile phone is connected to the PC using a USB data cable, then USB debugging is enabled in the mobile phone, and the adb devices command is entered on the command line of the PC agent to establish the connection.
步骤S304,通过PC代理的adb进程的nohup命令在手机内部运行目标dex文件,以启动java守护进程。Step S304, run the target dex file inside the mobile phone through the nohup command of the adb process of the PC agent to start the java daemon process.
其中,在启动java守护进程时,初始化手机端的执行环境。Among them, when the java daemon process is started, the execution environment of the mobile terminal is initialized.
步骤S306,通过java守护进程定期检测当前手机状态,并判断当前手机状态是否异常。In step S306, the current state of the mobile phone is regularly detected by the java daemon, and it is determined whether the current state of the mobile phone is abnormal.
具体地,判断手机的USB连接是否断线;和/或判断手机的开发者模式是否自动关闭。Specifically, determine whether the USB connection of the mobile phone is disconnected; and/or determine whether the developer mode of the mobile phone is automatically turned off.
步骤S308,若判断当前手机状态异常,则通过java守护进程根据手机的设备型号、操作系统版本和手机异常类型从真机测试平台获取测试用例脚本。Step S308, if it is determined that the current state of the mobile phone is abnormal, the test case script is obtained from the real device test platform through the java daemon process according to the device model, operating system version and abnormal type of the mobile phone.
其中,该测试用例脚本是根据设备型号、操作系统版本和/或设备异常类型在真机测试平台中预先配置的。Wherein, the test case script is pre-configured in the real machine test platform according to the device model, operating system version and/or device exception type.
具体地,手机异常类型包括USB连接断线和/或开发者模式自动关闭。Specifically, the abnormal types of the mobile phone include disconnection of the USB connection and/or automatic shutdown of the developer mode.
步骤S310,由java守护进程解析该测试用例脚本,并通过自动化测试框架执行该测试利用脚本,以对手机进行维护。In step S310, the test case script is parsed by the java daemon, and the test utilization script is executed by an automated test framework to maintain the mobile phone.
在本实施例中,在手机与PC代理建立连接之前,PC代理启动后,PC代理与真机测试平台心跳连接,即,通过心跳机制来确保代理服务器与真机测试平台之间的通讯连接的有效性。In this embodiment, before the connection between the mobile phone and the PC agent is established, after the PC agent is started, the PC agent is connected with the real machine test platform by heartbeat, that is, the communication connection between the proxy server and the real machine test platform is ensured through the heartbeat mechanism. effectiveness.
本发明实施例通过nohup命令启动java守护进程,即使移动设备的USB连接断开或开发者模式关闭后,仍可处于运行状态,从而能够有效地监控设备状态并执行用于维护的测试用例脚本。同时,通过根据当前设备状态的异常类型、移动设备的型号和/或移动设备的操作系统版本从真机测试平台获取预先配置的针对不同移动设备型号、系统版本和异常类型的测试用例脚本,能够实现通过执行测试用例脚本来对具有固定处理步骤的异常状态问题进行准确的自动化处理。In the embodiment of the present invention, the java daemon process is started by the nohup command, even after the USB connection of the mobile device is disconnected or the developer mode is turned off, it can still be in the running state, so that the device state can be effectively monitored and the test case script used for maintenance can be executed. At the same time, by obtaining pre-configured test case scripts for different mobile device models, system versions and exception types from the real machine test platform according to the abnormal type of the current device state, the model of the mobile device and/or the operating system version of the mobile device, it is possible to Realize accurate automation of abnormal state problems with fixed processing steps by executing test case scripts.
基于同一发明构思,本发明实施例还提供了一种真机测试平台上移动设备的管理装置,用于支持上述任意一个实施例或其组合所提供的真机测试平台上移动设备的管理方法。图4示出了根据本发明一实施例的真机测试平台上移动设备的管理装置的结构示意图。参见图4,该装置应用于移动设备端,至少可以包括:进程启动模块410、状态检测模块420、脚本获取模块430以及脚本解析执行模块440。Based on the same inventive concept, an embodiment of the present invention also provides an apparatus for managing mobile devices on a real machine test platform, which is used to support the management method for mobile devices on a real machine test platform provided by any one of the above embodiments or a combination thereof. FIG. 4 shows a schematic structural diagram of an apparatus for managing a mobile device on a real machine test platform according to an embodiment of the present invention. Referring to FIG. 4 , the apparatus is applied to a mobile device and may at least include: a process initiation module 410 , a state detection module 420 , a script acquisition module 430 , and a script parsing and execution module 440 .
现介绍本发明实施例的真机测试平台上移动设备的管理装置的各组成或器件的功能以及各部分间的连接关系:Now introduce the functions of each component or device of the management device of the mobile device on the real machine test platform of the embodiment of the present invention and the connection relationship between each part:
进程启动模块410,适于当移动设备与代理服务器连接后,通过代理服务器以不挂起运行的方式在该移动设备中启动指定守护进程。The process starting module 410 is adapted to start a designated daemon process in the mobile device through the proxy server in a manner that does not suspend running after the mobile device is connected to the proxy server.
状态检测模块420,与进程启动模块410连接,适于通过该指定守护进程检测该移动设备的当前设备状态,并判断当前设备状态是否异常。The state detection module 420, connected with the process initiation module 410, is adapted to detect the current device state of the mobile device through the designated daemon process, and determine whether the current device state is abnormal.
脚本获取模块430,与状态检测模块420连接,适于若判断出当前设备状态异常,则通过该指定守护进程根据该移动设备的信息从真机测试平台获取用于维护移动设备的测试用例脚本。The script obtaining module 430 is connected to the state detection module 420 and is adapted to obtain a test case script for maintaining the mobile device from the real machine test platform through the designated daemon process according to the information of the mobile device if it is determined that the current device state is abnormal.
脚本解析执行模块440,与脚本获取模块430连接,适于通过该指定守护进程解析并执行该测试用例脚本,以对该移动设备进行维护。The script parsing and executing module 440 is connected to the script obtaining module 430 and is adapted to parse and execute the test case script through the designated daemon process, so as to maintain the mobile device.
在一个可选的实施例中,指定守护进程为java守护进程,则进程启动模块410还适于:In an optional embodiment, if the designated daemon process is a java daemon process, the process startup module 410 is further adapted to:
通过代理服务器的adb进程的nohup命令在移动设备中运行目标dex文件,以启动java守护进程。Run the target dex file in the mobile device through the nohup command of the adb process of the proxy server to start the java daemon.
进一步地,该目标dex文件是通过Android软件开发工具包将包含设备状态监控和测试用例脚本执行逻辑的可执行jar包转换而成,并预先被配置在移动设备中。Further, the target dex file is converted from an executable jar package containing device status monitoring and test case script execution logic through the Android software development kit, and is preconfigured in the mobile device.
在一个可选的实施例中,该移动设备使用USB或WiFi通过adb命令与代理服务器连接。In an optional embodiment, the mobile device is connected to the proxy server through adb commands using USB or WiFi.
在一个可选的实施例中,状态检测模块420还适于:In an optional embodiment, the state detection module 420 is further adapted to:
通过指定守护进程定期检测移动设备的当前设备状态。Periodically detect the current device state of a mobile device by specifying a daemon.
在一个可选的实施例中,状态检测模块420还适于:In an optional embodiment, the state detection module 420 is further adapted to:
判断USB连接是否断线;和/或Determine if the USB connection is broken; and/or
判断开发者模式是否自动关闭。Determines whether developer mode is automatically turned off.
在一个可选的实施例中,状态检测模块420还适于:In an optional embodiment, the state detection module 420 is further adapted to:
在检测移动设备的当前设备状态后,将该移动设备的当前设备状态上报至真机测试平台。After detecting the current device state of the mobile device, the current device state of the mobile device is reported to the real machine test platform.
在一个可选的实施例中,测试用例脚本是根据设备型号、操作系统版本和/或设备异常类型在真机测试平台中预先配置的,则脚本获取模块430还适于:In an optional embodiment, the test case script is pre-configured in the real machine test platform according to the device model, operating system version and/or device exception type, and the script obtaining module 430 is further adapted to:
通过指定守护进程,根据当前设备状态的异常类型、该移动设备的型号和/或该移动设备的操作系统版本从真机测试平台获取用于维护该移动设备的测试用例脚本。By specifying the daemon process, the test case script for maintaining the mobile device is obtained from the real machine test platform according to the abnormal type of the current device state, the model of the mobile device and/or the operating system version of the mobile device.
在一个可选的实施例中,该测试用例脚本是json格式的。In an optional embodiment, the test case script is in json format.
在一个可选的实施例中,脚本解析执行模块440还适于:In an optional embodiment, the script parsing and execution module 440 is further adapted to:
在测试用例脚本中通过指定方法名和参数模拟用户操作。Simulate user actions by specifying method names and parameters in test case scripts.
进一步地,上述用户操作包括下列至少之一:Further, the above-mentioned user operation includes at least one of the following:
休眠、滑动屏幕、点击。Sleep, swipe, tap.
在一个可选的实施例中,脚本解析执行模块440还适于:In an optional embodiment, the script parsing and execution module 440 is further adapted to:
通过自动化测试框架执行测试用例脚本。Execute test case scripts through an automated testing framework.
在一个可选的实施例中,如图5所示,图4展示的真机测试平台上移动设备的管理装置还可以包括进程等待模块450。进程等待模块450与状态检测模块420连接,适于若判断出当前设备状态未出现异常,则令该指定守护进程等待下一次进行移动设备的当前设备状态的检测。In an optional embodiment, as shown in FIG. 5 , the apparatus for managing mobile devices on the real machine test platform shown in FIG. 4 may further include a process waiting module 450 . The process waiting module 450 is connected to the state detection module 420, and is adapted to make the designated daemon wait for the next detection of the current device state of the mobile device if it is determined that the current device state is not abnormal.
基于同一发明构思,本发明实施例还提供了一种计算机存储介质。该计算机存储介质存储有计算机程序代码,当该计算机程序代码在计算设备上运行时,导致计算设备执行根据上述任意一个实施例或其组合所述的真机测试平台上移动设备的管理方法。Based on the same inventive concept, an embodiment of the present invention also provides a computer storage medium. The computer storage medium stores computer program code, which, when executed on a computing device, causes the computing device to execute the method for managing a mobile device on a real machine test platform according to any one of the foregoing embodiments or a combination thereof.
基于同一发明构思,本发明实施例还提供了一种计算设备。该计算设备可以包括:Based on the same inventive concept, an embodiment of the present invention further provides a computing device. The computing device may include:
处理器;以及processor; and
存储有计算机程序代码的存储器;memory in which computer program code is stored;
当该计算机程序代码被处理器运行时,导致该计算设备执行根据上述任意一个实施例或其组合所述的真机测试平台上移动设备的管理方法。When the computer program code is executed by the processor, it causes the computing device to execute the method for managing a mobile device on a real machine test platform according to any one of the above embodiments or a combination thereof.
根据上述任意一个可选实施例或多个可选实施例的组合,本发明实施例能够达到如下有益效果:According to any one of the foregoing optional embodiments or a combination of multiple optional embodiments, the embodiments of the present invention can achieve the following beneficial effects:
本发明实施例提出的真机测试平台上移动设备的管理方法和装置,当移动设备在真机测试平台上线时,通过代理服务器以不挂起运行的方式在该移动设备中启动指定守护进程,进而通过指定守护进程检测该移动设备的当前设备状态并判断是否异常,若是,则根据移动设备的信息从真机测试平台获取用于维护该移动设备的测试用例脚本,并对该测试用例脚本进行解析和执行,从而实现对该移动设备的维护操作。由于指定守护进程以不挂起运行的方式启动,即使移动设备出现USB连接断线或开发者模式自动关闭的异常状态,指定守护进程仍能够处于运行状态,进而能够持续监控移动设备的状态并针对异常状态获取并执行相应的测试用例脚本,以实现对移动设备的自动化维护。The method and device for managing a mobile device on a real machine test platform provided by the embodiment of the present invention, when the mobile device goes online on the real machine test platform, start a designated daemon process in the mobile device through a proxy server in a manner that does not suspend operation, Then, the current device status of the mobile device is detected by the designated daemon process and whether it is abnormal, if so, the test case script for maintaining the mobile device is obtained from the real machine test platform according to the information of the mobile device, and the test case script is executed. Parse and execute, so as to implement maintenance operations on the mobile device. Since the designated daemon is started in a way that does not suspend, even if the mobile device is in an abnormal state where the USB connection is disconnected or the developer mode is automatically turned off, the designated daemon can still be in the running state, so as to continuously monitor the state of the mobile device and target The abnormal state is obtained and the corresponding test case script is executed to realize the automatic maintenance of the mobile device.
进一步地,通过根据当前设备状态的异常类型、移动设备的型号和/或移动设备的操作系统版本从真机测试平台获取预先配置的针对不同移动设备型号、系统版本和异常类型的测试用例脚本,并在测试用例脚本中通过指定方法名和参数来模拟一系列的用户操作,能够实现通过执行测试用例脚本来对具有固定处理步骤的异常状态问题进行准确的自动化处理。Further, by obtaining preconfigured test case scripts for different mobile device models, system versions and abnormal types from the real machine test platform according to the abnormal type of the current device state, the model of the mobile device and/or the operating system version of the mobile device, And by specifying method names and parameters in the test case script to simulate a series of user operations, it can realize the accurate automatic processing of abnormal state problems with fixed processing steps by executing the test case script.
所属领域的技术人员可以清楚地了解到,上述描述的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,为简洁起见,在此不另赘述。Those skilled in the art can clearly understand that, for the specific working processes of the systems, devices and units described above, reference may be made to the corresponding processes in the foregoing method embodiments, and for the sake of brevity, details are not described herein.
另外,在本发明各个实施例中的各功能单元可以物理上相互独立,也可以两个或两个以上功能单元集成在一起,还可以全部功能单元都集成在一个处理单元中。上述集成的功能单元既可以采用硬件的形式实现,也可以采用软件或者固件的形式实现。In addition, each functional unit in each embodiment of the present invention may be physically independent of each other, or two or more functional units may be integrated together, or all functional units may be integrated into one processing unit. The above-mentioned integrated functional units may be implemented in the form of hardware, and may also be implemented in the form of software or firmware.
本领域普通技术人员可以理解:所述集成的功能单元如果以软件的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,其包括若干指令,用以使得一台计算设备(例如个人计算机,服务器,或者网络设备等)在运行所述指令时执行本发明各实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM)、随机存取存储器(RAM),磁碟或者光盘等各种可以存储程序代码的介质。Those skilled in the art can understand that: if the integrated functional unit is implemented in the form of software and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on such understanding, the technical solution of the present invention or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, which includes several instructions to make a computer A computing device (such as a personal computer, a server, or a network device, etc.) executes all or part of the steps of the methods described in the embodiments of the present invention when running the instructions. The aforementioned storage medium includes: a U disk, a removable hard disk, a read only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk and other media that can store program codes.
或者,实现前述方法实施例的全部或部分步骤可以通过程序指令相关的硬件(诸如个人计算机,服务器,或者网络设备等的计算设备)来完成,所述程序指令可以存储于一计算机可读取存储介质中,当所述程序指令被计算设备的处理器执行时,所述计算设备执行本发明各实施例所述方法的全部或部分步骤。Alternatively, all or part of the steps of implementing the foregoing method embodiments may be accomplished by program instructions related to hardware (such as a personal computer, a server, or a computing device such as a network device), and the program instructions may be stored in a computer-readable storage In the medium, when the program instructions are executed by the processor of the computing device, the computing device executes all or part of the steps of the methods described in the embodiments of the present invention.
最后应说明的是:以上各实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述各实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:在本发明的精神和原则之内,其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分或者全部技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案脱离本发明的保护范围。Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, but not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: Within the spirit and principle of the present invention, it is still possible to modify the technical solutions recorded in the foregoing embodiments, or to perform equivalent replacements for some or all of the technical features; and these modifications or replacements do not make the corresponding technical solutions deviate protection scope of the present invention.
根据本发明实施例的一方面,提供了A1.一种真机测试平台上移动设备的管理方法,应用于移动设备端,包括:According to an aspect of the embodiments of the present invention, A1. a management method of a mobile device on a real machine test platform is provided, which is applied to the mobile device side, including:
当所述移动设备与代理服务器连接后,通过所述代理服务器以不挂起运行的方式在所述移动设备中启动指定守护进程;After the mobile device is connected to the proxy server, start a designated daemon process in the mobile device through the proxy server in a manner that does not suspend operation;
通过所述指定守护进程检测所述移动设备的当前设备状态,并判断所述当前设备状态是否异常;Detect the current device state of the mobile device through the designated daemon process, and determine whether the current device state is abnormal;
若是,则通过所述指定守护进程根据所述移动设备的信息从所述真机测试平台获取用于维护所述移动设备的测试用例脚本;If so, obtain a test case script for maintaining the mobile device from the real machine test platform through the designated daemon process according to the information of the mobile device;
通过所述指定守护进程解析并执行所述测试用例脚本,以对所述移动设备进行维护。The test case script is parsed and executed by the designated daemon to maintain the mobile device.
A2.根据A1所述的方法,其中,所述指定守护进程为java守护进程;A2. The method according to A1, wherein the designated daemon process is a java daemon process;
通过所述代理服务器以不挂起运行的方式在所述移动设备中启动指定守护进程,包括:Start the specified daemon process in the mobile device through the proxy server without suspending the operation, including:
通过所述代理服务器的adb进程的nohup命令在所述移动设备中运行目标dex文件,以启动所述java守护进程。The target dex file is run in the mobile device through the nohup command of the adb process of the proxy server to start the java daemon process.
A3.根据A2所述的方法,其中,所述目标dex文件是通过Android软件开发工具包将包含设备状态监控和测试用例脚本执行逻辑的可执行jar包转换而成,并预先被配置在所述移动设备中。A3. The method according to A2, wherein the target dex file is converted from an executable jar package containing device status monitoring and test case script execution logic through an Android software development kit, and is preconfigured in the in mobile devices.
A4.根据A1所述的方法,其中,所述移动设备使用USB或WiFi通过adb命令与所述代理服务器连接。A4. The method of A1, wherein the mobile device is connected to the proxy server through an adb command using USB or WiFi.
A5.根据A1所述的方法,其中,通过所述指定守护进程检测所述移动设备的当前设备状态,包括:A5. The method according to A1, wherein detecting the current device state of the mobile device by the designated daemon process includes:
通过所述指定守护进程定期检测所述移动设备的当前设备状态。The current device state of the mobile device is periodically detected by the designated daemon.
A6.根据A1所述的方法,其中,判断所述当前设备状态是否异常,包括:A6. The method according to A1, wherein judging whether the current device state is abnormal comprises:
判断USB连接是否断线;和/或Determine if the USB connection is broken; and/or
判断开发者模式是否自动关闭。Determines whether developer mode is automatically turned off.
A7.根据A1所述的方法,其中,在检测所述移动设备的当前设备状态后,还包括:A7. The method according to A1, wherein after detecting the current device state of the mobile device, further comprising:
将所述移动设备的当前设备状态上报至所述真机测试平台。The current device state of the mobile device is reported to the real device test platform.
A8.根据A1所述的方法,其中,所述测试用例脚本是根据设备型号、操作系统版本和/或设备异常类型在所述真机测试平台中预先配置的;A8. The method according to A1, wherein the test case script is pre-configured in the real machine test platform according to device model, operating system version and/or device exception type;
通过所述指定守护进程根据所述移动设备的信息从所述真机测试平台获取用于维护所述移动设备的测试用例脚本,包括:Obtain a test case script for maintaining the mobile device from the real machine test platform according to the information of the mobile device through the designated daemon, including:
通过所述指定守护进程,根据当前设备状态的异常类型、所述移动设备的型号和/或所述移动设备的操作系统版本从所述真机测试平台获取用于维护所述移动设备的测试用例脚本。Through the designated daemon process, a test case for maintaining the mobile device is obtained from the real machine test platform according to the abnormal type of the current device state, the model of the mobile device and/or the operating system version of the mobile device script.
A9.根据A1所述的方法,其中,所述测试用例脚本是json格式的。A9. The method according to A1, wherein the test case script is in json format.
A10.根据A1所述的方法,其中,对所述移动设备进行维护,包括:A10. The method according to A1, wherein maintaining the mobile device includes:
在所述测试用例脚本中通过指定方法名和参数模拟用户操作。Simulate user operations by specifying method names and parameters in the test case script.
A11.根据A10所述的方法,其中,所述用户操作包括下列至少之一:A11. The method according to A10, wherein the user operation includes at least one of the following:
休眠、滑动屏幕、点击。Sleep, swipe, tap.
A12.根据A1所述的方法,其中,执行所述测试用例脚本,包括:A12. The method according to A1, wherein executing the test case script includes:
通过自动化测试框架执行所述测试用例脚本。The test case script is executed by an automated testing framework.
A13.根据A1-A12中任一项所述的方法,其中,还包括:A13. The method according to any one of A1-A12, wherein, further comprising:
若判断出所述当前设备状态未出现异常,则令所述指定守护进程等待下一次进行所述移动设备的当前设备状态的检测。If it is determined that the current device state is not abnormal, the designated daemon process is made to wait for the next detection of the current device state of the mobile device.
根据本发明实施例的另一方面,还提供了B14.一种真机测试平台上移动设备的管理装置,应用于移动设备端,包括:According to another aspect of the embodiments of the present invention, B14. A management device for a mobile device on a real machine test platform is also provided, which is applied to the mobile device and includes:
进程启动模块,适于当所述移动设备与代理服务器连接后,通过所述代理服务器以不挂起运行的方式在所述移动设备中启动指定守护进程;a process startup module, adapted to start a designated daemon process in the mobile device through the proxy server in a manner that does not suspend operation after the mobile device is connected to the proxy server;
状态检测模块,适于通过所述指定守护进程检测所述移动设备的当前设备状态,并判断所述当前设备状态是否异常;a state detection module, adapted to detect the current device state of the mobile device through the designated daemon process, and determine whether the current device state is abnormal;
脚本获取模块,适于若判断出所述当前设备状态异常,则通过所述指定守护进程根据所述移动设备的信息从所述真机测试平台获取用于维护所述移动设备的测试用例脚本;以及a script obtaining module, adapted to obtain a test case script for maintaining the mobile device from the real machine test platform through the designated daemon process according to the information of the mobile device if it is judged that the current device state is abnormal; as well as
脚本解析执行模块,适于通过所述指定守护进程解析并执行所述测试用例脚本,以对所述移动设备进行维护。The script parsing and execution module is adapted to parse and execute the test case script through the designated daemon process, so as to maintain the mobile device.
B15.根据B14所述的装置,其中,所述指定守护进程为java守护进程;B15. The device according to B14, wherein the designated daemon process is a java daemon process;
所述进程启动模块还适于:The process startup module is also adapted to:
通过所述代理服务器的adb进程的nohup命令在所述移动设备中运行目标dex文件,以启动所述java守护进程。The target dex file is run in the mobile device through the nohup command of the adb process of the proxy server to start the java daemon process.
B16.根据B15所述的装置,其中,所述目标dex文件是通过Android软件开发工具包将包含设备状态监控和测试用例脚本执行逻辑的可执行jar包转换而成,并预先被配置在所述移动设备中。B16. The device according to B15, wherein the target dex file is converted from an executable jar package containing device status monitoring and test case script execution logic through an Android software development kit, and is preconfigured in the in mobile devices.
B17.根据B14所述的装置,其中,所述移动设备使用USB或WiFi通过adb命令与所述代理服务器连接。B17. The apparatus of B14, wherein the mobile device connects with the proxy server through an adb command using USB or WiFi.
B18.根据B14所述的装置,其中,所述状态检测模块还适于:B18. The apparatus of B14, wherein the state detection module is further adapted to:
通过所述指定守护进程定期检测所述移动设备的当前设备状态。The current device state of the mobile device is periodically detected by the designated daemon.
B19.根据B14所述的装置,其中,所述状态检测模块还适于:B19. The apparatus of B14, wherein the state detection module is further adapted to:
判断USB连接是否断线;和/或Determine if the USB connection is broken; and/or
判断开发者模式是否自动关闭。Determines whether developer mode is automatically turned off.
B20.根据B14所述的装置,其中,所述状态检测模块还适于:B20. The apparatus of B14, wherein the state detection module is further adapted to:
在检测所述移动设备的当前设备状态后,将所述移动设备的当前设备状态上报至所述真机测试平台。After detecting the current device state of the mobile device, the current device state of the mobile device is reported to the real machine test platform.
B21.根据B14所述的装置,其中,所述测试用例脚本是根据设备型号、操作系统版本和/或设备异常类型在所述真机测试平台中预先配置的;B21. The apparatus according to B14, wherein the test case script is pre-configured in the real machine test platform according to device model, operating system version and/or device exception type;
所述脚本获取模块还适于:The script acquisition module is also adapted to:
通过所述指定守护进程,根据当前设备状态的异常类型、所述移动设备的型号和/或所述移动设备的操作系统版本从所述真机测试平台获取用于维护所述移动设备的测试用例脚本。Through the designated daemon process, a test case for maintaining the mobile device is obtained from the real machine test platform according to the abnormal type of the current device state, the model of the mobile device and/or the operating system version of the mobile device script.
B22.根据B14所述的装置,其中,所述测试用例脚本是json格式的。B22. The apparatus according to B14, wherein the test case script is in json format.
B23.根据B14所述的装置,其中,所述脚本解析执行模块还适于:B23. The apparatus according to B14, wherein the script parsing execution module is further adapted to:
在所述测试用例脚本中通过指定方法名和参数模拟用户操作。Simulate user operations by specifying method names and parameters in the test case script.
B24.根据B23所述的装置,其中,所述用户操作包括下列至少之一:B24. The apparatus according to B23, wherein the user operation includes at least one of the following:
休眠、滑动屏幕、点击。Sleep, swipe, tap.
B25.根据B14所述的装置,其中,所述脚本解析执行模块还适于:B25. The apparatus according to B14, wherein the script parsing execution module is further adapted to:
通过自动化测试框架执行所述测试用例脚本。The test case script is executed by an automated testing framework.
B26.根据B14-B25中任一项所述的装置,其中,还包括:B26. The device according to any one of B14-B25, further comprising:
进程等待模块,适于若判断出所述当前设备状态未出现异常,则令所述指定守护进程等待下一次进行所述移动设备的当前设备状态的检测。The process waiting module is adapted to make the designated daemon wait for the next detection of the current device state of the mobile device if it is determined that the current device state is not abnormal.
根据本发明实施例的再一方面,还提供了C27.一种计算机存储介质,所述计算机存储介质存储有计算机程序代码,当所述计算机程序代码在计算设备上运行时,导致所述计算设备执行根据A1-A13中任一项所述的真机测试平台上移动设备的管理方法。According to yet another aspect of the embodiments of the present invention, C27. A computer storage medium is also provided, the computer storage medium stores computer program code, when the computer program code is executed on a computing device, causes the computing device The management method of the mobile device on the real machine test platform according to any one of A1-A13 is executed.
根据本发明实施例的又一方面,还提供了D28.一种计算设备,包括:According to yet another aspect of the embodiments of the present invention, D28. A computing device is also provided, comprising:
处理器;以及processor; and
存储有计算机程序代码的存储器;memory in which computer program code is stored;
当所述计算机程序代码被所述处理器运行时,导致所述计算设备执行根据A1-A13中任一项所述的真机测试平台上移动设备的管理方法。When the computer program code is executed by the processor, it causes the computing device to execute the method for managing a mobile device on a real machine test platform according to any one of A1-A13.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811626410.1A CN111382048B (en) | 2018-12-28 | 2018-12-28 | Management method and device for mobile equipment on true machine test platform |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811626410.1A CN111382048B (en) | 2018-12-28 | 2018-12-28 | Management method and device for mobile equipment on true machine test platform |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111382048A true CN111382048A (en) | 2020-07-07 |
CN111382048B CN111382048B (en) | 2023-10-20 |
Family
ID=71222146
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811626410.1A Active CN111382048B (en) | 2018-12-28 | 2018-12-28 | Management method and device for mobile equipment on true machine test platform |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111382048B (en) |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111881519A (en) * | 2020-07-31 | 2020-11-03 | 广州文远知行科技有限公司 | Automatic driving test method and device, computer equipment and storage medium |
CN111880849A (en) * | 2020-07-21 | 2020-11-03 | 深圳创维-Rgb电子有限公司 | Intelligent log control processing method and device for platform |
CN112328467A (en) * | 2020-09-17 | 2021-02-05 | 北京中数科技术有限公司 | Embedded system program testing method and device |
CN112433938A (en) * | 2020-11-18 | 2021-03-02 | 京东数科海益信息科技有限公司 | Method and device for testing application of mobile terminal |
CN113467861A (en) * | 2021-07-16 | 2021-10-01 | 腾讯科技(深圳)有限公司 | File calling method and device, storage medium and electronic equipment |
CN114676018A (en) * | 2022-03-23 | 2022-06-28 | 上海掌门科技有限公司 | Method, device, medium and program product for updating device status |
CN115706738A (en) * | 2021-08-11 | 2023-02-17 | 瑞昱半导体股份有限公司 | Debugging management platform and operation method thereof |
CN115952100A (en) * | 2023-01-10 | 2023-04-11 | 北京百度网讯科技有限公司 | Interface test method, device, system, electronic equipment and storage medium |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105357030A (en) * | 2015-09-30 | 2016-02-24 | 北京奇虎科技有限公司 | Offline recovery method, device and system for terminal equipment on test platform |
CN105512033A (en) * | 2015-12-02 | 2016-04-20 | 厦门美图移动科技有限公司 | Automated testing method and device of mobile terminal and mobile terminal |
CN105516429A (en) * | 2015-12-07 | 2016-04-20 | 腾讯科技(深圳)有限公司 | A terminal disconnection processing method and system |
CN106506658A (en) * | 2016-11-21 | 2017-03-15 | 济南浪潮高新科技投资发展有限公司 | A kind of method for retaining remote opening service |
CN107122306A (en) * | 2017-05-15 | 2017-09-01 | 网易(杭州)网络有限公司 | Automated testing method and device, storage medium, electronic equipment |
CN107463499A (en) * | 2017-08-08 | 2017-12-12 | 百度在线网络技术(北京)有限公司 | The long-range connection methods of ADB, device, equipment and storage medium |
WO2018006702A1 (en) * | 2016-07-05 | 2018-01-11 | 中兴通讯股份有限公司 | Abnormality processing method, apparatus and system in automation test |
WO2018045767A1 (en) * | 2016-09-07 | 2018-03-15 | 中兴通讯股份有限公司 | Terminal control method and apparatus, and user terminal |
-
2018
- 2018-12-28 CN CN201811626410.1A patent/CN111382048B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105357030A (en) * | 2015-09-30 | 2016-02-24 | 北京奇虎科技有限公司 | Offline recovery method, device and system for terminal equipment on test platform |
CN105512033A (en) * | 2015-12-02 | 2016-04-20 | 厦门美图移动科技有限公司 | Automated testing method and device of mobile terminal and mobile terminal |
CN105516429A (en) * | 2015-12-07 | 2016-04-20 | 腾讯科技(深圳)有限公司 | A terminal disconnection processing method and system |
WO2018006702A1 (en) * | 2016-07-05 | 2018-01-11 | 中兴通讯股份有限公司 | Abnormality processing method, apparatus and system in automation test |
WO2018045767A1 (en) * | 2016-09-07 | 2018-03-15 | 中兴通讯股份有限公司 | Terminal control method and apparatus, and user terminal |
CN106506658A (en) * | 2016-11-21 | 2017-03-15 | 济南浪潮高新科技投资发展有限公司 | A kind of method for retaining remote opening service |
CN107122306A (en) * | 2017-05-15 | 2017-09-01 | 网易(杭州)网络有限公司 | Automated testing method and device, storage medium, electronic equipment |
CN107463499A (en) * | 2017-08-08 | 2017-12-12 | 百度在线网络技术(北京)有限公司 | The long-range connection methods of ADB, device, equipment and storage medium |
Non-Patent Citations (4)
Title |
---|
AAAJJ: "【Android】usb连接断掉后adb shell中启动的程序停止分析", pages 1, Retrieved from the Internet <URL:https://blog.csdn.net/aaajj/article/details/85254029> * |
JUN-FEI HUANG等: "Remote mobile test system: a mobile phone cloud for application testing", 4TH IEEE INTERNATIONAL CONFERENCE ON CLOUD COMPUTING TECHNOLOGY AND SCIENCE PROCEEDINGS, pages 587 - 590 * |
无: "如何使用ADB将命令作为后台进程运行?", pages 1, Retrieved from the Internet <URL:https://www.thinbug.com/q/12069900> * |
杭建: "移动终端设备管理技术的研究与实现", 中国优秀硕士学位论文全文数据库 信息科技辑, pages 139 - 42 * |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111880849A (en) * | 2020-07-21 | 2020-11-03 | 深圳创维-Rgb电子有限公司 | Intelligent log control processing method and device for platform |
CN111881519A (en) * | 2020-07-31 | 2020-11-03 | 广州文远知行科技有限公司 | Automatic driving test method and device, computer equipment and storage medium |
CN111881519B (en) * | 2020-07-31 | 2022-08-05 | 广州文远知行科技有限公司 | Automatic driving test method and device, computer equipment and storage medium |
CN112328467A (en) * | 2020-09-17 | 2021-02-05 | 北京中数科技术有限公司 | Embedded system program testing method and device |
CN112328467B (en) * | 2020-09-17 | 2022-06-28 | 北京中数科技术有限公司 | Embedded system program testing method and device |
CN112433938A (en) * | 2020-11-18 | 2021-03-02 | 京东数科海益信息科技有限公司 | Method and device for testing application of mobile terminal |
CN113467861A (en) * | 2021-07-16 | 2021-10-01 | 腾讯科技(深圳)有限公司 | File calling method and device, storage medium and electronic equipment |
CN115706738A (en) * | 2021-08-11 | 2023-02-17 | 瑞昱半导体股份有限公司 | Debugging management platform and operation method thereof |
CN114676018A (en) * | 2022-03-23 | 2022-06-28 | 上海掌门科技有限公司 | Method, device, medium and program product for updating device status |
CN115952100A (en) * | 2023-01-10 | 2023-04-11 | 北京百度网讯科技有限公司 | Interface test method, device, system, electronic equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN111382048B (en) | 2023-10-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111382048B (en) | Management method and device for mobile equipment on true machine test platform | |
CN104699616B (en) | The method of a kind of application test, Apparatus and system | |
CN103620561B (en) | The method and system of interoperability debugging when running for n road | |
CN110046479B (en) | Link library file anti-debugging method and device based on android operating system | |
CN106294102B (en) | Application program testing method, client, server and system | |
US20120159449A1 (en) | Call Stack Inspection For A Thread Of Execution | |
US20140331209A1 (en) | Program Testing Service | |
CN105426310B (en) | A kind of method and apparatus for the performance for detecting target process | |
US20060265469A1 (en) | XML based scripting framework, and methods of providing automated interactions with remote systems | |
CN114969760A (en) | Vulnerability detection method and device, computer readable medium and electronic equipment | |
CN113392002B (en) | Test system construction method, device, equipment and storage medium | |
CN111782523A (en) | Cloud service deployment test method, device, electronic device and storage medium | |
CN107807869A (en) | A kind of test system and method for testing | |
US20140331205A1 (en) | Program Testing Service | |
CN111258802A (en) | Method for capturing application program crash information and related equipment | |
CN104036193A (en) | Local cross-domain vulnerability detection method and device for application program | |
CN112463574A (en) | Software testing method, device, system, equipment and storage medium | |
CN114385493A (en) | Performance test method and device, electronic equipment and storage medium | |
CN115454856B (en) | Multi-application security detection method, device, medium and electronic equipment | |
CN112214413A (en) | Application program testing method, device, equipment and storage medium | |
US11822465B2 (en) | Operational multipliers for heterogeneous build architectures | |
CN111488268A (en) | Scheduling method and scheduling device for automated testing | |
CN115509913A (en) | Software automation test method, device, machine readable medium and equipment | |
CN112199270B (en) | Program testing method, device, equipment and medium | |
CN114327648A (en) | Drive debugging 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 | ||
TA01 | Transfer of patent application right | ||
TA01 | Transfer of patent application right |
Effective date of registration: 20230921 Address after: Room 03, 2nd Floor, Building A, No. 20 Haitai Avenue, Huayuan Industrial Zone (Huanwai), Binhai New Area, Tianjin, 300450 Applicant after: 3600 Technology Group Co.,Ltd. Address before: 100088 room 112, block D, 28 new street, new street, Xicheng District, Beijing (Desheng Park) Applicant before: BEIJING QIHOO TECHNOLOGY Co.,Ltd. |
|
GR01 | Patent grant | ||
GR01 | Patent grant |