CN107092555A - A kind of method and system of test application program - Google Patents

A kind of method and system of test application program Download PDF

Info

Publication number
CN107092555A
CN107092555A CN201610639209.1A CN201610639209A CN107092555A CN 107092555 A CN107092555 A CN 107092555A CN 201610639209 A CN201610639209 A CN 201610639209A CN 107092555 A CN107092555 A CN 107092555A
Authority
CN
China
Prior art keywords
application program
information
target terminal
terminal
measured
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
CN201610639209.1A
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 Xiaodu Information Technology Co Ltd
Original Assignee
Beijing Xiaodu 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 Xiaodu Information Technology Co Ltd filed Critical Beijing Xiaodu Information Technology Co Ltd
Priority to CN201610639209.1A priority Critical patent/CN107092555A/en
Publication of CN107092555A publication Critical patent/CN107092555A/en
Pending legal-status Critical Current

Links

Classifications

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

Abstract

The present embodiments relate to Application testing technical field, more particularly to a kind of method and system of test application program.Wherein, this method includes:According to automatic test script, simulated operation order is sent to the target terminal for being provided with application program to be measured;Receive target terminal and the service request information sent after the simulated operation order is performed in application program to be measured;Receive the service response message that apps server is fed back according to the service request information;According to the service request information and the service response message, the evaluating result of the application program to be measured is generated.The method and system of the test application program of the embodiment of the present invention, it is possible to increase the efficiency of test application program.

Description

