CN110389891A - The method and apparatus of test application program - Google Patents

The method and apparatus of test application program Download PDF

Info

Publication number
CN110389891A
CN110389891A CN201810366305.2A CN201810366305A CN110389891A CN 110389891 A CN110389891 A CN 110389891A CN 201810366305 A CN201810366305 A CN 201810366305A CN 110389891 A CN110389891 A CN 110389891A
Authority
CN
China
Prior art keywords
application program
tested
mobile device
performance indicator
indicator data
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
Application number
CN201810366305.2A
Other languages
Chinese (zh)
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 Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke Information Technology Co Ltd
Original Assignee
Beijing Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke Information Technology 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 Jingdong Century Trading Co Ltd, Beijing Jingdong Shangke Information Technology Co Ltd filed Critical Beijing Jingdong Century Trading Co Ltd
Priority to CN201810366305.2A priority Critical patent/CN110389891A/en
Publication of CN110389891A publication Critical patent/CN110389891A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Prevention of errors by analysis, debugging or testing of software
    • G06F11/3668Testing of software
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention discloses test application program method and apparatus, are related to field of computer technology.One specific embodiment of this method includes: to obtain the configuration parameter of application program to be tested according to testing requirement;According to configuration parameter, connection, and the performance indicator data of acquisition applications program are established with the mobile device for running application program to be tested;According to performance indicator data, the test result of application program is generated.The embodiment establishes connection using the configuration parameter of acquisition and the mobile device of operation application program, and then acquisition performance achievement data has achieved the effect that real-time data collection to generate test result, improves efficiency, reduces time loss.

Description

