CN104978263B - A kind of mobile terminal applied program testing method and system - Google Patents

A kind of mobile terminal applied program testing method and system Download PDF

Info

Publication number
CN104978263B
CN104978263B CN201410139517.9A CN201410139517A CN104978263B CN 104978263 B CN104978263 B CN 104978263B CN 201410139517 A CN201410139517 A CN 201410139517A CN 104978263 B CN104978263 B CN 104978263B
Authority
CN
China
Prior art keywords
test
equipment simulator
simulator
equipment
assignment
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.)
Active
Application number
CN201410139517.9A
Other languages
Chinese (zh)
Other versions
CN104978263A (en
Inventor
符阳辉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201410139517.9A priority Critical patent/CN104978263B/en
Publication of CN104978263A publication Critical patent/CN104978263A/en
Application granted granted Critical
Publication of CN104978263B publication Critical patent/CN104978263B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

A kind of mobile terminal applied program testing method, it include: the test assignment from server acquisition test application program and relevant test file, test file includes application program to be measured and test script, confirm equipment simulator corresponding with test assignment, the application program to be measured is installed in the equipment simulator, the test script is executed, obtains test result after the test script is finished.In addition, the present invention also provides a kind of mobile terminal Application testing systems.Successfully tested rate can be improved in above-mentioned mobile terminal applied program testing method and system, reduces testing cost.

Description

A kind of mobile terminal applied program testing method and system
Technical field
The present invention relates to field of computer technology more particularly to a kind of mobile terminal applied program testing method and systems.
Background technique
Client application environment based on mobile terminal is very complicated, and in the survey of mobile terminal application (APP, APPlication) It during examination, generally requires by being comprehensively adapted to test and realizes that test case covers different scenes comprehensively, to guarantee The quality of mobile terminal APP.The adaptation test of mobile terminal APP mainly includes that operating system (OS, Opration System) adaptation is surveyed Examination and the test of user interface (UI, User Interface) adaptation, but this process workload is huge, is typically chosen automation Means of testing improves efficiency.
The automation adaptation measuring technology of mobile terminal APP, which mainly passes through deployment beyond the clouds, at present has different hardware and OS The test terminal prototype of configuration, tester submits APP to be measured and select to test after type to cloud to be started to execute adaptation test Task, test macro can scan the control or page elements in mobile terminal APP to be measured, and according to the type of control and element into Test is completed in the operations such as row click, sliding and input.
But above in the prior art, APP test macro depends on the test terminal prototype for meeting specific configuration condition, is The integrality for guaranteeing adaptation test, needs to buy a large amount of test equipment and safeguards to equipment, and need to establish computer room These test equipments are managed, testing cost is higher.And the APP test macro based on prototype is to the efficiency of management of test resource Lower, test equipment breaks down, and the management cost that may result in test equipment increases or be unable to complete test.
Summary of the invention
In view of this, the present invention provides a kind of mobile terminal application program adaptation test method and system, analog machine can control The test for completing APP improves the efficiency of test, reduces testing cost.
Mobile terminal application program provided in an embodiment of the present invention is adapted to test method, comprising: obtains test from server and answers Test assignment and test file relevant to the test assignment with program, the test file includes application program to be measured And test script;Confirm equipment simulator corresponding with the test assignment;By the application program to be measured and the test Script transmission gives the equipment simulator;The application program to be measured is installed in the equipment simulator, executes the test Script;Test result is obtained after the test script is finished.
Mobile terminal application program provided in an embodiment of the present invention is adapted to test method, comprising: receives test application program Test assignment and test file relevant to the test assignment include the hardware configuration for test in the test assignment Parameter, the test file include application program to be measured and test script;Select the equipment with the hardware configuration parameter Simulator, as the equipment simulator for executing the test assignment;To the measuring and calculation machine hair where the equipment simulator of selection The test assignment, and test file relevant to the test assignment are sent, so that the equipment simulator executes the survey Trial business;Receive the test result that the measuring and calculation machine is sent.
Mobile terminal application program provided in an embodiment of the present invention is adapted to test method, comprising: server receives test application The test assignment of program, test file relevant to the test assignment, and execute the corresponding hardware of the test assignment and match Parameter is set, the test file includes application program to be measured and test script;Have in the server selection measuring and calculation machine There is the equipment simulator of the hardware configuration parameter as the equipment simulator for executing the test assignment;The server is to institute It states measuring and calculation machine and sends the test assignment, and test file relevant to the test assignment;The measuring and calculation machine Test assignment and test file relevant to the test assignment from server acquisition test application program;The survey It tries computer and confirms equipment simulator corresponding with the test assignment;The measuring and calculation machine by the application program to be measured and The test script is transferred to the equipment simulator;The measuring and calculation machine is installed described to be measured in the equipment simulator Application program executes the test script;The measuring and calculation machine obtains test result after the test script is finished, And it is sent to the server.
Mobile terminal application program provided in an embodiment of the present invention is adapted to test macro, comprising:
Server and measuring and calculation machine;Wherein, the server, for receive the test assignment of test application program with And test file relevant to the test assignment, it is described comprising the hardware configuration parameter for test in the test assignment Test file includes application program to be measured and test script, select the equipment simulator with the hardware configuration parameter as The equipment simulator for executing the test assignment sends the survey to the measuring and calculation machine where the equipment simulator of selection Trial business, and test file relevant to the test assignment;The measuring and calculation machine is surveyed for obtaining from the server Test assignment and test file relevant to the test assignment, the confirmation for trying application program are corresponding with the test assignment The application program to be measured and the test script are transferred to the equipment simulator, in the equipment mould by equipment simulator The installation application program to be measured, executes the test script in quasi- device, and test is obtained after the test script is finished As a result, and being sent to the server.
Application program adaptation method in moved end provided in an embodiment of the present invention and system obtain test application program from server Test assignment, application program to be measured and test script, which is installed in equipment simulator, executes the survey Training sheet replaces test of the prototype to mobile terminal APP using equipment simulator, improves successfully tested rate, reduces testing cost, mark Remember the state of equipment simulator, and the case where state of equipment simulator, increase, deletion is sent to server, improves to survey Try the efficiency of management of resource.
For above and other objects, features and advantages of the invention can be clearer and more comprehensible, preferred embodiment is cited below particularly, And cooperate institute's accompanying drawings, it is described in detail below.
Detailed description of the invention
Fig. 1 is the structural schematic diagram that the mobile terminal application program that first embodiment provides is adapted to test macro.
Fig. 2 is measuring and calculation machine structural block diagram.
Fig. 3 is a signal of the test device that the mobile terminal application program that first embodiment provides is adapted in test macro Figure.
Another for the test device that Fig. 4 is adapted in test macro for the mobile terminal application program that first embodiment provides shows It is intended to.
Another for the test device that Fig. 5 is adapted in test macro for the mobile terminal application program that first embodiment provides shows It is intended to.
Another for the test device that Fig. 6 is adapted in test macro for the mobile terminal application program that first embodiment provides shows It is intended to.
Fig. 7 is that the mobile terminal application program that second embodiment provides is adapted to test method schematic diagram.
Fig. 8 is that the mobile terminal application program that 3rd embodiment provides is adapted to test method schematic diagram.
Fig. 9 is that the mobile terminal application program that fourth embodiment provides is adapted to test method schematic diagram.
Figure 10 is that the mobile terminal application program that the 5th embodiment provides is adapted to test method schematic diagram.
Figure 11 is that the mobile terminal application program that sixth embodiment provides is adapted to test method schematic diagram.
Figure 12 is that the mobile terminal application program that the 7th embodiment provides is adapted to test method schematic diagram.
Figure 13 is that the mobile terminal application program that the 8th embodiment provides is adapted to test method schematic diagram.
Figure 14 is that the mobile terminal application program that the 9th embodiment provides is adapted to test method schematic diagram.
Figure 15 is that the mobile terminal application program that the tenth embodiment provides is adapted to test method schematic diagram.
Figure 16 is the interaction diagrams for the mobile terminal applied program testing method that the tenth embodiment provides.
Specific embodiment
Further to illustrate that the present invention is the technical means and efficacy realizing predetermined goal of the invention and being taken, below in conjunction with Attached drawing and preferred embodiment, to specific embodiment, structure, feature and its effect according to the present invention, detailed description is as follows.
The embodiment of the present invention provides a kind of mobile terminal application program adaptation test method, by control equipment simulating machine with complete At the test of mobile terminal APP, the efficiency of test is improved, reduces testing cost.
First embodiment provides a kind of mobile terminal application program adaptation test macro, referring to Fig. 1, the system includes: clothes Business device 100 and measuring and calculation machine 200.
Wherein, by network connection, server 100 can be cloud service for server 100 and multiple measuring and calculation machines 200 Device, one agency (Agent) module 201 of setting and one or more equipment simulators 202 in a measuring and calculation machine 200, this One Agent module 201 manages the one or more equipment simulator 202, and Agent module 201 is used as server 100 and equipment Bridge between simulator 202, according to the instruction of server 100, management equipment simulator 202 completes test assignment, the test Task is differentiated for testing mobile terminal APP at different operating system (OS, Operating System), and with different screen The suitability of the user interface (UI, User Interface) of rate, that is, whether can have in the OS of different editions good Compatibility, and be displayed in full screen on the screen with different screen resolutions, complete, picture is shown when running the APP to be measured With different screen sizes.
Specifically, server 100 receive tester submit mobile terminal APP test assignment and with the test assignment phase The test file of pass, comprising the hardware configuration parameter for test in the test assignment, the test file include APP to be measured and The corresponding test script of the APP to be measured, wherein the APP to be measured is mobile terminal APP, which includes operating system Version and screen resolution.For server 100 from all measuring and calculation machines 200 having connected, selection has hardware configuration ginseng Several equipment simulators is as the equipment simulator for executing the test assignment, to the measuring and calculation where the equipment simulator of selection Machine sends the test assignment, and test file relevant to the test assignment.
Selection executes the equipment simulator of the test assignment and connects specifically, there being all and server 100 in server 100 The hardware configuration parameter of the equipment simulator 202 in measuring and calculation machine 200 connect, the quantity for executing test assignment and execute test The information such as the state of task, to have this hard for inquiry in equipment simulator have been turned on and for preset condition in server 100 The equipment simulator of part configuration parameter will be not carried out the shortest equipment simulator of test assignment queue as the execution test assignment Equipment simulator, the preset condition be indicate that the equipment simulator is in be not carried out the equipment simulator of test assignment, for example, The preset condition is idle state.It can be executed too much to avoid some in the equipment simulator 104 with same configuration in this way Test assignment, and some execute very little test assignment, thus the test of the balanced equipment simulator 104 with same configuration Load.If having been turned on and in the simulator with the hardware configuration parameter, there is no the equipment simulatings that state is the preset condition Device, that is, all equipment simulators then obtain all measuring and calculation machines 200 having connected all in the state of test assignment Load information, the load information include: the memory usage of the measuring and calculation machine and the utilization rate of CPU, are judged whether there is negative Carry the measuring and calculation machine for being less than default value, and if it exists, then minimum less than loading in the measuring and calculation machine of default value to load Measuring and calculation machine send instruction, indicate to establish in the minimum measuring and calculation machine of the load and start one have the hardware configuration The equipment simulator of parameter, the default value can be arranged according to practical situations, for example, 60%.Load is less than if it does not exist The measuring and calculation machine of the default value, that is, the load of all measuring and calculation machines 200 is all larger than default value, then sets all It in standby simulator, selects one and is not carried out the shortest equipment simulator of test assignment queue, as setting for the execution test assignment Standby simulator, can be the tail of the queue that the test assignment for testing the APP to be measured is placed on to test queue, is in the equipment simulator When preset condition, the test assignment for testing the APP to be measured can preferentially be executed.Equipment simulator institute of the server 100 to selection Measuring and calculation machine 200 send the test assignment, and test file relevant to the test assignment.Completion to be tested, connects The test result that Acceptance Tests computer 200 is sent, analyzes the test result, and generate test report, then with Email Or other scheduled modes export the test report, check for tester.
Measuring and calculation machine 200 from server 100 obtain test application program test assignment and with the test assignment phase The test file of pass, the mode of acquisition can be 200 active push of server, be also possible to actively obtain from server 200, Confirm equipment simulator corresponding with the test assignment, the equipment simulating for executing the test assignment that Agent module 201 will confirm that The status indication of device is first state, which can be busy condition, be also possible to working condition, indicates the equipment mould Quasi- device is carrying out test assignment.Agent module 201 updates the Status Change real-time synchronization of equipment simulator 202 to service Device 202.
Further, the application program to be measured and the test script are transferred to the equipment simulator, in the equipment simulating The application program to be measured is installed in device, executes the test script, Agent module 201 can audiomonitor simulator 202 operation shape State, when detect execute test assignment equipment simulator 202 break down, the test assignment can not be continued to execute, then Agent Module 201 is established and starts an equipment simulator identical with the equipment simulator hardware configuration to break down, hardware configuration Including system version, screen resolution etc..Hardware configuration is identical, will not influence the test result to APP, guarantees test result Correctness.Test assignment queue in the equipment simulator to break down is moved to and is continued on the new equipment simulator of starting It executes, so that test assignment is unaffected, to increase the stability of test macro, and closes the equipment simulating to break down Device, timely free system resources.
It should be noted that Agent module 201 and equipment simulator 202 pass through transmission control in measuring and calculation machine 200 Agreement/Internet Protocol (TCP/IP, Transmission Control Protocol/Internet Protocol) processed It is communicated, TCP/IP is also known as internet suite of protocol, is a network communication model and a whole network transport protocol man Race is the basic communication framework of internet.It is often commonly referred to as TCP/IP protocol suite, abbreviation TCP/IP.Realize Agent module Test assignment on 201 pairs of equipment simulators 202 is executed, is managed, is dispatched, independent of USB data line, there is no by Cause to occur connecting unstable situation with equipment simulator 202 in USB electricity shortage or failure.It has been executed to the test script Test result is obtained after finishing, which can be the implementing result of the test script without verifying, then Agent module 201 verify the test result, are also possible to the test result obtained after equipment simulator 202 verifies.
When test result is the implementing result of the test script, Agent module 201 verifies the execution knot of the test case Whether fruit meets expected test target, and test script is made of multiple test cases, should after all test cases are finished It test script namely is finished, Agent module 201 obtains test script from the equipment simulator for executing the script to be measured It is after execution as a result, also obtaining application crash (Crash) log in the test script implementation procedure and/or applying journey Operation screenshot of the sequence without each step in response (ANR, Application Not Responding) log and implementation procedure. Whether the implementing result of 201 check test script of Agent module meets expected test target, and check results are sent to service Device 100.
The content of verification has the following two kinds: first is that verifying in the data of the implementing result of the test script with the presence or absence of preset Control determines whether the APP to be measured is adapted to current OS system with this.Specifically, which includes: primary (Native) page Face control, Web page control.Native page control and Web page control can be supported in the test script, therefore, executed The test script can test the mobile terminal APP for existing simultaneously Native page control and Web page control.If in test script Implementing result data in verification to there are the preset controls, then it represents that there are primary (Native) page controls in the APP to be measured Part, Web page control, or both all exist.So, in current OS system version, the actual test result of the APP to be measured with Expected test result is consistent, and is adapted to current OS system.Second is that verifying whether there is in the data of the implementing result of the test script Screenshot capture identical with preset picture, the suitability of UI is determined with this.Specifically, which is the pre- of the APP to be measured Phase test result screen screenshot, if verifying in the data of the implementing result of the corresponding test script of the APP to be measured, there are some screens Curtain screenshot is identical as preset picture, then it represents that the APP to be measured can be displayed in full screen on mobile terminal, with mobile terminal screen size phase Matching.
When the test result is the test result to the APP to be tested, after the test script is finished, set from this Verification result is obtained in standby simulator and is sent to server 200 as the test result to the APP to be measured.The content of verifying with The content that above-mentioned Agent module 201 is verified is identical.
It further, is the second shape by the status indication of the equipment simulator after Agent module 201 obtains implementing result State, second state can be idle state, or non-working condition indicates that the equipment simulator is completed the test and appoints Business, Agent simulation 201 update the Status Change real-time synchronization of each equipment simulator 202 to server 100.And unload should be to Survey application program and the test script of the application program to be measured.Restore the test environment on the equipment simulator, under executing One test assignment is prepared.
The case where Agent module 201 can be with the increase or deletion of audiomonitor simulator 202, when increasing in system or delete When except equipment simulator 202, the information that equipment simulator 202 is increased or deleted by Agent module 201 is sent to server 100, So that server 100 obtains the change situation of equipment simulator 202 in time.When test assignment is more, it can dynamically increase test The quantity of measuring and calculation machine 200 in system, and start multiple equipment simulator 200 using Agent module 201.
The other content of test macro in the present embodiment refers to the specific descriptions of following each embodiments.
In the present embodiment, the test assignment, application program to be measured and test foot of test application program are obtained from server This, the application program to be measured is installed in equipment simulator, executes the test script, replaces prototype to shifting using equipment simulator The test of moved end APP improves successfully tested rate, reduces testing cost, improves the efficiency of management to test resource.
Referring to Fig. 2, Fig. 2 shows a kind of computer configuation block diagrams.Measuring and calculation machine 200 includes memory 204, storage Controller 206, one or more (one is only shown in figure) processors 208, Peripheral Interface 210, radio-frequency module 212.These groups Part is mutually communicated by one or more communication bus/signal wire 222.
It is appreciated that structure shown in Fig. 2 is only to illustrate, measuring and calculation machine 200 may also include it is more than shown in Fig. 2 or The less component of person, or with the configuration different from shown in Fig. 2.Each component shown in Fig. 2 can using hardware, software or A combination thereof is realized.
Memory 204 can be used for storing software program and module, as in the embodiment of the present invention in measuring and calculation machine Mobile terminal application program is adapted to test method and the corresponding program instruction/module of device, and processor 208 is stored in by operation Software program and module in memory controller 206 are realized above-mentioned thereby executing various function application and data processing Improve successfully tested rate in measuring and calculation machine, the method for reducing testing cost.
Memory 204 may include high speed random access memory, may also include nonvolatile memory, such as one or more magnetic Property storage device, flash memory or other non-volatile solid state memories.In some instances, memory 204 can further comprise The memory remotely located relative to processor 208, these remote memories can pass through network connection to measuring and calculation machine 200.The example of above-mentioned network includes but is not limited to internet, intranet, local area network, mobile radio communication and combinations thereof.Place Reason device 208 and other possible components can carry out the access of memory 204 under the control of storage control 206.
Various input/output devices are couple CPU and memory 204 by Peripheral Interface 210.The operation of processor 208 is deposited Various softwares, instruction in reservoir 204 are to execute the various functions of measuring and calculation machine 200 and carry out data processing.
In some embodiments, Peripheral Interface 210, processor 208 and storage control 206 can be in one single chips It realizes.In some other example, they can be realized by independent chip respectively.
Radio-frequency module 212 is used to receive and transmit electromagnetic wave, realizes the mutual conversion of electromagnetic wave and electric signal, thus with Communication network or other equipment are communicated.Radio-frequency module 212 may include various existing for executing the electricity of these functions Circuit component, for example, antenna, RF transceiver, digital signal processor, encryption/deciphering chip, subscriber identity module (SIM) card, Memory etc..Radio-frequency module 212 can be communicated or be led to various networks such as internet, intranet, wireless network Wireless network is crossed to be communicated with other equipment.Above-mentioned wireless network may include cellular telephone networks, WLAN or Metropolitan Area Network (MAN).Various communication standards, agreement and technology can be used in above-mentioned wireless network, and including but not limited to the whole world is mobile logical Letter system (Global System for Mobile Communication, GSM), enhanced mobile communication technology (Enhanced Data GSM Environment, EDGE), Wideband CDMA Technology (wideband code division Multiple access, W-CDMA), Code Division Multiple Access (Code division access, CDMA), time division multiple access technology (time division multiple access, TDMA), bluetooth, adopting wireless fidelity technology (Wireless, Fidelity, WiFi) (such as American Institute of Electrical and Electronics Engineers's standard IEEE 802.11a, IEEE802.11b, IEEE802.11g and/or IEEE802.11n), the networking telephone (Voice over internet protocal, VoIP), worldwide interoperability for microwave accesses (Worldwide Interoperability for Microwave Access, Wi-Max), other be used for mail, Instant Messenger The agreement and any other suitable communications protocol of news and short message, or even may include that those are not developed currently yet Agreement.
Specifically, Fig. 3 is that the mobile terminal application program that first embodiment provides is adapted to the test device in test macro Schematic diagram can be applied in measuring and calculation machine 200 shown in Fig. 2, which includes: acquiring unit 31, confirmation unit 32, transmission Unit 33 and test cell 34;
Acquiring unit 31, for obtaining the test assignment of test application program and related to the test assignment from server Test file, which includes application program to be measured and test script;
Confirmation unit 32, for confirming equipment simulator corresponding with the test assignment of the acquisition of acquiring unit 31;
Transmission unit 33, the application program to be measured and the test script for will confirm that the acquisition of unit 32 are transferred to confirmation The equipment simulator that unit 32 confirms;
Test cell 34, the application program to be measured transmitted for installing transmission unit 33 in the equipment simulator, holds The test script that row transmission unit 33 transmits;
Acquiring unit 31 is also used to obtain test result after the test script is finished.
Each unit realizes the process of respective function in the present embodiment, refers to the description of aforementioned embodiment illustrated in fig. 1, herein It repeats no more.
Above-mentioned test device obtains the test assignment, application program to be measured and test foot of test application program from server This, the application program to be measured is installed in equipment simulator, executes the test script, replaces prototype to shifting using equipment simulator The test of moved end APP improves successfully tested rate, reduces testing cost, improves the efficiency of management to test resource.
Referring to Fig. 4, Fig. 4 is the test dress that the mobile terminal application program that first embodiment provides is adapted in test macro It sets, can be applied in measuring and calculation machine 200 shown in Fig. 2, it is similar to test device shown in Fig. 3, the difference is that, the survey Trial assembly is set further include: establishes unit 35, start unit 36, migration units 37, closing unit 38, communication unit 39, marking unit 40, unloading unit 41, verification unit 42 and transmission unit 43.
Wherein, unit 35 is established, for when detecting that the equipment simulator breaks down, then establishing one and the equipment mould The quasi- identical equipment simulator of device hardware configuration.
Start unit 36, for starting the equipment mould identical with the equipment simulator hardware configuration for establishing the foundation of unit 35 Quasi- device.
Migration units 37, for the test assignment queue in the equipment simulator to break down to be moved to start unit It is continued to execute on the equipment simulator of 36 startings.
Closing unit 38, for closing the equipment simulator to break down.
Communication unit 39 is communicated for being connect with the equipment simulator by TCP connection or IP.
Marking unit 40, for being first state by the status indication of the equipment simulator, and by the equipment simulator Status indication be the second state.
Unloading unit 41, for unloading the test script of the application program to be measured and the application program to be measured.
Whether verification unit 42, the implementing result for verifying the test script meet expected test target.
Transmission unit 43, for check results to be sent to the server.
Further, whether verification unit 42 are also used to verify in the data of the implementing result of the test script comprising pre- Set control.
Verification unit 42, being also used to verify in the data of the implementing result of the test script whether there is and preset picture phase Same screenshot capture.
Acquiring unit 31 is also used to after the test script is finished, and obtains verification result from the equipment simulator, Whether the verification result meets the result of expected test target for the implementing result that the equipment simulator verifies the test script.
Transmission unit 43 is also used to be sent to this for the verification result as the test result to the application program to be tested Server.
Transmission unit 43 is also used to the modification information of equipment simulator being sent to the server in real time, the modification information It include: the Status Change information of equipment simulator increase or the information and equipment simulator deleted.
Each unit realizes the process of respective function in the present embodiment, refers to the description of aforementioned embodiment illustrated in fig. 1, herein It repeats no more.
Above-mentioned test device obtains the test assignment, application program to be measured and test foot of test application program from server This, the application program to be measured is installed in equipment simulator, executes the test script, replaces prototype to shifting using equipment simulator The test of moved end APP reduces testing cost, improves successfully tested rate, improves the efficiency of management to test resource.
Referring to Fig. 5, Fig. 5 is the test dress that the mobile terminal application program that first embodiment provides is adapted in test macro It sets, can be applied in server 100 shown in FIG. 1, which includes: receiving unit 51, selecting unit 52 and transmission unit 53;
Wherein, receiving unit 51, for receiving the test assignment of test application program and relevant to the test assignment Test file, comprising the hardware configuration parameter for test in the test assignment, the test file include application program to be measured with And test script;
Selecting unit 52, for selecting the equipment simulator with the hardware configuration parameter to connect as receiving unit 51 is executed The equipment simulator for the test assignment received;
Transmission unit 53, the measuring and calculation machine where the equipment simulator for selecting to selecting unit 52 send the survey Trial business, and test file relevant to the test assignment, so that the equipment simulator that selecting unit 52 selects executes the survey Trial business;
Receiving unit 51 is also used to receive the test result of measuring and calculation machine transmission.
Each unit realizes the process of respective function in the present embodiment, refers to the description of aforementioned embodiment illustrated in fig. 1, herein It repeats no more.
In above-mentioned test device, the equipment simulator for executing test application program is selected according to test assignment, utilizes equipment Simulator replaces test of the prototype to mobile terminal application program, improves successfully tested rate, reduces testing cost, and due to equipment mould Quasi- device is easily managed, and test and management efficiency can be improved in above-mentioned test device.
Further, referring to Fig. 6, Fig. 6 is that the mobile terminal application program that first embodiment provides is adapted in test macro Test device, can be applied in server 100 shown in FIG. 1, it is similar to test device shown in fig. 5, the difference is that, The device further include: acquiring unit 54, judging unit 55 and report generation unit 56.
Further, selecting unit 52 are also used in the equipment simulator that have been turned on and state is preset condition, choosing Selecting has the hardware configuration parameter, and it is shortest to be not carried out test assignment queue in the shortest equipment simulator of test assignment queue Equipment simulator, as the equipment simulator for executing the test assignment.
If acquiring unit 54 is also used in equipment simulator have been turned on and with the hardware configuration parameter, it is not present State is the equipment simulator of preset condition, then obtains the load information of each measuring and calculation machine.
Judging unit 55 is used to judge whether there is the measuring and calculation machine that load is less than default value.
Transmission unit 53 is also used to load the measuring and calculation machine less than default value if it exists, then to the smallest test of load Computer sends instruction, which is used to indicate the smallest measuring and calculation machine of the load and establishes and start one matches with the hardware The equipment simulator for setting parameter, as the equipment simulator for executing the test assignment.
Selecting unit 52 is also used to load the measuring and calculation machine less than default value if it does not exist, then in the shape having been turned on State is not that selection is not carried out the shortest equipment simulator of test assignment queue in the equipment simulator of preset condition, should as executing The equipment simulator of test assignment.
Report generation unit 54, for generating test report according to the received test result of receiving unit 51.
Transmission unit 53 is also used to export the test report in a predetermined manner.
Each unit realizes the process of respective function in the present embodiment, refers to the description of aforementioned embodiment illustrated in fig. 1, herein It repeats no more.
In above-mentioned test device, the equipment simulator for executing test application program is selected according to test assignment, utilizes equipment Simulator replaces test of the prototype to mobile terminal application program, improves successfully tested rate, reduces testing cost, and due to equipment mould Quasi- device is easily managed, and test and management efficiency can be improved in above-mentioned test device.
Description details in mobile terminal Application testing system and device in the present embodiment not to the greatest extent, refers to following shiftings Description in each embodiment of moved end applied program testing method.
Referring to Fig. 7, second embodiment provides a kind of mobile terminal applied program testing method, can be applied to shown in Fig. 2 In measuring and calculation machine 200, this method comprises:
701, the test assignment from server acquisition test application program and test file relevant to the test assignment, The test file includes application program to be measured and test script;
One Agent module 201 and at least one equipment simulator 202 are set in one measuring and calculation machine 200, generally Multiple equipment simulator 202, in the inside of a test machine 200, which manages the one or more and sets Standby simulator 202.As the bridge between server 100 and equipment simulator 202, Agent module 201 is according to server 100 Control command, in measuring and calculation machine 200 establish and starting device simulator 202 to execute test mobile terminal APP survey Trial business, can also be according to the control command of server 100, pass hull closure simulator 202.It, can be when the test assignment is more More measuring and calculation machines 200 are configured in system, the Agent module 201 in each measuring and calculation machine 200 can manage this test All devices simulator 202 in computer 200.
Agent module 201 obtains the test assignment and survey relevant to the test assignment of APP to be measured from server 100 File is tried, which includes APP to be measured and test script corresponding with the APP to be measured.Comprising referring in the test assignment Surely the equipment simulator 202 of mobile terminal APP test assignment is completed.
The test script can use script recording tool and be recorded, wherein including multiple test case (Test Case), test case is one group of test input, execution condition and the expected results worked out for some predeterminated target, so as to It tests some Program path or verifies whether meet some particular demands.The test purpose of each test case is different, works as institute After having test case to be finished, the test script namely operation are finished, and the test assignment for testing the APP terminates.
702, confirm equipment simulator corresponding with the test assignment;
Agent module 201 confirms that the test is appointed according to the test assignment for testing the APP to be measured obtained from server 100 The specified equipment simulator 202 for completing mobile terminal APP test assignment of business.
703, the application program to be measured and the test script are transferred to the equipment simulator;
The APP to be measured and the corresponding test script of the APP to be measured are transferred to determining equipment simulating by Agent module 201 Device 202.
704, the application program to be measured is installed in the equipment simulator, executes the test script;
Agent module 201 installs the APP to be measured in the equipment simulator 202 of the determination, executes the survey of test APP Training sheet.
Later, Agent module 201 begins listening for the executive condition of test case in the test script.For example, executing The KPI of ddmlib can be called to create RemoteAndroidTestRunner when the test assignment of android system application program Example executes the test case in test script in equipment simulator 202, and by realizing connecing for ITestRunListener Mouthful to monitor the executive condition of each test case.
705, test result is obtained after the test script is finished.
Agent module 201 can monitor the executive condition of the test script, after listening to the test script and being finished, Test result is obtained from equipment simulator 202.
In the embodiment of the present invention, test assignment, application program to be measured and the survey of test application program are obtained from server Training sheet installs the application program to be measured in equipment simulator, executes the test script, replaces prototype using equipment simulator Test to mobile terminal APP improves successfully tested rate, reduces testing cost, and improve the efficiency of management to test resource.
Referring to Fig. 8, the mobile terminal applied program testing method that 3rd embodiment provides, can be applied to survey shown in Fig. 2 It tries in computer 200, embodiment illustrated in fig. 8 is similar to embodiment illustrated in fig. 7, and step 705 is after the test script is finished Before acquisition test result further include:
805, when detecting that the equipment simulator breaks down, then start one it is identical as the equipment simulator hardware configuration Equipment simulator.
Agent module 201 can audiomonitor simulator 202 operating status, when detect execute test assignment equipment Simulator 202 breaks down, and can not continue to execute the test assignment, then Agent module 201 is established and starts one and generation event The identical equipment simulator of equipment simulator hardware configuration of barrier, hardware configuration include system version, screen resolution etc..Hardware It configures identical, will not influence the test result to APP, guarantee the correctness of test result.
806, the test assignment queue in the equipment simulator to break down is moved on the equipment simulator of starting It continues to execute, and closes the equipment simulator to break down.
Test assignment queue in the equipment simulator to break down is moved to and is continued on the new equipment simulator of starting It executes, so that test assignment is unaffected, and closes the equipment simulator to break down, timely free system resources.
Step 807 is identical as the content of step 705 in embodiment illustrated in fig. 7 in the present embodiment.
In the embodiment of the present invention, test assignment, application program to be measured and the survey of test application program are obtained from server Training sheet installs the application program to be measured in equipment simulator, executes the test script, replaces prototype using equipment simulator Test to mobile terminal APP reduces testing cost, and improves the efficiency of management to test resource.When listening to the equipment simulating When device breaks down, enables a new equipment simulator identical with its hardware configuration and continue to execute test assignment, improve and survey Try success rate.
Referring to Fig. 9, the mobile terminal applied program testing method that fourth embodiment provides, can be applied to survey shown in Fig. 2 It tries in computer 200, embodiment illustrated in fig. 9 is similar to embodiment illustrated in fig. 7, and step 702 confirmation is corresponding with the test assignment After equipment simulator further include:
It 903, is first state by the status indication of the equipment simulator;
The status indication for the equipment simulator for executing the test assignment that Agent module 201 will confirm that is first state, should First state can be busy condition, be also possible to working condition, indicate that the equipment simulator is carrying out test assignment.
Step 702 confirms after equipment simulator corresponding with the test assignment further include:
907, it is the second state by the status indication of the equipment simulator, and unloads the application program to be measured and this is to be measured The test script of application program.
It is the second state by the status indication of the equipment simulator, this second after Agent module 201 obtains implementing result State can be idle state, or non-working condition indicates that the test assignment is completed in the equipment simulator, and unloads The test script of the application program to be measured and the application program to be measured.Restore the test environment on the equipment simulator, to hold The next test assignment of row is prepared.
Further, Agent module 201 can be to 100 poll of server, or receives the PUSH message of server 100, The test assignment for obtaining each equipment simulator 202 of the carry in Agent module 201 itself is set each test assignment is corresponding The state of standby simulator 202 is the first state from the second state update mark, and is its setup test data, for example, peace Fill APP to be measured test script corresponding with the APP to be measured.
The modification information of equipment simulator 202 is sent to server 100 in real time, which includes: equipment simulating Device increases or the Status Change information of the information of deletion and equipment simulator, for example, when increase or sweep equipment mould in system When quasi- device 202, the information that equipment simulator 202 is increased or deleted by Agent module 201 is sent to server 100, so that service Device 100 obtains the change situation of equipment simulator 202 in time.
It should be noted that Agent module 201 and equipment simulator 202 pass through TCP/IP in measuring and calculation machine 200 Connection is communicated, and is executed, managed, dispatched to the test assignment on equipment simulator 202 based on ICP/IP protocol realization, Independent of USB data line, there is no cause to occur connecting not with equipment simulator 202 due to USB electricity shortage or failure Stable situation.
In the present embodiment step 904,905,906 respectively with step 703,704, it is 705 corresponding, content is identical, no longer superfluous It states.
In the embodiment of the present invention, test assignment, application program to be measured and the survey of test application program are obtained from server Training sheet installs the application program to be measured in equipment simulator, executes the test script, replaces prototype using equipment simulator Test to mobile terminal APP improves successfully tested rate, reduces testing cost, the state of marking arrangement simulator, and by equipment mould The case where intending state, the increase, deletion of device is sent to server, improves the efficiency of management to test resource.
Referring to Fig. 10, the mobile terminal applied program testing method that the 5th embodiment provides, can be applied to survey shown in Fig. 2 It tries in computer 200, embodiment illustrated in fig. 10 is similar to embodiment illustrated in fig. 7, the difference is that, which includes should The implementing result of test script, then step 705, which is obtained after the test script is finished after test result, includes:
1006, whether the implementing result for verifying the test case meets expected test target, and by check results and sends Give the server.
Test script is made of multiple test cases, after all test cases are finished, the test script namely is held Row finish, Agent module 201 from execute the script to be measured equipment simulator in obtain test script execution after as a result, Also obtain application crash (Crash) log in the test script implementation procedure and/or application program without response (ANR, Application Not Responding) the operation screenshot of each step in log and implementation procedure.
Whether the implementing result of 201 check test script of Agent module meets expected test target, and check results are sent out Give server 100.
The content of verification has the following two kinds: first is that verifying in the data of the implementing result of the test script with the presence or absence of preset Control determines whether the APP to be measured is adapted to current OS system with this.
Specifically, which includes: primary (Native) page control, Web page control.It can in the test script To support Native page control and Web page control, therefore, the test script is executed, can test and exist simultaneously Native pages The mobile terminal APP of face control and Web page control.If verification is to there are the preset controls in the implementing result data of test script Part, then it represents that there are primary (Native) page control, Web page control in the APP to be measured, or both all exist.So, exist In current OS system version, the actual test result of the APP to be measured is consistent with expected test result, is adapted to current OS system.
It whether there is screenshot capture identical with preset picture in the data of the implementing result of the test script second is that verifying, The suitability of UI is determined with this.
Specifically, which is the expected test result screenshot capture of the APP to be measured, if verifying this APP pairs to be measured It is identical as preset picture that there are some screenshot captures in the data of the implementing result for the test script answered, then it represents that the APP to be measured It can be displayed in full screen on mobile terminal, match with mobile terminal screen size.
Agent module 201 verifies the result of test script in the present embodiment, judges the implementing result of test script Whether meet expected test target, and will verify as a result, that is, the test result of the APP to be measured is sent to server 100.In this way 202 resource of release device simulator can be shifted to an earlier date, shorten the period for testing APP to be measured, save the testing time.
In the embodiment of the present invention, test assignment, application program to be measured and the survey of test application program are obtained from server Training sheet installs the application program to be measured in equipment simulator, executes the test script, replaces prototype using equipment simulator Test to mobile terminal APP improves successfully tested rate, reduces testing cost, improves the efficiency of management to test resource.
Figure 11 is please referred to, the mobile terminal applied program testing method that sixth embodiment provides can be applied to survey shown in Fig. 2 It tries in computer 200, embodiment illustrated in fig. 11 is similar to embodiment illustrated in fig. 7, the difference is that, which includes pair The test result of the APP to be tested, and step 705 obtains implementing result after the test script is finished specifically:
1105, after the test script is finished, verification result is obtained from the equipment simulator and is waited for as to this The test result for surveying APP is sent to the server.
Whether the verification result accords with for the implementing result that the equipment simulator of the execution test assignment verifies the test script Close the result of expected test target.Agent module 201 controls the execution test assignment after the test script is finished Whether the implementing result that equipment simulator verifies the test script meets expected test target, the content of verifying and 10 institute of earlier figures Show that the content in embodiment is identical, details are not described herein again.
Agent module 201 obtains verification result from the equipment simulator, and using the verification result as the APP to be measured Test result be sent to server 100.In this way, equipment simulator 200 verifies the implementing result of the test script, sentence Whether the implementing result of the test script of breaking meets expected test target, reduces the calculation amount of Agent module 201, improves system The efficiency of management.
In the embodiment of the present invention, test assignment, application program to be measured and the survey of test application program are obtained from server Training sheet installs the application program to be measured in equipment simulator, executes the test script, replaces prototype using equipment simulator Test to mobile terminal APP improves successfully tested rate, reduces testing cost, improves the efficiency of management to test resource.
Figure 12 is please referred to, the mobile terminal applied program testing method that the 7th embodiment provides can be applied to clothes shown in FIG. 1 It is engaged in device 100, this method comprises:
1201, the test assignment of reception test application program and test file relevant to the test assignment;
Server 100 receives the test assignment for testing the APP to be measured and test file relevant to the test assignment, institute Stating test file includes APP to be measured and the corresponding test script of the APP to be measured, includes the test assignment pair in the test assignment The hardware configuration parameter answered, the hardware configuration parameter include the os release and screen resolution for running the APP to be measured, should with test Whether whether APP to be measured is adapted to the os release and the UI display interface with the screen resolution, that is, can be in different editions There is good compatibility in OS, and be displayed in full screen on the screen with different screen resolutions, when running the APP to be measured Display picture exactly matches different screen sizes.
1202, select the equipment simulator with the hardware configuration parameter as the equipment simulating for executing the test assignment Device;
Server 100 is preserved the hardware configuration parameter of each equipment simulator 202 and execution in measuring and calculation machine 200 and is appointed The state of business has the equipment mould of the hardware configuration parameter in wherein selection according to the hardware configuration parameter in the test assignment Quasi- device is as the equipment simulator for executing the test assignment.
1203, the test assignment is sent to the measuring and calculation machine where the equipment simulator of selection, and appointed with the test It is engaged in relevant test file, so that the equipment simulator executes the test assignment;
Server 100 to where the equipment simulator of selection measuring and calculation machine 200 send the test assignment, and with this The relevant test file of test assignment, so that the equipment simulator of selection executes the test assignment.Specifically, the test file Including the APP to be measured and the test script, which is mounted on choosing by the Agent module 201 in measuring and calculation machine 200 In the equipment simulator selected, and the test script is executed, which executes the test assignment.
1204, the test result of measuring and calculation machine transmission is received.
Server 100 receives the test result that measuring and calculation machine 200 is sent, and whether which indicates the APP to be measured It is adapted to the os release and the UI.
In the embodiment of the present invention, the equipment simulator for executing the test assignment of mobile terminal APP, benefit are selected according to test assignment Test of the prototype to mobile terminal APP is replaced with equipment simulator, improves successfully tested rate, reduces testing cost, and due to equipment Simulator is easily managed, and test and management efficiency can be improved in above-mentioned test method.
Figure 13 is please referred to, the mobile terminal applied program testing method that the 8th embodiment provides can be applied to clothes shown in FIG. 1 It is engaged in device 100, it is similar to embodiment shown in Figure 12, the difference is that, step 1202 selects to have in the measuring and calculation machine The equipment simulator of the hardware configuration parameter is specifically as follows as the equipment simulator for executing the test assignment:
1302, selection has the hardware configuration parameter in the equipment simulator that have been turned on and state is preset condition, And it is not carried out the shortest equipment simulator of test assignment queue, as the equipment simulator for executing the test assignment.
Server 100 inquires the equipment simulator 202 that have been turned on and state is preset condition, and there is the hardware to match for selection Parameter is set, and is not carried out the shortest equipment simulator of test assignment queue as the equipment simulator for executing the test assignment.It should Preset condition is to indicate that the equipment simulator is currently not carried out any test assignment, which is specifically as follows idle shape State, or non-working condition or other indicate that the equipment simulator is in the state of test assignment of being not carried out.Specifically Ground, have the hardware configuration parameter of the equipment simulator 202 in measuring and calculation machine 200 in server 100, execute task quantity and The information such as task status are executed, inquiry has the hardware and matches in equipment simulator 202 that is having been turned on and being in idle condition The equipment simulator of parameter is set, then inquires the queue length for the test assignment that this multiple equipment simulator is respectively not carried out, will survey The test assignment for trying the APP to be measured, which is distributed to, is wherein not carried out the shortest equipment simulator of test assignment queue.
If only existing one in the equipment simulator that have been turned on and state is preset condition has hardware configuration ginseng Several equipment simulators then selects the equipment simulator as the equipment simulator for executing the test assignment.
On the other hand, if it is pre- that state, which is not present, in equipment simulator have been turned on and with the hardware configuration parameter Set the equipment simulator of state, that is, equipment simulator that may be all is all executing test assignment, then all in busy condition The load information for obtaining each measuring and calculation machine 200 judges whether there is the measuring and calculation machine that load is less than default value, for example, Measuring and calculation machine with the presence or absence of load less than 70%, that is, with the presence or absence of lower measuring and calculation machine is loaded, load lower survey There are enough resources for establishing equipment simulator in examination computer.Load is less than the measuring and calculation machine of default value if it exists, Then to the smallest measuring and calculation machine transmission instruction is loaded, which is used to indicate the smallest measuring and calculation machine of the load and establishes and open A dynamic equipment simulator with the hardware configuration parameter, as the equipment simulator for executing the test assignment.If it does not exist Load is less than the measuring and calculation machine of default value, indicates that the load of all measuring and calculation machines 200 is very high, it is believed that they do not have Enough resources establish equipment simulator, then are currently having been turned on, state be not preset condition equipment simulator in select The shortest equipment simulator of test assignment queue is not carried out as the equipment simulator for executing the test assignment.
In the present embodiment, in the equipment simulator that have been turned on and state is preset condition, there is the hardware to match for selection The shortest equipment simulator of test assignment queue in the equipment simulator of parameter is set, as the equipment simulating for executing the test assignment Device, alternatively, established according to the load state of measuring and calculation machine or qualified equipment simulator is selected to execute the test assignment, Too many test assignment can be executed to avoid some in the equipment simulator with same configuration in this way, and some are executed very little Test assignment, thus the test load of the balanced equipment simulator with same configuration, and the survey of balanced measuring and calculation machine Examination load.
Figure 14 is please referred to, the mobile terminal applied program testing method that the 9th embodiment provides can be applied to clothes shown in FIG. 1 It is engaged in device 100, it is similar to embodiment shown in Figure 12, Figure 13, the difference is that, step 1204 receives measuring and calculation machine hair Include: after the test result sent
1405, the test result generates test report based on the received, and exports the test report in a predetermined manner.
Server 100 receives the test result that measuring and calculation machine 200 is sent, and analyzes the test result, generates test report Accuse, by Email or other it is scheduled in a manner of export the test report, checked for tester.
In the embodiment of the present invention, the equipment simulator for executing mobile terminal APP test assignment is selected according to test assignment, is utilized Equipment simulator replaces test of the prototype to mobile terminal APP, improves successfully tested rate, reduces testing cost, improves test and management Efficiency, and according to test result generation, output test report, notify test result at once.
Figure 15 is please referred to, the mobile terminal applied program testing method that the tenth embodiment provides can be applied to clothes shown in FIG. 1 It is engaged in device 100 and measuring and calculation machine 200, this method comprises:
1501, the test assignment of server reception test application program and test file relevant to the test assignment, Comprising the hardware configuration parameter for test in the test assignment, which includes application program to be measured and test foot This;
Server 100 receives the test assignment for testing the APP to be measured and test file relevant to the test assignment, institute Stating test file includes APP to be measured and the corresponding test script of the APP to be measured, includes the test assignment pair in the test assignment The hardware configuration parameter answered, the hardware configuration parameter include the os release and screen resolution for running the APP to be measured, should with test Whether whether APP to be measured is adapted to the os release and the UI display interface with the screen resolution, that is, can be in different editions There is good compatibility in OS, and be displayed in full screen on the screen with different screen resolutions, when running the APP to be measured Display picture exactly matches different screen sizes.
1502, the server selects the equipment simulator in measuring and calculation machine with the hardware configuration parameter should as execution The equipment simulator of test assignment;
Server 100 is preserved the hardware configuration parameter of each equipment simulator 202 and execution in measuring and calculation machine 200 and is appointed The state of business has the equipment mould of the hardware configuration parameter in wherein selection according to the hardware configuration parameter in the test assignment Quasi- device is as the equipment simulator for executing the test assignment.
1503, the server sends the test assignment, and test relevant to the test assignment to the measuring and calculation machine File;
Server 100 to where the equipment simulator of selection measuring and calculation machine 200 send the test assignment, and with this The relevant test file of test assignment, so that the equipment simulator of selection executes the test assignment.The test file includes should APP to be measured and the test script, Agent module 201 in measuring and calculation machine 200 by the APP to be measured be mounted on selection should In equipment simulator, and the test script is executed, which executes the test assignment.
1504, the measuring and calculation machine from the server obtain test application program test assignment and with the test assignment Relevant test file;
Agent module 201 in measuring and calculation machine 200 from server 100 obtain APP to be measured test assignment and with this The relevant test file of test assignment, the test file include APP to be measured and test script corresponding with the APP to be measured.It should Include the specified equipment simulator 202 for completing mobile terminal APP test assignment in test assignment.
1505, the measuring and calculation machine confirms equipment simulator corresponding with the test assignment;
1506, the application program to be measured and the test script are transferred to the equipment simulator by the measuring and calculation machine;
1507, the measuring and calculation machine installs the application program to be measured in the equipment simulator, executes the test script;
Agent module 201 installs the APP to be measured in the equipment simulator 202 of the determination, executes the survey of test APP Training sheet.Later, Agent module 201 begins listening for the executive condition of test case in the test script.
1508, the measuring and calculation machine obtains test result after the test script is finished, and is sent to the server.
In the present embodiment, the content of the not detailed description of above each step is referred in the associated description of foregoing embodiments Hold, details are not described herein again.
In the present embodiment, measuring and calculation machine obtains test assignment, the application program to be measured of test application program from server And test script, which is installed in equipment simulator, executes the test script, utilizes equipment simulator generation Test for prototype to mobile terminal APP improves successfully tested rate, reduces testing cost, improves the efficiency of management to test resource.
Figure 16 is please referred to, Figure 16 is the interaction diagrams for the mobile terminal applied program testing method that the tenth embodiment provides. Steps are as follows:
1601, test assignment and test file are received;
Server 100 receives the test assignment of test application program, and test file relevant to the test assignment, should Comprising the hardware configuration parameter for test in test assignment, which includes application program to be measured and test script.
1602, selection executes the equipment simulator of test assignment;
Server 100 selects the equipment simulator in measuring and calculation machine 200 with the hardware configuration parameter should as execution The equipment simulator of test assignment;
1603, the test assignment is sent;
Server 100 sends the test assignment, and test relevant to test assignment text to measuring and calculation machine 200 Part.The test file includes application program to be measured and test script.
1604, the application program to be measured will be installed in the equipment simulator, executes the test script;
1605, test result is sent.
Measuring and calculation machine 200 obtains test result after the test script is finished, and is sent to server 100.
It should be noted that, in this document, relational terms such as first and second and the like are used merely to a reality Body or operation are distinguished with another entity or operation, are deposited without necessarily requiring or implying between these entities or operation In any actual relationship or order or sequence.Moreover, the terms "include", "comprise" or its any other variant are intended to Non-exclusive inclusion, so that process, method, article or device including a series of elements are not only wanted including those Element, but also including other elements that are not explicitly listed, or further include for this process, method, article or device Intrinsic element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that There is also other identical elements in process, method, article or device including the element.
Those of ordinary skill in the art will appreciate that realizing that all or part of the steps of above-described embodiment can pass through hardware It completes, relevant hardware can also be instructed to complete by program, the program can store in a kind of computer-readable In storage medium, storage medium mentioned above can be read-only memory, disk or CD etc..
The above described is only a preferred embodiment of the present invention, be not intended to limit the present invention in any form, though So the present invention has been disclosed as a preferred embodiment, and however, it is not intended to limit the invention, any technology people for being familiar with this profession Member, without departing from the scope of the present invention, when the technology contents using the disclosure above are modified or are modified It is right according to the technical essence of the invention for the equivalent embodiment of equivalent variations, but without departing from the technical solutions of the present invention Any simple modification, equivalent change and modification made by above embodiments, all of which are still within the scope of the technical scheme of the invention.

Claims (15)

1. a kind of mobile terminal applied program testing method characterized by comprising
The modification information of equipment simulator is sent to server in real time, the modification information include: equipment simulator increase or The information of deletion and the Status Change information of equipment simulator, the modification information of the equipment simulator is by the server For selecting the equipment simulator of execution test assignment;
Test assignment and test file relevant to the test assignment from server acquisition test application program, the survey Trying file includes application program to be measured and test script;
Confirm equipment simulator corresponding with the test assignment;
The application program to be measured and the test script are transferred to the equipment simulator;
The application program to be measured is installed in the equipment simulator, executes the test script;
Test result is obtained after the test script is finished.
2. the method according to claim 1, wherein described obtain test after the test script is finished As a result before further include:
When detecting that the equipment simulator breaks down, then establishes and start one and the equipment simulator hardware configuration phase Same equipment simulator;
Test assignment queue in the equipment simulator to break down is moved to and continues to hold on the equipment simulator of starting Row, and close the equipment simulator to break down.
3. method according to claim 1 or 2, which is characterized in that described to confirm equipment corresponding with the test assignment Include: after simulator
It is first state by the status indication of the equipment simulator.
4. the method according to claim 1, wherein described obtain test after the test script is finished As a result include: after
It is the second state by the status indication of the equipment simulator, and unloads the application program to be measured and described to be measured answer With the test script of program.
5. the method according to claim 1, wherein
The test result includes: the implementing result of the test script;
The test script obtains test result after being finished
Whether the implementing result for verifying the test script meets expected test target, and check results are sent to the service Device.
6. according to the method described in claim 5, it is characterized in that, whether the implementing result of the verification test script accords with Closing expected test target includes:
It verifies in the data of the implementing result of the test script with the presence or absence of screenshot capture identical with preset picture.
7. the method according to claim 1, wherein the test result includes: to the application program to be measured Test result;
It is described after the test script is finished obtain implementing result include:
After the test script is finished, verification result is obtained from the equipment simulator and to be measured is answered as to described It is sent to the server with the test result of program, the verification result is that the equipment simulator verifies the test script Implementing result whether meet the result of expected test target.
8. a kind of mobile terminal application program is adapted to test method characterized by comprising
The modification information for the equipment simulator that measuring and calculation machine is sent in real time is received, the modification information includes: equipment simulator The Status Change information of increase or the information deleted and equipment simulator;
Receive test application program test assignment and test file relevant to the test assignment, in the test assignment Comprising the hardware configuration parameter for test, the test file includes application program to be measured and test script;
Selection has the equipment mould of the hardware configuration parameter in the equipment simulator that have been turned on and state is preset condition Quasi- device, as the equipment simulator for executing the test assignment;
The test assignment is sent to the measuring and calculation machine where the equipment simulator of selection, and related to the test assignment Test file so that the equipment simulator executes the test assignment;
Receive the test result that the measuring and calculation machine is sent.
9. according to the method described in claim 8, it is characterized in that, described in the equipment that have been turned on and state is preset condition Selection has the equipment simulator of the hardware configuration parameter in simulator, as the equipment simulator for executing the test assignment Include:
Selection has the hardware configuration parameter in the equipment simulator that have been turned on and state is preset condition, and is not carried out The shortest equipment simulator of test assignment queue, as the equipment simulator for executing the test assignment.
10. method according to claim 8 or claim 9, which is characterized in that the method also includes:
If being setting for preset condition there is no state in equipment simulator have been turned on and with the hardware configuration parameter Standby simulator, then obtain the load information of each measuring and calculation machine;
Judge whether there is the measuring and calculation machine that load is less than default value;
If so, sending instruction to the smallest measuring and calculation machine is loaded, described instruction is used to indicate the smallest test of load Computer is established and starts an equipment simulator with the hardware configuration parameter, as setting for the execution test assignment Standby simulator;
If it is not, then to be not carried out test assignment queue most short for selection in the equipment simulator that the state having been turned on not is preset condition Equipment simulator, as the equipment simulator for executing the test assignment.
11. a kind of mobile terminal application program is adapted to test method characterized by comprising
Server receives the modification information for the equipment simulator that measuring and calculation machine is sent in real time, and the modification information includes: equipment Simulator increases or the Status Change information of the information of deletion and equipment simulator;
Server receives the test assignment of test application program, test file relevant to the test assignment, and executes institute The corresponding hardware configuration parameter of test assignment is stated, the test file includes application program to be measured and test script;
The server selects to have been turned in measuring and calculation machine and state is described to have in the equipment simulator of preset condition The equipment simulator of hardware configuration parameter is as the equipment simulator for executing the test assignment;
The server sends the test assignment, and test relevant to test assignment text to the measuring and calculation machine Part;
The measuring and calculation machine from the server obtain test application program test assignment and with the test assignment phase The test file of pass;
The measuring and calculation machine confirms equipment simulator corresponding with the test assignment;
The application program to be measured and the test script are transferred to the equipment simulator by the measuring and calculation machine;
The measuring and calculation machine installs the application program to be measured in the equipment simulator, executes the test script;
The measuring and calculation machine obtains test result after the test script is finished, and is sent to the server.
12. a kind of mobile terminal application program is adapted to test macro characterized by comprising
Server and measuring and calculation machine;
Wherein, the server, for receiving the test assignment and survey relevant to the test assignment of test application program File is tried, includes the hardware configuration parameter for test in the test assignment, the test file includes application program to be measured And test script, selection has the hardware configuration parameter in the equipment simulator that have been turned on and state is preset condition Equipment simulator as the equipment simulator for executing the test assignment, to the test where the equipment simulator of selection Computer sends the test assignment, and test file relevant to the test assignment;
The measuring and calculation machine, for the modification information of equipment simulator to be sent to the server, the change letter in real time Breath includes: the Status Change information of equipment simulator increase or the information and equipment simulator deleted, the equipment simulator Modification information be used by the server selection execute test assignment equipment simulator;Test is obtained from the server to answer Test assignment and test file relevant to the test assignment with program confirm equipment corresponding with the test assignment The application program to be measured and the test script are transferred to the equipment simulator, in the equipment simulator by simulator The interior installation application program to be measured, executes the test script, obtains test result after the test script is finished, And it is sent to the server.
13. system according to claim 12, which is characterized in that the server is preset shape in have been turned on and state The setting as the execution test assignment of the equipment simulator with the hardware configuration parameter is selected in the equipment simulator of state Standby simulator are as follows:
Server selection in the equipment simulator that have been turned on and state is preset condition has hardware configuration ginseng Number, and it is not carried out the shortest equipment simulator of test assignment queue, as the equipment simulator for executing the test assignment.
14. system according to claim 13, which is characterized in that
The server is not present if being also used in equipment simulator have been turned on and with the hardware configuration parameter State is the equipment simulator of preset condition, then obtains the load information of each measuring and calculation machine, judge whether there is load and be less than The measuring and calculation machine of default value, if so, sending instruction to the smallest measuring and calculation machine is loaded, described instruction is used to indicate institute It states the smallest measuring and calculation machine of load to establish and start an equipment simulator with the hardware configuration parameter, as execution The equipment simulator of the test assignment, if it is not, then being selected in the equipment simulator that the state having been turned on not is preset condition It is not carried out the shortest equipment simulator of test assignment queue, as the equipment simulator for executing the test assignment.
15. system according to claim 12, which is characterized in that
The measuring and calculation machine is also used to then establish when detecting that the equipment simulator breaks down and start one and institute The identical equipment simulator of equipment simulator hardware configuration is stated, by the test assignment team in the equipment simulator to break down It arranges and is continued to execute on the equipment simulator for moving to starting, and close the equipment simulator to break down.
CN201410139517.9A 2014-04-09 2014-04-09 A kind of mobile terminal applied program testing method and system Active CN104978263B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410139517.9A CN104978263B (en) 2014-04-09 2014-04-09 A kind of mobile terminal applied program testing method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410139517.9A CN104978263B (en) 2014-04-09 2014-04-09 A kind of mobile terminal applied program testing method and system

Publications (2)

Publication Number Publication Date
CN104978263A CN104978263A (en) 2015-10-14
CN104978263B true CN104978263B (en) 2019-01-29

Family

ID=54274792

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410139517.9A Active CN104978263B (en) 2014-04-09 2014-04-09 A kind of mobile terminal applied program testing method and system

Country Status (1)

Country Link
CN (1) CN104978263B (en)

Families Citing this family (34)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105354090B (en) * 2015-10-16 2019-04-16 安一恒通(北京)科技有限公司 The management method and device of virtual unit
CN105404543A (en) * 2015-10-19 2016-03-16 浪潮(北京)电子信息产业有限公司 Simulation machine
CN105338110A (en) * 2015-11-23 2016-02-17 小米科技有限责任公司 Remote debugging method, platform and server
CN105893201A (en) * 2015-12-10 2016-08-24 乐视致新电子科技(天津)有限公司 Test method and system of analog terminal equipment
CN105389259B (en) * 2015-12-11 2018-06-22 广州华多网络科技有限公司 A kind of method, apparatus and system for carrying out Application testing
CN105468531B (en) * 2015-12-25 2018-07-31 北京金山安全软件有限公司 Vulnerability mining method and device and electronic equipment
CN107193728A (en) * 2016-03-15 2017-09-22 展讯通信(天津)有限公司 Mobile terminal automation testing method and device
TWI615005B (en) * 2016-06-24 2018-02-11 財團法人電信技術中心 Testing system and testing method for network performance
CN107092555A (en) * 2016-08-05 2017-08-25 北京小度信息科技有限公司 A kind of method and system of test application program
CN107807545B (en) * 2016-09-08 2021-03-30 北京京东尚科信息技术有限公司 Debugging method and device for remote control end
CN106484614B (en) * 2016-09-29 2019-01-22 厦门美图之家科技有限公司 A kind of method, device and mobile terminal for checking picture treatment effect
CN106484622B (en) * 2016-10-18 2019-02-22 网易(杭州)网络有限公司 Test method, apparatus and system
CN106502905A (en) * 2016-10-26 2017-03-15 腾讯科技(深圳)有限公司 A kind of method of testing of application program, apparatus and system
CN107220174B (en) * 2017-05-08 2020-01-03 飞天诚信科技股份有限公司 Automatic testing method and device
CN108874653B (en) * 2017-05-09 2023-04-07 腾讯科技(北京)有限公司 Task testing method, tester, shared server and readable storage medium
CN108932190A (en) * 2017-05-22 2018-12-04 腾讯科技(深圳)有限公司 Test method, device and the computer equipment of video playing downloading
CN107346287A (en) * 2017-07-20 2017-11-14 广东艾檬电子科技有限公司 A kind of exam pool applied program testing method, terminal and simulator
CN107423218B (en) * 2017-07-20 2023-05-30 北京小米移动软件有限公司 Application testing method, device and terminal
CN107273300A (en) * 2017-07-31 2017-10-20 北京云测信息技术有限公司 A kind of applied program testing method and device
CN107577600A (en) * 2017-08-23 2018-01-12 国家新闻出版广电总局广播科学研究院 A kind of method of testing of equipment, device and computer equipment
CN109240914B (en) * 2018-08-14 2023-12-08 安徽鼎立网络科技有限公司 Monitoring management method for security test task and terminal equipment
CN109045694B (en) * 2018-08-17 2020-01-10 腾讯科技(深圳)有限公司 Virtual scene display method, device, terminal and storage medium
CN109491888A (en) * 2018-09-29 2019-03-19 中国平安人寿保险股份有限公司 Application compatibility test method, device and computer readable storage medium
CN109446080A (en) * 2018-10-22 2019-03-08 网宿科技股份有限公司 APP test method and device
US20200233405A1 (en) * 2019-01-18 2020-07-23 Siemens Industry, Inc. System and method for simulating system operation conditions
CN110046081A (en) * 2019-03-18 2019-07-23 平安普惠企业管理有限公司 Performance test methods, performance testing device, electronic equipment and storage medium
CN111190810B (en) * 2019-08-26 2021-09-17 腾讯科技(深圳)有限公司 Method, device, server and storage medium for executing test task
CN112463580A (en) * 2019-09-09 2021-03-09 英业达科技有限公司 Test system and method based on virtualization device
CN111008135B (en) * 2019-12-02 2024-01-23 北京博睿宏远数据科技股份有限公司 APP test method, device, equipment and storage medium
CN111814354B (en) * 2020-07-23 2022-10-21 展讯通信(上海)有限公司 Simulation test method, system, medium and electronic device for instrument performance
CN112817811B (en) * 2020-12-31 2022-09-06 深圳市联影高端医疗装备创新研究院 Method, device, equipment and storage medium for predicting scanning failure rate
CN116185808A (en) * 2021-11-26 2023-05-30 腾讯科技(深圳)有限公司 Method, device, equipment and storage medium for testing target program
CN115048293A (en) * 2022-06-07 2022-09-13 中国电力科学研究院有限公司 Method and system for testing electric energy meter application program of embedded operating system
CN116881174B (en) * 2023-09-08 2023-11-14 富钛字节车载软件(长春)有限公司 ECU application software closed-loop test method, device, equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102495799A (en) * 2011-12-02 2012-06-13 刘伟 Automatic test system and method of movable terminal
CN103237082A (en) * 2013-05-06 2013-08-07 百度在线网络技术(北京)有限公司 Cloud testing method, system, and cloud server
CN103298016A (en) * 2012-02-27 2013-09-11 展讯通信(上海)有限公司 Test system for mobile terminals
CN103365770A (en) * 2012-04-09 2013-10-23 陆兵 Mobile terminal software testing system and software testing method
CN103473174A (en) * 2013-09-10 2013-12-25 四川长虹电器股份有限公司 Cloud testing method for application software of intelligent televisions
CN103678132A (en) * 2013-12-18 2014-03-26 中国科学院深圳先进技术研究院 Application software cloud testing system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100169154A1 (en) * 2008-12-29 2010-07-01 Nokia Corporation System and associated method for product selection

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102495799A (en) * 2011-12-02 2012-06-13 刘伟 Automatic test system and method of movable terminal
CN103298016A (en) * 2012-02-27 2013-09-11 展讯通信(上海)有限公司 Test system for mobile terminals
CN103365770A (en) * 2012-04-09 2013-10-23 陆兵 Mobile terminal software testing system and software testing method
CN103237082A (en) * 2013-05-06 2013-08-07 百度在线网络技术(北京)有限公司 Cloud testing method, system, and cloud server
CN103473174A (en) * 2013-09-10 2013-12-25 四川长虹电器股份有限公司 Cloud testing method for application software of intelligent televisions
CN103678132A (en) * 2013-12-18 2014-03-26 中国科学院深圳先进技术研究院 Application software cloud testing system

Also Published As

Publication number Publication date
CN104978263A (en) 2015-10-14

Similar Documents

Publication Publication Date Title
CN104978263B (en) A kind of mobile terminal applied program testing method and system
US10229039B2 (en) Testing a virtual network function by a virtual network tester
CN104461897B (en) A kind of method and apparatus of Application testing
CN102420891B (en) Mobile terminal and test method, equipment and system thereof
US9294945B2 (en) Test apparatus and test method
WO2019062584A1 (en) Network slice management method and device
CN110493028A (en) A kind of clustered deploy(ment) method, system, device and computer readable storage medium
CN107145439B (en) Test request processing method and device
CN107015912A (en) Realize system, method, device and the electronic equipment of remote debugging
CN106792784B (en) A kind of method, server and system carrying out data check in server side
CN113678494A (en) Method and device for providing network experience testing
JP4440185B2 (en) Scenario editing apparatus, pseudo base station test system, pseudo terminal test system, scenario editing method and test processing method, and storage medium storing computer-readable program and program
CN110224897A (en) Vulnerable network test method, device, mobile device and the storage medium of application program
CN113672441A (en) Method and device for testing intelligent equipment
CN113760302B (en) Jenkins-based UI package deployment method and system
CN113434422B (en) Virtual device debugging method and device and virtual device debugging system
CN105117344B (en) A kind of Interface integration method of testing and system based on PB
CN113434255A (en) Virtual equipment creating method and device
CN113452556A (en) Product skill configuration method and device, storage medium and electronic device
CN110505352B (en) Call quality testing method, system, computer device and computer storage medium
CN115514667A (en) Access service processing method, system, device, electronic equipment and storage medium
CN112765038B (en) Distributed cluster software testing method, device, equipment and storage medium
CN106997291B (en) Control method, master node and slave node
CN115190057A (en) Automatic testing method and device and electronic equipment
CN107943706A (en) A kind of test system, method, apparatus and computer-readable storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant