CN105068876A - Method for acquiring mobile phone APP performance data based on distributed true phones - Google Patents

Method for acquiring mobile phone APP performance data based on distributed true phones Download PDF

Info

Publication number
CN105068876A
CN105068876A CN201510373884.XA CN201510373884A CN105068876A CN 105068876 A CN105068876 A CN 105068876A CN 201510373884 A CN201510373884 A CN 201510373884A CN 105068876 A CN105068876 A CN 105068876A
Authority
CN
China
Prior art keywords
task
server
script
file
monitoring
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
Application number
CN201510373884.XA
Other languages
Chinese (zh)
Other versions
CN105068876B (en
Inventor
程捷
莫瀚
王宁柯
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Bonree Hongyuan Technology Development Co Ltd
Original Assignee
Beijing Bonree Hongyuan Technology Development Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Bonree Hongyuan Technology Development Co Ltd filed Critical Beijing Bonree Hongyuan Technology Development Co Ltd
Priority to CN201510373884.XA priority Critical patent/CN105068876B/en
Publication of CN105068876A publication Critical patent/CN105068876A/en
Application granted granted Critical
Publication of CN105068876B publication Critical patent/CN105068876B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The invention discloses a method for acquiring mobile phone APP performance data based on distributed true phones. The method comprises seven steps that a recorder client maintains communication with a recording server terminal through a socket, a protocolbuffer data exchange format is employed, after a user logins the recorder, the user can create a corresponding project through uploading APP files; after the flow needing to be tested is recorded, the script and the project are uploaded; the recording server terminal stores project information to a database oracle, and uploads received APP files to a file server through http; the scripts and the clients which need to be tested are selected in a reporting platform, and tasks are created; and a task scheduling server arranges all the tasks in a row. According to the invention, only the flow needing to be tested is recorded in the recorder, and the city needing to be tested and the network type are selected, interference brought by other programs and personal perception of the user is eliminated, the external influence is reduced to be minimum, and the performance of applications can be truly reflected.

Description

The method of mobile phone A PP performance data is gathered based on distributed deployment prototype
Technical field
The present invention relates to a kind of method gathering mobile phone A PP performance data, particularly relate to a kind of method gathering mobile phone A PP performance data based on distributed deployment prototype.
Background technology
Along with popularizing of intelligent terminal, use amount and the importance of Mobile solution also grow with each passing day, and the requirement of Consumer's Experience is also more and more higher.Compared with the multipad of computer, the power consumption of Mobile solution is little, and speed is slow, but cellphone subscriber but wishes to enjoy the loading velocity same with computer desktop application program, so the problem that performance issue has just become user and developer to be all concerned about.
Existing APP performance test has following shortcoming:
1, cost is high: simulate different mobile phone network insertion situation in actual applications, comprising 2G, 3G, 4GLTE and WIFI network etc., and needs the situation simulating different location, different time sections; The fragmentation of Android device is serious, and each mobile model has specific configuration, such as operating system, mobile phone EMS memory, different processor and screen size etc., and these factors all must be taken into account when testing mobile phone is applied;
2, there is no data accurately: at present neither one accurately performance number data feedback to the developer of APP and operation management person, and be all whether enough fast carry out the performance of feedback application by individual perception, because everyone perception is different, feed back the data of coming also to vary, not authority;
3, nested probe: need to download corresponding SDK implantable probe in service end application, obtain the correlated performance data of application server performance or database.
Summary of the invention
In order to solve the weak point existing for above-mentioned technology, the invention provides a kind of method gathering mobile phone A PP performance data based on distributed deployment prototype.
In order to solve above technical matters, the technical solution used in the present invention is: a kind of method gathering mobile phone A PP performance data based on distributed deployment prototype, and the performing step of method is:
(1), transcripter client, held by socket connection and recording server and keep in communication, adopt the data interchange format of protocolbuffer, user is after logging in transcripter, establishment project can be selected, upload APP file, record server end after receiving corresponding request, can project information be saved in Database oracle, the APP file received be uploaded to file server by http simultaneously;
(2), after establishment of item completes, can in transcripter selected item, add script, then click and select recording mobile phone, recording can perform script, uploads script to server after script completes, script information is put in storage by server end, and script file is uploaded to file server;
(3) form platform, is logged in, this platform realizes based on JSP+structs2+ibatis2 technology, selects the project and the script that need test, configure the information such as monitoring point, monitoring time and monitoring frequency, create monitoring task, mission bit stream is preserved warehouse-in by form platform;
(4), task scheduling server end, realize based on JAVA, this server is by the inquiry monitoring mission bit stream from database of timer timing, enroll in task queue according to monitoring point and monitoring frequency, whenever receiving playback cell-phone customer terminal and sending the http request of request task, the mission bit stream of correspondence can be issued client by task scheduling server end, and in the task queue of its correspondence, remove a mission bit stream;
(5), playback cell-phone customer terminal, realize based on JAVA, after client-requested to monitoring task, access file server, by the corresponding APP of http mode downloading task and script file, APP is arranged on corresponding cell-phone customer terminal, each action in simulation playback script, record the network performance data in this process, the information such as saved system daily record mobile phone sectional drawing.After task completes, namely by the mode of http, task result data is back to server, by sectional drawing, the files such as daily record are uploaded to ftp server by FTP mode;
(6), task result data warehouse-in server holds and is responsible for after server end reclaims task result data, the catalogue of timing scan saving result data file, resolution data file, by object information preservation warehouse-in;
(7), after tasks carrying completes, the result data of task can be checked in form platform.
The present invention only needs the content recording needs test on transcripter, choose the city and network formats that need test, just round-the-clock in real time prototype throughout the country can need the content of test at run user, and each performance value can be as accurate as a millisecond rank, really provide performance number data accurately, get rid of the interference brought because individual perception is different completely; Do not need user to download any program, really external action is reduced to minimum, the performance of true reflection application.
Accompanying drawing explanation
Below in conjunction with the drawings and specific embodiments, the present invention is further detailed explanation.
Fig. 1 is the overall realization flow figure of invention.
Embodiment
As shown in Figure 1, performing step of the present invention is as follows:
1, transcripter client (realizing based on C++), being connected by socket holds (realizing based on JAVA) to keep in communication with recording server, adopt the data interchange format of protocolbuffer, user is after logging in transcripter, establishment project can be selected, upload APP file, record server end after receiving corresponding request, can project information be saved in database (oracle), the APP file received be uploaded to file server by http simultaneously;
2, after establishment of item completes, can in transcripter selected item, add script, then click and select recording mobile phone, recording can perform script, has recorded after needing the flow process of test and can upload script to server, script information is put in storage by server end, and script file is uploaded to file server;
3, form platform (realizing based on JSP+structs2+ibatis2 technology) is logged in, select the project and the script that need test, configure the information such as monitoring point, monitoring time and monitoring frequency, create monitoring task, mission bit stream is preserved warehouse-in by form platform;
4, task scheduling server end (realizing based on JAVA) is by the inquiry monitoring mission bit stream from database of timer timing, according to monitoring point, monitoring frequency enrolls in task queue, whenever receiving playback cell-phone customer terminal and sending the http request of request task, the mission bit stream of correspondence can be issued client by task scheduling server end, and in the task queue of its correspondence, remove a mission bit stream;
5, after playback cell-phone customer terminal (realizing based on JAVA) request to monitoring task, access file server, by the corresponding APP of http mode downloading task and script file, APP is arranged on corresponding cell-phone customer terminal, each action in simulation playback script, record the network performance data in this process, the information such as saved system daily record mobile phone sectional drawing.After task completes, namely by the mode of http, task result data is back to server, by sectional drawing, the files such as daily record are uploaded to ftp server by FTP mode;
6, task result data warehouse-in server end (realizing based on JAVA) is responsible for after server end reclaims task result data, the catalogue of timing scan saving result data file, and resolution data file, preserves warehouse-in by object information;
7, after tasks carrying completes, the result data of task can be checked in form platform.
The abbreviation of APP: application A pplication, refers to the third party application of smart mobile phone here.
SDK: the english abbreviation of program development tools bag (SoftwateDevelopmentKit), is mainly used in as specific routine package, program frame, hardware platform, operating system etc. set up the set of Develop Application System instrument.
HTTP: the english abbreviation of HTML (Hypertext Markup Language) (HyperTextTransferProtocol) is a kind of procotol be extensively employed on internet.
FTP: the english abbreviation of file transfer protocol (FTP) (FileTransferProtocol), the transmitted in both directions of the control documents on network.
Protocolbuffer: the form being a kind of exchanges data of google, it is independent of language, independent of platform, is mainly used in the data communication between Distributed Application or the exchanges data under isomerous environment.
JSP: JavaServerPages by name entirely, Chinese name is the java server page, and it is in traditional web page files, insert java applet section (Scriptlet) and JSP mark (tag), thus forms jsp file.
Struts2:Struts2 is the next-generation of Struts, is the brand-new framework merged in the technical foundation of Struts1 and WebWork.
IBatis2:iBatis2 is the data persistence framework of a lightweight, and it is a semi-automatic ORMapping instrument, and the operation of database relies on the SQL that programmer oneself writes, and therefore can play the performance of JDBC to greatest extent.
Socket: usually also referred to as " socket ", for describing IP address and port, is the handle of a communication chain, can be used for realizing the communication between different virtual machine or different computing machine.
HTTPS: full name is HyperTextTransferProtocoloverSecureSocketLayer, can be described as the safe version of HTTP, provides authentication and encipher communication method.
SSL: full name is SecureSocketLayer, utilizes data encryption (Encryption) technology, can guarantee that data can not be intercepted and eavesdrop in network transmission process.
The present invention be absorbed in help APP developer and maintenance work person solve application reach the standard grade after the monitor and managment of performance issue.The Script Action of user is performed by the mobile phone under varying environment throughout the country, simultaneous user truly accesses behavior, obtain real-time performance data, the application that occurs in Timeliness coverage use procedure is abnormal to be exited, connect time-out, element sends request and loads the problem such as unsuccessfully without response, control, helps developer and operation maintenance personnel to optimize APP application properties and shows.
The present invention has following advantage: 1) gather the application actual performance data on real user mobile phone, helps to understand real Consumer's Experience; 2) go deep into trace error and abnormal exit reason, listing APP in detail and apply the data interaction each time that in use client and server hold, show each True Data handling capacity, performance number and error reason of linking; 3) not only support the conventional HTTP request analysis used, the ssl handshake data of HTTPS can be obtained especially and shake hands the time, comprehensive display performance data; 4) support different geographical, different operators, round-the-clock not intermittent duty, various dimensions, reflect True Data in many aspects; 5) be applied in sectional drawing in mobile phone operational process and journal file by APP, quick reproduction problem be on-the-spot, position application problem.
Above-mentioned embodiment is not limitation of the present invention; the present invention is also not limited in above-mentioned citing; the change that those skilled in the art make within the scope of technical scheme of the present invention, remodeling, interpolation or replacement, also all belong to protection scope of the present invention.