The method and apparatus of test application program
Technical field
The present invention relates to field of computer technology more particularly to a kind of method and apparatus of test application program.
Background technique
With being constantly progressive for society, increased substantially using the user of application program (Application, APP), and it is less Energy consumption, the faster speed of service be improve user experience, increase user station viscosity important indicator.Meanwhile with APP sends out the continuous quickening of version speed, and each version requires an overall performance and shows, for exploitation and test analysis, so as to excellent Change and verifies again.Therefore, test is carried out to APP performance to have great importance.
In the method that the prior art is tested for the property APP, according to irregular hair version demand or performance test need It asks, arranges manually acquisition performance achievement data, and carry out the assessment of data acquisition for user's scene.Therefore, existing skill Art realizes method the shortcomings that there are time-consuming and inefficiency of APP performance test.
Summary of the invention
In view of this, the embodiment of the present invention provides a kind of method and apparatus of test application program, it can reach and adopt in real time Collect the effect of data, improve testing efficiency, reduces time loss.
To achieve the above object, according to an aspect of an embodiment of the present invention, a kind of side of test application program is provided Method.
The method of a kind of test application program of the embodiment of the present invention, comprising: according to testing requirement, obtain to be tested answer With the configuration parameter of program;According to the configuration parameter, establishes and connect with the mobile device for running the application program to be tested It connects, and acquires the performance indicator data of the application program;According to the performance indicator data, the survey of the application program is generated Test result.
Optionally, the configuration parameter includes at least one of following option: running the movement of application program to be tested It is the OS name and its version of the mobile device of the unique identification of equipment, operation application program to be tested, to be tested The unique identification and its version of application program.
Optionally, the performance indicator data include at least one of following option: application program is in different runnable interfaces The memory and application program that the flow of lower consumption, application program occupy under different runnable interfaces are central under different runnable interfaces The utilization rate of processor.
Optionally, according to the configuration parameter, connection is established with the mobile device for running the application program to be tested Include: the unique identification by running the mobile device of the application program to be tested, establishes network with the mobile device Connection.
Optionally, after the performance indicator data for acquiring the application program, the method also includes: to the performance Achievement data is filtered, and abnormal data is filtered and is removed;The performance indicator data acquired are uploaded to server;And After the test result for generating the application program, the method also includes: generated test result is uploaded to server.
To achieve the above object, according to another aspect of an embodiment of the present invention, a kind of dress of test application program is provided It sets.
A kind of device of test application program of the embodiment of the present invention, comprising: module is obtained, is used for according to testing requirement, Obtain the configuration parameter of application program to be tested;Acquisition module is used for according to the configuration parameter, described to be tested with running The mobile device of application program establish connection, and acquire the performance indicator data of the application program;Generation module is used for root According to the performance indicator data, the test result of the application program is generated.
Optionally, the configuration parameter includes at least one of following option: running the movement of application program to be tested It is the OS name and its version of the mobile device of the unique identification of equipment, operation application program to be tested, to be tested The unique identification and its version of application program.
Optionally, the performance indicator data include at least one of following option: application program is in different runnable interfaces The memory and application program that the flow of lower consumption, application program occupy under different runnable interfaces are central under different runnable interfaces The utilization rate of processor.
Optionally, the acquisition module is used for: by run the application program to be tested mobile device it is unique Mark is established with the mobile device and is connected to the network.
Optionally, described device further include: filtering module will be abnormal for being filtered to the performance indicator data Data filtering is removed;And described device further include: uploading module, performance indicator data for will acquire and or given birth to At test result be uploaded to server.
To achieve the above object, according to an embodiment of the present invention in another aspect, providing a kind of electronic equipment.
The a kind of electronic equipment of the embodiment of the present invention includes: one or more processors;Storage device, for storing one Or multiple programs, when one or more programs are executed by one or more processors, so that one or more processors realize this The method of the test application program of inventive embodiments.
To achieve the above object, another aspect according to an embodiment of the present invention, provides a kind of computer-readable medium.
A kind of computer-readable medium of the embodiment of the present invention, is stored thereon with computer program, and program is held by processor The method of the test application program of the embodiment of the present invention is realized when row.
One embodiment in foregoing invention have the following advantages that or the utility model has the advantages that can using obtain configuration parameter with The mobile device of operation application program establishes connection, and then acquisition performance achievement data is to generate test result, so as to reach To the effect of real-time data collection, testing efficiency is improved, reduces time loss;Configuration parameter may include in the embodiment of the present invention At least one of following option: it runs the unique identification of the mobile device of application program to be tested, run application to be tested The unique identification and its version of the OS name and its version of the mobile device of program, application program to be tested, thus Available detailed configuration parameter, so as to the performance for the application program tested under different situations;Performance in the embodiment of the present invention Achievement data may include at least one of following option: flow that application program consumes under different runnable interfaces, using journey The utilization rate for memory and the application program central processing unit under different runnable interfaces that sequence occupies under different runnable interfaces, thus Performance can be tested according to actual needs, further increase the practicability of this programme;Pass through fortune in the embodiment of the present invention The unique identification and mobile device of the mobile device of row application program to be tested establish connection, thereby may be ensured that test application The connection status when performance of program;It includes: acquisition application program that the performance indicator of application program is configured in the embodiment of the present invention Performance indicator to be tested further increase the practical of this programme so as to test according to actual needs performance Property;In the embodiment of the present invention after acquisition performance achievement data, performance indicator data are filtered, abnormal data is filtered It removes, thereby may be ensured that the accuracy of test result;In the performance indicator data of acquisition applications program in the embodiment of the present invention Later, upload the performance indicator data that have acquired and or generated test result, so as to convenient for different application journeys The performance of sequence is compared, and the performance of the different editions of same application can also be compared.
Further effect possessed by above-mentioned non-usual optional way adds hereinafter in conjunction with specific embodiment With explanation.
Detailed description of the invention
Attached drawing for a better understanding of the present invention, does not constitute an undue limitation on the present invention.Wherein:
Fig. 1 is the schematic diagram of the key step of the method for test application program according to an embodiment of the present invention;
Fig. 2 to Fig. 4 is the schematic diagram for the test result that the method for test application program according to an embodiment of the present invention generates;
Fig. 5 is the signal of the main flow of the method for a test application program that can refer to embodiment according to the present invention Figure;
Fig. 6 is the schematic diagram of the main modular of the device of test application program according to an embodiment of the present invention;
Fig. 7 is that the embodiment of the present invention can be applied to exemplary system architecture figure therein;
Fig. 8 is adapted for the structural representation of the computer system for the terminal device or server of realizing the embodiment of the present invention Figure.
Specific embodiment
Below in conjunction with attached drawing, an exemplary embodiment of the present invention will be described, including the various of the embodiment of the present invention Details should think them only exemplary to help understanding.Therefore, those of ordinary skill in the art should recognize It arrives, it can be with various changes and modifications are made to the embodiments described herein, without departing from scope and spirit of the present invention.Together Sample, for clarity and conciseness, descriptions of well-known functions and structures are omitted from the following description.
It is that there is time-consuming and effect using the method manually checked in the method being currently tested for the property to application program The low disadvantage of rate.Therefore, the present invention develops green prospecting tools packet, i.e., a kind of kit that convenience is succinct, for testing Application program capacity.Green prospecting tools packet is loaded on server, then runs green prospecting tools packet by server, In the use process of kit, real-time collecting performance data uploads to platform, user is allowed to inquire.
Fig. 1 is the schematic diagram of the key step of the method for test application program according to an embodiment of the present invention.As this hair Bright one embodiment, as shown in Figure 1, the key step of the method for the test application program of the embodiment of the present invention may include:
Step S101: according to testing requirement, the configuration parameter of application program to be tested is obtained.In the present invention, in correspondence When test with the performance of program, it is necessary first to which according to the actual situation, i.e. testing requirement obtains the configuration of application program Parameter.
As another embodiment of the invention, the configuration parameter in step S101 may include at least one in following option : run the unique identification of the mobile device of application program to be tested, the mobile device of operation application program to be tested OS name and its version, the unique identification and its version of application program to be tested.In the present invention, application program be It is run in mobile device, wherein mobile device refers to moveable handheld device, for example, mobile phone, tablet computer etc..To survey For application program A on trial work machine, configuration parameter can be the device number of the mobile phone, the operating system that the mobile phone uses and The version of the version of operating system, the unique identification of application program A and application program A.
Step S102: according to configuration parameter, connection is established with the mobile device for running application program to be tested, and acquire The performance indicator data of application program.In the present invention, when detecting application program, first have to establish the operation application Connection between the mobile device of program and the server for running green prospecting tools packet, for example, by interface by mobile device with Server connection, or established and be wirelessly connected by bluetooth, this is not limited by the present invention.After a connection is established, it runs green Color prospecting tools packet, the performance indicator data of acquisition applications program.
The application journey to be tested according to configuration parameter and operation as another embodiment of the invention, in step S102 It may include: the unique identification by running the mobile device of application program to be tested that the mobile device of sequence, which establishes connection, with Mobile device establishes network connection.
As yet another embodiment of the present invention, the performance indicator data in step S102 may include in following option extremely One item missing: the memory that flow that application program consumes under different runnable interfaces, application program occupy under different runnable interfaces With the utilization rate of application program central processing unit under different runnable interfaces.Different runnable interfaces in the present invention refer to using journey The interface of sort run, for example, its runnable interface may include: homepage, shopping-cart interface, collection circle to Mr. Yu shopping APP Face and order interface etc..And performance indicator data of the application program under different runnable interfaces are different.
Assuming that the mobile device of operation application program A is Android android system, acquisition runs the flow number consumed when A According to principle it is as follows.It can go to check system file with file manager Root Explorer in Android, be supervised with flow Controlling relevant file has: (1) system total flow/proc/net/dev, and the flow consumption of whole system is had recorded in this file Situation;(2) individual process flow/proc/uid_stat/%d, %d are the pid of process (that is, application program) (that is, unique mark Know), there are two item data tcp_rcv and tcp_snd in this file, respectively represents and total receive byte number and send byte number. Adb shell (shell of the shell as operating system provides the interface using operating system for user, it be command lanuage, The general designation of command interpreter and programming language) enter mobile phone after, execute command statement ps, get tested application program The pid of A.For example, application program A passes through order adb shell ps | grep " A.app.mall " is got.Then using order Adb shell cat/proc/pid/net/dev obtains the instant value of current application program A flow consumption.It should be noted that In the data on flows of acquisition, the different network of different field references uses interface.For example, wlan0 represents making for WIFI network With interface, rmet0 represents the network interface that GPRS is used.For the mark of these fields all with read-only memory correlation, what is had is read-only interior Depositing does not have/this file of proc/net/dev, so needing to do different adaptations in different read-only memories.Then, pre- If period and then the secondary instant value for obtaining the consumption of current application program A flow, unit is byte byte, it can is obtained The consumption of flow in the period.
Assuming that the mobile device of operation application program A is Android android system, it is big that acquisition runs the memory occupied when A Small principle is as follows.Since the kernel of Android is the basic core of Linux cut out.So internal storage data rule is one with Linux It causes.Same is also to first pass through adb shell ps | and grep com.A.app.mall obtains the pid value of application program A, so The memory of application program A is obtained by adb shell cat/proc/pid/status afterwards, wherein in the field obtained, VmPeak indicates occupied maximum virtual memory size when operation application program A, and VmSize indicates that operation application program A is currently empty Quasi- memory size, VmLck indicate that locked memory size, VmHWM indicate occupied physical memory when operation application program A Peak value, VmRSS indicates the size that physical memory is currently occupied when operation application program A, when VmData indicates operation application program A The size of data segment, VmStk indicate that the size of stack segment, VmExe indicate the operation application program A epoch when operation application program A The size of code, VmLib indicates the size of used shared library when operation application program A, when VmPTE indicates operation application program A Page table item size.It studies by analysis, VmRss is exactly the size of the memory occupied when running application program A.
Assuming that the mobile device of operation application program A is Android android system, central processing unit when obtaining operation A The principle of the utilization rate of (CPU, Central Processing Unit) is similar to the principle of committed memory size is obtained, herein It does not illustrate.It is worth noting that, the memory usage got is to be accumulated to current time since system starting All values, a CPU not instead of Instantaneous State, the embodiment of a process.The time counting unit jiffies (global variable of CPU Jiffies is used to record the sum of the beat generated since system starting) it is Linux kernel heart parameter (unsigned long), Since it is used to record system boot, how many tick (beat number) has been had been subjected to.Timer interrupt of every generation (timer interruption), jiffies parameter can be added one.The present invention can use the consumption of application program jiffies, to calculate CPU value, the i.e. average jiffies of calculating period consumption, the size of CPU value as in the time range.In the present solution, can To take the time interval of 100ms, the time too short burr for having certain shake, subsequent needs carry out one in interpretation of result Fixed processing.Certainly, specific time interval is set according to actual conditions, and this is not limited by the present invention.
As yet another embodiment of the present invention, after the performance indicator data of step S102 acquisition applications growth, survey The method for trying application program can also include: to be filtered to the performance indicator data, and abnormal data is filtered and is removed;And The performance indicator data acquired are uploaded to server.In the present invention, abnormal data refer to 0 as junk data, and The obtained mutation value in performance indicator data.As the embodiment of the present invention, the performance indicator data acquired are uploaded to The data of acquisition can be saved in this way, facilitate subsequent query by server.
Step S103: according to performance indicator data, the test result of application program is generated.In the present invention, in order to intuitive Show that, with management test result, the data that can be will acquire are shown in the form of webpage Web, and Web is using PHP Yii (PHP is a kind of strong Server-side Scripting Language for creating dynamic interactivity website, and Yii is a height component-based Performance PHP frame, for quickly developing large Web application, it maximizes the reusable degree in Web exploitation, can significantly mention High Web application and development speed) and Bootstrap (Bootstrap is the front end frame being popular at present from spy is pushed away) Front end frame.Fig. 2 to Fig. 4 is the signal for the test result that the method for test application program according to an embodiment of the present invention generates Figure.By result figure, the behavior pattern of application program can be gone out with rapid evaluation, and multiple application programs can be compared It is right, the different editions of same application can also be compared.Moreover, the data dimension abundant information in figure, can wrap Include user, application version, system version and Run-time scenario (i.e. the operation page) etc..Meanwhile the present invention can also root The test result figure needed according to actual demand customization.
As another embodiment of the invention, after the test result that step S103 generates application program, test is answered It can also include: that generated test result is uploaded to server with the method for program.In the present invention, by the test knot of production Fruit figure, which is uploaded to server, can guarantee all to file test result each time, avoid and pass through mailing in the prior art The problem of recording test result and inconvenient subsequent query caused to compare.
Fig. 5 is the signal of the main flow of the method for a test application program that can refer to embodiment according to the present invention Figure.As shown in figure 5, the main flow of the method for test application program may include: step S501, according to testing requirement, obtain Run the unique identification of the mobile device of application program A to be tested;Step S502 establishes fortune according to the unique identification of acquisition The network connection of the first server and mobile device of row green prospecting tools packet;Step S503 utilizes green prospecting tools packet The performance data needed is acquired, and disposes abnormal data;The performance data of acquisition is uploaded to second server by step S504 In;The performance data of acquisition is generated test result figure by step S505;Step S506 uploads to the test result figure of generation In second server.
It is worth noting that, running the first server and retention data and survey of green prospecting tools packet in the present invention The second server of test result can be the same server, be also possible to different servers, this is not limited by the present invention.
The technical solution of test application program according to an embodiment of the present invention, which can be seen that, to be joined using the configuration obtained Number and the mobile devices of operation application program establish connection, and then acquisition performance achievement data to be to generate test result, so as to To achieve the effect that real-time data collection, testing efficiency is improved, reduces time loss;Configuration parameter can be in the embodiment of the present invention Including at least one of following option: unique identification, the operation for running the mobile device of application program to be tested are to be tested The unique identification and its version of the OS name and its version of the mobile device of application program, application program to be tested, So as to obtain detailed configuration parameter, so as to the performance for the application program tested under different situations;In the embodiment of the present invention Performance indicator data may include at least one of following option: flow that application program consumes under different runnable interfaces is answered The utilization rate of memory and the application program central processing unit under different runnable interfaces occupied under different runnable interfaces with program, So as to test according to actual needs performance, the practicability of this programme is further increased;Lead in the embodiment of the present invention The unique identification and mobile device for crossing the mobile device for running application program to be tested establish connection, thereby may be ensured that test The connection status when performance of application program;The performance indicator that application program is configured in the embodiment of the present invention includes: to obtain application The performance indicator to be tested of program further increases this programme so as to test according to actual needs performance Practicability;In the embodiment of the present invention after acquisition performance achievement data, performance indicator data are filtered, by abnormal data Filtering is removed, and thereby may be ensured that the accuracy of test result;In the performance indicator of acquisition applications program in the embodiment of the present invention After data, upload the performance indicator data that have acquired and or generated test result, so as to convenient for answering different It is compared, the performance of the different editions of same application can also be compared with the performance of program.
Fig. 6 is the schematic diagram of the main modular of the device of test application program according to an embodiment of the present invention.Such as Fig. 6 institute Show, the device 600 of the test application program of the embodiment of the present invention mainly comprises the following modules: obtaining module 601, acquisition module 602 and generation module 603.
Wherein, obtaining module 601 can be used for obtaining the configuration parameter of application program to be tested according to testing requirement.It adopts Collection module 602 can be used for establishing connection with the mobile device for running application program to be tested, and acquire and answer according to configuration parameter With the performance indicator data of program.Generation module 603 can be used for generating the test knot of application program according to performance indicator data Fruit.
In the embodiment of the present invention, configuration parameter may include at least one of following option: run application journey to be tested The OS name and its version of the mobile device of the unique identification of the mobile device of sequence, operation application program to be tested, The unique identification and its version of application program to be tested.
In the embodiment of the present invention, performance indicator data may include at least one of following option: application program is in difference The memory and application program that the flow that consumes under runnable interface, application program occupy under different runnable interfaces are in different operations circle The utilization rate of central processing unit under face.
In the embodiment of the present invention, acquisition module 602 can be used for: the mobile device by running application program to be tested Unique identification is established with mobile device and is connected to the network.
In the embodiment of the present invention, the device 600 of test application program can also include: filtering module (not shown). Wherein, which can be used for being filtered performance indicator data, and abnormal data is filtered and is removed.In addition, test application The device 600 of program can also include: uploading module (not shown).Wherein, which can be used for have acquired Performance indicator data and or generated test result be uploaded to server.
From the above, it can be seen that can be established using the mobile device of the configuration parameter and operation application program that obtain Connection, then acquisition performance achievement data, so as to achieve the effect that real-time data collection, is improved and is surveyed to generate test result Efficiency is tried, time loss is reduced;Configuration parameter may include at least one of following option in the embodiment of the present invention: operation is to be measured The OS name of the mobile device of the unique identification of the mobile device of the application program of examination, operation application program to be tested And its version, the unique identification and its version of application program to be tested, so as to obtain detailed configuration parameter, to survey Try the performance of the application program under different situations;In the embodiment of the present invention performance achievement data may include in following option at least One: memory that flow that application program consumes under different runnable interfaces, application program occupy under different runnable interfaces and The utilization rate of application program central processing unit under different runnable interfaces, so as to be surveyed according to actual needs to performance Examination, further increases the practicability of this programme;Pass through the mobile device of operation application program to be tested in the embodiment of the present invention Unique identification and mobile device establish connection, thereby may be ensured that the connection status when performance of test application program;This hair The performance indicator that application program is configured in bright embodiment includes: to obtain the performance indicator to be tested of application program, so as to Performance is tested according to actual needs, further increases the practicability of this programme;In acquisition performance in the embodiment of the present invention After achievement data, performance indicator data are filtered, abnormal data is filtered and is removed, thereby may be ensured that test result Accuracy;In the embodiment of the present invention after the performance indicator data of acquisition applications program, the performance indicator number acquired is uploaded According to or generated test result can also be to same so as to convenient for the performance of different application programs is compared The performance of the different editions of one application program is compared.
Fig. 7 is shown can be using the method for the test application program of the embodiment of the present invention or the device of test application program Exemplary system architecture 700.
As shown in fig. 7, system architecture 700 may include terminal device 701,702,703, network 704 and server 705. Network 704 between terminal device 701,702,703 and server 705 to provide the medium of communication link.Network 704 can be with Including various connection types, such as wired, wireless communication link or fiber optic cables etc..
User can be used terminal device 701,702,703 and be interacted by network 704 with server 705, to receive or send out Send message etc..Various telecommunication customer end applications, such as the application of shopping class, net can be installed on terminal device 701,702,703 (merely illustrative) such as the application of page browsing device, searching class application, instant messaging tools, mailbox client, social platform softwares.
Terminal device 701,702,703 can be the various electronic equipments with display screen and supported web page browsing, packet Include but be not limited to smart phone, tablet computer, pocket computer on knee and desktop computer etc..
Server 705 can be to provide the server of various services, such as utilize terminal device 701,702,703 to user The shopping class website browsed provides the back-stage management server (merely illustrative) supported.Back-stage management server can be to reception To the data such as information query request analyze etc. processing, and by processing result (such as target push information, product letter Breath -- merely illustrative) feed back to terminal device.
It should be noted that the method for test application program provided by the embodiment of the present invention is generally held by server 705 Row, correspondingly, the device of test application program is generally positioned in server 705.
It should be understood that the number of terminal device, network and server in Fig. 7 is only schematical.According to realization need It wants, can have any number of terminal device, network and server.
Below with reference to Fig. 8, it illustrates the computer systems 800 for the terminal device for being suitable for being used to realize the embodiment of the present invention Structural schematic diagram.Terminal device shown in Fig. 8 is only an example, function to the embodiment of the present invention and should not use model Shroud carrys out any restrictions.
As shown in figure 8, computer system 800 includes central processing unit (CPU) 801, it can be read-only according to being stored in Program in memory (ROM) 802 or be loaded into the program in random access storage device (RAM) 803 from storage section 808 and Execute various movements appropriate and processing.In RAM 803, also it is stored with system 800 and operates required various programs and data. CPU 801, ROM 802 and RAM 803 are connected with each other by bus 804.Input/output (I/O) interface 805 is also connected to always Line 804.
I/O interface 805 is connected to lower component: the importation 806 including keyboard, mouse etc.;It is penetrated including such as cathode The output par, c 807 of spool (CRT), liquid crystal display (LCD) etc. and loudspeaker etc.;Storage section 808 including hard disk etc.; And the communications portion 809 of the network interface card including LAN card, modem etc..Communications portion 809 via such as because The network of spy's net executes communication process.Driver 810 is also connected to I/O interface 805 as needed.Detachable media 811, such as Disk, CD, magneto-optic disk, semiconductor memory etc. are mounted on as needed on driver 810, in order to read from thereon Computer program be mounted into storage section 808 as needed.
Particularly, disclosed embodiment, the process described above with reference to flow chart may be implemented as counting according to the present invention Calculation machine software program.For example, embodiment disclosed by the invention includes a kind of computer program product comprising be carried on computer Computer program on readable medium, the computer program include the program code for method shown in execution flow chart.In In such embodiment, which can be downloaded and installed from network by communications portion 809, and/or from can Medium 811 is dismantled to be mounted.When the computer program is executed by central processing unit (CPU) 801, system of the invention is executed The above-mentioned function of middle restriction.
It should be noted that computer-readable medium shown in the present invention can be computer-readable signal media or meter Calculation machine readable storage medium storing program for executing either the two any combination.Computer readable storage medium for example can be --- but not Be limited to --- electricity, magnetic, optical, electromagnetic, infrared ray or semiconductor system, device or device, or any above combination.Meter The more specific example of calculation machine readable storage medium storing program for executing can include but is not limited to: have the electrical connection, just of one or more conducting wires Taking formula computer disk, hard disk, random access storage device (RAM), read-only memory (ROM), erasable type may be programmed read-only storage Device (EPROM or flash memory), optical fiber, portable compact disc read-only memory (CD-ROM), light storage device, magnetic memory device, Or above-mentioned any appropriate combination.In the present invention, computer readable storage medium can be it is any include or storage journey The tangible medium of sequence, the program can be commanded execution system, device or device use or in connection.And at this In invention, computer-readable signal media may include in a base band or as carrier wave a part propagate data-signal, Wherein carry computer-readable program code.The data-signal of this propagation can take various forms, including but unlimited In electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media can also be that computer can Any computer-readable medium other than storage medium is read, which can send, propagates or transmit and be used for By the use of instruction execution system, device or device or program in connection.Include on computer-readable medium Program code can transmit with any suitable medium, including but not limited to: wireless, electric wire, optical cable, RF etc. are above-mentioned Any appropriate combination.
Flow chart and block diagram in attached drawing are illustrated according to the system of various embodiments of the invention, method and computer journey The architecture, function and operation in the cards of sequence product.In this regard, each box in flowchart or block diagram can generation A part of one module, program segment or code of table, a part of above-mentioned module, program segment or code include one or more Executable instruction for implementing the specified logical function.It should also be noted that in some implementations as replacements, institute in box The function of mark can also occur in a different order than that indicated in the drawings.For example, two boxes succeedingly indicated are practical On can be basically executed in parallel, they can also be executed in the opposite order sometimes, and this depends on the function involved.Also it wants It is noted that the combination of each box in block diagram or flow chart and the box in block diagram or flow chart, can use and execute rule The dedicated hardware based systems of fixed functions or operations is realized, or can use the group of specialized hardware and computer instruction It closes to realize.
Being described in module involved in the embodiment of the present invention can be realized by way of software, can also be by hard The mode of part is realized.Described module also can be set in the processor, for example, can be described as: a kind of processor packet It includes and obtains module, acquisition module and generation module.Wherein, the title of these modules is not constituted under certain conditions to the module The restriction of itself is also described as " according to testing requirement, obtaining matching for application program to be tested for example, obtaining module Set the module of parameter ".
As on the other hand, the present invention also provides a kind of computer-readable medium, which be can be Included in equipment described in above-described embodiment;It is also possible to individualism, and without in the supplying equipment.Above-mentioned calculating Machine readable medium carries one or more program, when said one or multiple programs are executed by the equipment, makes Obtaining the equipment includes: to obtain the configuration parameter of application program to be tested according to testing requirement;According to configuration parameter, with operation The mobile device of application program to be tested establishes connection, and the performance indicator data of acquisition applications program;According to performance indicator Data generate the test result of application program.
Technical solution according to an embodiment of the present invention can utilize the movement of the configuration parameter and operation application program that obtain Equipment establishes connection, and then acquisition performance achievement data is to generate test result, so as to reach the effect of real-time data collection Fruit improves testing efficiency, reduces time loss;Configuration parameter may include at least one in following option in the embodiment of the present invention : run the unique identification of the mobile device of application program to be tested, the mobile device of operation application program to be tested OS name and its version, the unique identification and its version of application program to be tested, so as to obtain detailed match Parameter is set, so as to the performance for the application program tested under different situations;Performance achievement data may include in the embodiment of the present invention At least one of following option: flow that application program consumes under different runnable interfaces, application program are in different runnable interfaces The utilization rate of memory and the application program central processing unit under different runnable interfaces of lower occupancy, so as to according to actual needs Performance is tested, the practicability of this programme is further increased;By running application journey to be tested in the embodiment of the present invention The unique identification and mobile device of the mobile device of sequence establish connection, thereby may be ensured that the company when performance of test application program Connect state;The performance indicator of configuration application program includes: that the performance to be tested of acquisition application program refers in the embodiment of the present invention Mark, so as to test according to actual needs performance, further increases the practicability of this programme;In the embodiment of the present invention After acquisition performance achievement data, performance indicator data are filtered, abnormal data is filtered and is removed, thereby may be ensured that The accuracy of test result;In the embodiment of the present invention after the performance indicator data of acquisition applications program, what upload had acquired Performance indicator data and or generated test result, so as to convenient for the performance of different application programs is compared, The performance of the different editions of same application can also be compared.
Above-mentioned specific embodiment, does not constitute a limitation on the scope of protection of the present invention.Those skilled in the art should be bright It is white, design requirement and other factors are depended on, various modifications, combination, sub-portfolio and substitution can occur.It is any Made modifications, equivalent substitutions and improvements etc. within the spirit and principles in the present invention, should be included in the scope of the present invention Within.

