CN109739756A - The method and apparatus of mobile terminal application test - Google Patents
The method and apparatus of mobile terminal application test Download PDFInfo
- Publication number
- CN109739756A CN109739756A CN201811616090.1A CN201811616090A CN109739756A CN 109739756 A CN109739756 A CN 109739756A CN 201811616090 A CN201811616090 A CN 201811616090A CN 109739756 A CN109739756 A CN 109739756A
- Authority
- CN
- China
- Prior art keywords
- test
- mobile terminal
- interface
- application
- starting
- 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
Links
Landscapes
- Telephone Function (AREA)
Abstract
This application provides a kind of method and apparatus of mobile terminal application test, can need to mobile terminal to be tested application distribute and be automatically mounted on a variety of mobile terminals automatically, starting test further is carried out to the test interface in mobile terminal application, and corresponding interface is carried out again after test interface starting and clicks test, to realize the automation Installation And Test of mobile terminal application, improve the testing efficiency of mobile terminal application, reduce the time spent by the test period of mobile terminal application, avoids cumbersome manual operation.
Description
Technical field
This application involves mobile terminal application testing fields more particularly to a kind of mobile terminal using the method tested and to set
It is standby.
Background technique
Currently, the application used in the terminal has obtained very extensive use.Due to applying fortune on mobile terminal
The diversity of row environment, mobile terminal application will correctly be run on a variety of mobile terminals, it is necessary to a variety of before application is online
Sufficient functional test is carried out on mobile terminal.But unlike traditional immobile terminal application test, mobile terminal
There are relatively big differences for the test environment tested using test environment and the immobile terminal application of test, can not be directly using tradition
The test environment and automatic test scheme of application.Therefore, main to use when currently carrying out functional test to mobile terminal application
Mobile terminal is applied and is installed on a variety of mobile terminals by platform by manual type, then carries out people to the mobile terminal application after installation
Work clicks test.This test mode needs to expend a large amount of manual time and installs and carry out manually clicking test, thus
The efficiency of test is very low, it is difficult to the application test being completed in a short time on a variety of mobile terminals.
Summary of the invention
The purpose of the application is to provide a kind of method and apparatus of mobile terminal application test.
To achieve the above object, some embodiments of the present application provide one kind in server end for mobile terminal application
The method of test, wherein this method comprises:
The installation kit of the first application is obtained, includes test interface in the installation kit;
According to the preset installation kit allocation strategy, the mobile terminal for test is determined;
The installation kit is sent to the mobile terminal and is installed;
The starting address for obtaining installation test interface on the mobile terminal, according to the starting address to the shifting
Dynamic terminal sends test interface enabled instruction, so that the mobile terminal starts the test interface according to the enabled instruction,
And corresponding interface is carried out after test interface starting and clicks test;
The test interface starting information that the mobile terminal returns is received, and information is started according to the test interface and is determined
The test result of the test interface, wherein the test interface starting information includes the mobile terminal according to the starting
Instruction starts the success or failure information of the test interface.
In addition, some embodiments of the present application additionally provide a kind of side in mobile terminal for mobile terminal application test
Method, wherein this method comprises:
It receives the installation kit for the first application that server is sent and the installation kit is installed, wrapped in the installation kit
Include test interface;
The test interface enabled instruction that server is sent is received, corresponding test interface is started according to described instruction and is obtained
Test interface starts information;
Test interface starting information is sent to server;
Start the corresponding interface of the test interface and click test, generates the test result that test is clicked at the interface.
Some embodiments of the present application additionally provide a kind of server, which includes referring to for storing computer program
The memory of order and processor for executing program instructions, wherein when the computer program instructions are executed by the processor,
It triggers the server and executes the aforementioned method in server end for mobile terminal application test.
Some embodiments of the present application additionally provide a kind of mobile terminal, which includes for storing computer journey
The memory that sequence instructs and the processor for executing program instructions, wherein when the computer program instructions are held by the processor
When row, the aforementioned method in mobile terminal for mobile terminal application test of the mobile terminal execution is triggered.
Some embodiments of the present application additionally provide a kind of computer-readable medium, are stored thereon with computer-readable finger
Enable, the computer-readable instruction can be executed by processor with realize it is aforementioned server end for mobile terminal application test
Method and/or the method tested in mobile terminal for mobile terminal application.
Compared with prior art, scheme provided by the present application can need to the automatic distribution of mobile terminal to be tested application simultaneously
It is automatically mounted on a variety of mobile terminals, starting test further is carried out to the test interface in mobile terminal application, and
Corresponding interface is carried out again after test interface starting and clicks test, to realize the automation installation of mobile terminal application and survey
Examination improves the testing efficiency of mobile terminal application, reduces the time spent by the test period of mobile terminal application, avoids
Cumbersome manual operation.
Detailed description of the invention
By reading a detailed description of non-restrictive embodiments in the light of the attached drawings below, the application's is other
Feature, objects and advantages will become more apparent upon:
Fig. 1 is a kind of method in server end for mobile terminal application test that some embodiments of the present application provide
Flow chart.
Fig. 2 is a kind of method in mobile terminal for mobile terminal application test that some embodiments of the present application provide
Flow chart.
Specific embodiment
The application is described in further detail with reference to the accompanying drawing.
In a typical configuration of this application, terminal, the equipment of service network and trusted party include one or more
Processor (CPU), input/output interface, network interface and memory.
Memory may include the non-volatile memory in computer-readable medium, random access memory (RAM) and/or
The forms such as Nonvolatile memory, such as read-only memory (ROM) or flash memory (flash RAM).Memory is computer-readable medium
Example.
Computer-readable medium includes permanent and non-permanent, removable and non-removable media can be by any method
Or technology come realize information store.Information can be computer readable instructions, data structure, the module of program or other data.
The example of the storage medium of computer includes, but are not limited to phase change memory (PRAM), static random access memory (SRAM), moves
State random access memory (DRAM), other kinds of random access memory (RAM), read-only memory (ROM), electric erasable
Programmable read only memory (EEPROM), flash memory or other memory techniques, read-only disc read only memory (CD-ROM) (CD-ROM),
Digital versatile disc (DVD) or other optical storage, magnetic cassettes, magnetic tape disk storage or other magnetic storage devices or
Any other non-transmission medium, can be used for storage can be accessed by a computing device information.As defined in this article, computer
Readable medium does not include non-temporary computer readable media (transitory media), such as the data-signal and carrier wave of modulation.
Some embodiments of the present application provide a kind of method in server end for mobile terminal application test.Service
Device end may include supporting network connection to provide the hardware device or software of various network services.When server end includes hard
When part, the distributed apparatus group of multiple network equipment compositions may be implemented into, single network equipment also may be implemented into, strictly according to the facts
Ready-made distributed server or individual server.When server end includes software, above-mentioned cited network may be mounted at
In equipment.At this moment, it as software, may be implemented into for example for providing the multiple softwares or software module of Distributed Services,
Also single software or software module may be implemented into.It is not specifically limited herein.
As shown in Figure 1, this method comprises the following steps:
Step S101 obtains the installation kit of the first application, includes test interface in the installation kit;
Step S102 determines the mobile terminal for test according to the preset installation kit allocation strategy;
The installation kit is sent to the mobile terminal and installed by step S103;
Step S104 obtains the starting address of the test interface of installation on the mobile terminal, according to the starting ground
Location sends test interface enabled instruction to the mobile terminal, so that the mobile terminal is according to enabled instruction starting
Test interface, and carry out corresponding interface after test interface starting and click test;
Step S105 receives the test interface starting information that the mobile terminal returns, and is opened according to the test interface
Dynamic information determines the test result of the test interface, wherein the test interface starting information includes the mobile terminal root
Start the success or failure information of the test interface according to the enabled instruction.
The program is especially suitable for wishing to need mobile terminal application to be tested to distribute, installed simultaneously in an automated manner
The scene tested, can automatically determine needs mobile terminal application to be tested, and mobile terminal application is distributed automatically
It is installed on to suitable a variety of mobile terminals, starting test further is carried out to the test interface in mobile terminal application,
Corresponding interface is carried out again after test interface starting and clicks test, to obtain corresponding test result.
In step s101, server end obtains the installation kit of the first application first.Here, the first application is to need to test
Mobile terminal application, which can be the mobile terminal application in the development phase, or develop
At mobile terminal application, there are the mobile terminal application of testing requirement can for first application.With traditional software application
It compares, mobile terminal application can be run on mobile terminals, and the hardware environment and software environment of mobile terminal application operation are all
More lightweight.
Mobile terminal application provides usually in the form of installation kit or software package, and user can be answered by downloading mobile terminal
Installation kit is simultaneously installed to obtain corresponding mobile terminal application, should so as to use on the mobile terminal of user
Mobile terminal application.It include the institute of the mobile terminal application of compression or uncompressed form in the installation kit of mobile terminal application
There is file, by installing to installation kit and the All Files that the mobile terminal is applied can be all discharged into depositing for mobile terminal
It stores up in equipment, and completes the work such as registration, the setting of modification system, creation shortcut in the operating system of mobile terminal.?
This, the operating system used according to mobile terminal is different, and there is also differences for the format for the installation kit applied on mobile terminal, such as
On the mobile terminal using android system, the installation kit of mobile terminal application is usually APK format, and APK is
The abbreviation of AndroidPackage, i.e. android system application software installation kit, APK file in Android simulator or
The installation that APK file can be realized is executed in Android mobile terminal;Using the IOS (moving operation developed by Apple Inc.
System) system mobile terminal on, mobile terminal application installation kit be usually IPA format, IPA is
The abbreviation of iPhoneApplication, i.e. Apple Inc.'s application software installation kit, IPA is executed in IOS system to be pacified
Dress.
It include test interface in the installation kit of the first application in some embodiments of the present application.Here, test interface is the
The user interface in need of test that one application provides, user can be interacted by user interface and the first application, be used
The corresponding function that family interface calls the first application to provide depending on the user's operation provides service for user, such as test interface can be with
For the Activity in APK file.In the first application, usually there are multiple user interfaces, provide a variety of different function for user
Energy.It in the user interface, may include multiple functional units, user is obtained accordingly by clicking or touching these functional units
Function.Here, the function of obtaining can be a specific function, such as an information is deleted, is also possible to open in addition
User interface, carry out corresponding function selection again for user.
In some embodiments of the present application, server obtains the file change information of test application storage catalogue, according to text
Part change information determines the first application.Here, mobile terminal application in need of test can store in same file system
In catalogue of uniting, this document catalogue is test application storage catalogue, and test application storage catalogue is for storing the movement tested
Terminal applies.Specifically, the peace of multiple mobile terminal applications in need of test can be stored in test application storage catalogue
Dress packet, user can copy the installation kit that mobile terminal in need of test is applied to the survey by way of file replicates
It tries in application memory catalogue, in addition, user can also delete the installation kit of the application of the mobile terminal in the storage catalogue.
Server can continue to monitor the test application storage catalogue, the file change of timing acquisition test application storage catalogue
Information specifically may include following steps: 1) obtaining the file information of test application storage catalogue;2) the file information that will acquire with
The file information of the test application storage catalogue obtained before a period of time is compared, and obtains file change information.Here, clothes
Business device obtains current file information in test application storage catalogue, and current file information may include but be not limited to following information: text
Part name, file type, file size, modification time of file etc..After server obtains current file information, by the current file
Information is compared with the file information for the test application storage catalogue that the last time obtains, here, the last file obtained
The time interval of information and current file information is preset time interval.Pass through current file information and last acquisition
The file information comparison, server can obtain file change information, and file change information may include but be not limited to believe as follows
Breath: filename, file type, file size, the modification time of file, type etc., for example, including as follows in current file information
Two information: a.apkapk12MB 2018.3.5;B.apkapk20MB 2018.5.7, the file information that the last time obtains include
Such as next information: a.apkapk12MB 2018.3.5, then file change information can be b.apkapk20MB 2018.5.7
It is newly-increased.
It is true further according to this document change information after server obtains file change information in some embodiments of the present application
Fixed first application.It specifically, is when the type of file change information is newly-increased, eventually by the corresponding movement of file change information
End application is determined as the first application.Here, file change information may include the installation package informatin of mobile terminal application,
It may include the installation package informatin of multiple mobile terminal applications.The type of file change information can include but is not limited to such as lower class
Type: newly-increased, deletion etc..The newly-increased installation kit for indicating corresponding mobile terminal application is to increase newly to be added to test application storage catalogue,
It deletes and indicates that the installation kit of corresponding mobile terminal application is deleted from test application storage catalogue.Here, if file
The corresponding type of corresponding installation kit is newly-increased in change information, then server determines the corresponding mobile terminal application of the installation kit
For the first application, in the examples described above, the corresponding type of installation kit b.apk that mobile terminal is applied in file change information is new
Increase, shows that installation kit b.apk is the installation kit to be tested being newly added in test application storage catalogue, therefore server will be installed
The corresponding mobile terminal application of packet b.apk is determined as the first application.In addition, if in file change information including multiple types
For newly-increased installation package informatin, all types are that the newly-increased corresponding mobile terminal application of installation kit is determined as first by server
Using the first application herein is the set of multiple mobile terminals application composition.
In step s 102, server determines the mobile terminal for test according to preset installation kit allocation strategy.?
This, mobile terminal, which can be, can be implemented as hardware device by the various electronic equipments at network access server end
Or software.When mobile terminal includes hardware, smart phone, tablet computer, E-book reader, knee may include but be not limited to
Mo(u)ld top half portable computer and desktop computer etc..When mobile terminal includes software, it may be mounted at above-mentioned various electronics and set
In standby, and it can be implemented as single or multiple software modules.Mobile terminal for test, which can be, is equipped with different mobile behaviour
Make mobile terminal of system, such as android system, IOS system etc., for installing mobile terminal application in need of test
And it is tested.
In some embodiments of the present application, server can be connected with multiple shiftings for test by wired or wireless way
Dynamic terminal, and the mobile terminal for test is determined according to preset installation kit allocation strategy, the mobile terminal for test is made
For the test environment for the mobile terminal application that need to be tested, the multiple mobile terminals connecting at this time with server are candidate mobile whole
End, the mobile terminal application that need to be tested will not be assigned on all candidate mobile terminals, can only be assigned to a portion
Candidate mobile terminal.Specifically, the combination of a kind of following method or several method may be selected as preset installation kit point
With strategy: the candidate mobile terminal for installing the installation kit is determined as the mobile terminal for being used to test by method one;Method two,
The mobile terminal number of applications that installation is used to test is less than the candidate of the mobile terminal application average value that installation is used to test to move
Dynamic terminal is determined as the mobile terminal for test;Method three selects candidate mobile terminal, by the candidate of selection in a random basis
Mobile terminal is determined as the mobile terminal for test.
In some embodiments of the present application, the mobile terminal that need to be tested is applied pacifies on multiple mobile terminals for test
It fills and tests.When the installation kit for the first application determines the mobile terminal for test, which will be preferentially installed
The candidate mobile terminal of packet is determined as the mobile terminal for test, is again sent to the installation kit without again mobile whole
It holds and is installed, save the time for sending installation kit and being installed, can make full use of existing test environment, thus
Improve the efficiency of test.Secondly, server detects the mobile terminal application for test run on candidate mobile terminal
Quantity, and the average value of the quantity of the test mobile terminal application run on all candidate mobile terminals is calculated, by those
The candidate mobile application that the quantity of operation test mobile terminal application is less than the average value is determined as the mobile terminal for test,
So as to which the mobile terminal application of test will be needed to be reasonably allocated on the mobile terminal of abundant resource, the shifting for test is avoided
The load imbalance situation of dynamic terminal, can make full use of the resource of the mobile terminal for test, improve the efficiency of test.
Finally, random fashion can also be used to be selected if the mobile terminal quantity for test determined also deficiency, will chosen
Candidate mobile terminal be determined as the mobile terminal for test.
For example, candidate mobile terminal a, b, c, d, e are connected on server, the mobile terminal application that need to be tested for some
For, the installation kit of the application was installed on candidate mobile terminal a, the test mobile terminal run on candidate mobile terminal b
The quantity of application can then determine candidate mobile first all or fewer than the average value of the test application run on candidate mobile terminal
Terminal a and b are the mobile terminal for test, and the quantity for the mobile terminal of test is 2 at this time, in setting for test
In the case that mobile terminal is at least 3, then passes through random fashion and selected in candidate mobile terminal c, d, e, such as choose e, then
The finally obtained mobile terminal for test is a, b, e.
In some embodiments of the present application, before determining the mobile terminal for test, server is also detected and service
All mobile terminals currently connected are determined as candidate mobile terminal by the mobile terminal of device connection.Here, server timing is examined
Mobile terminal connected to it is surveyed to obtain all mobile terminals currently connected, so as to support the mobile end for test
The hot plug at end, the i.e. mobile terminal for test can be disconnected as needed with server at any time or be connect with server.
Server is detected by the timing to mobile terminal connection, can support the quick-replaceable of the mobile terminal for test.
In some embodiments of the present application, it can preferably pass through ADB (Android Debug Bridge, Android debug bridge) work
Tool realizes that identification of the server to the mobile terminal connected specifically can be by using the order adb in ADB tool
Devices realizes the identification of mobile terminal, obtains the corresponding Unique Device identification code of each mobile terminal.Server can be by fixed
When call ADB order to realize the detection to the mobile terminal for testing currently is connected.
In step s 103, the installation kit of the first application is sent to the determining mobile terminal for being used to test simultaneously by server
Installation.Specifically, installation kit of the server first by the first application is sent to the mobile terminal for being used for testing, then to being used for
The mobile terminal of test sends the installation instruction of the installation kit, so that the mobile terminal for test is according to installation instruction to the peace
Dress packet is installed.Mobile terminal application file in installation kit is discharged into file directory appropriate during installation by the installation kit
In, and the application file of compression is decompressed, allow mobile terminal application directly in the mobile terminal for test
Operation.
In some embodiments of the present application, the installation that the adb push order of ADB tool is applied first preferably can be used
Packet is sent to mobile terminal for test, then can by using adb install order to the installation kit for test
It is installed on mobile terminal.
In step S104, server obtains the starting for the test interface being mounted on the mobile terminal for test first
Address sends test interface enabled instruction to the mobile terminal for being used for test according further to the starting address, so that should
Mobile terminal for test starts corresponding test interface according to the enabled instruction, and carries out after test interface starting pair
Click test in the interface answered.
In some embodiments of the present application, server obtains the test interface being mounted on the mobile terminal for test
Start address, specifically may include following steps: parsing the installation kit of the first application first, obtain the starting of test interface therein
Path;Further obtain the terminal iidentification of the mobile terminal for test;Finally according to the terminal iidentification and test interface
Start path, obtains the starting address for the test interface being mounted on the mobile terminal for test.Preferably, AAPT can be passed through
(Android Asset Packaging Tool) tool parses the installation kit of the first application, to obtain installation kit
Much information.
Here, the starting path of the test interface in the installation kit of the first application is the path for calling the test interface, lead to
It crosses and calls the starting path of the test interface that the test interface can be made to run on the mobile terminal for test.Preferably, it surveys
The starting path at examination interface may include packet name and test interface title, such as need the survey of the Android computation device of test
Trying interface starting path can be " com.android.calculator2/com.android.calculator2.Calcula
Tor ", wherein wrapping entitled " com.android.calculator2 ", test interface is entitled " Calculator ", Bao Mingke with
It is obtained from the configuration file AndroidManifest.xml of the application.
In addition, server will start some specific use since server is connected to multiple mobile terminals for test
Test interface on the mobile terminal of test needs to specify the terminal iidentification of the mobile terminal, which uniquely corresponds to
Some mobile terminal being connect with server.
After obtaining terminal iidentification and test interface starting path, server can be corresponded specifically to according to both information acquisitions
Some is used for the starting address of the test interface on the mobile terminal of test, so as to start the mobile end at this for test
Test interface on end.For example, some terminal iidentification for being used for the mobile terminal of test that server obtains is " cf264b8f ",
The starting path of test interface is " com.android.calculator2/com.android.calculator2.Calcula
Tor ", then the starting address of test interface can be " cf264b8f:com.android.calculator2/
com.android.calcula tor2.Calculator”。
In some embodiments of the present application, server is further according to the starting address of test interface to the shifting for test
Dynamic terminal sends test interface enabled instruction, which is started according to the enabled instruction and is corresponded to
Test interface, and carry out corresponding interface after test interface starting and click test.For example, can be by ADB tool
Am order starts test interface, and ADB order according to the starting address start test interface of above-mentioned test interface can be
“adb-s cf264b8f shell am start-n com.android.calculator2/
com.android.calculator2.Ca lculator”。
In some embodiments of the present application, the operation of test interface may may require that the support of relevant running environment, example
Such as operation frame, Runtime Library, testing tool rely on running environment etc., therefore send the enabled instruction of test interface in server
Before, it is also necessary to the dependence running environment of test interface is sent to the mobile terminal for being used for testing and is installed, so that test
Interface has corresponding running environment.
In step s105, server receives the test interface starting information returned for the mobile terminal of test, and root
The test result of test interface is determined according to test interface starting information.Here, test interface is in the mobile terminal for test
Upper starting is simultaneously run, which can generate corresponding test interface according to the starting situation of test interface and start information, should
Test interface, which starts, includes at least starting state information in information, starting state information is for indicating that the test interface starts successfully
Or unsuccessfully etc. test interface starting information is sent to server by relevant informations, the mobile terminal for starting.Server is according to reception
Test interface starting information determine the test result of the test interface, for example, starting shape in the received starting information of server
State is test interface starting failure, then the test result of the test interface can be determined as test crash etc. by server.
Specifically may include following steps in some embodiments of the present application: server receives the mobile terminal for test
The current interface of test interface the starting information and the mobile terminal of return;If the starting state of test interface starting information
To start successfully, and the current interface of the mobile terminal is the corresponding test interface, then server determines the test interface
Starting test result is to be successfully tested.
It, can also be to the use after server determines that the starting of test interface is successfully tested in some embodiments of the present application
Interface corresponding with the test interface is sent in the mobile terminal of test and clicks test initiation command, so that the mobile terminal
It can carry out corresponding interface and click test.
Some embodiments of the present application additionally provide a kind of method in mobile terminal for mobile terminal application test.Such as
Shown in Fig. 2, this method comprises the following steps:
Step S201 receives the installation kit for the first application that server is sent and installs to the installation kit, described
It include test interface in installation kit;
Step S202, receives the test interface enabled instruction that server is sent, and starts corresponding test according to described instruction
Interface simultaneously obtains test interface starting information;
Test interface starting information is sent to server by step S203;
Step S204 starts the corresponding interface of the test interface and clicks test, generates the survey that test is clicked at the interface
Test result.
In step s 201, the installation kit of the first application of server transmission is received for the mobile terminal of test and to this
Installation kit is installed.Here, the first application is needs mobile terminal application to be tested, the mobile terminal application can in
The mobile terminal application of development phase, or develop the mobile terminal application of completion, there are the mobile terminals of testing requirement
Using can be the first application.Mobile terminal application provides usually in the form of installation kit or software package, and user can pass through
The installation kit of downloading mobile terminal application is simultaneously installed to obtain corresponding mobile terminal application, so as in the shifting of user
The mobile terminal application is used in dynamic terminal.
In some embodiments of the present application, mobile terminal installs installation kit, can be issued by mobile terminal to this
The installation instruction of installation kit also can receive the installation instruction to the installation kit of server transmission, according to the installation instruction pair
Corresponding installation kit is installed.It include the mobile terminal of compression or uncompressed form in the installation kit of mobile terminal application
The All Files of application are all discharged into movement by installing the All Files that can be applied the mobile terminal to installation kit
In the storage equipment of terminal, and registration, the setting of modification system, creation shortcut etc. are completed in the operating system of mobile terminal
Work.
In step S202, the mobile terminal for test receives the test interface enabled instruction that server is sent, according to
Enabled instruction starts corresponding test interface and obtains test interface starting information.It is mobile in some embodiments of the present application
Terminal start test interface before, can also receive server transmission the test interface dependence running environment, and carry out according to
Rely the installation of running environment.Since the operation of test interface may may require that the support of relevant running environment, such as operation frame
Frame, Runtime Library, testing tool etc. rely on running environment etc., installation rely on running environment may make this for test mobile terminal
Has corresponding running environment, so that test interface can correctly be run.
In some embodiments of the present application, the mobile terminal for test starts corresponding test interface according to enabled instruction
It later, further include the test interface set the current interface of the mobile terminal to after starting.
In some embodiments of the present application, the mobile terminal for test generates corresponding according to the starting situation of test interface
Test interface start information, which, which starts, includes at least starting state information in information, starting state information is used for
Indicate that the test interface starts successfully or the starting relevant informations such as unsuccessfully.
In step S203, test interface starting information is sent to server by the mobile terminal for test.Preferably,
Test interface is started information to the mobile terminal and current interface is sent to server.
In step S204, test is clicked at the corresponding interface of mobile terminal starting test interface for test, and generating should
Click the test result of test in interface.Here, the mobile terminal for test, which can voluntarily start corresponding interface, clicks test,
It clicks test initiation command and clicks test come startup interface in the interface that can also be sent according to server.Some implementations of the application
In example, the mobile terminal self for test starts corresponding interface and clicks test, can be started according to test interface information and
Current interface determines, be in the starting state of test interface starting information be that successfully, and current interface is starts specifically
In the case where the test interface afterwards, then the mobile terminal starts the corresponding interface click test of the test interface.The application's
In other embodiments, the interface corresponding with test interface that the mobile terminal for test can receive server transmission is clicked
Test initiation command is clicked further according to enabled instruction startup interface and is tested.
In some embodiments of the present application, test is clicked for carrying out mould to the functional unit provided on test interface in interface
It is quasi- to click, it tests whether functional unit is capable of providing correct function.Here, test is clicked by user for every in interface
A test interface is developed accordingly, and test frame can be used to come the exploitation and operation of subtest code for when exploitation, is improved
Testing efficiency.For example, can carry out interface by Appium test frame clicks test, Appium is that an automatic test is opened
Source tool provides the test of cross-platform mobile terminal application, support tester different platform (such as iOS,
Android automatic test script is write using same set of API on), so as to considerably increase in iOS and Android
The reusability of code is tested on platform.
In some embodiments of the present application, the mobile terminal for test generates the test result for clicking test in interface, tool
For body, the mobile terminal for test saves the test result that test is clicked at interface in the form of log, so that user passes through
Consult log acquisition test result.Here, user can consult log by direct reading or by log management tool, from
And the test result of test is clicked at available interface, for example, can be by consulting which functional group on test interface is known in log
Part fails to provide correct functional result.
Some embodiments of the present application additionally provide a kind of server, which includes referring to for storing computer program
The memory of order and processor for executing program instructions, wherein when the computer program instructions are executed by the processor,
It triggers the server and executes the aforementioned method in server end for mobile terminal application test.
Some embodiments of the present application additionally provide a kind of mobile terminal, which includes for storing computer journey
The memory that sequence instructs and the processor for executing program instructions, wherein when the computer program instructions are held by the processor
When row, the aforementioned method in mobile terminal for mobile terminal application test of the mobile terminal execution is triggered.
Some embodiments of the present application additionally provide a kind of computer-readable medium, are stored thereon with computer-readable finger
Enable, the computer-readable instruction can be executed by processor with realize it is aforementioned server end for mobile terminal application test
Method and/or the method tested in mobile terminal for mobile terminal application.
In conclusion scheme provided by the present application can need to mobile terminal to be tested application be automatic distributes and pacify automatically
It is attached on a variety of mobile terminals, starting test further is carried out to the test interface in mobile terminal application, and on test circle
Corresponding interface is carried out again after the starting of face and clicks test, to realize the automation Installation And Test of mobile terminal application, is mentioned
The testing efficiency for having risen mobile terminal application reduces the time spent by the test period of mobile terminal application, avoids cumbersome
Manual operation.
It should be noted that the application can be carried out in the assembly of software and/or software and hardware, for example, can adopt
With specific integrated circuit (ASIC), general purpose computer or any other realized similar to hardware device.In one embodiment
In, the software program of the application can be executed to implement the above steps or functions by processor.Similarly, the application
Software program (including relevant data structure) can be stored in computer readable recording medium, for example, RAM memory,
Magnetic or optical driver or floppy disc and similar devices.In addition, hardware can be used to realize in some steps or function of the application, example
Such as, as the circuit cooperated with processor thereby executing each step or function.
In addition, a part of the application can be applied to computer program product, such as computer program instructions, when its quilt
When computer executes, by the operation of the computer, it can call or provide according to the present processes and/or technical solution.
And the program instruction of the present processes is called, it is possibly stored in fixed or moveable recording medium, and/or pass through
Broadcast or the data flow in other signal-bearing mediums and transmitted, and/or be stored according to described program instruction operation
In the working storage of computer equipment.Here, including an equipment according to one embodiment of the application, which includes using
Memory in storage computer program instructions and processor for executing program instructions, wherein when the computer program refers to
When enabling by processor execution, method and/or skill of the equipment operation based on aforementioned multiple embodiments according to the application are triggered
Art scheme.
It is obvious to a person skilled in the art that the application is not limited to the details of above-mentioned exemplary embodiment, Er Qie
In the case where without departing substantially from spirit herein or essential characteristic, the application can be realized in other specific forms.Therefore, no matter
From the point of view of which point, the present embodiments are to be considered as illustrative and not restrictive, and scope of the present application is by appended power
Benefit requires rather than above description limits, it is intended that all by what is fallen within the meaning and scope of the equivalent elements of the claims
Variation is included in the application.Any reference signs in the claims should not be construed as limiting the involved claims.This
Outside, it is clear that one word of " comprising " does not exclude other units or steps, and odd number is not excluded for plural number.That states in device claim is multiple
Unit or device can also be implemented through software or hardware by a unit or device.
Claims (22)
1. a kind of method in server end for mobile terminal application test, wherein this method comprises:
The installation kit of the first application is obtained, includes test interface in the installation kit;
According to the preset installation kit allocation strategy, the mobile terminal for test is determined;
The installation kit is sent to the mobile terminal and is installed;
The starting address for obtaining the test interface of installation on the mobile terminal, it is whole to the movement according to the starting address
End sends test interface enabled instruction, so that the mobile terminal starts the test interface according to the enabled instruction, and
Corresponding interface, which is carried out, after the test interface starting clicks test;
The test interface starting information that the mobile terminal returns is received, and according to test interface starting information determination
The test result of test interface, wherein the test interface starting information includes the mobile terminal according to the enabled instruction
Start the success or failure information of the test interface.
2. according to the method described in claim 1, wherein, before the installation kit for obtaining the first application, further includes:
The file change information for obtaining test application storage catalogue, determines the first application according to the file change information, wherein
The test application storage catalogue is for storing the mobile terminal application tested.
3. according to the method described in claim 2, wherein, obtaining the file change information of test application storage catalogue, comprising:
Obtain the file information of test application storage catalogue;
The file information of the file information and the test application storage catalogue obtained before a period of time is compared, is obtained
File change information.
4. according to the method described in claim 2, wherein, determining the first application according to the file change information, comprising:
When the type of the file change information is newly-increased, the corresponding mobile terminal application of the file change information is determined
For the first application.
5. according to the method described in claim 1, wherein it is determined that being used for before the mobile terminal of test, further includes:
The mobile terminal connecting with server is detected, all mobile terminals currently connected are determined as candidate mobile terminal.
6. according to the method described in claim 5, wherein, according to the preset installation kit allocation strategy, determining for testing
Mobile terminal, the combination including following one or more methods:
The candidate mobile terminal for installing the installation kit is determined as to the mobile terminal for being used to test;
The mobile terminal number of applications that installation is used to test is less than to the time for the mobile terminal application average value that installation is used to test
Mobile terminal is selected to be determined as the mobile terminal for test;
Candidate mobile terminal is selected in a random basis, and the candidate mobile terminal of selection is determined as to the mobile terminal for being used to test.
7. according to the method described in claim 1, wherein, acquisition is with installing the starting of test interface on the mobile terminal
Location, comprising:
The installation kit is parsed, the starting path of test interface therein is obtained;
Obtain the terminal iidentification of the mobile terminal;
According to the terminal iidentification and the starting path, with obtaining the starting of the test interface of installation on the mobile terminal
Location.
8. according to the method described in claim 1, wherein, sending test interface to the mobile terminal according to the starting address
Before enabled instruction, further includes:
The dependence running environment of the test interface is sent to the mobile terminal and is installed.
9. according to the method described in claim 1, wherein, receiving the test interface starting letter that the mobile terminal returns
Breath, and the test result that information determines the test interface is started according to the test interface, comprising:
Receive the test interface starting information and current interface that the mobile terminal returns;
If the starting state of test interface starting information be that successfully, and the current interface is corresponding test circle
Face, it is determined that the starting of the test interface is successfully tested.
10. according to the method described in claim 9, wherein it is determined that also being wrapped after the starting of the test interface is successfully tested
It includes:
Interface corresponding with the test interface, which is sent, to the mobile terminal clicks test initiation command.
11. being wrapped according to the method described in claim 1, wherein, the installation kit being sent to the mobile terminal and is installed
It includes:
The installation kit is sent to the mobile terminal;
The installation instruction of the installation kit is sent to the mobile terminal, so that the mobile terminal is according to the installation instruction pair
The installation kit is installed.
12. a kind of method in mobile terminal for mobile terminal application test, wherein this method comprises:
It receives the installation kit for the first application that server is sent and the installation kit is installed, include surveying in the installation kit
Try interface;
The test interface enabled instruction that server is sent is received, corresponding test interface is started according to described instruction and obtains test
Interface starts information;
Test interface starting information is sent to server;
Start the corresponding interface of the test interface and click test, generates the test result that test is clicked at the interface.
13. according to the method for claim 12, wherein installed to the installation kit, comprising:
The installation instruction to the installation kit that server is sent is received, the installation kit is pacified according to the installation instruction
Dress.
14. according to the method for claim 12, wherein before starting corresponding test interface according to described instruction, also wrap
It includes:
The dependence running environment for the test interface that server is sent is received, and carries out the installation for relying on running environment.
15. according to the method for claim 12, wherein start corresponding test interface according to described instruction, further includes:
The test interface after starting is set by the current interface of the mobile terminal.
16. according to the method for claim 15, wherein test interface starting information is sent to server, comprising:
The test interface of the mobile terminal is started into information and current interface is sent to server.
17. according to the method for claim 15, wherein start the corresponding interface of the test interface and click test, comprising:
If the starting state of test interface starting information be that successfully, and the current interface is test circle after starting
Face then starts the corresponding interface of the test interface and clicks test.
18. according to the method for claim 12, wherein start the corresponding interface of the test interface and click test, comprising:
It receives the interface corresponding with the test interface that server is sent and clicks test initiation command, according to the enabled instruction
Startup interface clicks test.
19. according to the method for claim 12, wherein generate the test result that test is clicked at the interface, comprising:
The test result that test is clicked at the interface is saved in the form of log, so that user is by consulting log acquisition test knot
Fruit.
20. a kind of server, which includes memory for storing computer program instructions and refers to for executing program
The processor of order, wherein when the computer program instructions by the processor execute when, trigger the equipment perform claim require 1 to
Method described in any one of 11.
21. a kind of mobile terminal, which includes memory for storing computer program instructions and for executing journey
The processor of sequence instruction, wherein when the computer program instructions are executed by the processor, trigger the mobile terminal execution right
It is required that method described in any one of 12 to 19.
22. a kind of computer-readable medium, is stored thereon with computer-readable instruction, the computer-readable instruction can be processed
Device is executed to realize the method as described in any one of claims 1 to 19.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811616090.1A CN109739756B (en) | 2018-12-27 | 2018-12-27 | Method and equipment for testing application of mobile terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811616090.1A CN109739756B (en) | 2018-12-27 | 2018-12-27 | Method and equipment for testing application of mobile terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109739756A true CN109739756A (en) | 2019-05-10 |
CN109739756B CN109739756B (en) | 2022-07-29 |
Family
ID=66361512
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811616090.1A Active CN109739756B (en) | 2018-12-27 | 2018-12-27 | Method and equipment for testing application of mobile terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109739756B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110727595A (en) * | 2019-10-14 | 2020-01-24 | 北京智游网安科技有限公司 | Application login interface identification method, intelligent terminal and storage medium |
CN113138806A (en) * | 2021-03-25 | 2021-07-20 | 车智互联(北京)科技有限公司 | Method and device for processing mobile application running environment |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103516559A (en) * | 2012-12-13 | 2014-01-15 | Tcl集团股份有限公司 | Method and system for testing application compatibility of intelligent terminal |
CN104050076A (en) * | 2013-03-12 | 2014-09-17 | 阿里巴巴集团控股有限公司 | Testing method, device and system of application software on mobile terminal |
CN106155887A (en) * | 2015-03-31 | 2016-11-23 | 展讯通信(天津)有限公司 | The applied program testing method of a kind of Auto-matching version and system and mobile terminal |
JP2017021475A (en) * | 2015-07-08 | 2017-01-26 | 大日本印刷株式会社 | Software testing device and program |
CN107357727A (en) * | 2017-07-04 | 2017-11-17 | 广州君海网络科技有限公司 | APP testing results method, apparatus, readable storage medium storing program for executing and computer equipment |
-
2018
- 2018-12-27 CN CN201811616090.1A patent/CN109739756B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103516559A (en) * | 2012-12-13 | 2014-01-15 | Tcl集团股份有限公司 | Method and system for testing application compatibility of intelligent terminal |
CN104050076A (en) * | 2013-03-12 | 2014-09-17 | 阿里巴巴集团控股有限公司 | Testing method, device and system of application software on mobile terminal |
CN106155887A (en) * | 2015-03-31 | 2016-11-23 | 展讯通信(天津)有限公司 | The applied program testing method of a kind of Auto-matching version and system and mobile terminal |
JP2017021475A (en) * | 2015-07-08 | 2017-01-26 | 大日本印刷株式会社 | Software testing device and program |
CN107357727A (en) * | 2017-07-04 | 2017-11-17 | 广州君海网络科技有限公司 | APP testing results method, apparatus, readable storage medium storing program for executing and computer equipment |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110727595A (en) * | 2019-10-14 | 2020-01-24 | 北京智游网安科技有限公司 | Application login interface identification method, intelligent terminal and storage medium |
CN110727595B (en) * | 2019-10-14 | 2023-09-05 | 北京智游网安科技有限公司 | Application login interface identification method, intelligent terminal and storage medium |
CN113138806A (en) * | 2021-03-25 | 2021-07-20 | 车智互联(北京)科技有限公司 | Method and device for processing mobile application running environment |
CN113138806B (en) * | 2021-03-25 | 2023-11-07 | 车智互联(北京)科技有限公司 | Processing method and device for mobile application running environment |
Also Published As
Publication number | Publication date |
---|---|
CN109739756B (en) | 2022-07-29 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110058873B (en) | Application page updating method, device, equipment and storage medium | |
CN106383786B (en) | Interface pressure performance testing method and device and electronic equipment | |
CN105389222B (en) | A kind of methods, devices and systems of dynamic call native interface | |
CN109670951B (en) | Block chain intelligent contract debugging and publishing method and system | |
US10447814B2 (en) | Joint servicing of software packages | |
CN101930400B (en) | SDK (Software Development Kit) automatic test system and method | |
CN111478798B (en) | Fault processing method, fault processing device and storage medium | |
CN106610839B (en) | Method for issuing upgrade package, lightweight upgrade method, device and system | |
CN106294113B (en) | creation method and device based on programmable test service | |
CN111767226B (en) | Cloud computing platform resource testing method, system and equipment | |
CN110673924B (en) | Multi-architecture container cloud mirror image selection method, device, equipment and storage medium | |
CN111399840B (en) | Module development method and device | |
CN106339273A (en) | Application program restoration method, terminal and server | |
CN112256321A (en) | Static library packaging method and device, computer equipment and storage medium | |
CN110928770B (en) | Software testing method, device, system, storage medium and electronic equipment | |
CN108132809A (en) | Method, apparatus, terminal and the storage medium of loading | |
CN109739756A (en) | The method and apparatus of mobile terminal application test | |
CN109388420A (en) | Application upgrade test method, device, computer equipment and storage medium | |
CN112650689A (en) | Test method, test device, electronic equipment and storage medium | |
CN114003293B (en) | Interface management method, device, electronic equipment and readable storage medium | |
CN110673835A (en) | Dynamic assembly type development system, method, computer and computer program | |
CN109471799A (en) | A kind of dispositions method of demand environment, device, storage medium and terminal | |
CN113342353B (en) | Mock data generation method and device | |
CN104978214B (en) | A kind of component loading method, device and terminal | |
CN110502251B (en) | Application installation method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
TA01 | Transfer of patent application right |
Effective date of registration: 20211223 Address after: 200240 building 41, 398 Heqing Road, Minhang District, Shanghai Applicant after: Shanghai Shangxiang Network Technology Co.,Ltd. Address before: 201306 2, building 979, Yun Han Road, mud town, Pudong New Area, Shanghai Applicant before: SHANGHAI LIANSHANG NETWORK TECHNOLOGY Co.,Ltd. |
|
TA01 | Transfer of patent application right | ||
GR01 | Patent grant | ||
GR01 | Patent grant |