CN104978263A - Mobile terminal application program test method and mobile terminal application program test system - Google Patents

Mobile terminal application program test method and mobile terminal application program test system Download PDF

Info

Publication number
CN104978263A
CN104978263A CN201410139517.9A CN201410139517A CN104978263A CN 104978263 A CN104978263 A CN 104978263A CN 201410139517 A CN201410139517 A CN 201410139517A CN 104978263 A CN104978263 A CN 104978263A
Authority
CN
China
Prior art keywords
test
equipment simulator
assignment
application program
script
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201410139517.9A
Other languages
Chinese (zh)
Other versions
CN104978263B (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

Landscapes

  • Debugging And Monitoring (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention provides a mobile terminal application program test method, which comprises the following steps of: obtaining a test task of a test application program and a relevant test file from a server, wherein the test file comprises an application program to be tested and a test script; confirming a device simulator corresponding to the test task; installing the application program to be tested in the equipment simulator; executing the test script; and obtaining the test result after the execution of the test script is completed. The invention also provides a mobile terminal application program test system. The mobile terminal application program test method and the mobile terminal application program test system have the advantages that the test success rate can be improved, and the test cost is reduced.

Description

A kind of mobile terminal applied program testing method and system
Technical field
The present invention relates to field of computer technology, particularly relate to a kind of mobile terminal applied program testing method and system.
Background technology
Client application environment based on mobile terminal is very complicated, and at mobile terminal application (APP, APPlication), in test process, general needs realize test case by comprehensive adaptive test and cover different scenes, to ensure the quality of mobile terminal APP comprehensively.The adaptation test of mobile terminal APP mainly comprises operating system (OS, Opration System) adaptive test and user interface (UI, User Interface) adaptive test, but this course work amount is huge, and general automatic test means of selecting are raised the efficiency.
The adaptive measuring technology of robotization of current mobile terminal APP is mainly by disposing the test terminal prototype with different hardware and OS configuration beyond the clouds, tester submits APP to be measured to high in the clouds and starts to perform adaptive test assignment after selection test type, test macro can scan control in mobile terminal APP to be measured or page elements, and carries out clicking according to the type of control and element, to slide and input etc. has operated test.
But in above prior art, APP test macro depends on the test terminal prototype meeting customized configuration condition, in order to ensure the integrality of adaptive test, needs buy a large amount of testing apparatuss and safeguard equipment, and need to set up machine room to manage these testing apparatuss, testing cost is higher.And lower based on the efficiency of management of APP test macro to test resource of prototype, testing apparatus breaks down, the handling cost increase of testing apparatus may be caused maybe cannot to complete test.
Summary of the invention
In view of this, the invention provides the adaptive method of testing of a kind of mobile terminal application program and system, the test of APP can be completed by control simulation machine, improve the efficiency of test, reduce testing cost.
The adaptive method of testing of the mobile terminal application program that the embodiment of the present invention provides, comprise: obtain the test assignment of test application and the test file relevant to described test assignment from server, described test file comprises application program to be measured and test script; Confirm the equipment simulator corresponding with described test assignment; Described application program to be measured and described test script are transferred to described equipment simulator; Described application program to be measured is installed in described equipment simulator, performs described test script; Test result is obtained after described test script is finished.
The adaptive method of testing of the mobile terminal application program that the embodiment of the present invention provides, comprise: receive the test assignment of test application and the test file relevant to described test assignment, comprise the hardware configuration parameter for testing in described test assignment, described test file comprises application program to be measured and test script; Select the equipment simulator with described hardware configuration parameter, as the equipment simulator performing described test assignment; Test computer to the equipment simulator place selected sends described test assignment, and the test file relevant to described test assignment, performs described test assignment to make described equipment simulator; Receive the test result that described test computer sends.
The adaptive method of testing of the mobile terminal application program that the embodiment of the present invention provides, comprise: server receives the test assignment of test application, the test file relevant to described test assignment, and performing hardware configuration parameter corresponding to described test assignment, described test file comprises application program to be measured and test script; Described server selects the equipment simulator in test computer with described hardware configuration parameter as the equipment simulator performing described test assignment; Described server sends described test assignment to described test computer, and the test file relevant to described test assignment; Described test computer obtains the test assignment of test application and the test file relevant to described test assignment from described server; Described test computer confirms the equipment simulator corresponding with described test assignment; Described application program to be measured and described test script are transferred to described equipment simulator by described test computer; Described application program to be measured installed by described test computer in described equipment simulator, performs described test script; Described test computer obtains test result after described test script is finished, and sends to described server.
The adaptive test macro of the mobile terminal application program that the embodiment of the present invention provides, comprising:
Server and test computer; Wherein, described server, for receiving the test assignment of test application and the test file relevant to described test assignment, the hardware configuration parameter for testing is comprised in described test assignment, described test file comprises application program to be measured and test script, select the equipment simulator with described hardware configuration parameter as the equipment simulator performing described test assignment, described test computer to the equipment simulator place selected sends described test assignment, and the test file relevant to described test assignment; Described test computer, for obtaining the test assignment of test application and the test file relevant to described test assignment from described server, confirm the equipment simulator corresponding with described test assignment, described application program to be measured and described test script are transferred to described equipment simulator, described application program to be measured is installed in described equipment simulator, perform described test script, after described test script is finished, obtains test result, and send to described server.
The moved end application program adaptation method that the embodiment of the present invention provides and system, the test assignment of test application, application program to be measured and test script is obtained from server, this application program to be measured is installed in equipment simulator, perform this test script, equipment simulator is utilized to replace prototype to the test of mobile terminal APP, improve test success ratio, reduce testing cost, the state of marking arrangement simulator, and the situation of the state of equipment simulator, increase, deletion is sent to server, improve the efficiency of management to test resource.
For above and other object of the present invention, feature and advantage can be become apparent, preferred embodiment cited below particularly, and coordinate institute's accompanying drawings, be described in detail below.
Accompanying drawing explanation
The structural representation of the adaptive test macro of mobile terminal application program that Fig. 1 provides for the first embodiment.
Fig. 2 is test computer structured flowchart.
A schematic diagram of the proving installation in the adaptive test macro of the mobile terminal application program that Fig. 3 provides for the first embodiment.
Another schematic diagram of proving installation in the adaptive test macro of the mobile terminal application program that Fig. 4 provides for the first embodiment.
Another schematic diagram of proving installation in the adaptive test macro of the mobile terminal application program that Fig. 5 provides for the first embodiment.
Another schematic diagram of proving installation in the adaptive test macro of the mobile terminal application program that Fig. 6 provides for the first embodiment.
The adaptive method of testing schematic diagram of mobile terminal application program that Fig. 7 provides for the second embodiment.
The adaptive method of testing schematic diagram of mobile terminal application program that Fig. 8 provides for the 3rd embodiment.
The adaptive method of testing schematic diagram of mobile terminal application program that Fig. 9 provides for the 4th embodiment.
The adaptive method of testing schematic diagram of mobile terminal application program that Figure 10 provides for the 5th embodiment.
The adaptive method of testing schematic diagram of mobile terminal application program that Figure 11 provides for the 6th embodiment.
The adaptive method of testing schematic diagram of mobile terminal application program that Figure 12 provides for the 7th embodiment.
The adaptive method of testing schematic diagram of mobile terminal application program that Figure 13 provides for the 8th embodiment.
The adaptive method of testing schematic diagram of mobile terminal application program that Figure 14 provides for the 9th embodiment.
The adaptive method of testing schematic diagram of mobile terminal application program that Figure 15 provides for the tenth embodiment.
The interaction diagrams of the mobile terminal applied program testing method that Figure 16 provides for the tenth embodiment.
Embodiment
For further setting forth the present invention for the technological means that realizes predetermined goal of the invention and take and effect, below in conjunction with accompanying drawing and preferred embodiment, to according to the specific embodiment of the present invention, structure, feature and effect thereof, be described in detail as follows.
The embodiment of the present invention provides a kind of mobile terminal application program adaptive method of testing, by opertaing device analog machine to complete the test of mobile terminal APP, improves the efficiency of test, reduces testing cost.
First embodiment provides a kind of mobile terminal application program adaptive test macro, and refer to Fig. 1, this system comprises: server 100 and test computer 200.
Wherein, server 100 is connected by network with multiple test computer 200, server 100 can be cloud server, agency (Agent) module 201 and one or more equipment simulator 202 are set in a test computer 200, this Agent module 201 manages this one or more equipment simulator 202, Agent module 201 is as the bridge between server 100 and equipment simulator 202, according to the instruction of server 100, management equipment simulator 202 completes test assignment, this test assignment is for testing mobile terminal APP at different operating system (OS, Operating System), and there is the user interface (UI of different screen resolutions, User Interface) suitability, namely, whether can have good compatibility in the OS of different editions, and full screen display on the screen with different screen resolutions, when running this APP to be measured, different screen sizes is mated in display frame completely.
Particularly, server 100 receives the mobile terminal APP test assignment of tester's submission and the test file relevant to this test assignment, the hardware configuration parameter for testing is comprised in this test assignment, this test file comprises test script corresponding to APP to be measured and this APP to be measured, wherein, this APP to be measured is mobile terminal APP, and this hardware configuration parameter comprises operating system version and screen resolution.Server 100 is from all test computers 200 connected, select the equipment simulator with this hardware configuration parameter as the equipment simulator performing this test assignment, test computer to the equipment simulator place selected sends this test assignment, and the test file relevant to this test assignment.
The equipment simulator performing this test assignment is selected to be specially, the hardware configuration parameter of the equipment simulator 202 in all test computers 200 be connected with server 100 is had in server 100, the information such as the quantity performing test assignment and the state performing test assignment, in server 100 started and for the equipment simulator of preset condition in inquiry possess the equipment simulator of this hardware configuration parameter, to the shortest equipment simulator of test assignment queue do not performed as the equipment simulator performing this test assignment, this preset condition is represent that this equipment simulator is in the equipment simulator not performing test assignment, such as, this preset condition is idle condition.Can avoid having in the equipment simulator 104 of identical configuration that some performs too many test assignment like this, and some performs test assignment very little, thus equilibrium has the test load of the equipment simulator 104 of identical configuration.If started and had in the simulator of this hardware configuration parameter, existence is not the equipment simulator of this preset condition, namely, all equipment simulators are all in the state of test assignment, then obtain the load information of all test computers 200 connected, this load information comprises: the memory usage of this test computer and the utilization rate of CPU, judge whether to exist the test computer that load is less than default value, if exist, then be less than the test computer that in the test computer of default value, load is minimum to load and send instruction, indicate in the minimum test computer of this load and set up and start the equipment simulator that possesses this hardware configuration parameter, this default value can be arranged according to practical situations, such as, 60%.If there is not the test computer that load is less than this default value, namely, the load of all test computers 200 is all greater than default value, then in all devices simulator, selecting one and do not perform the shortest equipment simulator of test assignment queue, as the equipment simulator performing this test assignment, can be the tail of the queue test assignment of this APP to be measured of test being placed on test queue, when this equipment simulator is in preset condition, the test assignment of this APP to be measured of test preferentially can be performed.Server 100 sends this test assignment to the test computer 200 at the equipment simulator place selected, and the test file relevant to this test assignment.To be testedly to complete, receive this test result that test computer 200 sends, analyze this test result, and generate test report, then export this test report with Email or other predetermined modes, check for tester.
Test computer 200 obtains the test assignment of test application and the test file relevant to this test assignment from server 100, the mode obtained can be server 200 active push, also can be active obtaining from server 200, confirm the equipment simulator corresponding with this test assignment, the status indication of the equipment simulator of this test assignment of execution of confirmation is the first state by Agent module 201, this first state can be busy condition, also can be duty, represent that this equipment simulator performs test assignment.The Status Change real-time synchronization of equipment simulator 202 is updated to server 202 by Agent module 201.
Further, this application program to be measured and this test script are transferred to this equipment simulator, this application program to be measured is installed in this equipment simulator, perform this test script, Agent module 201 can the running status of audiomonitor simulator 202, when detecting that the equipment simulator 202 performing test assignment breaks down, cannot continue to perform this test assignment, then Agent module 201 is set up and is started an equipment simulator identical with the equipment simulator hardware configuration broken down, hardware configuration comprises system version, screen resolution etc.Hardware configuration is identical, can not affect the test result to APP, ensures the correctness of test result.New equipment simulator test assignment queue in the equipment simulator broken down being moved to startup continues perform, make test assignment unaffected, thus increase the stability of test macro, and close the equipment simulator broken down, timely free system resources.
It should be noted that, in test computer 200, Agent module 201 and equipment simulator 202 are by transmission control protocol/Internet Protocol (TCP/IP, Transmission ControlProtocol/Internet Protocol) communicate, TCP/IP is also known as internet suite of protocol, a network communication model, and a whole network transmission protocol family, be the basic communication framework of internet.It is often commonly referred to as TCP/IP protocol suite, is called for short TCP/IP.The test assignment realized on Agent module 201 pairs of equipment simulators 202 performs, manages, dispatches, and does not rely on USB data line, can not exist because USB electricity shortage or fault cause occurring with equipment simulator 202 being connected unstable situation.After this test script is finished, obtain test result, this test result can be the execution result of the test script without checking, then Agent module 201 verifies this test result, also can be through the test result obtained after equipment simulator 202 verifies.
When test result is the execution result of this test script, whether the execution result that Agent module 201 verifies this test case meets expected test target, test script is made up of multiple test case, after all test cases are finished, namely this test script is also finished, Agent module 201 obtains the result after the execution of test script from the equipment simulator performing this script to be measured, also obtain application crash (Crash) daily record in this test script implementation and/or application program without response (ANR, Application Not Responding) daily record, and the operation sectional drawing that in implementation, each walks.Whether the execution result of Agent module 201 check test script meets expected test target, and check results is sent to server 100.
The content of verification has the following two kinds: one is whether there is preset control in the data of the execution result of this test script of verification, determines the whether adaptive current OS system of this APP to be measured with this.Particularly, this preset control comprises: primary (Native) page control, Web page control.Native page control and Web page control can be supported in this test script, therefore, perform this test script, the mobile terminal APP that simultaneously there is Native page control and Web page control can be tested.If verification is to existing this preset control in the execution result data of test script, then represent in this APP to be measured to there is primary (Native) page control, Web page control, or the two all exists.So, in current OS system version, the actual test result of this APP to be measured conforms to expected test result, adaptive current OS system.Two is whether there is the screenshot capture identical with preset picture in the data of the execution result of this test script of verification, determines the suitability of UI with this.Particularly, this preset picture is the expected test result screenshot capture of this APP to be measured, certain screenshot capture is there is in the data of the execution result of test script corresponding to this APP to be measured identical with preset picture if verify, then represent that this APP to be measured can full screen display on mobile terminal, match with mobile terminal screen size.
When this test result is the test result to this APP to be tested, after this test script is finished, from this equipment simulator, obtains the result and send to server 200 as to the test result of this APP to be measured.The content of checking is identical with the content that above-mentioned Agent module 201 is verified.
Further, after Agent module 201 obtains execution result, be the second state by the status indication of this equipment simulator, this second state can be idle condition, also can be non-duty, represent that this equipment simulator has completed this test assignment, the Status Change real-time synchronization of each equipment simulator 202 is updated to server 100 by Agent simulation 201.And unload the test script of this application program to be measured and this application program to be measured.Recovering the test environment on this equipment simulator, preparing for performing next test assignment.
Agent module 201 can the increase of audiomonitor simulator 202 or the situation of deletion, when in system increase or sweep equipment simulator 202 time, equipment simulator 202 increases by Agent module 201 or the information of deleting sends to server 100, makes server 100 obtain the change situation of equipment simulator 202 in time.When test assignment is more, dynamic increases the quantity of test computer 200 in test macro, and utilizes Agent module 201 to start multiple equipment simulator 200.
The other guide of the test macro in the present embodiment, refers to the specific descriptions of following each embodiment.
In the present embodiment, the test assignment of test application, application program to be measured and test script is obtained from server, this application program to be measured is installed in equipment simulator, perform this test script, equipment simulator is utilized to replace prototype to the test of mobile terminal APP, improve test success ratio, reduce testing cost, improve the efficiency of management to test resource.
Refer to Fig. 2, Fig. 2 shows a kind of computer organization block diagram.Test computer 200 comprises storer 204, memory controller 206, one or more (only illustrating one in figure) processor 208, Peripheral Interface 210, radio-frequency module 212.These assemblies are by one or more communication bus/signal wire 222 communication mutually.
Be appreciated that the structure shown in Fig. 2 is only signal, test computer 200 also can comprise than assembly more or less shown in Fig. 2, or has the configuration different from shown in Fig. 2.Each assembly shown in Fig. 2 can adopt hardware, software or its combination to realize.
Storer 204 can be used for storing software program and module, method of testing as adaptive in the mobile terminal application program in test computer in the embodiment of the present invention and programmed instruction/module corresponding to device, processor 208 is by running the software program and module that are stored in Memory Controller 206, thus perform the application of various function and data processing, namely realize above-mentioned improving in test computer and test success ratio, reduce the method for testing cost.
Storer 204 can comprise high speed random access memory, also can comprise nonvolatile memory, as one or more magnetic storage device, flash memory or other non-volatile solid state memories.In some instances, storer 204 can comprise the storer relative to the long-range setting of processor 208 further, and these remote memories can be connected to test computer 200 by network.The example of above-mentioned network includes but not limited to internet, intranet, LAN (Local Area Network), mobile radio communication and combination thereof.Processor 208 and other possible assemblies can carry out the access of storer 204 under the control of memory controller 206.
Various input/output device is coupled to CPU and storer 204 by Peripheral Interface 210.Various softwares in processor 208 run memory 204, instruction are to perform the various function of test computer 200 and to carry out data processing.
In certain embodiments, Peripheral Interface 210, processor 208 and memory controller 206 can realize in one single chip.In some other example, they can respectively by independently chip realization.
Radio-frequency module 212, for receiving and sending electromagnetic wave, realizes the mutual conversion of electromagnetic wave and electric signal, thus carries out communication with communication network or other equipment.Radio-frequency module 212 can comprise the various existing circuit component for performing these functions, such as, and antenna, radio-frequency (RF) transceiver, digital signal processor, encrypt/decrypt chip, subscriber identity module (SIM) card, storer etc.Radio-frequency module 212 can with various network as internet, intranet, wireless network carry out communication or carry out communication by wireless network and other equipment.Above-mentioned wireless network can comprise cellular telephone networks, WLAN (wireless local area network) or Metropolitan Area Network (MAN).Above-mentioned wireless network can use various communication standard, agreement and technology, include, but are not limited to global system for mobile communications (Global System for MobileCommunication, GSM), enhancement mode mobile communication technology (Enhanced Data GSMEnvironment, EDGE), Wideband CDMA Technology (wideband code division multipleaccess, W-CDMA), CDMA (Code Division Multiple Access) (Code division access, CDMA), tdma (time division multiple access, TDMA), bluetooth, adopting wireless fidelity technology (Wireless, Fidelity, WiFi) (as IEEE-USA standard IEEE 802.11a, IEEE802.11b, IEEE802.11g and/or IEEE802.11n), the networking telephone (Voice over internetprotocal, VoIP), worldwide interoperability for microwave access (Worldwide Interoperability for MicrowaveAccess, Wi-Max), other are for mail, the agreement of instant messaging and short message, and any other suitable communications protocol, even can comprise those current agreements be developed not yet.
Particularly, the schematic diagram of the proving installation in the adaptive test macro of the mobile terminal application program that Fig. 3 provides for the first embodiment, can be applicable in the test computer 200 shown in Fig. 2, this device comprises: acquiring unit 31, confirmation unit 32, transmission unit 33 and test cell 34;
Acquiring unit 31, for obtaining the test assignment of test application and the test file relevant to this test assignment from server, this test file comprises application program to be measured and test script;
Confirmation unit 32, for the equipment simulator that this test assignment confirmed with acquiring unit 31 obtains is corresponding;
Transmission unit 33, is transferred to for this application program to be measured of being obtained by confirmation unit 32 and this test script this equipment simulator that confirmation unit 32 confirms;
Test cell 34, for installing this application program to be measured that transmission unit 33 transmits in this equipment simulator, performs this test script that transmission unit 33 transmits;
Acquiring unit 31, also for obtaining test result after this test script is finished.
In the present embodiment, each unit realizes the process of respective function, refers to aforementioned description embodiment illustrated in fig. 1, repeats no more herein.
Above-mentioned proving installation obtains the test assignment of test application, application program to be measured and test script from server, this application program to be measured is installed in equipment simulator, perform this test script, equipment simulator is utilized to replace prototype to the test of mobile terminal APP, improve test success ratio, reduce testing cost, improve the efficiency of management to test resource.
Refer to Fig. 4, the proving installation in the adaptive test macro of the mobile terminal application program that Fig. 4 provides for the first embodiment, can be applicable in the test computer 200 shown in Fig. 2, similar to the proving installation shown in Fig. 3, difference is, this proving installation also comprises: set up unit 35, start unit 36, migration units 37, closing unit 38, communication unit 39, indexing unit 40, unloading unit 41, verification unit 42 and transmitting element 43.
Wherein, set up unit 35, for when detecting that this equipment simulator breaks down, then set up an equipment simulator identical with this equipment simulator hardware configuration.
Start unit 36, for starting the equipment simulator identical with this equipment simulator hardware configuration set up unit 35 and set up.
Migration units 37, continues to perform for the test assignment queue in this equipment simulator broken down being moved on the equipment simulator that start unit 36 starts.
Closing unit 38, for closing the equipment simulator broken down.
Communication unit 39, for be connected by TCP with this equipment simulator or IP connects and communicates.
The status indication of this equipment simulator for being the first state by the status indication of this equipment simulator, and is the second state by indexing unit 40.
Unloading unit 41, for unloading the test script of this application program to be measured and this application program to be measured.
Whether verification unit 42, meet expected test target for the execution result verifying this test script.
Transmitting element 43, for sending to this server by check results.
Further, verification unit 42, also for verify the execution result of this test script data in whether comprise preset control.
Verification unit 42, also for verify the execution result of this test script data in whether there is the screenshot capture identical with preset picture.
Acquiring unit 31, also for after this test script is finished, obtains the result from this equipment simulator, and this result is the result whether execution result that this equipment simulator verifies this test script meets expected test target.
Transmitting element 43, also for this result is sent to this server as to the test result of this application program to be tested.
Transmitting element 43, also for the modification information of equipment simulator is sent to this server in real time, this modification information comprises: the information that equipment simulator increases or deletes, and the Status Change information of equipment simulator.
In the present embodiment, each unit realizes the process of respective function, refers to aforementioned description embodiment illustrated in fig. 1, repeats no more herein.
Above-mentioned proving installation obtains the test assignment of test application, application program to be measured and test script from server, this application program to be measured is installed in equipment simulator, perform this test script, equipment simulator is utilized to replace prototype to the test of mobile terminal APP, reduce testing cost, improve test success ratio, improve the efficiency of management to test resource.
Refer to Fig. 5, the proving installation in the adaptive test macro of the mobile terminal application program that Fig. 5 provides for the first embodiment, can be applicable in the server 100 shown in Fig. 1, this device comprises: receiving element 51, selection unit 52 and transmitting element 53;
Wherein, receiving element 51, for receiving the test assignment of test application and the test file relevant to this test assignment, comprise the hardware configuration parameter for testing in this test assignment, this test file comprises application program to be measured and test script;
Selection unit 52, for selecting the equipment simulator with this hardware configuration parameter as the equipment simulator performing this test assignment that receiving element 51 receives;
Transmitting element 53, this test computer for the equipment simulator place selected to selection unit 52 sends this test assignment, and the test file relevant to this test assignment, performs this test assignment with the equipment simulator making selection unit 52 select;
Receiving element 51, also for receiving the test result that this test computer sends.
In the present embodiment, each unit realizes the process of respective function, refers to aforementioned description embodiment illustrated in fig. 1, repeats no more herein.
In above-mentioned proving installation, the equipment simulator performing test application is selected according to test assignment, equipment simulator is utilized to replace prototype to the test of mobile terminal application program, improve test success ratio, reduce testing cost, and due to equipment simulator be easy to management, above-mentioned proving installation can improve test and management efficiency.
Further, refer to Fig. 6, proving installation in the adaptive test macro of the mobile terminal application program that Fig. 6 provides for the first embodiment, can be applicable in the server 100 shown in Fig. 1, similar to the proving installation shown in Fig. 5, difference is, this device also comprises: acquiring unit 54, judging unit 55 and report generation unit 56.
Further, selection unit 52, also for started and state is in the equipment simulator of preset condition, selection has this hardware configuration parameter, and do not perform the equipment simulator that in the shortest equipment simulator of test assignment queue, test assignment queue is the shortest, as the equipment simulator performing this test assignment.
If acquiring unit 54 also for started and have in the equipment simulator of this hardware configuration parameter, existence is not the equipment simulator of preset condition, then obtain the load information of each test computer.
The test computer that judging unit 55 is less than default value for judging whether to exist load.
If transmitting element 53 is also less than the test computer of default value for there is load, test computer then to least-loaded sends instruction, the test computer that this instruction is used to indicate this least-loaded is set up and starts the equipment simulator that has this hardware configuration parameter, as the equipment simulator performing this test assignment.
Selection unit 52, if be also less than the test computer of default value for there is not load, then in the state started is not for the equipment simulator of preset condition, select not perform the shortest equipment simulator of test assignment queue, as the equipment simulator performing this test assignment.
Report generation unit 54, generates test report for this test result received according to receiving element 51.
Transmitting element 53, also for exporting this test report in a predetermined manner.
In the present embodiment, each unit realizes the process of respective function, refers to aforementioned description embodiment illustrated in fig. 1, repeats no more herein.
In above-mentioned proving installation, the equipment simulator performing test application is selected according to test assignment, equipment simulator is utilized to replace prototype to the test of mobile terminal application program, improve test success ratio, reduce testing cost, and due to equipment simulator be easy to management, above-mentioned proving installation can improve test and management efficiency.
Not most description details in mobile terminal Application testing system in the present embodiment and device, refers to the description in each embodiment of following mobile terminal applied program testing method.
Refer to Fig. 7, the second embodiment provides a kind of mobile terminal applied program testing method, and can be applicable in the test computer 200 shown in Fig. 2, the method comprises:
701, obtain the test assignment of test application and the test file relevant to this test assignment from server, this test file comprises application program to be measured and test script;
Arrange an Agent module 201 and at least one equipment simulator 202 in a test computer 200, be generally multiple equipment simulator 202, in the inside of a test machine 200, this Agent module 201 manages this one or more equipment simulator 202.As the bridge between server 100 and equipment simulator 202, Agent module 201 is according to the control command of server 100, in test computer 200, set up also starting outfit simulator 202 test the test assignment of mobile terminal APP in order to execution, also can according to the control command of server 100, closing device simulator 202.When this test assignment is more, more test computers 200 can be configured in systems in which, all devices simulator 202 in this test computer 200 of Agent module 201 ALARA Principle in each test computer 200.
Agent module 201 obtains the test assignment of APP to be measured and the test file relevant to this test assignment from server 100, and this test file comprises APP to be measured and the test script corresponding with this APP to be measured.The equipment simulator 202 of having specified mobile terminal APP test assignment is comprised in this test assignment.
This test script can utilize script to record instrument and record, wherein comprise multiple test case (Test Case), test case is one group of test input, executive condition and expected results working out for certain intended target, to test certain Program path or to examine whether meet certain particular demands.The test purpose of each test case is different, and after all test cases are finished, namely this test script also runs complete, and the test assignment of testing this APP terminates.
702, the equipment simulator corresponding with this test assignment is confirmed;
Agent module 201, according to the test assignment of this APP to be measured of test obtained from server 100, confirms that this test assignment has specified the equipment simulator 202 of mobile terminal APP test assignment.
703, this application program to be measured and this test script are transferred to this equipment simulator;
Test script corresponding for this APP to be measured and this APP to be measured is transferred to the equipment simulator 202 determined by Agent module 201.
704, this application program to be measured is installed in this equipment simulator, performs this test script;
Agent module 201 installs this APP to be measured in this equipment simulator 202 determined, performs the test script of this test APP.
Afterwards, Agent module 201 starts the implementation status monitoring test case in this test script.Such as, the KPI that can call ddmlib when performing the test assignment of android system application program creates RemoteAndroidTestRunner example, the test case in test script is performed in equipment simulator 202, and by the interface that realizes ITestRunListener to monitor the implementation status of each test case.
705, after this test script is finished, test result is obtained.
Agent module 201 can monitor the implementation status of this test script, after listening to this test script and being finished, from equipment simulator 202, obtains test result.
In the embodiment of the present invention, the test assignment of test application, application program to be measured and test script is obtained from server, this application program to be measured is installed in equipment simulator, perform this test script, equipment simulator is utilized to replace prototype to the test of mobile terminal APP, improve test success ratio, reduce testing cost, and improve the efficiency of management to test resource.
Refer to Fig. 8, the mobile terminal applied program testing method that 3rd embodiment provides, can be applicable in the test computer 200 shown in Fig. 2, embodiment illustrated in fig. 8 similar to embodiment illustrated in fig. 7, step 705 also comprised obtain test result after this test script is finished before:
805, when detecting that this equipment simulator breaks down, then the equipment simulator that startup one is identical with this equipment simulator hardware configuration.
Agent module 201 can the running status of audiomonitor simulator 202, when detecting that the equipment simulator 202 performing test assignment breaks down, cannot continue to perform this test assignment, then Agent module 201 is set up and is started an equipment simulator identical with the equipment simulator hardware configuration broken down, hardware configuration comprises system version, screen resolution etc.Hardware configuration is identical, can not affect the test result to APP, ensures the correctness of test result.
806, the equipment simulator test assignment queue in this equipment simulator broken down being moved to startup continues perform, and close the equipment simulator broken down.
New equipment simulator test assignment queue in the equipment simulator broken down being moved to startup continues perform, make test assignment unaffected, and close the equipment simulator broken down, timely free system resources.
In the present embodiment, step 807 is identical with the content of middle step 705 embodiment illustrated in fig. 7.
In the embodiment of the present invention, the test assignment of test application, application program to be measured and test script is obtained from server, this application program to be measured is installed in equipment simulator, perform this test script, equipment simulator is utilized to replace prototype to the test of mobile terminal APP, reduce testing cost, and improve the efficiency of management to test resource.When listening to this equipment simulator and breaking down, enable a new equipment simulator identical with its hardware configuration and continue to perform test assignment, improve test success ratio.
Refer to Fig. 9, the mobile terminal applied program testing method that 4th embodiment provides, can be applicable in the test computer 200 shown in Fig. 2, embodiment illustrated in fig. 9 similar to embodiment illustrated in fig. 7, step 702 also comprises after confirming the equipment simulator corresponding with this test assignment:
903, be the first state by the status indication of this equipment simulator;
The status indication of the equipment simulator of this test assignment of execution of confirmation is the first state by Agent module 201, and this first state can be busy condition, can be also duty, represents that this equipment simulator performs test assignment.
Step 702 also comprises after confirming the equipment simulator corresponding with this test assignment:
907, be the second state by the status indication of this equipment simulator, and unload the test script of this application program to be measured and this application program to be measured.
After Agent module 201 obtains execution result, be the second state by the status indication of this equipment simulator, this second state can be idle condition, also can be non-duty, represent that this equipment simulator has completed this test assignment, and unload the test script of this application program to be measured and this application program to be measured.Recovering the test environment on this equipment simulator, preparing for performing next test assignment.
Further, Agent module 201 can to server 100 poll, or the PUSH message of reception server 100, obtain carry in the test assignment of Agent module 201 from each equipment simulator 202 with it, the state of equipment simulator 202 corresponding for each test assignment is labeled as this first state from this second state updating, and be its setup test data, such as, the test script that APP to be measured and this APP to be measured is corresponding is installed.
The modification information of equipment simulator 202 is sent to server 100 in real time, this modification information comprises: the information that equipment simulator increases or deletes, and the Status Change information of equipment simulator, such as, when in system increase or sweep equipment simulator 202 time, equipment simulator 202 increases by Agent module 201 or the information of deleting sends to server 100, makes server 100 obtain the change situation of equipment simulator 202 in time.
It should be noted that, in test computer 200, Agent module 201 and equipment simulator 202 are connected by TCP/IP and communicate, realize performing the test assignment on equipment simulator 202, manage, dispatching based on ICP/IP protocol, do not rely on USB data line, can not exist because USB electricity shortage or fault cause occurring with equipment simulator 202 being connected unstable situation.
In the present embodiment step 904,905,906 respectively with step 703,704,705 corresponding, content is identical, repeats no more.
In the embodiment of the present invention, the test assignment of test application, application program to be measured and test script is obtained from server, this application program to be measured is installed in equipment simulator, perform this test script, utilize equipment simulator to replace prototype to the test of mobile terminal APP, improve test success ratio, reduce testing cost, the state of marking arrangement simulator, and the situation of the state of equipment simulator, increase, deletion is sent to server, improve the efficiency of management to test resource.
Refer to Figure 10, the mobile terminal applied program testing method that 5th embodiment provides, can be applicable in the test computer 200 shown in Fig. 2, embodiment illustrated in fig. 10 similar to embodiment illustrated in fig. 7, difference is, this test result comprises the execution result of this test script, then step 705 comprises obtain test result after this test script is finished after:
Whether the execution result 1006, verifying this test case meet expected test target, and check results is sent to this server.
Test script is made up of multiple test case, after all test cases are finished, namely this test script is also finished, Agent module 201 obtains the result after the execution of test script from the equipment simulator performing this script to be measured, also obtain application crash (Crash) daily record in this test script implementation and/or application program without response (ANR, Application Not Responding) daily record, and the operation sectional drawing that in implementation, each walks.
Whether the execution result of Agent module 201 check test script meets expected test target, and check results is sent to server 100.
The content of verification has the following two kinds: one is whether there is preset control in the data of the execution result of this test script of verification, determines the whether adaptive current OS system of this APP to be measured with this.
Particularly, this preset control comprises: primary (Native) page control, Web page control.Native page control and Web page control can be supported in this test script, therefore, perform this test script, the mobile terminal APP that simultaneously there is Native page control and Web page control can be tested.If verification is to existing this preset control in the execution result data of test script, then represent in this APP to be measured to there is primary (Native) page control, Web page control, or the two all exists.So, in current OS system version, the actual test result of this APP to be measured conforms to expected test result, adaptive current OS system.
Two is whether there is the screenshot capture identical with preset picture in the data of the execution result of this test script of verification, determines the suitability of UI with this.
Particularly, this preset picture is the expected test result screenshot capture of this APP to be measured, certain screenshot capture is there is in the data of the execution result of test script corresponding to this APP to be measured identical with preset picture if verify, then represent that this APP to be measured can full screen display on mobile terminal, match with mobile terminal screen size.
In the present embodiment, the result of Agent module 201 pairs of test scripts verifies, and judge whether the execution result of test script meets expected test target, and by check results, that is, the test result of this APP to be measured sends to server 100.Releasing arrangement simulator 202 resource can be shifted to an earlier date like this, shorten the cycle of test APP to be measured, save the test duration.
In the embodiment of the present invention, the test assignment of test application, application program to be measured and test script is obtained from server, this application program to be measured is installed in equipment simulator, perform this test script, equipment simulator is utilized to replace prototype to the test of mobile terminal APP, improve test success ratio, reduce testing cost, improve the efficiency of management to test resource.
Refer to Figure 11, the mobile terminal applied program testing method that 6th embodiment provides, can be applicable in the test computer 200 shown in Fig. 2, embodiment illustrated in fig. 11 similar to embodiment illustrated in fig. 7, difference is, this test result comprises the test result to this APP to be tested, and step 705 obtains execution result after this test script is finished is specially:
1105, after this test script is finished, from this equipment simulator, obtain the result and send to this server as to the test result of this APP to be measured.
This result is the result whether execution result that the equipment simulator of this execution test assignment verifies this test script meets expected test target.Agent module 201 is after this test script is finished, whether the execution result that the equipment simulator controlling this execution test assignment verifies this test script meets expected test target, checking content with aforementioned embodiment illustrated in fig. 10 in content identical, repeat no more herein.
Agent module 201 obtains the result from this equipment simulator, and this result is sent to server 100 as the test result of this APP to be measured.Like this, the execution result of equipment simulator 200 to this test script verifies, and judges whether the execution result of this test script meets expected test target, reduces the calculated amount of Agent module 201, improves the efficiency of management of system.
In the embodiment of the present invention, the test assignment of test application, application program to be measured and test script is obtained from server, this application program to be measured is installed in equipment simulator, perform this test script, equipment simulator is utilized to replace prototype to the test of mobile terminal APP, improve test success ratio, reduce testing cost, improve the efficiency of management to test resource.
Refer to Figure 12, the mobile terminal applied program testing method that the 7th embodiment provides, can be applicable in the server 100 shown in Fig. 1, the method comprises:
1201, the test assignment of test application and the test file relevant to this test assignment is received;
Server 100 receives the test assignment of this APP to be measured of test and the test file relevant to this test assignment, described test file comprises test script corresponding to APP to be measured and this APP to be measured, the hardware configuration parameter that this test assignment is corresponding is comprised in this test assignment, this hardware configuration parameter comprises the os release and screen resolution that run this APP to be measured, to test this APP to be measured this os release whether adaptive and the UI display interface with this screen resolution, namely, whether can have good compatibility in the OS of different editions, and full screen display on the screen with different screen resolutions, when running this APP to be measured, different screen sizes is mated in display frame completely.
1202, select the equipment simulator with this hardware configuration parameter as the equipment simulator performing this test assignment;
The hardware configuration parameter that server 100 preserves each equipment simulator 202 in test computer 200 and the state of executing the task, according to the hardware configuration parameter in this test assignment, select the equipment simulator with this hardware configuration parameter as the equipment simulator performing this test assignment wherein.
1203, the test computer to the equipment simulator place selected sends this test assignment, and the test file relevant to this test assignment, performs this test assignment to make this equipment simulator;
Server 100 sends this test assignment to the test computer 200 at the equipment simulator place selected, and the test file relevant to this test assignment, performs this test assignment to make this equipment simulator of selection.Particularly, this test file comprises this APP to be measured and this test script, and this APP to be measured is arranged in this equipment simulator of selection by the Agent module 201 in test computer 200, and performs this test script, and this equipment simulator performs this test assignment.
1204, the test result that this test computer sends is received.
Server 100 receives the test result that test computer 200 sends, and this test result represents this APP to be measured whether this os release adaptive and this UI.
In the embodiment of the present invention, the equipment simulator of the test assignment performing mobile terminal APP is selected according to test assignment, equipment simulator is utilized to replace prototype to the test of mobile terminal APP, improve test success ratio, reduce testing cost, and due to equipment simulator be easy to management, above-mentioned method of testing can improve test and management efficiency.
Refer to Figure 13, the mobile terminal applied program testing method that 8th embodiment provides, can be applicable in the server 100 shown in Fig. 1, similar to the embodiment shown in Figure 12, difference is, step 1202 selects the equipment simulator in this test computer with this hardware configuration parameter to be specifically as follows as the equipment simulator performing this test assignment:
1302, started and state is select to have this hardware configuration parameter in the equipment simulator of preset condition, and do not perform the shortest equipment simulator of test assignment queue, as the equipment simulator performing this test assignment.
Server 100 inquire about started and state is the equipment simulator 202 of preset condition, select there is this hardware configuration parameter, and do not perform the shortest equipment simulator of test assignment queue as the equipment simulator performing this test assignment.This preset condition does not perform any test assignment for representing that this equipment simulator is current, and this preset condition is specifically as follows idle condition, also can be non-duty, or other represent that this equipment simulator is in the state not performing test assignment.Particularly, the hardware configuration parameter of the equipment simulator 202 in test computer 200, quantity of executing the task and the information such as state of executing the task is had in server 100, started and to be in the equipment simulator 202 of idle condition the equipment simulator that inquiry possesses this hardware configuration parameter, then inquire about the queue length of this multiple equipment simulator unenforced test assignment separately, the test assignment of this APP to be measured of test is distributed to and does not wherein perform the shortest equipment simulator of test assignment queue.
If started and state is only there is the equipment simulator that has this hardware configuration parameter in the equipment simulator of preset condition, then select this equipment simulator as the equipment simulator performing described test assignment.
On the other hand, if started and to have in the equipment simulator of this hardware configuration parameter not existence be the equipment simulator of preset condition, namely, all may be in busy condition by all equipment simulators, all in execution test assignment, then obtain the load information of each test computer 200, judge whether to exist the test computer that load is less than default value, such as, whether there is the test computer that load is less than 70%, namely, whether there is the test computer that load is lower, enough resources are had for apparatus for establishing simulator in the test computer that load is lower.If there is the test computer that load is less than default value, test computer then to least-loaded sends instruction, the test computer that this instruction is used to indicate this least-loaded is set up and starts the equipment simulator that has this hardware configuration parameter, as the equipment simulator performing this test assignment.If there is not the test computer that load is less than default value, represent that the load of all test computers 200 is all very high, think that they do not have enough resource apparatus for establishing simulators, then started current, state does not perform test assignment queue the shortest equipment simulator as the equipment simulator performing this test assignment for selecting in the equipment simulator of preset condition.
In the present embodiment, started and state is in the equipment simulator of preset condition, select that there is the equipment simulator that in the equipment simulator of this hardware configuration parameter, test assignment queue is the shortest, as the equipment simulator performing this test assignment, or, load state according to test computer is set up or selects qualified equipment simulator to perform this test assignment, can avoid having in the equipment simulator of identical configuration that some performs too many test assignment like this, and some performs test assignment very little, thus equilibrium has the test load of the equipment simulator of identical configuration, and the test load of balanced test computer.
Refer to Figure 14, the mobile terminal applied program testing method that 9th embodiment provides, can be applicable in the server 100 shown in Fig. 1, similar to the embodiment shown in Figure 12, Figure 13, difference is, step 1204 comprises after receiving the test result of this test computer transmission:
1405, generate test report according to this test result received, and export this test report in a predetermined manner.
Server 100 receives this test result that test computer 200 sends, and analyzes this test result, generates test report, exports this test report, check for tester with Email or other predetermined modes.
In the embodiment of the present invention, the equipment simulator performing mobile terminal APP test assignment is selected according to test assignment, equipment simulator is utilized to replace prototype to the test of mobile terminal APP, improve test success ratio, reduce testing cost, improve test and management efficiency, and according to test result generation, output test report, notify test result at once.
Refer to Figure 15, the mobile terminal applied program testing method that the tenth embodiment provides, can be applicable in the server 100 shown in Fig. 1 and test computer 200, the method comprises:
1501, server receives the test assignment of test application and the test file relevant to this test assignment, and comprise the hardware configuration parameter for testing in this test assignment, this test file comprises application program to be measured and test script;
Server 100 receives the test assignment of this APP to be measured of test and the test file relevant to this test assignment, described test file comprises test script corresponding to APP to be measured and this APP to be measured, the hardware configuration parameter that this test assignment is corresponding is comprised in this test assignment, this hardware configuration parameter comprises the os release and screen resolution that run this APP to be measured, to test this APP to be measured this os release whether adaptive and the UI display interface with this screen resolution, namely, whether can have good compatibility in the OS of different editions, and full screen display on the screen with different screen resolutions, when running this APP to be measured, different screen sizes is mated in display frame completely.
1502, this server selects the equipment simulator in test computer with this hardware configuration parameter as the equipment simulator performing this test assignment;
The hardware configuration parameter that server 100 preserves each equipment simulator 202 in test computer 200 and the state of executing the task, according to the hardware configuration parameter in this test assignment, select the equipment simulator with this hardware configuration parameter as the equipment simulator performing this test assignment wherein.
1503, this server sends this test assignment to this test computer, and the test file relevant to this test assignment;
Server 100 sends this test assignment to the test computer 200 at the equipment simulator place selected, and the test file relevant to this test assignment, performs this test assignment to make this equipment simulator of selection.This test file comprises this APP to be measured and this test script, and this APP to be measured is arranged in this equipment simulator of selection by the Agent module 201 in test computer 200, and performs this test script, and this equipment simulator performs this test assignment.
1504, this test computer obtains the test assignment of test application and the test file relevant to this test assignment from this server;
Agent module 201 in test computer 200 obtains the test assignment of APP to be measured and the test file relevant to this test assignment from server 100, and this test file comprises APP to be measured and the test script corresponding with this APP to be measured.The equipment simulator 202 of having specified mobile terminal APP test assignment is comprised in this test assignment.
1505, this test computer confirms the equipment simulator corresponding with this test assignment;
1506, this application program to be measured and this test script are transferred to this equipment simulator by this test computer;
1507, this application program to be measured installed by this test computer in this equipment simulator, performs this test script;
Agent module 201 installs this APP to be measured in this equipment simulator 202 determined, performs the test script of this test APP.Afterwards, Agent module 201 starts the implementation status monitoring test case in this test script.
1508, this test computer obtains test result after this test script is finished, and sends to this server.
In the present embodiment, the content of the not detailed description of above each step refers to the associated description content of foregoing embodiments, repeats no more herein.
In the present embodiment, test computer obtains the test assignment of test application, application program to be measured and test script from server, this application program to be measured is installed in equipment simulator, perform this test script, equipment simulator is utilized to replace prototype to the test of mobile terminal APP, improve test success ratio, reduce testing cost, improve the efficiency of management to test resource.
Refer to Figure 16, the interaction diagrams of the mobile terminal applied program testing method that Figure 16 provides for the tenth embodiment.Step is as follows:
1601, test assignment and test file is received;
Server 100 receives the test assignment of test application, and the test file relevant to this test assignment, and comprise the hardware configuration parameter for testing in this test assignment, this test file comprises application program to be measured and test script.
1602, the equipment simulator performing test assignment is selected;
Server 100 selects the equipment simulator in test computer 200 with this hardware configuration parameter as the equipment simulator performing this test assignment;
1603, this test assignment is sent;
Server 100 sends this test assignment to test computer 200, and the test file relevant to this test assignment.This test file comprises application program to be measured and test script.
1604, by installing this application program to be measured in this equipment simulator, this test script is performed;
1605, test result is sent.
Test computer 200 obtains test result after this test script is finished, and sends to server 100.
It should be noted that, in this article, the such as relational terms of first and second grades and so on is only used for an entity or operation to separate with another entity or operational zone, and not necessarily requires or imply the relation that there is any this reality between these entities or operation or sequentially.And, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thus make to comprise the process of a series of key element, method, article or device and not only comprise those key elements, but also comprise other key elements clearly do not listed, or also comprise by the intrinsic key element of this process, method, article or device.When not more restrictions, the key element limited by statement " comprising ... ", and be not precluded within process, method, article or the device comprising described key element and also there is other identical element.
One of ordinary skill in the art will appreciate that all or part of step realizing above-described embodiment can have been come by hardware, the hardware that also can carry out instruction relevant by program completes, described program can be stored in a kind of computer-readable recording medium, the above-mentioned storage medium mentioned can be ROM (read-only memory), disk or CD etc.
The above, it is only preferred embodiment of the present invention, not any pro forma restriction is done to the present invention, although the present invention discloses as above with preferred embodiment, but and be not used to limit the present invention, any those skilled in the art, do not departing within the scope of technical solution of the present invention, make a little change when the technology contents of above-mentioned announcement can be utilized or be modified to the Equivalent embodiments of equivalent variations, in every case be do not depart from technical solution of the present invention content, according to any simple modification that technical spirit of the present invention is done above embodiment, equivalent variations and modification, all still belong in the scope of technical solution of the present invention.

Claims (16)

1. a mobile terminal applied program testing method, is characterized in that, comprising:
Obtain the test assignment of test application and the test file relevant to described test assignment from server, described test file comprises application program to be measured and test script;
Confirm the equipment simulator corresponding with described test assignment;
Described application program to be measured and described test script are transferred to described equipment simulator;
Described application program to be measured is installed in described equipment simulator, performs described test script;
Test result is obtained after described test script is finished.
2. method according to claim 1, is characterized in that, described in after described test script is finished, obtain test result before also comprise:
When detecting that described equipment simulator breaks down, then set up and start an equipment simulator identical with described equipment simulator hardware configuration;
Equipment simulator test assignment queue in the described equipment simulator broken down being moved to startup continues perform, and close the equipment simulator broken down.
3. method according to claim 1 and 2, is characterized in that, comprises after the equipment simulator that described confirmation is corresponding with described test assignment:
Be the first state by the status indication of described equipment simulator.
4. method according to claim 1, is characterized in that, described in after described test script is finished, obtain test result after comprise:
Be the second state by the status indication of described equipment simulator, and unload the test script of described application program to be measured and described application program to be measured.
5. method according to claim 1, is characterized in that,
Described test result comprises: the execution result of described test script;
Comprise after obtaining test result after described test script is finished:
Whether the execution result verifying described test script meets expected test target, and check results is sent to described server.
6. method according to claim 5, is characterized in that, whether the execution result of the described test script of described verification meets expected test target comprises:
Verify in the data of the execution result of described test script and whether there is the screenshot capture identical with preset picture.
7. method according to claim 1, is characterized in that, described test result comprises: to the test result of described application program to be tested;
Describedly after described test script be finished, obtain execution result comprise:
After described test script is finished, from described equipment simulator, obtain the result send to described server as to the test result of described application program to be tested, described the result is the result whether execution result that described equipment simulator verifies described test script meets expected test target.
8. method according to claim 1, is characterized in that, described method also comprises:
The modification information of equipment simulator is sent to described server in real time, and described modification information comprises: the information that equipment simulator increases or deletes, and the Status Change information of equipment simulator.
9. the adaptive method of testing of mobile terminal application program, is characterized in that, comprising:
Receive the test assignment of test application and the test file relevant to described test assignment, comprise the hardware configuration parameter for testing in described test assignment, described test file comprises application program to be measured and test script;
Select the equipment simulator with described hardware configuration parameter, as the equipment simulator performing described test assignment;
Test computer to the equipment simulator place selected sends described test assignment, and the test file relevant to described test assignment, performs described test assignment to make described equipment simulator;
Receive the test result that described test computer sends.
10. method according to claim 9, is characterized in that, described selection has the equipment simulator of described hardware configuration parameter, comprises as the equipment simulator performing described test assignment:
Started and state is select to have described hardware configuration parameter in the equipment simulator of preset condition, and do not perform the shortest equipment simulator of test assignment queue, as the equipment simulator performing described test assignment.
11. methods according to claim 9 or 10, it is characterized in that, described method also comprises:
If started and have in the equipment simulator of described hardware configuration parameter, existence is not the equipment simulator of preset condition, then obtain the load information of each test computer;
Judge whether to exist the test computer that load is less than default value;
If so, then send instruction to the test computer of least-loaded, the test computer that described instruction is used to indicate described least-loaded is set up and starts the equipment simulator that has described hardware configuration parameter, as the equipment simulator performing described test assignment;
If not, then in the state started is not for the equipment simulator of preset condition, select not perform the shortest equipment simulator of test assignment queue, as the equipment simulator performing described test assignment.
12. 1 kinds of adaptive method of testings of mobile terminal application program, is characterized in that, comprising:
Server receives the test assignment of test application, the test file relevant to described test assignment, and performs hardware configuration parameter corresponding to described test assignment, and described test file comprises application program to be measured and test script;
Described server selects the equipment simulator in test computer with described hardware configuration parameter as the equipment simulator performing described test assignment;
Described server sends described test assignment to described test computer, and the test file relevant to described test assignment;
Described test computer obtains the test assignment of test application and the test file relevant to described test assignment from described server;
Described test computer confirms the equipment simulator corresponding with described test assignment;
Described application program to be measured and described test script are transferred to described equipment simulator by described test computer;
Described application program to be measured installed by described test computer in described equipment simulator, performs described test script;
Described test computer obtains test result after described test script is finished, and sends to described server.
13. 1 kinds of adaptive test macros of mobile terminal application program, is characterized in that, comprising:
Server and test computer;
Wherein, described server, for receiving the test assignment of test application and the test file relevant to described test assignment, the hardware configuration parameter for testing is comprised in described test assignment, described test file comprises application program to be measured and test script, select the equipment simulator with described hardware configuration parameter as the equipment simulator performing described test assignment, described test computer to the equipment simulator place selected sends described test assignment, and the test file relevant to described test assignment;
Described test computer, for obtaining the test assignment of test application and the test file relevant to described test assignment from described server, confirm the equipment simulator corresponding with described test assignment, described application program to be measured and described test script are transferred to described equipment simulator, described application program to be measured is installed in described equipment simulator, perform described test script, after described test script is finished, obtains test result, and send to described server.
14. systems according to claim 13, is characterized in that,
Described server, also for started and state is select to have described hardware configuration parameter in the equipment simulator of preset condition, and do not perform the shortest equipment simulator of test assignment queue, as the equipment simulator performing described test assignment.
15. systems according to claim 14, is characterized in that,
Described server, if also for started and have in the equipment simulator of described hardware configuration parameter, existence is not the equipment simulator of preset condition, then obtain the load information of each test computer, judge whether to exist the test computer that load is less than default value, if, test computer then to least-loaded sends instruction, the test computer that described instruction is used to indicate described least-loaded is set up and starts the equipment simulator that has described hardware configuration parameter, as the equipment simulator performing described test assignment, if not, then in the state started is not for the equipment simulator of preset condition, select not perform the shortest equipment simulator of test assignment queue, as the equipment simulator performing described test assignment.
16. systems according to claim 13, is characterized in that,
Described test computer, also detect that described equipment simulator breaks down for working as, then set up and start an equipment simulator identical with described equipment simulator hardware configuration, equipment simulator test assignment queue in the described equipment simulator broken down being moved to startup continues perform, and close the equipment simulator broken 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 true CN104978263A (en) 2015-10-14
CN104978263B 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)

Cited By (35)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105338110A (en) * 2015-11-23 2016-02-17 小米科技有限责任公司 Remote debugging method, platform and server
CN105354090A (en) * 2015-10-16 2016-02-24 安一恒通(北京)科技有限公司 Management method and device of virtual equipment
CN105389259A (en) * 2015-12-11 2016-03-09 广州华多网络科技有限公司 Method, apparatus and system for performing application testing
CN105404543A (en) * 2015-10-19 2016-03-16 浪潮(北京)电子信息产业有限公司 Simulation machine
CN105468531A (en) * 2015-12-25 2016-04-06 北京金山安全软件有限公司 Vulnerability mining method and device and electronic equipment
CN105893201A (en) * 2015-12-10 2016-08-24 乐视致新电子科技(天津)有限公司 Test method and system of analog terminal equipment
CN106484622A (en) * 2016-10-18 2017-03-08 网易(杭州)网络有限公司 Method of testing, apparatus and system
CN106484614A (en) * 2016-09-29 2017-03-08 厦门美图之家科技有限公司 A kind of method of verification picture processing effect, device and mobile terminal
CN106502905A (en) * 2016-10-26 2017-03-15 腾讯科技(深圳)有限公司 A kind of method of testing of application program, apparatus and system
CN107092555A (en) * 2016-08-05 2017-08-25 北京小度信息科技有限公司 A kind of method and system of test application program
CN107193728A (en) * 2016-03-15 2017-09-22 展讯通信(天津)有限公司 Mobile terminal automation testing method and device
CN107220174A (en) * 2017-05-08 2017-09-29 飞天诚信科技股份有限公司 A kind of method and device of automatic test
CN107273300A (en) * 2017-07-31 2017-10-20 北京云测信息技术有限公司 A kind of applied program testing method and device
CN107346287A (en) * 2017-07-20 2017-11-14 广东艾檬电子科技有限公司 A kind of exam pool applied program testing method, terminal and simulator
CN107423218A (en) * 2017-07-20 2017-12-01 北京小米移动软件有限公司 Application testing method, device and terminal
CN107547294A (en) * 2016-06-24 2018-01-05 财团法人电信技术中心 Network efficiency testing system and testing method
CN107577600A (en) * 2017-08-23 2018-01-12 国家新闻出版广电总局广播科学研究院 A kind of method of testing of equipment, device and computer equipment
CN107807545A (en) * 2016-09-08 2018-03-16 北京京东尚科信息技术有限公司 The adjustment method and device of a kind of remote control terminal
CN108874653A (en) * 2017-05-09 2018-11-23 腾讯科技(北京)有限公司 Task test method, test machine, shared server and readable storage medium storing program for executing
CN108932190A (en) * 2017-05-22 2018-12-04 腾讯科技(深圳)有限公司 Test method, device and the computer equipment of video playing downloading
CN109045694A (en) * 2018-08-17 2018-12-21 腾讯科技(深圳)有限公司 Virtual scene display method, apparatus, terminal and storage medium
CN109240914A (en) * 2018-08-14 2019-01-18 平安普惠企业管理有限公司 The method for managing and monitoring and terminal device of safety test task
CN109446080A (en) * 2018-10-22 2019-03-08 网宿科技股份有限公司 APP test method and device
CN109491888A (en) * 2018-09-29 2019-03-19 中国平安人寿保险股份有限公司 Application compatibility test method, device and computer readable storage medium
CN110046081A (en) * 2019-03-18 2019-07-23 平安普惠企业管理有限公司 Performance test methods, performance testing device, electronic equipment and storage medium
CN111008135A (en) * 2019-12-02 2020-04-14 北京博睿宏远数据科技股份有限公司 APP test method, device, equipment and storage medium
CN111190810A (en) * 2019-08-26 2020-05-22 腾讯科技(深圳)有限公司 Method, device, server and storage medium for executing test task
CN111814354A (en) * 2020-07-23 2020-10-23 展讯通信(上海)有限公司 Simulation test method, system, medium and electronic device for instrument performance
CN112463580A (en) * 2019-09-09 2021-03-09 英业达科技有限公司 Test system and method based on virtualization device
CN112817811A (en) * 2020-12-31 2021-05-18 深圳市联影高端医疗装备创新研究院 Method, device, equipment and storage medium for predicting scanning failure rate
CN113366515A (en) * 2019-01-18 2021-09-07 西门子工业公司 System and method for simulating system operating conditions
CN114594949A (en) * 2022-01-20 2022-06-07 阿里巴巴(中国)有限公司 Interface simulation method and device and integrated development environment system
CN115048293A (en) * 2022-06-07 2022-09-13 中国电力科学研究院有限公司 Method and system for testing electric energy meter application program of embedded operating system
WO2023093327A1 (en) * 2021-11-26 2023-06-01 腾讯科技(深圳)有限公司 Target program testing method and apparatus, and device and storage medium
CN116881174A (en) * 2023-09-08 2023-10-13 富钛字节车载软件(长春)有限公司 ECU application software closed-loop test method, device, equipment and storage medium

Citations (7)

* 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
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

Patent Citations (7)

* 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
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

Cited By (46)

* 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
CN105354090A (en) * 2015-10-16 2016-02-24 安一恒通(北京)科技有限公司 Management method and device of virtual equipment
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
CN105389259A (en) * 2015-12-11 2016-03-09 广州华多网络科技有限公司 Method, apparatus and system for performing application testing
CN105389259B (en) * 2015-12-11 2018-06-22 广州华多网络科技有限公司 A kind of method, apparatus and system for carrying out Application testing
CN105468531A (en) * 2015-12-25 2016-04-06 北京金山安全软件有限公司 Vulnerability mining method and device and electronic equipment
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
CN107547294A (en) * 2016-06-24 2018-01-05 财团法人电信技术中心 Network efficiency testing system and testing method
CN107092555A (en) * 2016-08-05 2017-08-25 北京小度信息科技有限公司 A kind of method and system of test application program
CN107807545A (en) * 2016-09-08 2018-03-16 北京京东尚科信息技术有限公司 The adjustment method and device of a kind of remote control terminal
CN106484614B (en) * 2016-09-29 2019-01-22 厦门美图之家科技有限公司 A kind of method, device and mobile terminal for checking picture treatment effect
CN106484614A (en) * 2016-09-29 2017-03-08 厦门美图之家科技有限公司 A kind of method of verification picture processing effect, device and mobile terminal
CN106484622B (en) * 2016-10-18 2019-02-22 网易(杭州)网络有限公司 Test method, apparatus and system
CN106484622A (en) * 2016-10-18 2017-03-08 网易(杭州)网络有限公司 Method of testing, apparatus and system
CN106502905A (en) * 2016-10-26 2017-03-15 腾讯科技(深圳)有限公司 A kind of method of testing of application program, apparatus and system
CN107220174A (en) * 2017-05-08 2017-09-29 飞天诚信科技股份有限公司 A kind of method and device of automatic test
CN107220174B (en) * 2017-05-08 2020-01-03 飞天诚信科技股份有限公司 Automatic testing method and device
CN108874653A (en) * 2017-05-09 2018-11-23 腾讯科技(北京)有限公司 Task test method, test machine, shared server and readable storage medium storing program for executing
CN108932190A (en) * 2017-05-22 2018-12-04 腾讯科技(深圳)有限公司 Test method, device and the computer equipment of video playing downloading
CN107423218A (en) * 2017-07-20 2017-12-01 北京小米移动软件有限公司 Application testing method, device and terminal
CN107346287A (en) * 2017-07-20 2017-11-14 广东艾檬电子科技有限公司 A kind of exam pool applied program testing method, terminal and simulator
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
CN109240914A (en) * 2018-08-14 2019-01-18 平安普惠企业管理有限公司 The method for managing and monitoring and terminal device of safety test task
CN109240914B (en) * 2018-08-14 2023-12-08 安徽鼎立网络科技有限公司 Monitoring management method for security test task and terminal equipment
CN109045694A (en) * 2018-08-17 2018-12-21 腾讯科技(深圳)有限公司 Virtual scene display method, apparatus, 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
CN113366515B (en) * 2019-01-18 2023-10-24 西门子工业公司 System and method for simulating system operating conditions
CN113366515A (en) * 2019-01-18 2021-09-07 西门子工业公司 System and method for simulating system operating conditions
CN110046081A (en) * 2019-03-18 2019-07-23 平安普惠企业管理有限公司 Performance test methods, performance testing device, electronic equipment and storage medium
CN111190810A (en) * 2019-08-26 2020-05-22 腾讯科技(深圳)有限公司 Method, device, server and storage medium for executing test task
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
CN111008135A (en) * 2019-12-02 2020-04-14 北京博睿宏远数据科技股份有限公司 APP test method, device, equipment and storage medium
CN111008135B (en) * 2019-12-02 2024-01-23 北京博睿宏远数据科技股份有限公司 APP test method, device, equipment and storage medium
CN111814354A (en) * 2020-07-23 2020-10-23 展讯通信(上海)有限公司 Simulation test method, system, medium and electronic device for instrument performance
CN112817811A (en) * 2020-12-31 2021-05-18 深圳市联影高端医疗装备创新研究院 Method, device, equipment and storage medium for predicting scanning failure rate
WO2023093327A1 (en) * 2021-11-26 2023-06-01 腾讯科技(深圳)有限公司 Target program testing method and apparatus, and device and storage medium
CN114594949A (en) * 2022-01-20 2022-06-07 阿里巴巴(中国)有限公司 Interface simulation method and device and integrated development environment system
CN115048293A (en) * 2022-06-07 2022-09-13 中国电力科学研究院有限公司 Method and system for testing electric energy meter application program of embedded operating system
CN116881174A (en) * 2023-09-08 2023-10-13 富钛字节车载软件(长春)有限公司 ECU application software closed-loop test method, device, equipment and storage medium
CN116881174B (en) * 2023-09-08 2023-11-14 富钛字节车载软件(长春)有限公司 ECU application software closed-loop test method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN104978263B (en) 2019-01-29

Similar Documents

Publication Publication Date Title
CN104978263A (en) Mobile terminal application program test method and mobile terminal application program test system
JP5425463B2 (en) Wireless device product acceptance test apparatus, product acceptance test method, wireless communication device, and computer program
US8655336B1 (en) Remote issue logging and reporting of mobile station issues and diagnostic information to manufacturer
US20160044520A1 (en) Mobile automation test platform
CN106294179A (en) Analog detection method in process of application development and server
US11366738B2 (en) System to determine performance based on entropy values
CN105302722A (en) CTS automatic test method and apparatus
CN105933888A (en) Burning method and device of eSIM (Subscriber Identity Module) card based on NFC
CN102413500A (en) Method and system for testing throughput of wireless network card in wireless local area network
CN104732285A (en) Performance optimizing strategy obtaining and terminal performance optimizing method, server and terminal
CN111372249A (en) System and method for testing consistency of code number downloading process of eSIM (embedded subscriber identity Module) terminal of Internet of things
CN102915249A (en) Method and device for remotely realizing firmware updating
CN105022687A (en) Implementation method and device of sliding operation in automated testing scheme
US20230099448A1 (en) Robotic process automation bot operational management system
CN107015912A (en) Realize system, method, device and the electronic equipment of remote debugging
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
CN106792784B (en) A kind of method, server and system carrying out data check in server side
CN111050333A (en) Base station automatic test method and system
CN105760300B (en) A kind of automated testing method and test macro of STK/UTK business
CN113452556A (en) Product skill configuration method and device, storage medium and electronic device
CN105446870A (en) Method and apparatus for performing automation test on app
CN105208574A (en) Method and device for detecting performance of wireless module of terminal
CN105095063A (en) Application program testing method, apparatus and system
CN104349506A (en) Association management method, wireless access device and system
CN107864488B (en) Method, device and system for automatically testing base station service

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