CN105656727A - Method and device achieving application testing on mobile terminal - Google Patents
Method and device achieving application testing on mobile terminal Download PDFInfo
- Publication number
- CN105656727A CN105656727A CN201610101874.5A CN201610101874A CN105656727A CN 105656727 A CN105656727 A CN 105656727A CN 201610101874 A CN201610101874 A CN 201610101874A CN 105656727 A CN105656727 A CN 105656727A
- Authority
- CN
- China
- Prior art keywords
- data
- pcap
- packet
- mobile terminal
- packets
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/50—Testing arrangements
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/12—Network monitoring probes
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/22—Parsing or analysis of headers
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
- Tests Of Electronic Circuits (AREA)
Abstract
Description
技术领域technical field
本发明涉及应用测试领域,具体涉及一种在移动终端上实现应用测试的方法和装置。The invention relates to the field of application testing, in particular to a method and device for implementing application testing on a mobile terminal.
背景技术Background technique
抓包(packetcapture)是将网络传输发送与接收的数据包进行截获、重发、编辑、转存等操作,在应用测试领域具有很重要的作用。例如,对于安装了安卓系统的移动终端,只要将该移动终端进行root,获取到root权限,就能利用现有的多种应用进行抓包,然后进行进一步的测试。Packet capture (packet capture) is to intercept, resend, edit, and transfer data packets sent and received by network transmission, and it plays a very important role in the field of application testing. For example, for a mobile terminal installed with an Android system, as long as the mobile terminal is rooted to obtain root authority, various existing applications can be used to capture packets, and then further testing can be performed.
但是随着安卓系统版本的更新,对高版本的安卓系统进行root越来越困难。在不对安卓系统进行root的情况下,很多应用通过4G网络传输的流量包无法被捕获到,这是现有环境下应用测试领域的一个瓶颈。However, with the update of the Android system version, it becomes more and more difficult to root the higher version of the Android system. Without rooting the Android system, the traffic packets transmitted by many applications through the 4G network cannot be captured, which is a bottleneck in the field of application testing in the existing environment.
发明内容Contents of the invention
鉴于上述问题,提出了本发明以便提供一种克服上述问题或者至少部分地解决上述问题的在移动终端上实现应用测试的方法和装置。In view of the above problems, the present invention is proposed to provide a method and device for implementing application testing on a mobile terminal to overcome the above problems or at least partially solve the above problems.
依据本发明的一个方面,提供了一种在移动终端上实现应用测试的方法,包括:According to one aspect of the present invention, a method for implementing application testing on a mobile terminal is provided, including:
利用测试用移动终端上的VPNService服务提供的接口,捕获该移动终端上的各应用的IP数据包;Utilize the interface provided by the VPNService service on the mobile terminal for testing to capture the IP packets of each application on the mobile terminal;
将捕获的IP数据包封装成网络封包分析工具所能识别的数据文件;Encapsulate captured IP data packets into data files that can be recognized by network packet analysis tools;
将封装后的数据文件发送给所述网络封包分析工具进行分析,以得到对该移动终端上的应用的测试结果。Send the encapsulated data file to the network packet analysis tool for analysis, so as to obtain the test result of the application on the mobile terminal.
可选地,所述将捕获的IP数据包封装成网络封包分析工具所能识别的数据文件包括:Optionally, the IP data packet that captures is encapsulated into the data file that network packet analysis tool can identify comprises:
将捕获的IP数据包封装到pcap文件中。Encapsulate captured IP packets into a pcap file.
可选地,将捕获的IP数据包封装到pcap文件中包括:Optionally, encapsulating captured IP packets into a pcap file includes:
将IP数据包封装成pcap包;Encapsulate IP data packets into pcap packets;
将一个或多个pcap包封装成pcap文件,所述pcap文件具有pcap文件头。Encapsulate one or more pcap packets into a pcap file, and the pcap file has a pcap file header.
可选地,所述将IP数据包封装成pcap包包括:Optionally, said encapsulating IP packets into pcap packets includes:
为一个IP数据包加上以太网帧头和pcap包头,得到一个pcap包。Add Ethernet frame header and pcap header to an IP data packet to get a pcap packet.
可选地,将捕获的IP数据包封装成网络封包分析工具所能识别的数据文件包括:Optionally, encapsulating captured IP packets into data files that can be identified by network packet analysis tools includes:
将捕获的IP数据包进行保存;Save the captured IP packets;
将保存的IP数据包封装成网络封包分析工具所能识别的数据文件。Encapsulate the saved IP data packets into data files that can be recognized by network packet analysis tools.
可选地,该方法进一步包括:Optionally, the method further includes:
对捕获的IP数据包进行TCP层或UDP层处理后发送给对应的目标服务器。After the captured IP data packet is processed by TCP layer or UDP layer, it is sent to the corresponding target server.
可选地,该方法进一步包括:Optionally, the method further includes:
接收目标服务器返回的数据包;Receive the data packet returned by the target server;
将目标服务器返回的数据包发送给该移动终端上的对应应用;同时,将目标服务器返回的数据包进行保存;Send the data packet returned by the target server to the corresponding application on the mobile terminal; at the same time, save the data packet returned by the target server;
将保存的目标服务器返回的数据包封装成网络封包分析工具所能识别的数据文件后发送给该网络封包分析工具进行分析。Encapsulate the saved data packet returned by the target server into a data file that can be recognized by the network packet analysis tool and send it to the network packet analysis tool for analysis.
依据本发明的另一方面,提供了一种在移动终端上实现应用测试的装置包括:According to another aspect of the present invention, a device for implementing application testing on a mobile terminal is provided, including:
捕获单元,适于测试用利用移动终端上的VPNService服务提供的接口,捕获该移动终端上的各应用的IP数据包;The capture unit is suitable for testing the interface provided by the VPNService service on the mobile terminal to capture the IP packets of each application on the mobile terminal;
封装单元,适于将捕获的IP数据包封装成网络封包分析工具所能识别的数据文件;An encapsulation unit, adapted to encapsulate the captured IP data packet into a data file recognizable by a network packet analysis tool;
发送单元,适于将封装后的数据文件发送给所述网络封包分析工具进行分析,以得到对该移动终端上的应用的测试结果。The sending unit is adapted to send the encapsulated data file to the network packet analysis tool for analysis, so as to obtain the test result of the application on the mobile terminal.
可选地,所述封装单元,适于将捕获的IP数据包封装到pcap文件中。Optionally, the encapsulation unit is adapted to encapsulate the captured IP data packets into a pcap file.
可选地,所述封装单元,适于将IP数据包封装成pcap包,将一个或多个pcap包封装成pcap文件;所述pcap文件具有pcap文件头。Optionally, the encapsulation unit is adapted to encapsulate the IP data packet into a pcap packet, and encapsulate one or more pcap packets into a pcap file; the pcap file has a pcap file header.
可选地,所述封装单元,适于为一个IP数据包加上以太网帧头和pcap包头得到一个pcap包。Optionally, the encapsulation unit is adapted to add an Ethernet frame header and a pcap header to an IP data packet to obtain a pcap packet.
可选地,该装置进一步包括:存储单元;Optionally, the device further includes: a storage unit;
所述捕获单元,适于将捕获的IP数据包放入存储单元中;The capture unit is adapted to put captured IP packets into a storage unit;
所述封装单元,适于将存储单元中的IP数据包封装成网络封包分析工具所能识别的数据文件。The encapsulation unit is suitable for encapsulating the IP data packet in the storage unit into a data file that can be recognized by a network packet analysis tool.
可选地,该装置进一步包括:Optionally, the device further includes:
网络收发单元,适于将捕获单元捕获的IP数据包进行TCP层或UDP层处理后发送给对应的目标服务器。The network transceiver unit is adapted to process the IP data packet captured by the capture unit at the TCP layer or the UDP layer and then send it to the corresponding target server.
可选地,所述网络收发单元,进一步适于接收目标服务器返回的数据包;将目标服务器返回的数据包发送给该移动终端上的对应应用,同时,将目标服务器返回的数据包进行保存;Optionally, the network transceiver unit is further adapted to receive the data packet returned by the target server; send the data packet returned by the target server to the corresponding application on the mobile terminal, and at the same time, save the data packet returned by the target server;
所述封装单元,进一步适于将保存的目标服务器返回的数据包封装成网络封包分析工具所能识别的数据文件后发送给发送单元;The encapsulation unit is further adapted to encapsulate the data packet returned by the stored target server into a data file that the network packet analysis tool can identify and send it to the sending unit;
所述发送单元,进一步适于将收到的数据文件发送给网络封包分析工具进行分析。The sending unit is further adapted to send the received data file to a network packet analysis tool for analysis.
由上述可知,本发明的技术方案,利用测试用移动终端上的VPNService服务提供的接口,捕获该移动终端上的各应用的IP数据包,由于该IP数据包不能被网络封包分析工具所识别,因此需要进一步将捕获的IP数据包封装成网络封包分析工具所能识别的数据文件,之后就可以将封装后的数据文件发送给所述网络封包分析工具进行分析,以得到对该移动终端上的应用的测试结果。该技术方案不需要对移动终端进行root权限的获取就可以捕获应用的IP数据包,对其进行简单的处理即可进行用于应用测试,操作更为简单方便。As can be seen from the above, the technical scheme of the present invention utilizes the interface provided by the VPNService service on the mobile terminal for testing to capture the IP packets of each application on the mobile terminal, because the IP packets cannot be identified by the network packet analysis tool, Therefore need to further encapsulate the captured IP packet into a data file that can be identified by the network packet analysis tool, and then the data file after the encapsulation can be sent to the network packet analysis tool for analysis to obtain the mobile terminal. Applied test results. The technical scheme can capture the IP data packets of the application without obtaining the root authority of the mobile terminal, and can be used for application testing after simple processing, and the operation is simpler and more convenient.
上述说明仅是本发明技术方案的概述,为了能够更清楚了解本发明的技术手段,而可依照说明书的内容予以实施,并且为了让本发明的上述和其它目的、特征和优点能够更明显易懂,以下特举本发明的具体实施方式。The above description is only an overview of the technical solution of the present invention. In order to better understand the technical means of the present invention, it can be implemented according to the contents of the description, and in order to make the above and other purposes, features and advantages of the present invention more obvious and understandable , the specific embodiments of the present invention are enumerated below.
附图说明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 embodiment. The drawings are only for the purpose of illustrating a preferred embodiment and are not to be considered as limiting the invention. Also throughout the drawings, the same reference numerals are used to designate the same parts. In the attached picture:
图1示出了根据本发明一个实施例的一种在移动终端上实现应用测试的方法的流程图;Fig. 1 shows a flow chart of a method for implementing application testing on a mobile terminal according to an embodiment of the present invention;
图2示出了根据本发明一个实施例的一种在移动终端上实现应用测试的装置的结构示意图。Fig. 2 shows a schematic structural diagram of an apparatus for implementing application testing on a mobile terminal according to an embodiment of the present invention.
具体实施方式detailed description
下面将参照附图更详细地描述本公开的示例性实施例。虽然附图中显示了本公开的示例性实施例,然而应当理解,可以以各种形式实现本公开而不应被这里阐述的实施例所限制。相反,提供这些实施例是为了能够更透彻地理解本公开,并且能够将本公开的范围完整的传达给本领域的技术人员。Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although 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 for more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.
图1示出了根据本发明一个实施例的一种在移动终端上实现应用测试的方法的流程图,如图1所示,该方法包括:Fig. 1 shows a flow chart of a method for implementing application testing on a mobile terminal according to an embodiment of the present invention. As shown in Fig. 1, the method includes:
步骤S110,利用测试用移动终端上的VPNService服务提供的接口,捕获该移动终端上的各应用的IP数据包。Step S110, using the interface provided by the VPNService service on the mobile terminal for testing, to capture the IP data packets of each application on the mobile terminal.
安卓系统从SDK(SoftwareDevelopmentKit,软件开发工具包)4.0版本开始,提供了VPNService服务。利用该服务,可以获取基于安卓系统的移动终端上安装的应用发送、接收的IP数据包。通过分析应用收发的IP数据包对于应用测试有着十分重要的意义,应用测试人员可以控制应用执行不同的操作,并捕获与每个操作对应收发的IP数据包,通过分析收发的IP数据包来判断应用的各项功能是否完善。The Android system provides VPNService service starting from SDK (Software Development Kit, software development kit) version 4.0. Using this service, you can obtain IP data packets sent and received by applications installed on Android-based mobile terminals. Analyzing the IP data packets sent and received by the application is very important for application testing. Application testers can control the application to perform different operations, and capture the IP data packets sent and received corresponding to each operation, and judge by analyzing the IP data packets sent and received. Whether the functions of the application are perfect.
步骤S120,将捕获的IP数据包封装成网络封包分析工具所能识别的数据文件。Step S120, encapsulating the captured IP data packet into a data file that can be recognized by the network packet analysis tool.
应用测试所使用的网络封包分析工具有多种,较常用的如wireshark等软件都不能直接识别IP数据包,因此需要对IP数据包进行处理,将捕获的IP数据包封装成网络封包分析工具所能识别的数据文件。There are many network packet analysis tools used in application testing, and commonly used software such as wireshark cannot directly identify IP data packets. identifiable data files.
步骤S130,将封装后的数据文件发送给网络封包分析工具进行分析,以得到对该移动终端上的应用的测试结果。Step S130, sending the encapsulated data file to a network packet analysis tool for analysis, so as to obtain a test result of the application on the mobile terminal.
可见,图1所示的方法,利用测试用移动终端上的VPNService服务提供的接口,捕获该移动终端上的各应用的IP数据包,由于该IP数据包不能被网络封包分析工具所识别,因此需要进一步将捕获的IP数据包封装成网络封包分析工具所能识别的数据文件,之后就可以将封装后的数据文件发送给网络封包分析工具进行分析,以得到对该移动终端上的应用的测试结果。该技术方案不需要对移动终端进行root权限的获取就可以捕获应用的IP数据包,对其进行简单的处理即可进行用于应用测试,操作更为简单方便。It can be seen that the method shown in Figure 1 utilizes the interface provided by the VPNService service on the mobile terminal for testing to capture the IP data packets of each application on the mobile terminal. Since this IP data packet cannot be identified by the network packet analysis tool, therefore It is necessary to further encapsulate the captured IP data packets into a data file that can be recognized by the network packet analysis tool, and then send the encapsulated data file to the network packet analysis tool for analysis to obtain the application test on the mobile terminal result. The technical scheme can capture the IP data packets of the application without obtaining the root authority of the mobile terminal, and can be used for application testing after simple processing, and the operation is simpler and more convenient.
在本发明的一个实施例中,图1所示的方法中,将捕获的IP数据包封装成网络封包分析工具所能识别的数据文件包括:将捕获的IP数据包封装到pcap文件中。In one embodiment of the present invention, in the method shown in FIG. 1 , encapsulating the captured IP data packets into a data file that can be recognized by a network packet analysis tool includes: encapsulating the captured IP data packets into a pcap file.
前文提及的wireshark软件是当前最广泛应用的网络封包分析工具,能够识别的数据文件就包括pcap文件。将IP数据包封装到pcap文件中,具体要执行如下操作:将IP数据包封装成pcap包;将一个或多个pcap包封装成pcap文件,pcap文件具有pcap文件头。其中,将IP数据包封装成pcap包包括:为一个IP数据包加上以太网帧头和pcap包头,得到一个pcap包。The wireshark software mentioned above is currently the most widely used network packet analysis tool, and the data files that can be identified include pcap files. To encapsulate the IP data packet into a pcap file, the specific operations are as follows: encapsulate the IP data packet into a pcap packet; encapsulate one or more pcap packets into a pcap file, and the pcap file has a pcap file header. Wherein, encapsulating the IP data packet into a pcap packet includes: adding an Ethernet frame header and a pcap packet header to an IP data packet to obtain a pcap packet.
一个pcap包分为pcap包头、以太网帧头和IP数据包三部分。其中pcap包头依次为时间戳高位(秒)、时间戳低位(微秒)、IP数据包长度和实际长度,每项占4个字节。以太网帧头依次为目的MAC、源MAC和类型TYPE等。每个pcap包对应一个捕获到的IP数据包,而一个pcap文件可以包括多个pcap包。因此,在捕获到第一个IP数据包后,创建一个pcap文件,首先向该pcap文件写入pcap文件头,再依次写入pcap包头、以太网帧头、捕获到的IP数据包,即完成了一个pcap包向该pcap文件的写入。当将捕获到的所需测试的IP数据包均写入pcap文件后,也即是完成了pcap文件的封装。A pcap packet is divided into three parts: pcap packet header, Ethernet frame header and IP data packet. Among them, the pcap packet header is the high bit of the timestamp (seconds), the low bit of the timestamp (microseconds), the length of the IP data packet, and the actual length, each of which occupies 4 bytes. The Ethernet frame header is the destination MAC, source MAC, and type TYPE in turn. Each pcap packet corresponds to a captured IP packet, and a pcap file can include multiple pcap packets. Therefore, after capturing the first IP data packet, create a pcap file, first write the pcap file header to the pcap file, then write the pcap packet header, Ethernet frame header, and the captured IP data packet in sequence, that is, complete Write a pcap package to the pcap file. After all the captured IP data packets to be tested are written into the pcap file, the encapsulation of the pcap file is completed.
在本发明的一个实施例中,图1所示的方法中,将捕获的IP数据包封装成网络封包分析工具所能识别的数据文件包括:将捕获的IP数据包进行保存;将保存的IP数据包封装成网络封包分析工具所能识别的数据文件。In one embodiment of the present invention, in the method shown in Figure 1, encapsulating captured IP data packets into data files that can be identified by network packet analysis tools includes: saving captured IP data packets; The data packets are encapsulated into data files that can be recognized by network packet analysis tools.
VPNService服务可以视为网络代理服务,因此,捕获IP数据包可以视为更改了IP数据包的目标地址,将其发送到一个代理服务器,即捕获IP数据包的应用处。捕获到的IP数据包如果直接封装为pcap包,那么就不能完成其原有的功能,如发送至目标服务器以便服务器返回数据包。这样就无法捕获服务器返回原应用的IP数据包。因此,在本实施例中,先将捕获的IP数据包进行保存,将保存的IP数据包封装成网络封包分析工具所能识别的数据文件。而对于捕获的IP数据包,可以进行TCP层或UDP层处理后发送给对应的目标服务器。其中,通过UDP层进行传输的IP数据包,可以修改网络层的IP地址(即将目标服务器返回数据包的目标IP地址修改为捕获数据包的应用)后直接转发,而通过TCP层进行传输的IP数据包不仅需要修改网络层的IP地址还需进行三次握手的处理才能发送给目标服务器。The VPNService service can be regarded as a network proxy service. Therefore, capturing an IP data packet can be regarded as changing the destination address of the IP data packet and sending it to a proxy server, that is, the application that captures the IP data packet. If the captured IP data packet is directly encapsulated into a pcap packet, it cannot complete its original function, such as sending it to the target server so that the server can return the data packet. In this way, the IP data packet returned by the server to the original application cannot be captured. Therefore, in this embodiment, the captured IP data packets are first saved, and the saved IP data packets are encapsulated into data files that can be recognized by the network packet analysis tool. As for the captured IP data packet, it can be processed at the TCP layer or the UDP layer and then sent to the corresponding target server. Among them, the IP data packet transmitted through the UDP layer can be directly forwarded after modifying the IP address of the network layer (that is, modifying the target IP address of the data packet returned by the target server to the application for capturing the data packet), while the IP data packet transmitted through the TCP layer The data packet not only needs to modify the IP address of the network layer, but also needs to undergo a three-way handshake before it can be sent to the target server.
在将捕获的IP数据包发送给对应的目标服务器后,目标服务器通常会返回相应的数据包,这些数据包也是需要进行测试分析的,因此在本发明的一个实施例中,上述方法进一步包括:接收目标服务器返回的数据包;将目标服务器返回的数据包发送给该移动终端上的对应应用;同时,将目标服务器返回的数据包进行保存;将保存的目标服务器返回的数据包封装成网络封包分析工具所能识别的数据文件后发送给该网络封包分析工具进行分析。After the captured IP packet is sent to the corresponding target server, the target server will usually return the corresponding packet, and these packets also need to be tested and analyzed. Therefore, in an embodiment of the present invention, the above-mentioned method further includes: Receive the data packet returned by the target server; send the data packet returned by the target server to the corresponding application on the mobile terminal; at the same time, save the data packet returned by the target server; encapsulate the saved data packet returned by the target server into a network packet The data files that can be identified by the analysis tool are sent to the network packet analysis tool for analysis.
与前述实施例类似地,目标服务器返回的数据包同样不能直接返回给原应用程序,而是被捕获后进行保存,对保存的目标服务器返回的数据包封装成网络封包分析工具所能识别的数据文件后发送给该网络封包分析工具进行分析,而对捕获的数据包进行转发。Similar to the foregoing embodiments, the data packets returned by the target server cannot be directly returned to the original application program, but are captured and saved, and the saved data packets returned by the target server are encapsulated into data that can be recognized by the network packet analysis tool The file is then sent to the network packet analysis tool for analysis, and the captured data packets are forwarded.
在本发明的一个实施例中,可以不对捕获的IP包进行转发,这样原应用程序无法连入外部网络进行通信,可以视为对原应用进行了断网处理,起到了防火墙的作用,可以测试原应用在断网状态下的某些功能,如报错提醒等。In one embodiment of the present invention, the captured IP packets may not be forwarded, so that the original application program cannot be connected to the external network for communication. Some functions of the application in the disconnected state, such as error reminders, etc.
图2示出了根据本发明一个实施例的一种在移动终端上实现应用测试的装置的结构示意图,如图2所示,在移动终端上实现应用测试的装置200包括:Fig. 2 shows a schematic structural diagram of a device for implementing application testing on a mobile terminal according to an embodiment of the present invention. As shown in Fig. 2 , the device 200 for implementing application testing on a mobile terminal includes:
捕获单元210,适于测试用利用移动终端上的VPNService服务提供的接口,捕获该移动终端上的各应用的IP数据包。The capture unit 210 is adapted to use the interface provided by the VPNService service on the mobile terminal for testing, and capture the IP data packets of each application on the mobile terminal.
安卓系统从SDK(SoftwareDevelopmentKit,软件开发工具包)4.0版本开始,提供了VPNService服务。利用该服务,可以获取基于安卓系统的移动终端上安装的应用发送、接收的IP数据包。通过分析应用收发的IP数据包对于应用测试有着十分重要的意义,应用测试人员可以控制应用执行不同的操作,并捕获与每个操作对应收发的IP数据包,通过分析收发的IP数据包来判断应用的各项功能是否完善。The Android system provides VPNService service starting from SDK (Software Development Kit, software development kit) version 4.0. Using this service, you can obtain IP data packets sent and received by applications installed on Android-based mobile terminals. Analyzing the IP data packets sent and received by the application is very important for application testing. Application testers can control the application to perform different operations, and capture the IP data packets sent and received corresponding to each operation, and judge by analyzing the IP data packets sent and received. Whether the functions of the application are perfect.
封装单元220,适于将捕获的IP数据包封装成网络封包分析工具所能识别的数据文件。The encapsulation unit 220 is adapted to encapsulate the captured IP data packets into a data file that can be recognized by a network packet analysis tool.
应用测试所使用的网络封包分析工具有多种,较常用的如wireshark等软件都不能直接识别IP数据包,因此需要对IP数据包进行处理,将捕获的IP数据包封装成网络封包分析工具所能识别的数据文件。There are many network packet analysis tools used in application testing, and commonly used software such as wireshark cannot directly identify IP data packets. identifiable data files.
发送单元230,适于将封装后的数据文件发送给网络封包分析工具进行分析,以得到对该移动终端上的应用的测试结果。The sending unit 230 is adapted to send the encapsulated data file to a network packet analysis tool for analysis, so as to obtain a test result of the application on the mobile terminal.
可见,图2所示的装置,通过各单元的相互配合,利用测试用移动终端上的VPNService服务提供的接口,捕获该移动终端上的各应用的IP数据包,由于该IP数据包不能被网络封包分析工具所识别,因此需要进一步将捕获的IP数据包封装成网络封包分析工具所能识别的数据文件,之后就可以将封装后的数据文件发送给网络封包分析工具进行分析,以得到对该移动终端上的应用的测试结果。该技术方案不需要对移动终端进行root权限的获取就可以捕获应用的IP数据包,对其进行简单的处理即可进行用于应用测试,操作更为简单方便。It can be seen that the device shown in Figure 2 uses the interface provided by the VPNService service on the mobile terminal for testing to capture the IP data packets of each application on the mobile terminal through the cooperation of each unit. Therefore, it is necessary to further encapsulate the captured IP data packets into a data file that can be recognized by the network packet analysis tool, and then send the encapsulated data file to the network packet analysis tool for analysis to obtain the The test results of the application on the mobile terminal. The technical scheme can capture the IP data packets of the application without obtaining the root authority of the mobile terminal, and can be used for application testing after simple processing, and the operation is simpler and more convenient.
在本发明的一个实施例中,图2所示的装置中,封装单元220,适于将捕获的IP数据包封装到pcap文件中。具体地,封装单元220,适于将IP数据包封装成pcap包,将一个或多个pcap包封装成pcap文件;pcap文件具有pcap文件头;其中,将IP数据包封装成pcap包具体为,为一个IP数据包加上以太网帧头和pcap包头得到一个pcap包。In an embodiment of the present invention, in the apparatus shown in FIG. 2 , the encapsulation unit 220 is adapted to encapsulate the captured IP data packets into a pcap file. Specifically, the encapsulation unit 220 is adapted to encapsulate the IP data packet into a pcap packet, and encapsulate one or more pcap packets into a pcap file; the pcap file has a pcap file header; wherein, the IP data packet is encapsulated into a pcap packet specifically, Add Ethernet frame header and pcap header to an IP data packet to get a pcap packet.
前文提及的wireshark软件是当前最广泛应用的网络封包分析工具,能够识别的数据文件就包括pcap文件。一个pcap包分为pcap包头、以太网帧头和IP数据包三部分。其中pcap包头依次为时间戳高位(秒)、时间戳低位(微秒)、IP数据包长度和实际长度,每项占4个字节。以太网帧头依次为目的MAC、源MAC和类型TYPE等。每个pcap包对应一个捕获到的IP数据包,而一个pcap文件可以包括多个pcap包。因此,在捕获到第一个IP数据包后,创建一个pcap文件,首先向该pcap文件写入pcap文件头,再依次写入pcap包头、以太网帧头、捕获到的IP数据包,即完成了一个pcap包向该pcap文件的写入。当将捕获到的所需测试的IP数据包均写入pcap文件后,也即是完成了pcap文件的封装。The wireshark software mentioned above is currently the most widely used network packet analysis tool, and the data files that can be identified include pcap files. A pcap packet is divided into three parts: pcap packet header, Ethernet frame header and IP data packet. Among them, the pcap packet header is the high bit of the timestamp (seconds), the low bit of the timestamp (microseconds), the length of the IP data packet, and the actual length, each of which occupies 4 bytes. The Ethernet frame header is the destination MAC, source MAC, and type TYPE in turn. Each pcap packet corresponds to a captured IP packet, and a pcap file can include multiple pcap packets. Therefore, after capturing the first IP data packet, create a pcap file, first write the pcap file header to the pcap file, then write the pcap packet header, Ethernet frame header, and the captured IP data packet in sequence, that is, complete Write a pcap package to the pcap file. After all the captured IP data packets to be tested are written into the pcap file, the encapsulation of the pcap file is completed.
在本发明的一个实施例中,图2所示的装置进一步包括:存储单元。捕获单元,适于将捕获的IP数据包放入存储单元中;封装单元,适于将存储单元中的IP数据包封装成网络封包分析工具所能识别的数据文件。In an embodiment of the present invention, the device shown in FIG. 2 further includes: a storage unit. The capture unit is adapted to put the captured IP data packets into the storage unit; the encapsulation unit is adapted to encapsulate the IP data packets in the storage unit into data files that can be recognized by network packet analysis tools.
VPNService服务可以视为网络代理服务,因此,捕获IP数据包可以视为更改了IP数据包的目标地址,将其发送到一个代理服务器,即捕获IP数据包的应用处。捕获到的IP数据包如果直接封装为pcap包,那么就不能完成其原有的功能,如发送至目标服务器以便服务器返回数据包。这样就无法捕获服务器返回原应用的IP数据包。因此,在本实施例中,先将捕获的IP数据包进行保存,将保存的IP数据包封装成网络封包分析工具所能识别的数据文件。The VPNService service can be regarded as a network proxy service. Therefore, capturing an IP data packet can be regarded as changing the destination address of the IP data packet and sending it to a proxy server, that is, the application that captures the IP data packet. If the captured IP data packet is directly encapsulated into a pcap packet, it cannot complete its original function, such as sending it to the target server so that the server can return the data packet. In this way, the IP data packet returned by the server to the original application cannot be captured. Therefore, in this embodiment, the captured IP data packets are first saved, and the saved IP data packets are encapsulated into data files that can be recognized by the network packet analysis tool.
而对于捕获的IP数据包,在本发明的一个实施例中,上述装置进一步包括:网络收发单元,可以进行TCP层或UDP层处理后发送给对应的目标服务器。其中,通过UDP层进行传输的IP数据包,可以修改网络层的IP地址(即将目标服务器返回数据包的目标IP地址修改为捕获数据包的应用)后直接转发,而通过TCP层进行传输的IP数据包不仅需要修改网络层的IP地址还需进行三次握手的处理才能发送给目标服务器。As for the captured IP data packets, in one embodiment of the present invention, the above device further includes: a network transceiver unit, which can process the captured IP data packets at the TCP layer or the UDP layer and send them to the corresponding target server. Among them, the IP data packet transmitted through the UDP layer can be directly forwarded after modifying the IP address of the network layer (that is, modifying the target IP address of the data packet returned by the target server to the application for capturing the data packet), while the IP data packet transmitted through the TCP layer The data packet not only needs to modify the IP address of the network layer, but also needs to undergo a three-way handshake before it can be sent to the target server.
在将捕获的IP数据包发送给对应的目标服务器后,目标服务器通常会返回相应的数据包,这些数据包也是需要进行测试分析的,因此在本发明的一个实施例中,上述装置中,网络收发单元,进一步适于接收目标服务器返回的数据包;将目标服务器返回的数据包发送给该移动终端上的对应应用,同时,将目标服务器返回的数据包进行保存;封装单元,进一步适于将保存的目标服务器返回的数据包封装成网络封包分析工具所能识别的数据文件后发送给发送单元;发送单元,进一步适于将收到的数据文件发送给网络封包分析工具进行分析。After the captured IP data packets are sent to the corresponding target server, the target server will usually return the corresponding data packets, which also need to be tested and analyzed. Therefore, in one embodiment of the present invention, in the above-mentioned device, the network The transceiver unit is further adapted to receive the data packet returned by the target server; the data packet returned by the target server is sent to the corresponding application on the mobile terminal, and at the same time, the data packet returned by the target server is stored; the encapsulation unit is further adapted to The stored data packet returned by the target server is encapsulated into a data file that can be recognized by the network packet analysis tool and sent to the sending unit; the sending unit is further adapted to send the received data file to the network packet analysis tool for analysis.
与前述实施例类似地,目标服务器返回的数据包同样不能直接返回给原应用程序,而是被捕获后进行保存,对保存的目标服务器返回的数据包封装成网络封包分析工具所能识别的数据文件后发送给该网络封包分析工具进行分析,而对捕获的数据包进行转发。Similar to the foregoing embodiments, the data packets returned by the target server cannot be directly returned to the original application program, but are captured and saved, and the saved data packets returned by the target server are encapsulated into data that can be recognized by the network packet analysis tool The file is then sent to the network packet analysis tool for analysis, and the captured data packets are forwarded.
在本发明的一个实施例中,可以不对捕获的IP包进行转发,这样原应用程序无法连入外部网络进行通信,可以视为对原应用进行了断网处理,起到了防火墙的作用,可以测试原应用在断网状态下的某些功能,如报错提醒等。In one embodiment of the present invention, the captured IP packets may not be forwarded, so that the original application program cannot be connected to the external network for communication. Some functions of the application in the disconnected state, such as error reminders, etc.
综上所述,本发明的技术方案,利用测试用移动终端上的VPNService服务提供的接口,捕获该移动终端上的各应用的IP数据包,由于该IP数据包不能被网络封包分析工具所识别,因此需要进一步将捕获的IP数据包封装成网络封包分析工具所能识别的数据文件,之后就可以将封装后的数据文件发送给网络封包分析工具进行分析,以得到对该移动终端上的应用的测试结果。该技术方案不需要对移动终端进行root权限的获取就可以捕获应用的IP数据包,对其进行简单的处理即可进行用于应用测试,操作更为简单方便。In summary, the technical scheme of the present invention utilizes the interface provided by the VPNService service on the mobile terminal for testing to capture the IP packets of each application on the mobile terminal, because the IP packets cannot be identified by the network packet analysis tool , so it is necessary to further encapsulate the captured IP data packets into a data file that can be recognized by the network packet analysis tool, and then send the encapsulated data file to the network packet analysis tool for analysis, so as to obtain the application information on the mobile terminal. test results. The technical scheme can capture the IP data packets of the application without obtaining the root authority of the mobile terminal, and can be used for application testing after simple processing, and the operation is simpler and more convenient.
需要说明的是:It should be noted:
在此提供的算法和显示不与任何特定计算机、虚拟装置或者其它设备固有相关。各种通用装置也可以与基于在此的示教一起使用。根据上面的描述,构造这类装置所要求的结构是显而易见的。此外,本发明也不针对任何特定编程语言。应当明白,可以利用各种编程语言实现在此描述的本发明的内容,并且上面对特定语言所做的描述是为了披露本发明的最佳实施方式。The algorithms and displays presented herein are not inherently related to any particular computer, virtual appliance, or other device. Various general purpose devices can also be used with the teachings based on this. The structure required to construct such an apparatus will be apparent from the foregoing description. Furthermore, the present invention is not specific to any particular programming language. It should be understood that various programming languages can be used to implement the content of the present invention described herein, and the above description of specific languages is for disclosing the best mode of the present invention.
在此处所提供的说明书中,说明了大量具体细节。然而,能够理解,本发明的实施例可以在没有这些具体细节的情况下实践。在一些实例中,并未详细示出公知的方法、结构和技术,以便不模糊对本说明书的理解。In the description provided herein, numerous specific details are set forth. However, it is understood that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure the understanding of this description.
类似地,应当理解,为了精简本公开并帮助理解各个发明方面中的一个或多个,在上面对本发明的示例性实施例的描述中,本发明的各个特征有时被一起分组到单个实施例、图、或者对其的描述中。然而,并不应将该公开的方法解释成反映如下意图:即所要求保护的本发明要求比在每个权利要求中所明确记载的特征更多的特征。更确切地说,如下面的权利要求书所反映的那样,发明方面在于少于前面公开的单个实施例的所有特征。因此,遵循具体实施方式的权利要求书由此明确地并入该具体实施方式,其中每个权利要求本身都作为本发明的单独实施例。Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the invention, in order to streamline this disclosure and to facilitate an understanding of one or more of the various inventive aspects, various features of the invention are sometimes grouped together in a single embodiment, figure, or its description. This method of disclosure, however, is not to be interpreted as reflecting an intention that the claimed invention requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the Detailed Description are hereby expressly incorporated into this Detailed Description, with each claim standing on its own as a separate embodiment of this invention.
本领域那些技术人员可以理解,可以对实施例中的设备中的模块进行自适应性地改变并且把它们设置在与该实施例不同的一个或多个设备中。可以把实施例中的模块或单元或组件组合成一个模块或单元或组件,以及此外可以把它们分成多个子模块或子单元或子组件。除了这样的特征和/或过程或者单元中的至少一些是相互排斥之外,可以采用任何组合对本说明书(包括伴随的权利要求、摘要和附图)中公开的所有特征以及如此公开的任何方法或者设备的所有过程或单元进行组合。除非另外明确陈述,本说明书(包括伴随的权利要求、摘要和附图)中公开的每个特征可以由提供相同、等同或相似目的的替代特征来代替。Those skilled in the art can understand that the modules in the device in the embodiment can be adaptively changed and arranged in one or more devices different from the embodiment. Modules or units or components in the embodiments may be combined into one module or unit or component, and furthermore may be divided into a plurality of sub-modules or sub-units or sub-assemblies. All features disclosed in this specification (including accompanying claims, abstract and drawings) and any method or method so disclosed may be used in any combination, except that at least some of such features and/or processes or units are mutually exclusive. All processes or units of equipment are combined. Each feature disclosed in this specification (including accompanying claims, abstract and drawings) may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.
此外,本领域的技术人员能够理解,尽管在此所述的一些实施例包括其它实施例中所包括的某些特征而不是其它特征,但是不同实施例的特征的组合意味着处于本发明的范围之内并且形成不同的实施例。例如,在下面的权利要求书中,所要求保护的实施例的任意之一都可以以任意的组合方式来使用。Furthermore, those skilled in the art will understand that although some embodiments described herein include some features included in other embodiments but not others, combinations of features from different embodiments are meant to be within the scope of the invention. and form different embodiments. For example, in the following claims, any of the claimed embodiments may be used in any combination.
本发明的各个部件实施例可以以硬件实现,或者以在一个或者多个处理器上运行的软件模块实现,或者以它们的组合实现。本领域的技术人员应当理解,可以在实践中使用微处理器或者数字信号处理器(DSP)来实现根据本发明实施例的在移动终端上实现应用测试的装置中的一些或者全部部件的一些或者全部功能。本发明还可以实现为用于执行这里所描述的方法的一部分或者全部的设备或者装置程序(例如,计算机程序和计算机程序产品)。这样的实现本发明的程序可以存储在计算机可读介质上,或者可以具有一个或者多个信号的形式。这样的信号可以从因特网网站上下载得到,或者在载体信号上提供,或者以任何其他形式提供。The various component embodiments of the present invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. Those skilled in the art should understand that a microprocessor or a digital signal processor (DSP) can be used in practice to implement some or all of the components in the device for implementing application testing on a mobile terminal according to an embodiment of the present invention. Full functionality. The present invention can also be implemented as an apparatus or an apparatus program (for example, a computer program and a computer program product) for performing a part or all of the methods described herein. Such a program for realizing the present invention may be stored on a computer-readable medium, or may be in the form of one or more signals. Such a signal may be downloaded from an Internet site, or provided on a carrier signal, or provided in any other form.
应该注意的是上述实施例对本发明进行说明而不是对本发明进行限制,并且本领域技术人员在不脱离所附权利要求的范围的情况下可设计出替换实施例。在权利要求中,不应将位于括号之间的任何参考符号构造成对权利要求的限制。单词“包含”不排除存在未列在权利要求中的元件或步骤。位于元件之前的单词“一”或“一个”不排除存在多个这样的元件。本发明可以借助于包括有若干不同元件的硬件以及借助于适当编程的计算机来实现。在列举了若干装置的单元权利要求中,这些装置中的若干个可以是通过同一个硬件项来具体体现。单词第一、第二、以及第三等的使用不表示任何顺序。可将这些单词解释为名称。It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and that those skilled in the art will be able to design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention can be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In a unit claim enumerating several means, several of these means can be embodied by one and the same item of hardware. The use of the words first, second, and third, etc. does not indicate any order. These words can be interpreted as names.
本发明公开了A1、一种在移动终端上实现应用测试的方法,其中,该方法包括:The present invention discloses A1, a method for implementing application testing on a mobile terminal, wherein the method includes:
利用测试用移动终端上的VPNService服务提供的接口,捕获该移动终端上的各应用的IP数据包;Utilize the interface provided by the VPNService service on the mobile terminal for testing to capture the IP packets of each application on the mobile terminal;
将捕获的IP数据包封装成网络封包分析工具所能识别的数据文件;Encapsulate captured IP data packets into data files that can be recognized by network packet analysis tools;
将封装后的数据文件发送给所述网络封包分析工具进行分析,以得到对该移动终端上的应用的测试结果。Send the encapsulated data file to the network packet analysis tool for analysis, so as to obtain the test result of the application on the mobile terminal.
A2、如A1所述的方法,其中,所述将捕获的IP数据包封装成网络封包分析工具所能识别的数据文件包括:A2, the method as described in A1, wherein, the described IP data packet that captures is encapsulated into the data file that network packet analysis tool can identify comprises:
将捕获的IP数据包封装到pcap文件中。Encapsulate captured IP packets into a pcap file.
A3、如A2所述的方法,其中,将捕获的IP数据包封装到pcap文件中包括:A3, the method as described in A2, wherein, encapsulating the captured IP packet in the pcap file includes:
将IP数据包封装成pcap包;Encapsulate IP data packets into pcap packets;
将一个或多个pcap包封装成pcap文件,所述pcap文件具有pcap文件头。Encapsulate one or more pcap packets into a pcap file, and the pcap file has a pcap file header.
A4、如A3所述的方法,其中,所述将IP数据包封装成pcap包包括:A4, the method as described in A3, wherein, described IP packet is encapsulated into pcap bag and comprises:
为一个IP数据包加上以太网帧头和pcap包头,得到一个pcap包。Add Ethernet frame header and pcap header to an IP data packet to get a pcap packet.
A5、如A1所述的方法,其中,将捕获的IP数据包封装成网络封包分析工具所能识别的数据文件包括:A5, the method as described in A1, wherein, the IP packet that captures is encapsulated into the data file that network packet analysis tool can identify comprises:
将捕获的IP数据包进行保存;Save the captured IP packets;
将保存的IP数据包封装成网络封包分析工具所能识别的数据文件。Encapsulate the saved IP data packets into data files that can be recognized by network packet analysis tools.
A6、如A5所述的方法,其中,该方法进一步包括:A6, the method as described in A5, wherein, the method further comprises:
对捕获的IP数据包进行TCP层或UDP层处理后发送给对应的目标服务器。After the captured IP data packet is processed by TCP layer or UDP layer, it is sent to the corresponding target server.
A7、如A6所述的方法,其中,该方法进一步包括:A7. The method as described in A6, wherein the method further comprises:
接收目标服务器返回的数据包;Receive the data packet returned by the target server;
将目标服务器返回的数据包发送给该移动终端上的对应应用;同时,将目标服务器返回的数据包进行保存;Send the data packet returned by the target server to the corresponding application on the mobile terminal; at the same time, save the data packet returned by the target server;
将保存的目标服务器返回的数据包封装成网络封包分析工具所能识别的数据文件后发送给该网络封包分析工具进行分析。Encapsulate the saved data packet returned by the target server into a data file that can be recognized by the network packet analysis tool and send it to the network packet analysis tool for analysis.
本发明还公开了B8、一种在移动终端上实现应用测试的装置,其中,该装置包括:The present invention also discloses B8, a device for implementing application testing on a mobile terminal, wherein the device includes:
捕获单元,适于测试用利用移动终端上的VPNService服务提供的接口,捕获该移动终端上的各应用的IP数据包;The capture unit is suitable for testing the interface provided by the VPNService service on the mobile terminal to capture the IP packets of each application on the mobile terminal;
封装单元,适于将捕获的IP数据包封装成网络封包分析工具所能识别的数据文件;An encapsulation unit, adapted to encapsulate the captured IP data packet into a data file recognizable by a network packet analysis tool;
发送单元,适于将封装后的数据文件发送给所述网络封包分析工具进行分析,以得到对该移动终端上的应用的测试结果。The sending unit is adapted to send the encapsulated data file to the network packet analysis tool for analysis, so as to obtain the test result of the application on the mobile terminal.
B9、如B8所述的装置,其中,B9. The device as described in B8, wherein,
所述封装单元,适于将捕获的IP数据包封装到pcap文件中。The encapsulation unit is suitable for encapsulating captured IP data packets into a pcap file.
B10、如B9所述的装置,其中,B10. The device of B9, wherein,
所述封装单元,适于将IP数据包封装成pcap包,将一个或多个pcap包封装成pcap文件;所述pcap文件具有pcap文件头。The encapsulation unit is suitable for encapsulating the IP data packet into a pcap packet, and encapsulating one or more pcap packets into a pcap file; the pcap file has a pcap file header.
B11、如B10所述的装置,其中,B11. The device as described in B10, wherein,
所述封装单元,适于为一个IP数据包加上以太网帧头和pcap包头得到一个pcap包。The encapsulation unit is adapted to add an Ethernet frame header and a pcap header to an IP data packet to obtain a pcap packet.
B12、如B8所述的装置,其中,该装置进一步包括:存储单元;B12. The device as described in B8, wherein the device further comprises: a storage unit;
所述捕获单元,适于将捕获的IP数据包放入存储单元中;The capture unit is adapted to put captured IP packets into a storage unit;
所述封装单元,适于将存储单元中的IP数据包封装成网络封包分析工具所能识别的数据文件。The encapsulation unit is suitable for encapsulating the IP data packet in the storage unit into a data file that can be recognized by a network packet analysis tool.
B13、如B12所述的装置,其中,该装置进一步包括:B13. The device as described in B12, wherein the device further comprises:
网络收发单元,适于将捕获单元捕获的IP数据包进行TCP层或UDP层处理后发送给对应的目标服务器。The network transceiver unit is adapted to process the IP data packet captured by the capture unit at the TCP layer or the UDP layer and then send it to the corresponding target server.
B14、如B13所述的装置,其中,B14. The device of B13, wherein,
所述网络收发单元,进一步适于接收目标服务器返回的数据包;将目标服务器返回的数据包发送给该移动终端上的对应应用,同时,将目标服务器返回的数据包进行保存;The network transceiver unit is further adapted to receive the data packet returned by the target server; send the data packet returned by the target server to the corresponding application on the mobile terminal, and simultaneously save the data packet returned by the target server;
所述封装单元,进一步适于将保存的目标服务器返回的数据包封装成网络封包分析工具所能识别的数据文件后发送给发送单元;The encapsulation unit is further adapted to encapsulate the data packet returned by the stored target server into a data file that the network packet analysis tool can identify and send it to the sending unit;
所述发送单元,进一步适于将收到的数据文件发送给网络封包分析工具进行分析。The sending unit is further adapted to send the received data file to a network packet analysis tool for analysis.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610101874.5A CN105656727A (en) | 2016-02-24 | 2016-02-24 | Method and device achieving application testing on mobile terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610101874.5A CN105656727A (en) | 2016-02-24 | 2016-02-24 | Method and device achieving application testing on mobile terminal |
Publications (1)
Publication Number | Publication Date |
---|---|
CN105656727A true CN105656727A (en) | 2016-06-08 |
Family
ID=56489684
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610101874.5A Pending CN105656727A (en) | 2016-02-24 | 2016-02-24 | Method and device achieving application testing on mobile terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105656727A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108363662A (en) * | 2018-01-29 | 2018-08-03 | 深圳壹账通智能科技有限公司 | A kind of applied program testing method, storage medium and terminal device |
CN111083009A (en) * | 2019-11-29 | 2020-04-28 | 北京云测信息技术有限公司 | Packet capturing method and device and mobile terminal |
CN111163067A (en) * | 2019-12-18 | 2020-05-15 | 支付宝(杭州)信息技术有限公司 | A safety testing method, device and electronic equipment |
CN116112382A (en) * | 2023-02-02 | 2023-05-12 | 北京博睿宏远数据科技股份有限公司 | Network data capturing method and device, electronic equipment and storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101345752A (en) * | 2008-08-15 | 2009-01-14 | 北京立通无限科技有限公司 | Method, apparatus and system for guarantee safety of mobile terminal access to WEB resource |
CN201365256Y (en) * | 2009-01-14 | 2009-12-16 | 深圳市同洲电子股份有限公司 | Network performance test equipment |
CN103916394A (en) * | 2014-03-31 | 2014-07-09 | 魏强 | Data transmission method and system under public wifi environment |
CN103945277A (en) * | 2013-12-02 | 2014-07-23 | 三星电子(中国)研发中心 | Method, system and device for realizing mobile terminal video sharing |
US20150331789A1 (en) * | 2014-05-14 | 2015-11-19 | International Business Machines Corporation | Correlating out-of-band process data during mobile test automation |
-
2016
- 2016-02-24 CN CN201610101874.5A patent/CN105656727A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101345752A (en) * | 2008-08-15 | 2009-01-14 | 北京立通无限科技有限公司 | Method, apparatus and system for guarantee safety of mobile terminal access to WEB resource |
CN201365256Y (en) * | 2009-01-14 | 2009-12-16 | 深圳市同洲电子股份有限公司 | Network performance test equipment |
CN103945277A (en) * | 2013-12-02 | 2014-07-23 | 三星电子(中国)研发中心 | Method, system and device for realizing mobile terminal video sharing |
CN103916394A (en) * | 2014-03-31 | 2014-07-09 | 魏强 | Data transmission method and system under public wifi environment |
US20150331789A1 (en) * | 2014-05-14 | 2015-11-19 | International Business Machines Corporation | Correlating out-of-band process data during mobile test automation |
Non-Patent Citations (2)
Title |
---|
ANH LE ETC: "AntMonitor: A System for Monitoring from Mobile Devices", 《C2B(1)D"15 PROCEEDINGS OF THE 2015 ACM SIGCOMM WORKSHOP ON CROWDSOURCING AND CROWDSHARING OF BIG (INTERNET) DATA》 * |
梁相文 等: "数据包捕获文件格式", 《未来试飞新技术挑战》 * |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108363662A (en) * | 2018-01-29 | 2018-08-03 | 深圳壹账通智能科技有限公司 | A kind of applied program testing method, storage medium and terminal device |
CN111083009A (en) * | 2019-11-29 | 2020-04-28 | 北京云测信息技术有限公司 | Packet capturing method and device and mobile terminal |
CN111083009B (en) * | 2019-11-29 | 2021-08-24 | 北京云测信息技术有限公司 | Packet capturing method and device and mobile terminal |
CN111163067A (en) * | 2019-12-18 | 2020-05-15 | 支付宝(杭州)信息技术有限公司 | A safety testing method, device and electronic equipment |
CN111163067B (en) * | 2019-12-18 | 2022-05-03 | 支付宝(杭州)信息技术有限公司 | Safety testing method and device and electronic equipment |
CN116112382A (en) * | 2023-02-02 | 2023-05-12 | 北京博睿宏远数据科技股份有限公司 | Network data capturing method and device, electronic equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9294945B2 (en) | Test apparatus and test method | |
CN107995068A (en) | Network port testing method and equipment | |
CN104301139B (en) | Router adaptation method, device and terminal device | |
CN105656727A (en) | Method and device achieving application testing on mobile terminal | |
CN112511366B (en) | Test system, method, apparatus, device and storage medium | |
CN110740481A (en) | Data processing method, apparatus and computer storage medium based on quality of service | |
CN111934931A (en) | XVC (extensible virtual Circuit) protocol based server and FPGA (field programmable Gate array) firmware updating and debugging method | |
US20170311224A1 (en) | Method and apparatus for implementing network sharing | |
US9329960B2 (en) | Methods, systems, and computer readable media for utilizing abstracted user-defined data to conduct network protocol testing | |
CN116056126B (en) | Simulation test method, simulation test device, computer equipment and computer readable storage medium | |
CN102609353A (en) | Method, device and system for managing program debugging | |
CN105577453A (en) | A system and method for implementing mobile application testing | |
CN102315981B (en) | Equipment and method for testing evolved packet core network equipment | |
CN108111257A (en) | A kind of huge frame function test method of network interface card | |
CN103942277A (en) | Method and device for downloading file in browsers and browsers | |
CN105808425A (en) | Method, device and system for realizing application test of mobile terminal | |
CN112399446B (en) | Edge gateway communication method, device, computer equipment and storage medium | |
CN103558995B (en) | A kind of storage control chip and disk message transmitting method | |
CN107733743A (en) | Realize the method and system that industry ethernet data are tested automatically | |
CN115801629B (en) | Bidirectional forwarding detection method and device, electronic equipment and readable storage medium | |
CN105610639A (en) | Total log grabbing method and device | |
CN112039801B (en) | Method, system and proxy server for setting IP information | |
CN105763347A (en) | Method for obtaining parameter, network equipment and system | |
CN109460215A (en) | Application control method and device | |
CN113973134B (en) | Data transmission method, device, electronic device and computer storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20160608 |