Claims (1)

1. gather a method for mobile phone A PP performance data based on distributed deployment prototype, it is characterized in that: the performing step of described method is:
(1), transcripter client, held by socket connection and recording server and keep in communication, adopt the data interchange format of protocolbuffer, user is after logging in transcripter, establishment project can be selected, upload APP file, record server end after receiving corresponding request, can project information be saved in Database oracle, the APP file received be uploaded to file server by http simultaneously;
(2), after establishment of item completes, can in transcripter selected item, add script, then click and select recording mobile phone, recording can perform script, uploads script to server after script completes, script information is put in storage by server end, and script file is uploaded to file server;
(3) form platform, is logged in, this platform realizes based on JSP+structs2+ibatis2 technology, selects the project and the script that need test, configure the information such as monitoring point, monitoring time and monitoring frequency, create monitoring task, mission bit stream is preserved warehouse-in by form platform;
(4), task scheduling server end, realize based on JAVA, this server is by the inquiry monitoring mission bit stream from database of timer timing, enroll in task queue according to monitoring point and monitoring frequency, whenever receiving playback cell-phone customer terminal and sending the http request of request task, the mission bit stream of correspondence can be issued client by task scheduling server end, and in the task queue of its correspondence, remove a mission bit stream;
(5), playback cell-phone customer terminal, realize based on JAVA, after client-requested to monitoring task, access file server, by the corresponding APP of http mode downloading task and script file, APP is arranged on corresponding cell-phone customer terminal, each action in simulation playback script, record the network performance data in this process, the information such as saved system daily record mobile phone sectional drawing.After task completes, namely by the mode of http, task result data is back to server, by sectional drawing, the files such as daily record are uploaded to ftp server by FTP mode;
(6), task result data warehouse-in server holds and is responsible for after server end reclaims task result data, the catalogue of timing scan saving result data file, resolution data file, by object information preservation warehouse-in;
(7), after tasks carrying completes, the result data of task can be checked in form platform.
CN201510373884.XA 2015-07-01 2015-07-01 Method based on distributed deployment prototype collection cell phone application performance data Active CN105068876B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510373884.XA CN105068876B (en) 2015-07-01 2015-07-01 Method based on distributed deployment prototype collection cell phone application performance data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510373884.XA CN105068876B (en) 2015-07-01 2015-07-01 Method based on distributed deployment prototype collection cell phone application performance data