A kind of method and system of test application program
Technical field
The present embodiments relate to Application testing technical field, more particularly to a kind of test application program method and System.
Background technology
With the development of Internet technology, the type and quantity of application product are also being skyrocketed through, such as all kinds of APP. In current market environment, the application product under same industry is also multifarious, differed from one another.Each application program factory Business is before application product is released, in order to ensure the quality of application product and the work(of application program product Can, it will usually which application product is tested and assessed.
At present, the test and appraisal to application product are main by the way of manually testing and assessing, specifically, tester will be to be measured Try application program to be arranged in the terminals such as mobile phone, computer, by the way that repeatedly operation application program obtains application product repeatedly Data, and in order to which the performance with other application program product is compared, tester needs manually recorded operation to apply journey The data of product after sequence.For example:Tester takes out the performance of application product in order to test, and will take out application program and installs On mobile phone, trade company is taken out by being manually entered food delivery address searching afterwards, tester's record takes out application program current The parameters such as number, the businessman's response time of take-away trade company that can be searched under the food delivery address of input, input different food deliveries Address, obtains the test parameter under different food delivery addresses.When tester needs the multiple application program capacities of lateral comparison, Repeat to carry out the plurality of application program above-mentioned operation.
Inventor has found, dependent on manually to Application testing, the efficiency comparison of test is low.
The content of the invention
The embodiments of the invention provide a kind of method and system of test application program, to improve the effect of test application program Rate.
In a first aspect, the embodiments of the invention provide a kind of method of test application program, including:
According to automatic test script, simulated operation order is sent to the target terminal for being provided with application program to be measured;
Receive target terminal and the service request information sent after the simulated operation order is performed in application program to be measured;
Receive the service response message that apps server is fed back according to the service request information;
According to the service request information and the service response message, the test and appraisal knot of the application program to be measured is generated Really.
Second aspect, the embodiments of the invention provide a kind of system of test application program, including:Test triggering terminal and Test and appraisal terminal;
The test triggering terminal, is configured as according to automatic test script, to the target for being provided with application program to be measured Terminal sends simulated operation order;
The test and appraisal terminal, is configured as reception target terminal and the simulated operation order is performed in application program to be measured The service request information sent afterwards;The service response that reception apps server is fed back according to the service request information disappears Breath;According to the service request information and the service response message, the evaluating result of the application program to be measured is generated.
In scheme of the embodiment of the present invention, test system is according to automatic test script to the mesh for being provided with application program to be measured Mark terminal sends the order for analog subscriber operation behavior, and target terminal is received after simulated operation order, in application to be measured The name is performed in program environment and service request information is sent according to the implementing result of order.In scheme of the embodiment of the present invention In, target terminal and it is indirect service request information is sent to apps server, but set by the embodiment of the present invention Service request information is sent to apps server by the test and appraisal terminal of meter, likewise, apps server is sent to mesh The service response message of mark terminal is also being forwarded to up to target terminal by terminal of testing and assessing, it is seen that test and appraisal terminal, which can be obtained, to be treated The interaction data surveyed between application program and apps server, test and appraisal terminal passes through to application program to be measured and application program Interaction data collects between server, obtains the evaluating result of application program to be measured.
It can be seen that, scheme of the embodiment of the present invention is realized to the automatic of application program to be measured by running automatic test script Simulated operation, the interaction data between application program to be measured and apps server is recorded by terminal of testing and assessing automatically, is utilized The program realizes the automatic test and appraisal to application program to be measured, improves the efficiency of test application program.
It should be appreciated that the general description of the above and detailed description hereinafter are only exemplary and explanatory, not The embodiment of the present invention can be limited.
Brief description of the drawings
Accompanying drawing herein is merged in specification and constitutes the part of this specification, shows the implementation for meeting the present invention Example, and be used to together with specification to explain the principle of the embodiment of the present invention.
Fig. 1 is the system structure diagram of the test application program of the embodiment of the present invention one;
Fig. 2 is the method flow diagram of the test application program of the embodiment of the present invention one;
Fig. 3 is the method flow diagram of the test application program of the embodiment of the present invention two;
Fig. 4 is the system structure diagram of the test application program of the embodiment of the present invention two;
Fig. 5 is the system structure diagram of the test application program of the embodiment of the present invention three;
Fig. 6 is trade company's number schematic diagram that APP1, APP2 and APP3 are searched.
Embodiment
Here exemplary embodiment will be illustrated in detail, its example is illustrated in the accompanying drawings.Following description is related to During accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawings represent same or analogous key element.Following exemplary embodiment Described in embodiment do not represent all embodiments consistent with the embodiment of the present invention.On the contrary, they be only with As be described in detail in the appended claims, embodiment of the present invention some in terms of consistent apparatus and method example.
In order to solve testing efficiency that currently employed manual type test application program brings than it is relatively low the problem of, the present invention Embodiment provide it is a kind of can test application program automatically scheme.
Fig. 1 is the system structure diagram of the test application program of the embodiment of the present invention one.As shown in figure 1, the present invention is implemented The system 100 for test application program that example is provided includes:Test triggering terminal 101 and test and appraisal terminal 102.In order to support pair Test triggering terminal 101 in the automatic test of application program to be measured, said system needs in test application program with installation The target terminal 103 for surveying application program is connected, and the target terminal 103 for being provided with application program to be measured is connected with test and appraisal terminal 102, Test and appraisal terminal 102 is also connected with apps server 104.
In the system of above-mentioned test application program, test triggering terminal 101 and the test and appraisal terminal of terminal 102 are from being realized Functional perspective set out the terminal of division, in actual system deployment, test triggering terminal 101 and test and appraisal terminal 102 can be with It is integrated in a physical terminal, two functions in test triggering terminal 101 and test and appraisal terminal 102 respectively physical terminal Unit, test triggering terminal 101 and test and appraisal terminal 102 can also be realized by least one physical terminal respectively certainly.
Based on the system of the test application program shown in Fig. 1, the embodiment of the present invention additionally provides a kind of test application program Method.Fig. 2 is the method flow diagram of the test application program of the embodiment of the present invention one, as shown in Fig. 2 this method can be included such as Lower step:
Step S201:Triggering terminal is tested according to automatic test script, to the target terminal for being provided with application program to be measured Send simulated operation order.
The automatic test script for being tested application program to be measured is configured with test triggering terminal, wherein, should Automatic test script is the script for analog subscriber operation behavior.
The automatic test script of terminal operating is tested, and the result tested according to automatic test script is sent to target terminal Simulated operation order.Target terminal herein refers to the terminal device for being provided with application program to be measured.Target terminal receives mould Intend after operational order, corresponding order is performed in application environment to be measured.Target terminal is in application environment to be measured During performing simulated operation order, if desired interacted with apps server, then target terminal is to application program Send related service request information, specifically, target terminal by the test and appraisal terminal shown in Fig. 1 to apps server Service request information is sent, similarly the application program service response message of apps server feedback is also by test and appraisal terminal hair Give target terminal.
For example:Application program to be measured is stored with for answering the take-away to take out application program in test triggering terminal The automatic test script of simulated operation is carried out with program.Test triggering terminal and run automatic test script, in automatic test script Triggering terminal is tested during operation and sends operational order to target terminal, wherein, test triggering terminal is sent out to target terminal The operational order sent can be to search for the businessman in some regional extent, obtain businessman evaluation information, take out the simulation such as place an order and use The instruction of family operation behavior.Target terminal is received after the operational order that test triggering terminal is sent, and is taking out application program ring Corresponding instruction is performed in border, target terminal is during operational order is performed, if necessary to enter with apps server Row interaction, target terminal sends application program service request message service request information to apps server.Shown in Fig. 1 Application testing system in, target terminal send application program service request message service request information be sent initially to In terminal of testing and assessing, application program service request message service request information is sent to apps server by test and appraisal terminal, Similarly the application program service response message of apps server feedback is also transmitted to target terminal through terminal of testing and assessing.Target is whole The step interacted by terminal of testing and assessing with apps server is held referring to step S202 and step S203.
Step S202:Test and appraisal terminal receives target terminal and hair after the simulated operation order is performed in application program to be measured The service request information gone out.
Step S203:Test and appraisal terminal receives the service response that apps server is fed back according to the service request information Message.
Step S204:Terminal of testing and assessing generates the survey of application program to be measured according to service request information and service response message Comment result.
In embodiments of the present invention, test triggering terminal is provided with application to be measured by running automatic test script from trend The target terminal of program sends simulated operation order, and target terminal performs simulated operation order in application environment to be measured, Wherein simulated operation order is the order that analog subscriber operates application behavior, and target terminal is performing simulated operation order During if desired interacted with apps server, then by test terminal to apps server send service request disappear Breath, and the application program service response message that apps server is fed back is received by target terminal, it is seen that test terminal The interaction data of application program to be measured and apps server can be obtained, therefore test terminal passes through to application to be measured Collecting, classifying or other analytical procedures for interaction data between program and apps server, generates application journey to be measured The evaluating result of sequence, the test process is performed automatically, it is possible to increase the efficiency of test application program, and the test process is reduced Artificial participation step, saves labour turnover.
Fig. 3 is the method flow diagram of the test application program of the embodiment of the present invention two, and this method still is based on the survey shown in Fig. 1 The system for trying application program is performed, and the application program in the present invention can be the program of arbitrary format, in the present embodiment using APP as Example is illustrated to the method for testing of the present invention, and method may include steps of shown in Fig. 3:
Step S301:Configured in test triggering terminal and start APP simulated environments to be measured.
It is deployed with the APP simulated environments to be measured for testing triggering terminal corresponding with each operational controls in APP to be measured Simulated operation control.For example, there is input control, search control, Business Information to check control in APP to be measured, it is corresponding to survey Also identical input control, search control, Business Information are deployed with the APP simulated environments to be measured for trying triggering terminal and checks control Part.
Step S302:Triggering terminal running configuration file in APP simulated environments to be measured is tested, specifically, in the configuration File includes automatic test script, configuration information and target terminal information.
Optionally, above-mentioned automatic test script is to carry out analog subscriber row to the simulated operation control in APP environment to be measured For script, for example, by run automatic test script can realize to the input control in above-mentioned example, search control, business The triggering of family's information inspection control.
Above-mentioned configuration information is the information of analog subscriber input in automatic test script running, for example, when automatic When the user action of test script simulation searches for the action of control for triggering, the configuration information is the target information for needing to search for, When running script corresponding with the hunting action, the search target information of correlation is directly obtained from configuration information, to complete Hunting action.
Above-mentioned target terminal information is the identification information of target terminal corresponding to configuration file, specifically, the target is whole What client information was indicated is the identification information for being provided with APP to be measured.
Step S303:Triggering terminal is tested by running configuration file, the automatic test pin in automatic running configuration file This, according to the operation result of automatic test script, generates simulated operation order;When the simulated operation order needs to coordinate correlation During input information operation, test triggering terminal further determines matching somebody with somebody for the operation simulated operation order needs from configuration file Confidence ceases;Target terminal information of the triggering terminal in configuration file is tested, determines that the corresponding target of simulated operation order is whole End;Triggering terminal is tested to the target terminal determined according to target terminal information, the simulated operation order and operation is sent The configuration information that the simulated operation order needs.
Target terminal receives the simulated operation order that test triggering terminal is sent, and the order that such as target terminal is received is Search command and and also receive with search command coordinate search target information when, target terminal perform search command, tool Body, target terminal input in the input frame of search control searches for target information and triggers search control, searches for control quilt After triggering, target terminal sends APP service request informations to APP servers, so that related with the search target for obtaining to inputting Information.
In embodiments of the present invention, the APP service request informations that target terminal is sent are sent initially to terminal of testing and assessing.
Step S304:Terminal of testing and assessing receives the APP service request informations from target terminal, wherein, APP service requests disappear Breath is that target terminal performs the message sent after simulated operation order in APP environment to be measured.Test and appraisal terminal receives APP services After request message, APP service request informations are forwarded to APP servers.
APP servers are received after APP service request informations, and APP services are fed back to the target terminal for being provided with APP to be measured Response message, specifically, the APP service response messages of APP server feedbacks are first sent to test and appraisal terminal.
Step S305:Terminal of testing and assessing receives the APP service response messages from APP servers, wherein, APP service responses Message is the message that APP servers feed back according to APP service request informations.
Step S306:Terminal of testing and assessing generates APP to be measured survey according to APP service request informations and APP service response messages Comment result.
In the embodiment of the present invention, automatic test script, configuration information and target terminal information are arranged on configuration file In, APP can be tested and assessed with a key by running configuration file, more specifically, can be to same in configuration information Simulated operation order sets multiple input information, and such as correspondence search command sets multiple search target informations, target terminal is being held During row search command, the information of the plurality of search target is searched for respectively, alternatively, it is also possible to by changing configuration information change search Target.It can be seen that, scheme of the embodiment of the present invention is by configuring or changing the configuration information in configuration file, it is possible to achieve to difference The test of information point, extends the depth and broadness of APP tests, and the key of test process one is run, and can reduce test APP Difficulty.
Fig. 4 is the system structure diagram of the test application program of the embodiment of the present invention two.Application program in the present invention can Think that the method for testing in the program of arbitrary format, the present embodiment to the present invention by taking APP as an example is illustrated.As shown in figure 4, surveying The system 100 of examination application program includes:Triggering terminal 101 and test and appraisal terminal 102 are tested, wherein, test and appraisal terminal 102 includes agency Server 1021 and log analysis terminal 1022.
As shown in Figure 4, test triggering terminal 101 is connected with being provided with APP to be measured target terminal 103, target terminal 103 are connected with proxy server 1021, proxy server 1021 also respectively with APP servers 104 and log analysis terminal 1022 Connection.
In Fig. 4, test triggering terminal 101 is used to configure automatic test script, and optionally, automatic test script, which is contained in, matches somebody with somebody Put in file, configuration information and target terminal information are also included in the configuration file, configuration information is automatic test script fortune The information of analog subscriber input during row, target terminal information is the identification information of target terminal 103 corresponding to configuration file, More specifically, target terminal information is indicated for being provided with the identification information of APP to be measured target terminal 103.
Above-mentioned automatic test script can be the automatic test generated using Appium mobile terminals automated test frame Script, wherein, the process for generating automatic test script using Appium mobile terminals automated test frame includes:
APP simulated environments to be measured are configured in test triggering terminal 101 based on Appium mobile terminals automated test frame, The simulated operation control corresponding with each operational controls in APP to be measured is deployed with APP simulated environments to be measured, wherein, each mould Intending operational controls has and APP identicals to be measured deployment and identification information.User is write in APP environment to be measured to each simulation behaviour Make the script that control carries out simulated operation, when the script write is run in APP environment to be measured, can be moved by Appium Moved end automated test frame server sends simulated operation instruction to target terminal 103.
In the present embodiment, the running configuration file of triggering terminal 101 is tested, is specially:The test operation of triggering terminal 101 is matched somebody with somebody Putting the automatic test script in file, and transfer from configuration information the simulated action corresponding to automatic test script needs input Information.
The script that Appium mobile terminals automated test frame server identification test triggering terminal 101 is run, and according to The result of identification sends simulated operation order to target terminal 103, when the simulated operation order needs to coordinate relevant configuration information During operation, relevant configuration information is also sent to target terminal 103 by Appium mobile terminals automated test frame server.
Target terminal 103 performs simulated operation order in APP environment to be measured, and according to the execution knot of simulated operation order Fruit sends APP service request informations to proxy server 1021, and APP service request informations are forwarded to by proxy server 1021 APP servers 104, proxy server 1021 also further receives the APP service response messages of the feedback of APP servers 104.
Proxy server 1021 judges that the APP service request informations received are after APP service request informations are received No is the message of pre-set business type, if it is, the APP services that proxy server 1021 is received with logged please Seek message;Similarly, after proxy server 1021 receives APP service response messages, judge that the APP service responses received disappear Breath whether be pre-set business type message, if it is, the same APP service response messages received with logged.
After the operation of automatic test script is finished, log analysis terminal 1022 obtains daily record number from proxy server 1021 According to log analysis terminal 1022 generates APP evaluating result according to daily record data.
Further, obtained evaluating result with mail he can also be sent to relevant people by log analysis terminal 1022 Member.
Fig. 5 is the system structure diagram of the test application program of the embodiment of the present invention three.Application program in the present embodiment For APP, Fig. 5 shows a test APP concrete scene schematic diagram, as shown in figure 5, including in the test scene:Many The APP installed between APP to be measured, and many mobile phones is mounted in PC and the one-to-one plurality of mobile phones of PC, every mobile phone simultaneously Differ.
As show in Fig. 5 the first PC401, the 2nd PC402, tri- PC of the 3rd PC403 as an example, the first mobile phone 404, Second mobile phone 405 and the 3rd mobile phone 406 connect one to one with the first PC401, the 2nd PC402 and the 3rd PC403 respectively, and APP1 is installed on the first mobile phone 404, APP2 is installed on the second mobile phone 405, is provided with the 3rd mobile phone 406 APP3.The network of first mobile phone 404, the second mobile phone 405 and the 3rd mobile phone 406 is connected with proxy server 407 respectively, agency's clothes Business device 407 also connects with APP1 servers 408, APP2 servers 409, APP3 servers 410 and log analysis terminal 408 respectively Connect.
When needing to test APP1, APP2 and APP3, APP1 simulated environments are disposed in the first PC401 and by APP1 Automatic test script is uploaded in the first PC401, and APP2 simulated environments are disposed in the 2nd PC402 and test APP2 automatically Script is uploaded in the 2nd PC402, and APP3 simulated environments are disposed in the 3rd PC403 and the automatic test scripts of APP3 are uploaded Into the first PC401.
The automatic test scripts of APP1 are run in the first PC401 APP1 simulated environments, the first PC401 is surveyed automatically according to APP1 The operation result of training sheet sends the first simulated operation order to the first mobile phone 404;First mobile phone 404 is performed in APP1 environment First simulated operation order, and first service is sent to proxy server 407 according to the implementing result of the first simulated operation order APP1 servers 408, proxy server 407 are forwarded to after request message, the record first service request message of proxy server 407 Also receive after the first service response message that APP1 servers 408 are sent, the record first service response message of proxy server 407 It is forwarded to the first mobile phone 404.
The automatic test scripts of APP2 are run in the 2nd PC402 APP2 simulated environments, the 2nd PC402 is automatic according to APP2 The operation result of test script sends the second simulated operation order to the second mobile phone 405;Second mobile phone 405 is held in APP2 environment Row the second simulated operation order, and taken according to the implementing result of the second simulated operation order to the transmission of proxy server 407 second APP2 servers 409, proxy server are forwarded to after business request message, the record second service request message of proxy server 407 407 also receive the second service response message that APP2 servers 409 are sent, and the record second service response of proxy server 407 disappears The second mobile phone 405 is forwarded to after breath.
The automatic test scripts of APP3 are run in the 3rd PC403 APP3 simulated environments, the 3rd PC403 is automatic according to APP3 The operation result of test script sends the 3rd simulated operation order to the 3rd mobile phone 406;3rd mobile phone 406 is held in APP3 environment The simulated operation order of row the 3rd, and taken according to the implementing result of the 3rd simulated operation order to the transmission of proxy server 407 the 3rd Business request message, proxy server 407 is forwarded to APP3 servers 410, proxy server after recording the 3rd service request information 407 also receive the 3rd service response message that APP3 servers 410 are sent, and proxy server 407 records the 3rd service response and disappeared The 3rd mobile phone 406 is forwarded to after breath.
Log analysis terminal 408 obtains the daily record data on APP1, APP2 and APP3 from proxy server 407, And carry out Macro or mass analysis to APP1, APP2 and APP3 daily record data, and according to the result of analysis generate APP1, APP2 and APP3 evaluating result, optionally, APP1, APP2 and APP3 evaluating result can use form or iconic format table Show.
APP1, APP2 and APP3 evaluating result are sent to dependence test terminal by log analysis terminal 408, such as with postal Part mode is sent to mailbox for pre-setting etc..
In a more specifically example, above-mentioned APP1, APP2 and APP3 takes out APP for three, above-mentioned The automatic test scripts of APP1, the automatic test scripts of APP2 and the automatic test scripts of APP3 be separately contained in the first configuration file, In second configuration file and the 3rd configuration file, it is assumed that as the automatic test scripts of APP1, the automatic test scripts of APP2 and APP3 When the automatic function to be tested of test script is trade company's number that certain food delivery address can be searched, also wrapped in the first configuration file The identification information of the first food delivery address, the second food delivery address and the first mobile phone 404 is included, includes first in the second configuration file The identification information of food delivery address, the second food delivery address and the second mobile phone 405, in the 3rd configuration file with including the first food delivery The identification information of location, the second food delivery address and the 3rd mobile phone 406.
First PC401, the 2nd PC402 and the 3rd PC403 are separately operable the first configuration file, the second configuration file and the 3rd Configuration file, wherein, the first PC401 runs the automatic test scripts of APP1 in the first configuration file, and according to the first mobile phone 404 Identification information to the first mobile phone 404 send search the first food delivery address and the second food delivery address near trade company order, first APP1 in mobile phone 404 performs the search command, and is interacted by proxy server 407 and APP1 servers 408, obtains The merchant information near merchant information and the second food delivery address near first food delivery address, proxy server 407 is with daily record The information that form record APP1 is interacted with APP1 servers 408.
2nd PC402 runs the automatic test scripts of APP2 in the second configuration file, and according to the identification of the second mobile phone 405 Information sends the order of trade company near the first food delivery address of search and the second food delivery address, the second mobile phone 405 to the second mobile phone 405 In APP2 perform the search command, and interacted by proxy server 407 and APP2 servers 409, obtain first and send Merchant information near meal address and the merchant information near the second food delivery address, proxy server 407 are remembered in daily record form The information that record APP2 is interacted with APP2 servers 409.
3rd PC403 runs the automatic test scripts of APP3 in the 3rd configuration file, and according to the identification of the 3rd mobile phone 406 Information sends the order of trade company near the first food delivery address of search and the second food delivery address, the 3rd mobile phone 406 to the 3rd mobile phone 406 In APP3 perform the search command, and interacted by proxy server 407 and APP3 servers 410, obtain first and send Merchant information near meal address and the merchant information near the second food delivery address, proxy server 407 are remembered in daily record form The information that record APP3 is interacted with APP3 servers 410.
After the automatic test scripts of APP1, the automatic test scripts of APP2 and the automatic test scripts of APP3 are performed both by finishing, Log analysis terminal 408 obtains APP1, APP2 and APP3 daily record data, and log analysis from proxy server 407 Terminal 408 generates evaluating result according to APP1, APP2 and APP3 daily record data.
The evaluating result that log analysis terminal 408 is generated can be word, form or icon.
As table 1 shows that APP1, APP2 and APP3 search for merchant data table.
Table 1 APP1, APP2 and APP3 search for merchant data table
As Fig. 6 shows trade company's number schematic diagram that APP1, APP2 and APP3 are searched.
Further, obtained evaluating result can also be sent to dependence test by log analysis terminal by modes such as mails Personnel.
It can be realized to the concurrent testing to APP using present invention method.In another feasible embodiment party In formula, the automatic test scripts of APP1, the automatic test scripts of APP2 and the automatic test scripts of APP3 are disposed respectively on a PC, The automatic test scripts of APP1, the automatic test scripts of APP2 and the automatic test scripts of the APP3 parallel independent operating on the PC, are installed The first mobile phone for having APP1, the second mobile phone for being provided with APP2 and APP3 the 3rd mobile phone is installed be connected respectively with the PC, had Body test process is identical with Fig. 5 test process, repeats no more, and multiple APP can parallel be surveyed by a PC using this mode Examination.
Further, since APP version updatings are regenerated than very fast, when needing the APP to redaction to test, it can compare In place of redaction APP and previous version APP modification, and being on the basis of the automatic test script of previous version according to modification Obtain to new automatic test script, when testing redaction APP, can only to have modification place be tested or Person can be only tested of interest, so during multiple version APP iteration, can be surveyed without repeating identical Flow is commented, and the variation tendency of multiple version APP operational indicators can also can be drawn according to evaluating result.
It in summary it can be seen, the scheme of test application program provided in an embodiment of the present invention can reach following beneficial effect Really:
1st, manually operated and by network proxy cache application program using automation framework automatic imitation with applying journey The business datum of sequence server interaction, solved in the past test and appraisal application product efficiency manually it is low, the problem of easily malfunction.
2nd, multiple utility program parallel testing mutually can not be done between each application program using scheme of the embodiment of the present invention Disturb.
3rd, proxy server can persist the business datum that application program often takes turns test, in multi version iteration tests The operational indicator variation tendency of each version application program can be obtained.
4th, using parameter configuration scheme, the difficulty of Application testing is reduced.
It is understood that the embodiment of the present invention can be used in numerous general or special purpose computing system environments or configuration. For example:Personal computer, server computer, handheld device or portable set, laptop device, multicomputer system, base In the system of microprocessor, set top box, programmable consumer-elcetronics devices, network PC, minicom, mainframe computer, bag Include DCE of any of the above system or equipment etc..
The embodiment of the present invention can be described in the general context of computer executable instructions, example Such as program module.Usually, program module include performing particular task or realize the routine of particular abstract data type, program, Object, component, data structure etc..The embodiment of the present invention can also be put into practice in a distributed computing environment, it is distributed at these In computing environment, task is performed by the remote processing devices connected by communication network.In a distributed computing environment, Program module can be located at including in the local and remote computer-readable storage medium including storage device.
It should be noted that herein, the relational terms of such as " first " and " second " or the like are used merely to one Individual entity or operation make a distinction with another entity or operation, and not necessarily require or imply these entities or operate it Between there is any this actual relation or order.Moreover, term " comprising ", "comprising" or its any other variant are intended to Cover including for nonexcludability, so that process, method, article or equipment including a series of key elements not only include those Key element, but also other key elements including being not expressly set out, or also include for this process, method, article or set Standby intrinsic key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that Also there is other identical element in the process including the key element, method, article or equipment.
Those skilled in the art will readily occur to this hair after considering specification and putting into practice inventive embodiments disclosed herein Other embodiments of bright embodiment.Any modification, purposes or the adaptability that the application is intended to the embodiment of the present invention become Change, these modifications, purposes or adaptations follow the general principle of the embodiment of the present invention and including the embodiment of the present invention Undocumented common knowledge or conventional techniques in the art.Description and embodiments be considered only as it is exemplary, The true scope and spirit of the embodiment of the present invention are pointed out by following claim.
It should be appreciated that the accurate knot that the embodiment of the present invention is not limited to be described above and is shown in the drawings Structure, and various modifications and changes can be being carried out without departing from the scope.The scope of the embodiment of the present invention is only by appended right It is required that to limit.

Claims (10)

1. a kind of method of test application program, it is characterised in that including:
According to automatic test script, simulated operation order is sent to the target terminal for being provided with application program to be measured;
Receive target terminal and the service request information sent after the simulated operation order is performed in application program to be measured;
Receive the service response message that apps server is fed back according to the service request information;
According to the service request information and the service response message, the evaluating result of the application program to be measured is generated.
2. according to the method described in claim 1, it is characterised in that the automatic test script of basis, to be provided with it is to be measured should Simulated operation order is sent with the target terminal of program, including:
Configure application program simulated environment to be measured;
In the application program simulated environment, automatic test script is run;
According to the operation result of the automatic test script, simulated operation is sent to the target terminal for being provided with application program to be measured Order.
3. method according to claim 2, it is characterised in that be deployed with and answered with to be measured in the application program simulated environment With the corresponding simulated operation control of each operational controls in program;
The automatic test script is the script that simulated operation is carried out to the simulated operation control.
4. method according to claim 2, it is characterised in that the automatic test script is contained in configuration file;
Configuration information and target terminal information are also included in the configuration file, wherein, the configuration information is automatic test pin The information of analog subscriber input in this running;The target terminal information is target terminal corresponding to the configuration file Identification information;
The operation result according to the automatic test script, sends to the target terminal for being provided with application program to be measured and simulates Operational order, including:
According to the operation result of automatic test script, simulated operation order is generated;
The configuration information that the operation simulated operation order needs is determined from configuration file;
Target terminal information in configuration file, determines the corresponding target terminal of simulated operation order;
To the target terminal determined according to target terminal information, send the simulated operation order and run the simulated operation Order the configuration information needed.
5. method according to any one of claim 1 to 4, it is characterised in that receive the service request information and/ Or after receiving the service response message, methods described also includes:
It is determined that whether the service request information and/or service response message that receive are pre-set business kind of message;
If the service request information and/or service response message that receive are the message of pre-set business type, storage is received Service request information and/or service response message.
6. a kind of system of test application program application program, it is characterised in that including:Test triggering terminal and test and appraisal terminal;
The test triggering terminal, is configured as according to automatic test script, to the target terminal for being provided with application program to be measured Send simulated operation order;
The test and appraisal terminal, is configured as reception target terminal and hair after the simulated operation order is performed in application program to be measured The service request information gone out;Receive the service response message that apps server is fed back according to the service request information;Root According to the service request information and the service response message, the evaluating result of the application program to be measured is generated.
7. system according to claim 6, it is characterised in that the test triggering terminal, is specifically configured to:
Configure application program simulated environment to be measured;
In the application program simulated environment, automatic test script is run;
According to the operation result of the automatic test script, simulated operation is sent to the target terminal for being provided with application program to be measured Order.
8. system according to claim 7, it is characterised in that be deployed with and answered with to be measured in the application program simulated environment With the corresponding simulated operation control of each operational controls in program;The automatic test script is that the simulated operation control is entered The script of row simulated operation.
9. system according to claim 7, it is characterised in that the automatic test script is contained in configuration file;
Configuration information and target terminal information are also included in the configuration file, wherein, the configuration information is automatic test pin The information of analog subscriber input in this running;The target terminal information is target terminal corresponding to the configuration file Identification information;
The test triggering terminal, is specifically configured to:According to the operation result of automatic test script, generation simulated operation life Order;The configuration information that the operation simulated operation order needs is determined from configuration file;Target in configuration file is whole Client information, determines the corresponding target terminal of simulated operation order;To the target terminal determined according to target terminal information, send The simulated operation order and the configuration information for running the simulated operation order needs.
10. the system according to any one of claim 6 to 9, it is characterised in that the test and appraisal terminal receives the clothes Business request message and/or after receiving the service response message, the test and appraisal terminal is additionally configured to:
It is determined that whether the service request information and/or service response message that receive are pre-set business kind of message;
If the service request information and/or service response message that receive are the message of pre-set business type, storage is received Service request information and/or service response message.
CN201610639209.1A 2016-08-05 2016-08-05 A kind of method and system of test application program Pending CN107092555A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610639209.1A CN107092555A (en) 2016-08-05 2016-08-05 A kind of method and system of test application program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610639209.1A CN107092555A (en) 2016-08-05 2016-08-05 A kind of method and system of test application program

Publications (1)

Publication Number Publication Date
CN107092555A true CN107092555A (en) 2017-08-25

Family

ID=59646066

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610639209.1A Pending CN107092555A (en) 2016-08-05 2016-08-05 A kind of method and system of test application program

Country Status (1)

Country Link
CN (1) CN107092555A (en)

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109144850A (en) * 2018-07-23 2019-01-04 上海携程商务有限公司 The test method interactively communicated and system of mobile terminal
CN109299011A (en) * 2018-09-26 2019-02-01 深圳壹账通智能科技有限公司 A kind of test method and system of application program
CN109413678A (en) * 2018-12-25 2019-03-01 欧普照明股份有限公司 A kind of Wi-Fi module automatic test approach and test macro
CN109583685A (en) * 2018-10-15 2019-04-05 平安科技(深圳)有限公司 Terminal assessment method, device, computer equipment and storage medium
CN109598531A (en) * 2017-09-30 2019-04-09 北京国双科技有限公司 A kind of generation method and verification method of monitoring code
CN109960645A (en) * 2017-12-22 2019-07-02 迈普通信技术股份有限公司 Script testing method, device and script test macro
CN110505352A (en) * 2018-05-17 2019-11-26 腾讯科技(深圳)有限公司 Call quality test method, system, computer equipment and computer storage medium
CN110825985A (en) * 2018-08-06 2020-02-21 阿里巴巴集团控股有限公司 Data acquisition system, method and device, control equipment and proxy equipment
CN110908905A (en) * 2019-11-15 2020-03-24 北京博睿宏远数据科技股份有限公司 Method, device, equipment and medium for measuring transaction speed of security dealer APP
CN111708711A (en) * 2020-06-23 2020-09-25 湖南快乐阳光互动娱乐传媒有限公司 AB test method and device, storage medium and electronic equipment
CN111830390A (en) * 2019-04-18 2020-10-27 中科寒武纪科技股份有限公司 Test method and related product
CN112925713A (en) * 2021-03-03 2021-06-08 展讯通信(天津)有限公司 Service testing method, device, system, storage medium and computer equipment
CN113032251A (en) * 2021-03-11 2021-06-25 北京百度网讯科技有限公司 Method, device and storage medium for determining service quality of application program
CN113836040A (en) * 2021-11-03 2021-12-24 盐城金堤科技有限公司 Application program testing method and device, computer storage medium and electronic equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102436416A (en) * 2011-09-17 2012-05-02 北京迈凯互动网络科技有限公司 Testing system and method for mobile equipment
US20120124074A1 (en) * 2010-11-11 2012-05-17 Verizon Patent And Licensing Inc. Method and system for testing client-server applications
CN104699612A (en) * 2015-03-25 2015-06-10 北京嘀嘀无限科技发展有限公司 Processing method, equipment and system used in software testing
CN104978263A (en) * 2014-04-09 2015-10-14 腾讯科技(深圳)有限公司 Mobile terminal application program test method and mobile terminal application program test system
CN105512019A (en) * 2014-09-24 2016-04-20 腾讯科技(深圳)有限公司 Method and device for obtaining operating state of mobile terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120124074A1 (en) * 2010-11-11 2012-05-17 Verizon Patent And Licensing Inc. Method and system for testing client-server applications
CN102436416A (en) * 2011-09-17 2012-05-02 北京迈凯互动网络科技有限公司 Testing system and method for mobile equipment
CN104978263A (en) * 2014-04-09 2015-10-14 腾讯科技(深圳)有限公司 Mobile terminal application program test method and mobile terminal application program test system
CN105512019A (en) * 2014-09-24 2016-04-20 腾讯科技(深圳)有限公司 Method and device for obtaining operating state of mobile terminal
CN104699612A (en) * 2015-03-25 2015-06-10 北京嘀嘀无限科技发展有限公司 Processing method, equipment and system used in software testing

Cited By (23)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109598531A (en) * 2017-09-30 2019-04-09 北京国双科技有限公司 A kind of generation method and verification method of monitoring code
CN109598531B (en) * 2017-09-30 2021-05-25 北京国双科技有限公司 Monitoring code generation method and verification method
CN109960645B (en) * 2017-12-22 2022-10-18 迈普通信技术股份有限公司 Script test method and device and script test system
CN109960645A (en) * 2017-12-22 2019-07-02 迈普通信技术股份有限公司 Script testing method, device and script test macro
CN110505352A (en) * 2018-05-17 2019-11-26 腾讯科技(深圳)有限公司 Call quality test method, system, computer equipment and computer storage medium
CN110505352B (en) * 2018-05-17 2021-09-24 腾讯科技(深圳)有限公司 Call quality testing method, system, computer device and computer storage medium
CN109144850A (en) * 2018-07-23 2019-01-04 上海携程商务有限公司 The test method interactively communicated and system of mobile terminal
CN109144850B (en) * 2018-07-23 2022-02-11 上海携程商务有限公司 Method and system for testing interactive communication of mobile terminal
CN110825985A (en) * 2018-08-06 2020-02-21 阿里巴巴集团控股有限公司 Data acquisition system, method and device, control equipment and proxy equipment
CN110825985B (en) * 2018-08-06 2023-07-07 阿里巴巴(北京)软件服务有限公司 Data acquisition system, method, device, control equipment and proxy equipment
CN109299011A (en) * 2018-09-26 2019-02-01 深圳壹账通智能科技有限公司 A kind of test method and system of application program
CN109583685A (en) * 2018-10-15 2019-04-05 平安科技(深圳)有限公司 Terminal assessment method, device, computer equipment and storage medium
CN109413678A (en) * 2018-12-25 2019-03-01 欧普照明股份有限公司 A kind of Wi-Fi module automatic test approach and test macro
CN111830390A (en) * 2019-04-18 2020-10-27 中科寒武纪科技股份有限公司 Test method and related product
CN111830390B (en) * 2019-04-18 2023-08-25 中科寒武纪科技股份有限公司 Test method and related product
CN110908905A (en) * 2019-11-15 2020-03-24 北京博睿宏远数据科技股份有限公司 Method, device, equipment and medium for measuring transaction speed of security dealer APP
CN111708711A (en) * 2020-06-23 2020-09-25 湖南快乐阳光互动娱乐传媒有限公司 AB test method and device, storage medium and electronic equipment
CN111708711B (en) * 2020-06-23 2023-04-07 湖南快乐阳光互动娱乐传媒有限公司 AB test method and device, storage medium and electronic equipment
CN112925713A (en) * 2021-03-03 2021-06-08 展讯通信(天津)有限公司 Service testing method, device, system, storage medium and computer equipment
CN112925713B (en) * 2021-03-03 2023-03-10 展讯通信(天津)有限公司 Service testing method, device, system, storage medium and computer equipment
CN113032251A (en) * 2021-03-11 2021-06-25 北京百度网讯科技有限公司 Method, device and storage medium for determining service quality of application program
CN113032251B (en) * 2021-03-11 2024-01-09 北京百度网讯科技有限公司 Method, device and storage medium for determining service quality of application program
CN113836040A (en) * 2021-11-03 2021-12-24 盐城金堤科技有限公司 Application program testing method and device, computer storage medium and electronic equipment

Similar Documents

Publication Publication Date Title
CN107092555A (en) A kind of method and system of test application program
CN102231131B (en) Testing software in electronic device
CN109302522B (en) Test method, test device, computer system, and computer medium
US7295945B2 (en) Method and system for testing assembled mobile devices
CN109960651A (en) Bury a test method, system, device and computer readable storage medium
CN106776294B (en) Automatic android mobile phone testing method and system
CN108345543B (en) Data processing method, device, equipment and storage medium
CN108829597A (en) Software crowd surveys method and device, computer installation and readable storage medium storing program for executing
CN110221982A (en) Performance test methods, device, equipment and the readable storage medium storing program for executing of operation system
Zhang et al. Crowdsourced testing services for mobile apps
CN102693183A (en) Method and system for realizing automatic software testing
CN107659455B (en) Method, storage medium, device and system for Mock data of iOS (internet operating system) end
CN108763086A (en) Script method for recording, terminal and computer readable storage medium based on remote real machine
CN106021112A (en) Program testing system, method and device
CN107943683A (en) A kind of test script generation method, device, electronic equipment and storage medium
CN107193743A (en) One kind application assessment method, device, computer equipment and storage medium
CN107766234A (en) A kind of assessment method, the apparatus and system of the webpage health degree based on mobile device
CN106384399A (en) IOT (Internet of Things)-office-oriented network attendance method
CN107992424A (en) Automatic test analysis method, application server and computer-readable recording medium
CN105868058A (en) Cross-machine room test method and apparatus
CN106598836A (en) Method and system for testing client software
CN114546814A (en) Recording playback method, recording playback device and storage medium
CN110674023B (en) Interface testing method and device
CN103955425A (en) Webpage (WEB) exploring testing device and method
CN106302011A (en) Method of testings based on multiterminal and terminal

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

Application publication date: 20170825