Claims (12)

1. a kind of method of test application program characterized by comprising
According to testing requirement, the configuration parameter of application program to be tested is obtained;
According to the configuration parameter, connection is established with the mobile device for running the application program to be tested, and described in acquisition The performance indicator data of application program;
According to the performance indicator data, the test result of the application program is generated.
2. the method according to claim 1, wherein the configuration parameter includes at least one of following option: Run the operation of the unique identification of the mobile device of application program to be tested, the mobile device for running application program to be tested Systematic name and its version, the unique identification and its version of application program to be tested.
3. the method according to claim 1, wherein the performance indicator data include at least one in following option : the memory and answer that flow that application program consumes under different runnable interfaces, application program occupy under different runnable interfaces With the utilization rate of program central processing unit under different runnable interfaces.
4. described to be tested with running according to the method described in claim 2, it is characterized in that, according to the configuration parameter The mobile device of application program establishes connection
By running the unique identification of the mobile device of the application program to be tested, network is established with the mobile device and is connected It connects.
5. the method according to claim 1, wherein
After the performance indicator data for acquiring the application program, the method also includes: to the performance indicator data into Row filtering, abnormal data is filtered and is removed;The performance indicator data acquired are uploaded to server;And
After the test result for generating the application program, the method also includes: generated test result is uploaded to Server.
6. a kind of device of test application program characterized by comprising
Module is obtained, for obtaining the configuration parameter of application program to be tested according to testing requirement;
Acquisition module, for establishing and connecting with the mobile device for running the application program to be tested according to the configuration parameter It connects, and acquires the performance indicator data of the application program;
Generation module, for generating the test result of the application program according to the performance indicator data.
7. device according to claim 6, which is characterized in that the configuration parameter includes at least one of following option: Run the operation of the unique identification of the mobile device of application program to be tested, the mobile device for running application program to be tested Systematic name and its version, the unique identification and its version of application program to be tested.
8. device according to claim 6, which is characterized in that the performance indicator data include at least one in following option : the memory and answer that flow that application program consumes under different runnable interfaces, application program occupy under different runnable interfaces With the utilization rate of program central processing unit under different runnable interfaces.
9. device according to claim 7, which is characterized in that the acquisition module is used for: described to be tested by running Application program mobile device unique identification, with the mobile device establish be connected to the network.
10. device according to claim 6, which is characterized in that described device further include: filtering module, for described Performance indicator data are filtered, and abnormal data is filtered and is removed;And described device further include: uploading module, being used for will The performance indicator data of acquisition and or generated test result be uploaded to server.
11. a kind of electronic equipment characterized by comprising
One or more processors;
Storage device, for storing one or more programs,
When one or more of programs are executed by one or more of processors, so that one or more of processors are real Now such as method as claimed in any one of claims 1 to 5.
12. a kind of computer-readable medium, is stored thereon with computer program, which is characterized in that described program is held by processor Such as method as claimed in any one of claims 1 to 5 is realized when row.
CN201810366305.2A 2018-04-23 2018-04-23 The method and apparatus of test application program Pending CN110389891A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810366305.2A CN110389891A (en) 2018-04-23 2018-04-23 The method and apparatus of test application program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810366305.2A CN110389891A (en) 2018-04-23 2018-04-23 The method and apparatus of test application program