Publications (2)

Publication Number Publication Date
CN105068876A true CN105068876A (en) 2015-11-18
CN105068876B CN105068876B (en) 2017-12-08

Family

ID=54498253

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510373884.XA Active CN105068876B (en) 2015-07-01 2015-07-01 Method based on distributed deployment prototype collection cell phone application performance data

Country Status (1)

Country Link
CN (1) CN105068876B (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105577472A (en) * 2015-12-15 2016-05-11 北京奇虎科技有限公司 Data acquisition test method and device
CN106027757A (en) * 2016-04-28 2016-10-12 努比亚技术有限公司 Device and method for reporting data of mobile terminal in distributed manner
CN106059851A (en) * 2016-05-20 2016-10-26 天津海量信息技术股份有限公司 App data collection method based on cooperative work of mobile end and service end
CN106130753A (en) * 2016-06-12 2016-11-16 腾讯科技(深圳)有限公司 Application performance data gathering system, method, agent client and associated server
CN106357480A (en) * 2016-11-23 2017-01-25 北京蓝海讯通科技股份有限公司 Method and device for monitoring network performance of application and mobile terminal
CN108683704A (en) * 2018-04-09 2018-10-19 福建天晴数码有限公司 A kind of Socket network communications test method and its system, storage medium
CN109284102A (en) * 2017-07-21 2019-01-29 阿里巴巴集团控股有限公司 Information collecting method and device
CN110502414A (en) * 2019-08-20 2019-11-26 Oppo广东移动通信有限公司 Terminal device performance test methods, device, terminal device and storage medium
CN116319794A (en) * 2023-04-18 2023-06-23 安元科技股份有限公司 Method and system for solving project communication under cloud system and complex network

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006277745A (en) * 2005-03-25 2006-10-12 Microsoft Corp Work item rule for work item tracking system
CN101707632A (en) * 2009-10-28 2010-05-12 浪潮电子信息产业股份有限公司 Method for dynamically monitoring performance of server cluster and alarming real-timely
US9021505B2 (en) * 2007-12-07 2015-04-28 Ca, Inc. Monitoring multi-platform transactions
CN104579822A (en) * 2014-12-10 2015-04-29 华南理工大学 Automatic performance test system and method of mobile application based on Http protocol
CN104636244A (en) * 2015-03-05 2015-05-20 浪潮集团有限公司 Server monitoring method using Java, MySQL and Shell

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006277745A (en) * 2005-03-25 2006-10-12 Microsoft Corp Work item rule for work item tracking system
US9021505B2 (en) * 2007-12-07 2015-04-28 Ca, Inc. Monitoring multi-platform transactions
CN101707632A (en) * 2009-10-28 2010-05-12 浪潮电子信息产业股份有限公司 Method for dynamically monitoring performance of server cluster and alarming real-timely
CN104579822A (en) * 2014-12-10 2015-04-29 华南理工大学 Automatic performance test system and method of mobile application based on Http protocol
CN104636244A (en) * 2015-03-05 2015-05-20 浪潮集团有限公司 Server monitoring method using Java, MySQL and Shell

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
肖钢: "《基于J2ME的手机应用的研究和实现》", 《中国优秀博硕士学位论文全文数据库 (硕士) 信息科技辑》 *

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105577472A (en) * 2015-12-15 2016-05-11 北京奇虎科技有限公司 Data acquisition test method and device
CN106027757B (en) * 2016-04-28 2020-03-31 努比亚技术有限公司 Device and method for distributed reporting of mobile terminal data
CN106027757A (en) * 2016-04-28 2016-10-12 努比亚技术有限公司 Device and method for reporting data of mobile terminal in distributed manner
CN106059851A (en) * 2016-05-20 2016-10-26 天津海量信息技术股份有限公司 App data collection method based on cooperative work of mobile end and service end
CN106130753A (en) * 2016-06-12 2016-11-16 腾讯科技(深圳)有限公司 Application performance data gathering system, method, agent client and associated server
CN106357480B (en) * 2016-11-23 2020-02-14 北京蓝海讯通科技股份有限公司 Method and device for monitoring network performance of application and mobile terminal
CN106357480A (en) * 2016-11-23 2017-01-25 北京蓝海讯通科技股份有限公司 Method and device for monitoring network performance of application and mobile terminal
CN109284102A (en) * 2017-07-21 2019-01-29 阿里巴巴集团控股有限公司 Information collecting method and device
CN109284102B (en) * 2017-07-21 2022-05-27 阿里巴巴集团控股有限公司 Information acquisition method and device
CN108683704A (en) * 2018-04-09 2018-10-19 福建天晴数码有限公司 A kind of Socket network communications test method and its system, storage medium
CN110502414A (en) * 2019-08-20 2019-11-26 Oppo广东移动通信有限公司 Terminal device performance test methods, device, terminal device and storage medium
CN110502414B (en) * 2019-08-20 2023-08-29 Oppo广东移动通信有限公司 Terminal equipment performance test method and device, terminal equipment and storage medium
CN116319794A (en) * 2023-04-18 2023-06-23 安元科技股份有限公司 Method and system for solving project communication under cloud system and complex network
CN116319794B (en) * 2023-04-18 2023-10-24 安元科技股份有限公司 Method and system for solving project communication under cloud system and complex network

Also Published As

Publication number Publication date
CN105068876B (en) 2017-12-08

Similar Documents

Publication Publication Date Title
CN105068876B (en) Method based on distributed deployment prototype collection cell phone application performance data
Cinque et al. Microservices monitoring with event logs and black box execution tracing
US9645910B1 (en) Cross platform mobile HTML debugging
US9652364B1 (en) Cloud service for mobile testing and debugging
Butkiewicz et al. Characterizing web page complexity and its impact
CN102244594B (en) At the networks simulation technology manually and in automatic testing instrument
CN103428042B (en) Server is carried out the method and system of stress test
CN108494860B (en) WEB access system, WEB access method and device for client
US10250721B2 (en) System and method for testing applications with a load tester and testing translator
US20200133829A1 (en) Methods and systems for performance testing
US10735270B1 (en) Computer-based systems configured for network modelling and monitoring using programming object bindings and methods of use thereof
CN107133161B (en) Method and device for generating client performance test script
US11611497B1 (en) Synthetic web application monitoring based on user navigation patterns
US11677650B2 (en) Network flow attribution in service mesh environments
Viscomi et al. Using WebPageTest: web performance testing for novices and power users
US9866466B2 (en) Simulating real user issues in support environments
US11962666B2 (en) User-configurable end user monitoring (EUM)
US20170024305A1 (en) Client application profiling
Melchor et al. A design of flexible data channels for sensor-cloud integration
US20230319053A1 (en) Custom rest endpoints and extensible role-based access control (rbac) for an extensibility platform
CN101494654B (en) Method and apparatus for determining server accessibility
US10498616B1 (en) System and method for implementing a client performance capture tool
CN116155761A (en) Network testing method, network testing device, electronic equipment and readable storage medium
Ocak Implementation of an internet of things device management interface
CN109271310B (en) Development testing method and device for network function of mobile application program

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 100020 Beijing City, Chaoyang District Hing Building 6, room 702, block B

Applicant after: Beijing Bo Hongyuan data Polytron Technologies Inc

Address before: 100020 Beijing City, Chaoyang District Hing Building 6, room 702, block B

Applicant before: BEIJING BONREE HONGYUAN TECHNOLOGY DEVELOPMENT CO., LTD.

COR Change of bibliographic data
GR01 Patent grant
GR01 Patent grant