Embodiment
To make the object, technical solutions and advantages of the present invention clearer, the present invention is made below in conjunction with the accompanying drawings further
Detailed description.
Fig. 1 is according to embodiment of the present invention intelligent terminal software bag acquisition methods flow chart.
As shown in figure 1, this method includes:
Step 101:Receive the group bag comprising at least two intelligent terminal software installation kits and each intelligent terminal software
The test type list of installation kit, wherein it is preferred that including at least two intelligent terminal types in the test type list.
Herein, can will be multiple by being located locally the intelligent terminal software developer at end(At least two)Intelligent terminal is soft
Part installation kit combines integral bag(For example it is compressed into compressed package by various compressed softwares), and the group is wrapped(It is i.e. overall
Bag)And network side is uploaded to corresponding to the test type list of each intelligent terminal software installation kit, typically upload to positioned at net
In the server of network side.
For example intelligent terminal software installation kit can be nondestructively processed such that text by group packet compression software using algorithm
Part volume diminishes.The group packet compression form that embodiment of the present invention can use can include:rar、zip、7z、kz、CAB、
ARJ, LZH, TAR, GZ, ACE, UUE, BZ2, JAR, ISO, and the various ways such as MPQ.
Wherein, in addition to uploading the group bag comprising at least two intelligent terminal software installation kits, it is also necessary to upload corresponding
In the test type list of each intelligent terminal software installation kit.It is soft that test type list includes the corresponding intelligent terminal of test
The intelligent terminal brand and model of part installation kit.
In one embodiment, local side can upload intelligent terminal software by various ways such as WEB, HTTP, FTP
The group bag of installation kit and test type list are to network side.
Preferably, the group bag of intelligent terminal software installation kit and test type can also be uploaded by a variety of hybrid modes
List.For example the group bag of intelligent terminal software installation kit is uploaded by FTP modes, and test type is uploaded by WEB modes and arranged
Table, etc..
The specific form of intelligent terminal software installation kit can have it is a variety of, such as can include apk file formats, sis text
Part form, sisx file formats, etc..
Illustrated by taking apk file formats as an example.Apk is AndroidPackage abbreviation, i.e. Android installation kits
(apk).Apk is similar Symbian Sis or Sisx file format.By the way that apk files are passed directly into Android simulator
Or perform and can install in Android phone.Apk files are packaged into one as sis, the android sdk engineerings compiled
Individual installation procedure file, form apk.Apk files are zip forms in fact, but suffix name is modified to apk, are solved by UnZip
After pressure, it can be seen that Dex files, Dex are Dalvik VM executes full name, i.e. Android Dalvik configuration processors,
Not Java ME bytecode but Dalvik bytecodes.
Herein, finally the intelligent terminal of installation intelligent terminal software installation kit can include but is not limited to:Function
Mobile phone, smart mobile phone, palm PC, PC(PC), tablet personal computer or personal digital assistant(PDA), etc..
Although enumerating the instantiation of intelligent terminal in detail above, those skilled in the art are it is to be appreciated that these are enumerated only
It is purposes of illustration, is not intended to limit the present invention the protection domain of embodiment.
Intelligent terminal operation system can be arbitrary operating system, and the operating system that can specifically use is included still not
It is confined to:Android(Andorid)、Palm OS、Symbian(Saipan)、Windows mobile、Linux、Android(Peace
It is tall and erect)、iPhone(Apple)OS、Black Berry(Blackberry, blueberry)OS6.0, Windows Phone series, etc..
Preferably, intelligent terminal operation system can specifically use Android operation system, and intelligent terminal can use
To among Andorid each version, including but not limited to:A Tongmu(Android Beta), clockwork spring robot
(Android1.0), cup cake(Android1.5), baked donut(Android1.6), muffin(Android2.0/2.1), freeze
Yoghourt(Android2.2), gingerbread(Android2.3), honeycomb(Android 3.0), ice cream sandwich(Android4.0)、
Jelly beans(Jelly Bean, Android4.1)Deng version.
The specific version of Android platform is enumerated in detail above, it will be appreciated by those of skill in the art that the present invention is real
The mode of applying be not limited to it is above-mentioned enumerate version, and can be applicable to other any versions based on Android software framework
Among.
Step 102:According to the test type list of intelligent terminal software installation kit, distribution and intelligent terminal software installation kit
Corresponding test assignment process.
Herein, server obtains each intelligent terminal software installation kit from described group of bag first, and according to corresponding to
The test type list of intelligent terminal software bag determines the test assignment of each intelligent terminal software installation kit.
Such as, it is assumed that server obtains from group bag 3 intelligent terminal software installation kits, respectively installation kit 1, installation
Bag 2 and installation kit 3.The test type list of installation kit 1 includes 20 kinds of types, respectively tests type 1, test type 2, surveys
Test-run a machine type 3, test type 4 ... test type 20;The test type list of installation kit 2 includes 10 kinds of types, respectively surveys
Test-run a machine type 1 ', test type 2 ', test type 3 ', test type 4 ' ... test type 10 ';The test type row of installation kit 3
Table, which includes 15 kinds of types, respectively tests type 1 ' ', test type 2 ' ', test type 3 ' ', test type 4 ' ' ... surveys
Test-run a machine type 15 ' '.
So, the test assignment of installation kit 1 is:In test type 1, test type 2, test type 3, test type
Test is performed respectively on 4 ... test types 20;The test assignment of installation kit 2 is:In test type 1 ', test type 2 ', survey
Test is performed respectively in test-run a machine type 3 ', test type 4 ' ... test type 10 ';The test assignment of installation kit 3 is:In test machine
Type 1 ' ', test type 2 ' ', test type 3 ' ', test type 4 ' ' ... test type 15 ' ' on perform test respectively.
For each test assignment, a corresponding test assignment process can be set, can be specifically whole in test
Test assignment process is performed on end.Each test terminal can correspond to test terminal models accordingly, and each test is eventually
End can pass through various types of interfaces(Such as USB, bluetooth mode)It is connected with server.
For example the test assignment of installation kit 1 is:In test type 1, test type 2, test type 3, test type
Test is performed respectively on 4 ... test types 20, then can be directed to installation kit 1 and 20 test assignment processes are set, be respectively used to
Specifically test assignment is performed on test type 1, test type 2, test type 3, test type 4 ... test type 20.
The test assignment of installation kit 2 is:In test type 1 ', test type 2 ', test type 3 ', test type 4 ' ...
Test is performed respectively on test type 10 ', then can be directed to installation kit 2 and 10 test assignment processes are set, be respectively used to specific
Test assignment is performed on test type 1 ', test type 2 ', test type 3 ', test type 4 ' ... test type 10 ';Peace
Dress bag 3 test assignment be:The test machine in test type 1 ' ', test type 2 ' ', test type 3 ' ', test type 4 ' ' ...
Type 15 ' ' on perform test respectively, then can be directed to installation kit 3 set 15 test assignment processes, be respectively used to specifically testing
Type 1 ' ', test type 2 ' ', test type 3 ' ', test type 4 ' ' ... test type 15 ' ' on perform test respectively.
Exemplarily, if 10 intelligent terminal software installation kits, and test type is all identical, then generation 10 altogether
Individual test assignment, it is corresponding with 10 test assignment processes;If 10 intelligent terminal software installation kits, and each installation kit
All there are 10 sections of test types, then can generate 100 test assignments altogether, be corresponding with 100 test assignment processes.
In one embodiment, it is preferred to determined each according to the test type list for corresponding to intelligent terminal software bag
Before the test assignment of intelligent terminal software installation kit, the intelligent terminal software installation kit is further parsed, to verify the intelligence
The genuineness of document of terminal software installation kit.
In one embodiment, further upload in a step 101 each intelligent terminal software installation kit title and/
Or version information;And in a step 102, title and/or version can be parsed from acquired intelligent terminal software installation kit
This information, and the title parsed and/or version information and the title uploaded and/or version information are subjected to contrast verification,
So as to which whether certificate name and/or version information are correct.
In one embodiment, further in test intelligence of the retrieval in idle condition in test intelligent terminal storehouse
Terminal;It is true further according to the test type list corresponding to intelligent terminal software bag and the test intelligent terminal in idle condition
The test assignment of fixed each intelligent terminal software installation kit.
For example continue to include 20 kinds of types according to example above, the test type list of installation kit 1, respectively test
Type 1, test type 2, test type 3, test type 4 ... test type 20.By retrieving test intelligent terminal storehouse, find
Test type 1, test type 2 and test type 3 are in busy condition, then can be temporarily by test type 1, test type 2 and
The test volume of test type 3 suspends from the test assignment of installation kit 1, but in other test types for being in idle condition
Test assignment is performed, when the working condition of test type 1, test type 2 and test type 3 reverts to idle and then pin
The test assignment on installation kit 1 is performed to test type 1, test type 2 and test type 3.
Step 103:When test assignment process judges to have corresponding intelligent terminal software installation kit in local resource pond,
The corresponding intelligent terminal software installation kit is obtained from local resource pond.
In one embodiment, this method further comprises:When test assignment process judges do not have in local resource pond
During corresponding intelligent terminal software installation kit, the corresponding intelligent terminal software installation kit is obtained from described group of bag, and
The corresponding intelligent terminal software installation kit is stored into the file corresponding with test assignment process.
That is, when test assignment process judges there is corresponding intelligent terminal in the local resource pond of test terminal
During software installation bag, the corresponding intelligent terminal software installation kit is directly obtained from local resource pond.When test assignment is entered
When journey judges not having corresponding intelligent terminal software installation kit in the local resource pond for testing terminal, then obtained from server
The corresponding intelligent terminal software installation kit, and the corresponding intelligent terminal software installation kit storage is arrived and test assignment
In the corresponding file of process.
Because each test assignment process during obtaining intelligent terminal software installation kit when that may have certain
Between be spaced, therefore this method further comprises:
When test assignment process obtains the corresponding intelligent terminal software installation kit and then once from described group of bag
Judge whether there is corresponding intelligent terminal software installation kit in local resource pond, if it is not, will be obtained from group bag
Corresponding intelligent terminal software installation kit is copied in local resource pond, if so, then illustrating other test assignment processes
Through obtaining the corresponding intelligent terminal software installation kit from described group of bag and installing corresponding intelligent terminal software
Packet replication now exits this flow to local resource pond.
Herein, each test assignment process can further perform the test of each intelligent terminal software installation kit parallel
Task.For the test assignment of each intelligent terminal software installation kit, intelligent terminal software installation kit is installed to test first
On test intelligent terminal in task, then start the intelligent terminal software on test intelligent terminal, and travel through the intelligent terminal
Software is to perform test.Specific traversal work can include:Each functionality controls of the intelligent terminal software are tested, show the intelligence
Display interface of energy terminal software, etc..
In one embodiment, the test prioritization of intelligent terminal software installation kit is further uploaded in a step 101.
Now, in step 103, can be performed each according to the test prioritization order of the intelligent terminal software installation kit uploaded
The test assignment of intelligent terminal software installation kit.
Based on above-mentioned labor, embodiment of the present invention also proposed a kind of intelligent terminal software bag acquisition device.
Fig. 2 is according to embodiment of the present invention intelligent terminal software bag acquisition device structure chart.
As shown in Fig. 2 the device, which includes receiving unit 201, test assignment course allocation unit 202 and installation kit, obtains list
Member 203, wherein:
Receiving unit 201, for receiving the group bag comprising at least two intelligent terminal software installation kits and each intelligence
The test type list of terminal software installation kit;
Test assignment course allocation unit 202, for the test type list according to intelligent terminal software installation kit, distribution
The test assignment process corresponding with intelligent terminal software installation kit;
Installation kit acquiring unit 203, for judging there is corresponding intelligence in local resource pond eventually when test assignment process
When holding software installation bag, the corresponding intelligent terminal software installation kit is obtained from local resource pond.
In one embodiment, installation kit acquiring unit 203, it is further used for when test assignment process judges local money
When not having corresponding intelligent terminal software installation kit in the pond of source, the corresponding intelligent terminal software is obtained from described group of bag
Installation kit, and the corresponding intelligent terminal software installation kit is stored into the file corresponding with test assignment process.
In one embodiment, installation kit acquiring unit 203, it is further used for working as test assignment process from described group of bag
After middle acquisition corresponding intelligent terminal software installation kit, judge whether there is corresponding intelligent terminal in local resource pond
Software installation bag, if it is not, the corresponding intelligent terminal software installation kit obtained from group bag is copied into local resource
Chi Zhong, if so, then terminating this flow.
Preferably, the device further comprises verification unit 204;
Receiving unit 201, it is further used for receiving the title and/or version information of each intelligent terminal software installation kit;
Verification unit 204, for parsing title and/or version letter from acquired intelligent terminal software installation kit
Breath, and the title parsed and/or version information and the title uploaded and/or version information are subjected to contrast verification.
In one embodiment, the device further comprises authentication unit 205;
Authentication unit 205, for after the intelligent terminal software installation kit is obtained from local resource pond, parsing the intelligence
Can terminal software installation kit to verify the genuineness of document of the intelligent terminal software installation kit.
In one embodiment, test assignment course allocation unit 202, in test intelligent terminal storehouse at retrieval
In the test intelligent terminal of idle condition;According to the test type list of intelligent terminal software bag and the survey in idle condition
Intelligent terminal is tried, it is determined that the test assignment process corresponding with intelligent terminal software installation kit.
Preferably, the device further comprises test cell 206, wherein:
Test cell 206, after obtaining the corresponding intelligent terminal software installation kit in installation kit acquiring unit,
The corresponding intelligent terminal software installation kit is installed to the survey related to the test assignment process by enabled test assignment process
Try on intelligent terminal, start the intelligent terminal software on the test intelligent terminal, and travel through the intelligent terminal software to perform
Test.
Based on above-mentioned labor, embodiment of the present invention also proposed a kind of intelligent terminal software bag and obtain system.
Fig. 3 is to obtain system construction drawing according to the intelligent terminal software bag of embodiment of the present invention.
As shown in figure 3, the system includes uploading device 301, test server 302 and test device 303, wherein test clothes
Business device 302 and test device 303 are located at network side:
Device 301 is uploaded, for uploading the group for including at least two intelligent terminal software installation kits to test server 302
The test type list of bag and each intelligent terminal software installation kit;
Test server 302, for the test type list according to intelligent terminal software installation kit, distribution and intelligent terminal
The corresponding test assignment process of software installation bag;
Test device 303, for testing results task process, wherein when test assignment process is judged positioned at test device
When having corresponding intelligent terminal software installation kit in local resource pond, the corresponding intelligence is obtained from local resource pond eventually
Hold software installation bag.
As shown in figure 3, specifically, test device 303 can connect multiple different models by modes such as USB/ bluetooths
Intelligent terminal(Such as intelligent terminal 1, intelligent terminal 2 in Fig. 3, until intelligent terminal n), specifically provide intelligence by these intelligent terminals
The installation test environment of energy terminal software installation kit.
Test device 303, it is further used for when test assignment process judges do not have corresponding intelligence in local resource pond
During terminal software installation kit, the corresponding intelligent terminal software installation is obtained from the group bag for uploading to test server 301
Bag, and the corresponding intelligent terminal software installation kit is stored into the file corresponding with test assignment process.
In one embodiment, test device 303, it is further used for when test assignment process obtains from described group of bag
After the corresponding intelligent terminal software installation kit, judge whether there is corresponding intelligence in the local resource pond of test device
Terminal software installation kit, if it is not, the corresponding intelligent terminal software installation kit obtained from group bag is copied into local
In resource pool, if so, then terminating this flow.
In embodiments of the present invention, first can by web terminal user by upload device upload apk files to be measured with
And type list is in test server;Test server end receives apk files and type list, detects corresponding type place
Test device(Such as specially PC), test assignment distribution is then carried out, one of apk is with a type as one
Test assignment).
Each test assignment process is run after test device receives task.With the test assignment process A corresponding to apk1
Exemplified by it is exemplary illustrated:The apk1 files uploaded in the detection resource pools of test assignment process A first either with or without this user, if
Have, test assignment process A downloads the corresponding intelligent terminal type of installation from test device end automatically and tested;If not yet
Have, establish test assignment process A file in test terminal, the apk1 obtained from server is downloaded in this document underedge
File, detect whether the apk1 files into resource pool again after the completion of download, if resource pool does not have apk1 files, from
Apk1 files are replicated in this document folder into resource pool, if resource pool has apk1 files, test assignment process A file
In apk1 files do not copy in resource pool.Other test assignment processes perform similar process operation.
Indeed, it is possible to the intelligent terminal software bag that embodiment of the present invention is proposed is embodied by diversified forms
Acquisition methods and device.For example the application programming interfaces of certain specification can be followed, intelligent terminal software bag acquisition methods are compiled
It is written as being installed to the plug-in card program in mobile device, can also be encapsulated as application program so that user voluntarily downloads use.
When being written as plug-in card program, a variety of card formats such as ocx, dll, cab can be implemented as.It can also be inserted by Flash
The particular techniques such as part, RealPlayer plug-in units, MMS plug-in units, MIDI staffs plug-in unit, ActiveX plug-in units are of the invention real to implement
The intelligent terminal software bag acquisition methods that the mode of applying is proposed.
The intelligent terminal that can be proposed embodiment of the present invention by the storing mode that instruction or instruction set store is soft
Part bag acquisition methods are stored in various storage mediums.These storage mediums include but is not limited to:Floppy disk, CD, DVD,
Hard disk, flash memory, USB flash disk, CF cards, SD card, mmc card, SM cards, memory stick(Memory Stick), xD cards etc..
Furthermore it is also possible to the intelligent terminal software bag acquisition methods that embodiment of the present invention is proposed are applied to based on sudden strain of a muscle
Deposit(Nand flash)Storage medium in, such as USB flash disk, CF cards, SD card, SDHC cards, mmc card, SM cards, memory stick, xD cards etc..
In summary, in embodiments of the present invention, the group bag for including at least two intelligent terminal software installation kits is received
And the test type list of each intelligent terminal software installation kit;Arranged according to the test type of intelligent terminal software installation kit
Table, the distribution test assignment process corresponding with intelligent terminal software installation kit;When test assignment process judges local resource pond
In when having corresponding intelligent terminal software installation kit, corresponding intelligent terminal software installation is obtained from local resource pond
Bag.It can be seen that after using embodiment of the present invention, be no longer it is independent upload and independent test application program software installation bag, and
It is to realize the batch upload for software installation bag, so as to significantly reduce the testing time, and improves testing efficiency.
Moreover, when test assignment process judges to have corresponding intelligent terminal software installation kit in local resource pond, directly
Connect and corresponding intelligent terminal software installation kit is obtained from local resource pond, therefore embodiment of the present invention also avoid repetition
Intelligent terminal software installation kit is downloaded, so as to save system resource.
Further, embodiment of the present invention can also be applied in various terminals, and can be used with cross-platform cross terminal,
The scope of application is very extensive.
The foregoing is only a preferred embodiment of the present invention, is not intended to limit the scope of the present invention.It is all
Within the spirit and principles in the present invention, any modification, equivalent substitution and improvements made etc., the protection of the present invention should be included in
Within the scope of.