Publications (1)

Publication Number Publication Date
CN110389891A true CN110389891A (en) 2019-10-29

Family

ID=68284294

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810366305.2A Pending CN110389891A (en) 2018-04-23 2018-04-23 The method and apparatus of test application program

Country Status (1)

Country Link
CN (1) CN110389891A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113010414A (en) * 2021-02-24 2021-06-22 北京每日优鲜电子商务有限公司 Application program performance management method and device based on bytecode instrumentation technology
CN113886213A (en) * 2020-06-29 2022-01-04 腾讯科技(深圳)有限公司 Program data processing method, device, computer readable storage medium and equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103713991A (en) * 2012-10-08 2014-04-09 腾讯科技(深圳)有限公司 Method and device for testing application programs on Android devices
US20160062879A1 (en) * 2014-08-29 2016-03-03 International Business Machines Corporation Testing a mobile application
CN105988925A (en) * 2015-02-10 2016-10-05 腾讯科技(深圳)有限公司 Method, device and system for testing start-up time of application program

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103713991A (en) * 2012-10-08 2014-04-09 腾讯科技(深圳)有限公司 Method and device for testing application programs on Android devices
US20160062879A1 (en) * 2014-08-29 2016-03-03 International Business Machines Corporation Testing a mobile application
CN105988925A (en) * 2015-02-10 2016-10-05 腾讯科技(深圳)有限公司 Method, device and system for testing start-up time of application program

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113886213A (en) * 2020-06-29 2022-01-04 腾讯科技(深圳)有限公司 Program data processing method, device, computer readable storage medium and equipment
CN113010414A (en) * 2021-02-24 2021-06-22 北京每日优鲜电子商务有限公司 Application program performance management method and device based on bytecode instrumentation technology

