Embodiment
For making the object, technical solutions and advantages of the present invention clearer, below in conjunction with accompanying drawing, the present invention is described in further detail.
Fig. 1 is according to embodiment of the present invention intelligent terminal software bag acquisition methods process flow diagram.
As shown in Figure 1, the method comprises:
Step 101: the group bag that reception comprises at least two intelligent terminal software installation kits and the test type list of each intelligent terminal software installation kit, wherein preferably comprise at least two kinds of intelligent terminal types in this test type list.
Here, can by the intelligent terminal software developer who is positioned at local side by a plurality of (at least two) intelligent terminal software installation kit be combined into whole bag (such as, by various compressed softwares, be compressed into compressed package), and this group wrapped to (i.e. whole bag) and upload to network side corresponding to the test type list of each intelligent terminal software installation kit, generally uploading to the server that is arranged in network side.
Such as, thereby group packet compression software can utilize algorithm that intelligent terminal software installation kit is nondestructively processed and made file smaller volume.The group packet compression form that embodiment of the present invention can adopt can comprise: rar, zip, 7z, kz, CAB, ARJ, LZH, TAR, GZ, ACE, UUE, BZ2, JAR, ISO, and the various ways such as MPQ.
Wherein, except uploading the group bag that comprises at least two intelligent terminal software installation kits, also need to upload the test type list corresponding to each intelligent terminal software installation kit.The list of test type comprises intelligent terminal brand and the model of testing corresponding intelligent terminal software installation kit.
In one embodiment, local side can be uploaded the group bag of intelligent terminal software installation kit and be tested type list to network side by various ways such as WEB, HTTP, FTP.
Preferably, also can upload by multiple hybrid mode group bag and the list of test type of intelligent terminal software installation kit.Such as, by FTP mode, upload the group of intelligent terminal software installation kit and wrap, and upload the list of test type by WEB mode, etc.
The concrete form of intelligent terminal software installation kit can have multiple, such as comprising apk file layout, sis file layout, sisx file layout, etc.
The apk file layout of take describes as example.Apk is the abbreviation of AndroidPackage, i.e. Android installation kit (apk).Apk is the file layout of similar Symbian Sis or Sisx.By apk file directly being passed in Android simulator or Android mobile phone, carry out and can install.Apk file is the same with sis, and the engineering of android sdk compiling is packaged into an installation procedure file, and form is apk.Apk file is zip form in fact, but suffix name is modified to apk, after UnZip decompress(ion), can see Dex file, Dex is the full name of Dalvik VM executes, i.e. Android Dalvik executive routine, the not bytecode of Java ME but Dalvik bytecode.
Here, the intelligent terminal that intelligent terminal software installation kit is finally installed can include, but are not limited to: functional mobile phone, smart mobile phone, palm PC, PC (PC), panel computer or PDA(Personal Digital Assistant), etc.
Although enumerated in detail above the instantiation of intelligent terminal, those skilled in the art can recognize, these are enumerated is only purposes of illustration, is not intended to limit the present invention the protection domain of embodiment.
Intelligent terminal operating system can be operating system arbitrarily, the operating system that specifically can adopt includes, but are not limited to: Android (Andorid), Palm OS, Symbian(Saipan), Windows mobile, Linux, Android(Android), iPhone(apple) OS, Black Berry(blackberry, blueberry) OS6.0, Windows Phone series, etc.
Preferably, intelligent terminal operating system specifically can adopt Android operating system, and intelligent terminal can use among each version of Andorid, include, but are 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), frozen yogurt (Android2.2), gingerbread (Android2.3), honeycomb (Android 3.0), ice cream sandwich (Android4.0), jelly beans (Jelly Bean, the version such as Android4.1).
Below enumerated in detail the concrete version of Android platform, it will be appreciated by those of skill in the art that embodiment of the present invention is not limited to the above-mentioned version of enumerating, and can also be applicable among other any versions based on Android software architecture.
Step 102: according to the test type list of intelligent terminal software installation kit, distribute the test assignment process corresponding with intelligent terminal software installation kit.
Here, first server obtains each intelligent terminal software installation kit from described group of bag, and according to the test type list corresponding to intelligent terminal software bag, determines the test assignment of each intelligent terminal software installation kit.
Such as, suppose that server has obtained 3 intelligent terminal software installation kits from group bag, is respectively installation kit 1, installation kit 2 and installation kit 3.The test type list of installation kit 1 includes 20 kinds of types, is respectively test type 1, test type 2, test type 3, test type 4 ... test type 20; The test type list of installation kit 2 includes 10 kinds of types, is respectively test type 1 ', test type 2 ', test type 3 ', test type 4 ' ... test type 10 '; The test type list of installation kit 3 includes 15 kinds of types, is respectively test type 1 ' ', test type 2 ' ', test type 3 ' ', test type 4 ' ' ... test type 15 ' '.
So, the test assignment of installation kit 1 is: at test type 1, test type 2, test type 3, test type 4 ... on test type 20, carry out respectively test; The test assignment of installation kit 2 is: at test type 1 ', test type 2 ', test type 3 ', test type 4 ' ... on test type 10 ', carry out respectively test; The test assignment of installation kit 3 is: at test type 1 ' ', test type 2 ' ', test type 3 ' ', test type 4 ' ' ... test type 15 ' ' on carry out respectively test.
For each test assignment, a corresponding test assignment process can be set, can specifically on test terminal, carry out test assignment process.Each test terminal can be corresponding to corresponding test terminal model, and each test terminal can be connected with server by various types of interfaces (as modes such as USB, bluetooths).
Such as, the test assignment of installation kit 1 is: at test type 1, test type 2, test type 3, test type 4 ... on test type 20, carry out respectively test, can 20 test assignment processes be set for installation kit 1, be respectively used to specifically at test type 1, test type 2, test type 3, test type 4 ... on test type 20, carry out test assignment.
The test assignment of installation kit 2 is: at test type 1 ', test type 2 ', test type 3 ', test type 4 ' ... on test type 10 ', carry out respectively test, can 10 test assignment processes be set for installation kit 2, be respectively used to specifically at test type 1 ', test type 2 ', test type 3 ', test type 4 ' ... the upper test assignment of carrying out of test type 10 '; The test assignment of installation kit 3 is: at test type 1 ' ', test type 2 ' ', test type 3 ' ', test type 4 ' ' ... test type 15 ' ' on carry out respectively test, can 15 test assignment processes be set for installation kit 3, be respectively used to specifically at test type 1 ' ', test type 2 ' ', test type 3 ' ', test type 4 ' ' ... test type 15 ' ' on carry out respectively test.
Exemplarily, if there are 10 intelligent terminal software installation kits, and test type is all identical, generates altogether 10 test assignments, to there being 10 test assignment processes; If there are 10 intelligent terminal software installation kits, and each installation kit have 10 sections test types, can generate altogether 100 test assignments, to there being 100 test assignment processes.
In one embodiment, preferably before basis is determined the test assignment of each intelligent terminal software installation kit corresponding to the test type list of intelligent terminal software bag, further resolve this intelligent terminal software installation kit, to verify the genuineness of document of this intelligent terminal software installation kit.
In one embodiment, in step 101, further upload title and/or the version information of each intelligent terminal software installation kit; And in step 102, can from obtained intelligent terminal software installation kit, parse title and/or version information, and the title parsing and/or version information and the title of uploading and/or version information are contrasted to verification, thereby whether certificate name and/or version information be correct.
In one embodiment, further at the test intelligent terminal of retrieval in idle condition in test intelligent terminal storehouse; Basis is corresponding to the test type list of intelligent terminal software bag and the test assignment of determining each intelligent terminal software installation kit in the test intelligent terminal of idle condition again.
Such as, continuing according to example above, the test type list of installation kit 1 includes 20 kinds of types, is respectively test type 1, test type 2, test type 3, test type 4 ... test type 20.By retrieval, test intelligent terminal storehouse, find that test type 1, test type 2 and test type 3 are in busy condition, can temporarily the test volume of test type 1, test type 2 and test type 3 be suspended from the test assignment of installation kit 1, but in the test type in idle condition, carry out test assignment at other, after the duty of by the time testing type 1, test type 2 and test type 3 reverts to the free time, then carry out the test assignment about installation kit 1 for test type 1, test type 2 and test type 3.
Step 103: while having corresponding intelligent terminal software installation kit in test assignment process judgement local resource pond, obtain this corresponding intelligent terminal software installation kit from local resource pond.
In one embodiment, the method further comprises: while there is no corresponding intelligent terminal software installation kit in test assignment process judgement local resource pond, from described group of bag, obtain this corresponding intelligent terminal software installation kit, and this corresponding intelligent terminal software installation kit is stored in the file corresponding with test assignment process.
That is to say, while having corresponding intelligent terminal software installation kit in the local resource pond of test assignment process judgement in test terminal, directly from local resource pond, obtain this corresponding intelligent terminal software installation kit.While there is no corresponding intelligent terminal software installation kit in the local resource pond of test assignment process judgement in test terminal, from server, obtain this corresponding intelligent terminal software installation kit, and this corresponding intelligent terminal software installation kit is stored in the file corresponding with test assignment process.
Because each test assignment process may have certain time interval in the process of obtaining intelligent terminal software installation kit, so the method further comprises:
After test assignment process is obtained this corresponding intelligent terminal software installation kit from described group of bag, judge again and in local resource pond, whether have corresponding intelligent terminal software installation kit, if do not had, the corresponding intelligent terminal software installation kit obtaining from group bag is copied in local resource pond, if had, the test assignment process that other are described has been obtained this corresponding intelligent terminal software installation kit and corresponding intelligent terminal software installation kit has been copied to local resource pond from described group of bag, therefore now exits this flow process.
Here, the further test assignment of each intelligent terminal software installation kit of executed in parallel of each test assignment process.Test assignment for each intelligent terminal software installation kit, first intelligent terminal software installation kit is installed on the test intelligent terminal in test assignment, on test intelligent terminal, start this intelligent terminal software again, and travel through this intelligent terminal software to carry out test.Concrete traversal work can comprise: tests each functionality controls of this intelligent terminal software, shows the display interface of this intelligent terminal software, etc.
In one embodiment, in step 101, further upload the test prioritization of intelligent terminal software installation kit.Now, in step 103, can, according to the test prioritization order of uploaded intelligent terminal software installation kit, carry out the test assignment of each intelligent terminal software installation kit.
Based on above-mentioned labor, embodiment of the present invention has 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 structural drawing.
As shown in Figure 2, this device comprises receiving element 201, test assignment course allocation unit 202 and installation kit acquiring unit 203, wherein:
Receiving element 201, for receiving the group bag that comprises at least two intelligent terminal software installation kits and the test type list of each intelligent terminal software installation kit;
Test assignment course allocation unit 202, for according to the test type list of intelligent terminal software installation kit, distributes the test assignment process corresponding with intelligent terminal software installation kit;
Installation kit acquiring unit 203 for when test assignment process judges that there is corresponding intelligent terminal software installation kit in local resource pond, obtains this corresponding intelligent terminal software installation kit from local resource pond.
In one embodiment, installation kit acquiring unit 203, while being further used for there is no corresponding intelligent terminal software installation kit in test assignment process judgement local resource pond, from described group of bag, obtain this corresponding intelligent terminal software installation kit, and this corresponding intelligent terminal software installation kit is stored in the file corresponding with test assignment process.
In one embodiment, installation kit acquiring unit 203, be further used for after test assignment process is obtained this corresponding intelligent terminal software installation kit from described group of bag, judge and in local resource pond, whether have corresponding intelligent terminal software installation kit, if do not had, the corresponding intelligent terminal software installation kit obtaining from group bag is copied in local resource pond, if had, process ends.
Preferably, this device further comprises verification unit 204;
Receiving element 201, is further used for receiving title and/or the version information of each intelligent terminal software installation kit;
Verification unit 204, parses title and/or version information for the intelligent terminal software installation kit from obtained, and the title parsing and/or version information and the title of uploading and/or version information are contrasted to verification.
In one embodiment, this device further comprises authentication unit 205;
Authentication unit 205, for after obtaining this intelligent terminal software installation kit from local resource pond, resolves this intelligent terminal software installation kit to verify the genuineness of document of this intelligent terminal software installation kit.
In one embodiment, test assignment course allocation unit 202, for the test intelligent terminal in idle condition in the retrieval of test intelligent terminal storehouse; According to the test type list of intelligent terminal software bag and the test intelligent terminal in idle condition, determine the test assignment process corresponding with intelligent terminal software installation kit.
Preferably, this device further comprises test cell 206, wherein:
Test cell 206, for after installation kit acquiring unit obtains this corresponding intelligent terminal software installation kit, enabling test assignment process is installed to this corresponding intelligent terminal software installation kit on the test intelligent terminal relevant to this test assignment process, on this test intelligent terminal, start this intelligent terminal software, and travel through this intelligent terminal software to carry out test.
Based on above-mentioned labor, embodiment of the present invention has also proposed a kind of intelligent terminal software bag and has obtained system.
Fig. 3 is for to obtain system construction drawing according to the intelligent terminal software bag of embodiment of the present invention.
As shown in Figure 3, this system comprises uploads device 301, testing server 302 and proving installation 303, and wherein testing server 302 and proving installation 303 are positioned at network side:
Upload device 301, for upload the group bag that comprises at least two intelligent terminal software installation kits and the test type list of each intelligent terminal software installation kit to testing server 302;
Testing server 302, for according to the test type list of intelligent terminal software installation kit, distributes the test assignment process corresponding with intelligent terminal software installation kit;
Proving installation 303, be used for moving test assignment process, wherein, when test assignment process judges that there is corresponding intelligent terminal software installation kit in the local resource pond be arranged in proving installation, from local resource pond, obtain this corresponding intelligent terminal software installation kit.
As shown in Figure 3, particularly, the intelligent terminal that proving installation 303 can connect a plurality of different models by modes such as USB/ bluetooths is (as intelligent terminal in Fig. 31, intelligent terminal 2, the installation testing environment of intelligent terminal software installation kit is specifically provided by these intelligent terminals until intelligent terminal n).
Proving installation 303, while being further used for there is no corresponding intelligent terminal software installation kit in test assignment process judgement local resource pond, from upload to the group bag of testing server 301, obtain this corresponding intelligent terminal software installation kit, and this corresponding intelligent terminal software installation kit is stored in the file corresponding with test assignment process.
In one embodiment, proving installation 303, be further used for after test assignment process is obtained this corresponding intelligent terminal software installation kit from described group of bag, judge in the local resource pond of proving installation and whether have corresponding intelligent terminal software installation kit, if do not had, the corresponding intelligent terminal software installation kit obtaining from group bag is copied in local resource pond, if had, process ends.
In embodiment of the present invention, first can by uploading device, upload apk file to be measured and type list to testing server by web end subscriber; Testing server end is received apk file and type list, detect corresponding type place proving installation (such as, be specially PC), then carry out test assignment distribution, one of them apk and a type are as a test assignment).
After receiving task, proving installation moves each test assignment process.The test assignment process A of take corresponding to apk1 is example exemplary illustrated: first test assignment process A detects the apk1 file that whether has this user to upload in resource pool, if had, test assignment process A automatically downloads and installs corresponding intelligent terminal type from proving installation end and tests; If do not had, in test terminal, set up the file of a test assignment process A, at this document underedge, download the apk1 file obtaining from server, after completing, download in resource pool, detects whether there is this apk1 file again, if resource pool does not have apk1 file, from this document folder, copy apk1 file in resource pool, if resource pool has apk1 file, the apk1 file in the file of test assignment process A does not copy in resource pool.Other test assignment processes are carried out similar processing operation.
In fact, can specifically implement intelligent terminal software bag acquisition methods and the device that embodiment of the present invention proposes by various ways.Such as, can follow the application programming interfaces of certain standard, intelligent terminal software bag acquisition methods is written as to the plug-in card program being installed in mobile device, also can be encapsulated as application program and be downloaded voluntarily use for user.When being written as plug-in card program, can be implemented as the multiple card format such as ocx, dll, cab.Also can implement the intelligent terminal software bag acquisition methods that embodiment of the present invention proposes by the concrete technology such as Flash plug-in unit, RealPlayer plug-in unit, MMS plug-in unit, MIDI staff plug-in unit, ActiveX plug-in unit.
The intelligent terminal software bag acquisition methods that can embodiment of the present invention be proposed by the storing mode of instruction or instruction set storage is stored on various storage mediums.These storage mediums include, but are not limited to: floppy disk, CD, DVD, hard disk, flash memory, USB flash disk, CF card, SD card, mmc card, SM card, memory stick (Memory Stick), xD card etc.
In addition, the intelligent terminal software bag acquisition methods that embodiment of the present invention can also be proposed is applied in the storage medium based on flash memory (Nand flash), such as USB flash disk, CF card, SD card, SDHC card, mmc card, SM card, memory stick, xD card etc.
In sum, in embodiment of the present invention, the group bag that reception comprises at least two intelligent terminal software installation kits and the test type list of each intelligent terminal software installation kit; According to the test type list of intelligent terminal software installation kit, distribute the test assignment process corresponding with intelligent terminal software installation kit; While having corresponding intelligent terminal software installation kit in test assignment process judgement local resource pond, from local resource pond, obtain this corresponding intelligent terminal software installation kit.Visible, after application embodiment of the present invention, be no longer to upload separately and independent test application software installation kit, but realized for the batch of software installation kit, upload, thereby significantly reduced the test duration, and improved testing efficiency.
And, while having corresponding intelligent terminal software installation kit in test assignment process judgement local resource pond, directly from local resource pond, obtain corresponding intelligent terminal software installation kit, therefore embodiment of the present invention has also been avoided repeated downloads intelligent terminal software installation kit, thereby has saved system resource.
Also have, embodiment of the present invention can also be applied in various terminals, and can cross-platform cross terminal use, the scope of application is very extensive.
The above, be only preferred embodiment of the present invention, is not intended to limit protection scope of the present invention.Within the spirit and principles in the present invention all, any modification of doing, be equal to replacement, improvement etc., within all should being included in protection scope of the present invention.