Similar Documents

Publication Publication Date Title
KR101737246B1 (en) Index configuration for searchable data in network
CN106559438A (en) A kind of program method for uploading and device based on objective network platform
CN108932194A (en) Automated testing method, device, system, medium and electronic equipment
CN110019503A (en) The dilatation of Redis cluster and/or the method and device of capacity reducing
CN109426593A (en) The method and apparatus of automatic evaluation system performance
CN109815107A (en) The method and apparatus of automatic test
CN109976919A (en) A kind of transmission method and device of message request
CN109995801A (en) A kind of method for message transmission and device
CN110377522A (en) The test method for scene of trading, calculates equipment and medium at device
CN108776692A (en) Method and apparatus for handling information
CN109981719A (en) Information processing method and its system, computer system and computer readable medium
CN109002282A (en) A kind of method and apparatus for realizing animation effect in web page exploitation
CN109002385A (en) Method for testing pressure and device for data flow system
CN110389873A (en) A kind of method and apparatus of determining server resource service condition
CN110019044A (en) Big data cluster quasi real time Yarn Mission Monitor analysis method
CN110162448A (en) The method and apparatus of log collection
CN110389891A (en) The method and apparatus of test application program
CN109753424A (en) The method and apparatus of AB test
CN109814957A (en) A kind of label addition method and device for IOS system
CN109992494A (en) A kind of automatic test execution method and apparatus
CN109992495A (en) The method and apparatus of interface testing
CN110245014A (en) Data processing method and device
CN109522201A (en) A kind of method and apparatus of application program stability test
CN109788010A (en) A kind of method and apparatus of data localization access
CN109656803A (en) Information-pushing method, device and electronic equipment

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20191029