CN105468504A - Program test method and device - Google Patents

Program test method and device Download PDF

Info

Publication number
CN105468504A
CN105468504A CN201410384621.4A CN201410384621A CN105468504A CN 105468504 A CN105468504 A CN 105468504A CN 201410384621 A CN201410384621 A CN 201410384621A CN 105468504 A CN105468504 A CN 105468504A
Authority
CN
China
Prior art keywords
mobile terminal
program
installation kit
firmware file
measured
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201410384621.4A
Other languages
Chinese (zh)
Other versions
CN105468504B (en
Inventor
党春艳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201410384621.4A priority Critical patent/CN105468504B/en
Publication of CN105468504A publication Critical patent/CN105468504A/en
Application granted granted Critical
Publication of CN105468504B publication Critical patent/CN105468504B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention provides a program test method, comprising: starting a preset automatic tool, obtaining a firmware file package, an installation package of a program to be tested and a flash solution obtained according to the obtaining instructions triggered by a user through the automatic tool; generating an object firmware file package according to the firmware file package, the installation package of the automatic tool, the installation package of the program to be tested and the installation package of a preset test tool; flashing the file contained in the object firmware file package to a mobile terminal according to the flash solution, reinstalling the operation system of the mobile terminal to be the object operation system; when a test task is triggered in the object operation system, invoking the test tool to test the program to be tested. The invention also provides a program test device. The program test method and device can simplify the program test process, accelerate the test speed and reduce the test cost.

Description

Program testing method and device
Technical field
The present invention relates to field of computer technology, particularly relate to a kind of program testing method and device.
Background technology
Along with the development of computer technology, increasing program is developed, but differ due to the operating system version installed in each mobile terminal, for making program can be compatible with the operating system of each version, need to test developed program (software) in the performance history of program (software).
Based on the program test technology of mobile terminal in prior art, mainly by following two kinds of modes, program is tested: 1, buy the mobile terminal having installed different editions operating system, artificial installation program to be measured in above-mentioned mobile terminal, then carries out follow-up test respectively; 2, in same mobile terminal, wait brush machine instrument by brush machine spirit, manually brush the operating system into different editions, under new operating system, then manually reinstall program to be measured, and follow-up test is carried out to this program to be measured.
Above-mentioned 1st kind of method needs to buy multiple testing apparatus pedestrian's work of going forward side by side and installs program to be measured, therefore needs to spend larger financial resources cost and human cost.Although above-mentioned 2nd kind of method financial resources cost is low compared with the 1st kind of method, artificial brush machine also installs program to be measured, needs user to have higher professional knowledge and complex operation, therefore still needs to spend higher human cost.
Summary of the invention
In view of this, the invention provides a kind of program testing method and device, achieve the operating system of automatic switchover different editions, and Auto-mounting program to be measured is tested after switching, can simplify procedures test process, accelerate test speed, reduce testing cost.
A kind of program testing method that the embodiment of the present invention provides, comprise: start preset automation tools, the firmware file bag that the acquisition instruction instruction obtaining user's triggering by described automation tools obtains, the installation kit of program to be measured and brush machine scheme, comprise the firmware file for the operating system of mobile terminal being reinstalled as the different destination OS of the origin operation system version from described mobile terminal in described firmware file bag, described brush machine scheme is corresponding with the model of described mobile terminal; According to the installation kit of described firmware file bag, described automation tools, the installation kit of described program to be measured and the installation kit of preset testing tool, generate target firmware file bag; According to described brush machine scheme, the file brush comprised in described target firmware file bag is entered described mobile terminal, make the operating system of described mobile terminal be reinstalled as quickly as possible as described destination OS, described automation tools, described program to be measured and described testing tool are reinstalled as quickly as possible after for described destination OS in the operating system of described mobile terminal and are automatically installed in described mobile terminal; Under described destination OS, when test assignment is triggered, calls described testing tool and described program to be measured is tested.
A kind of program test device that the embodiment of the present invention provides, comprising: start module, for starting preset automation tools; First acquisition module, described automation tools for being started by described startup module obtains the firmware file bag of acquisition instruction instruction acquisition, the installation kit of program to be measured and the brush machine scheme that user triggers, comprise the firmware file for the operating system of mobile terminal being reinstalled as the different destination OS of the origin operation system version from described mobile terminal in described firmware file bag, described brush machine scheme is corresponding with the model of described mobile terminal; Generation module, for the described firmware file bag, the installation kit of described automation tools, the installation kit of described program to be measured and the installation kit of preset testing tool that obtain according to described first acquisition module, generates target firmware file bag; Brush machine module, for the described brush machine scheme obtained according to described first acquisition module, the file brush comprised in the described target firmware file bag generated by described generation module enters described mobile terminal, make the operating system of described mobile terminal be reinstalled as quickly as possible as described destination OS, described automation tools, described program to be measured and described testing tool are reinstalled as quickly as possible after for described destination OS in the operating system of described mobile terminal and are automatically installed in described mobile terminal; Test module, under the described destination OS that enters at described brush machine module brush, when test assignment is triggered, calls the described testing tool that described brush machine module brush enters and tests described program to be measured.
The said procedure method of testing that the embodiment of the present invention provides and device, the firmware file bag for the operating system of mobile terminal being reinstalled the firmware file into the different destination OS of the origin operation system version from this mobile terminal is comprised by basis, the installation kit of preset automation tools, the installation kit of program to be measured and the installation kit of preset testing tool, generate target firmware file bag, according to brush machine scheme, the file brush comprised in this target firmware file bag is entered this mobile terminal, the operating system of this mobile terminal is made to be reinstalled as quickly as possible as this destination OS, this automation tools, this program to be measured and this testing tool are reinstalled as quickly as possible as being automatically installed in this mobile terminal after this destination OS in the operating system of this mobile terminal, then under this destination OS, when test assignment is triggered, call this testing tool to test this program to be measured, achieve the operating system of automatic switchover different editions, and Auto-mounting program to be measured is tested after switching, can simplify procedures test process, accelerate test speed, reduce testing cost.
For above and other object of the present invention, feature and advantage can be become apparent, preferred embodiment cited below particularly, and coordinate institute's accompanying drawings, be described in detail below.
Accompanying drawing explanation
The applied environment figure of the program testing method that Fig. 1 provides for the embodiment of the present invention and device;
The Organization Chart of the application system in the program test device that Fig. 2 provides for the embodiment of the present invention;
Fig. 3 shows a kind of structured flowchart of mobile terminal;
The process flow diagram of the program testing method that Fig. 4 provides for first embodiment of the invention;
The process flow diagram of the program testing method that Fig. 5 provides for second embodiment of the invention;
The structural representation of the program test device that Fig. 6 provides for third embodiment of the invention;
Fig. 7 is the storage environment schematic diagram of the device of Fig. 6;
The structural representation of the program test device that Fig. 8 provides for fourth embodiment of the invention;
The structural representation of part of module in the program test device that Fig. 9 provides for fourth embodiment of the invention;
The structural representation of part of module in the program test device that Figure 10 provides for fourth embodiment of the invention;
The structural representation of part of module in the program test device that Figure 11 provides for fourth embodiment of the invention.
Embodiment
For further setting forth the present invention for the technological means that realizes predetermined goal of the invention and take and effect, below in conjunction with accompanying drawing and preferred embodiment, to according to the specific embodiment of the present invention, structure, feature and effect thereof, be described in detail as follows.
The applied environment figure of the program testing method that Fig. 1 provides for the embodiment of the present invention and device.The program testing method that the embodiment of the present invention provides and device can be applicable to, in the environment shown in Fig. 1, realize program test.As shown in Figure 1, mobile terminal 100 and server 200 are arranged in wired or wireless network, and by this wired or wireless network, mobile terminal 100 and server 200 carry out data interaction.
Mobile terminal 100 can comprise: smart mobile phone, panel computer, E-book reader, the MP3 player (MovingPictureExpertsGroupAudioLayerIII of the transmission of network enabled data or data line data transmission, dynamic image expert compression standard audio frequency aspect 3), MP4 (MovingPictureExpertsGroupAudioLayerIV, dynamic image expert compression standard audio frequency aspect 4) player, pocket computer on knee, vehicle-mounted computer, wearable device, navigating instrument etc.
Mobile terminal 100, for starting preset automation tools, the firmware file bag that the acquisition instruction instruction obtaining user's triggering by this automation tools obtains, the installation kit of program to be measured and brush machine scheme, comprise the firmware file for the operating system of mobile terminal 100 being reinstalled as the different destination OS of the origin operation system version from this mobile terminal in this firmware file bag, this brush machine scheme is corresponding with the model of mobile terminal 100; According to the installation kit of the installation kit of this firmware file bag, this automation tools, the installation kit of this program to be measured and preset testing tool, generate target firmware file bag; According to this brush machine scheme, the file brush comprised in this target firmware file bag is entered mobile terminal 100, make the operating system of mobile terminal 100 be reinstalled as quickly as possible as this destination OS, this automation tools, this program to be measured and this testing tool the operating system of mobile terminal 100 be reinstalled as quickly as possible into after this destination OS by Auto-mounting in the mobile terminal 100; Under this destination OS, when test assignment is triggered, calls this testing tool and this program to be measured is tested.
Server 200, for the acquisition request sent according to mobile terminal 100, sends to mobile terminal 100 by this firmware file bag and this brush machine scheme.Further, server 200, the acquisition request also for sending according to mobile terminal 100, sends to mobile terminal 100 by the installation kit of this program to be measured and recovery (Recovery) file.
Further, mobile terminal 100 can also with External memory equipment (not shown) by USB (universal serial bus) (UniversalSerialBus, USB), the Various types of data line such as parallel bus, or the wireless communication mode such as bluetooth, infrared, NFC (near field communication (NFC)) carries out data interaction.Wherein, External memory equipment can comprise: external memory card, portable hard drive, USB flash drive, CD and other there is mobile terminal of massive store function etc.External memory equipment, may be used for the acquisition request of transmission instruction or mobile terminal 100 transmission triggered according to user, this firmware file bag and this brush machine scheme is sent to mobile terminal 100.In addition, External memory equipment can also be used for the acquisition request of transmission instruction or mobile terminal 100 transmission triggered according to user, and the installation kit of this program to be measured and Recovery file are sent to mobile terminal 100.
Further, the framework of the application system in mobile terminal 100 can as shown in Figure 2, and this application system can comprise: interface alternation layer, logical layer, data Layer and public library function.
Wherein, interface alternation layer, for providing preset operation interface for user, carries out user interactive by this operation interface, as selected program to be measured, selecting the version number of firmware file bag, determining whether back-up application data.Further, also can carry out brush machine complete after some interactive operations, as selected program to be measured etc.
Logical layer, for the data of data Layer are carried out logical process, as unpacked firmware file bag, press bag, brush system is carried out according to final firmware file bag, after having brushed system, automation tools is installed, program to be measured and testing tool, automatically opens selected program to be measured, automatically open testing tool etc., and the result of above-mentioned logical process is supplied to interface alternation layer.
Data Layer, for the version number of firmware file bag selected at interface alternation layer according to user, obtain the various resource file of the operating system for reinstall mobile terminal 100 such as brush machine scheme, Recovery file, firmware file bag corresponding with the model of mobile terminal 100 from server 200 or External memory equipment or local device.
Public library function is the library information that some are public, such as: the source code of testing tool, to operate and preset source code etc., for being data Layer service for realize performing acquisition, call etc.
Fig. 3 shows a kind of structured flowchart of mobile terminal.As shown in Figure 3, mobile terminal 100 comprises: storer 102, memory controller 104, one or more (only illustrating one in figure) processor 106, Peripheral Interface 108, radio-frequency module 110, locating module 112, photographing module 114, audio-frequency module 116, screen 118 and key-press module 120.These assemblies are by one or more communication bus/signal wire 122 communication mutually.
Be appreciated that the structure shown in Fig. 3 is only signal, mobile terminal 100 also can comprise than assembly more or less shown in Fig. 3, or has the configuration different from shown in Fig. 3.Each assembly shown in Fig. 3 can adopt hardware, software or its combination to realize.
Storer 102 can be used for storing software program and module, as the program testing method in the embodiment of the present invention and programmed instruction/module corresponding to device, processor 102 is by running the software program and module that are stored in storer 104, thus perform the application of various function and data processing, namely realize above-mentioned program testing method.
Storer 102 can comprise high speed random access memory, also can comprise nonvolatile memory, as one or more magnetic storage device, flash memory or other non-volatile solid state memories.In some instances, storer 102 can comprise the storer relative to the long-range setting of processor 106 further, and these remote memories can be connected to mobile terminal 100 by network.The example of above-mentioned network includes but not limited to internet, intranet, LAN (Local Area Network), mobile radio communication and combination thereof.Processor 106 and other possible assemblies can carry out the access of storer 102 under the control of memory controller 104.
Various softwares in processor 106 run memory 102, instruction are to perform the various function of mobile terminal 100 and to carry out data processing.
Peripheral Interface 108 is for being coupled to CPU and storer 102 by various external unit.
In certain embodiments, memory controller 104, processor 106 and Peripheral Interface 108 can realize in one single chip.In some other example, they can respectively by independently chip realization.
Radio-frequency module 110, for receiving and sending electromagnetic wave, realizes the mutual conversion of electromagnetic wave and electric signal, thus carries out communication with communication network or other equipment.Radio-frequency module 110 can comprise the various existing circuit component for performing these functions, such as, and antenna, radio-frequency (RF) transceiver, digital signal processor, encrypt/decrypt chip, subscriber identity module (SIM) card, storer etc.Radio-frequency module 110 can with various network as internet, intranet, wireless network carry out communication or carry out communication by wireless network and other equipment.Above-mentioned wireless network can comprise cellular telephone networks, WLAN (wireless local area network) or Metropolitan Area Network (MAN).Above-mentioned wireless network can use various communication standard, agreement and technology, include, but are not limited to global system for mobile communications (GlobalSystemforMobileCommunication, GSM), enhancement mode mobile communication technology (EnhancedDataGSMEnvironment, EDGE), Wideband CDMA Technology (widebandcodedivisionmultipleaccess, W-CDMA), CDMA (Code Division Multiple Access) (Codedivisionaccess, CDMA), tdma (timedivisionmultipleaccess, TDMA), bluetooth, adopting wireless fidelity technology (Wireless, Fidelity, WiFi) (as IEEE-USA standard IEEE 802.11a, IEEE802.11b, IEEE802.11g and/or IEEE802.11n), the networking telephone (Voiceoverinternetprotocol, VoIP), worldwide interoperability for microwave access (WorldwideInteroperabilityforMicrowaveAccess, Wi-Max), other are for mail, the agreement of instant messaging and short message, and any other suitable communications protocol, even can comprise those current agreements be developed not yet.
Locating module 112 is for obtaining the current location information of mobile terminal 100.The example of locating module 112 includes but not limited to Global Positioning System (GPS) (GPS), location technology based on WLAN (wireless local area network) or mobile radio communication.
Photographing module 114 is for taking pictures or video.Photo or the video of shooting can be stored in storer 102, and send by radio-frequency module 110.
Audio-frequency module 116 provides audio interface to user, and it can comprise one or more microphone, one or more loudspeaker and voicefrequency circuit.Voicefrequency circuit receives voice data from Peripheral Interface 108, voice data is converted to telecommunications breath, and telecommunications breath is transferred to loudspeaker.Telecommunications breath is changed the sound wave can heard into people's ear by loudspeaker.Voicefrequency circuit also from microphone receive telecommunications breath, convert electrical signals to voice data, and by data transmission in network telephony to Peripheral Interface 108 to be further processed.Voice data can obtain from storer 102 or by radio-frequency module 110.In addition, voice data also can be stored in storer 102 or by radio-frequency module 110 and send.In some instances, audio-frequency module 116 also can comprise an earphone and broadcast hole, for providing audio interface to earphone or other equipment.
Screen 118 provides an output interface between mobile terminal 100 and user, and export to user's display video, the content of these video frequency output can comprise word, figure, video and combination in any thereof.Some Output rusults correspond to some user interface object.Understandable, screen 118 can also provide one to export and inputting interface between mobile terminal 100 and user simultaneously.Particularly, except exporting to user's display video, screen 118 also receives the input of user, and the gesture operation such as click, slip of such as user, so that response is made in the input of user interface object to these users.The technology detecting user's input can be based on resistance-type, condenser type or other touch control detection technology possible arbitrarily.The instantiation of screen 118 display unit includes, but are not limited to liquid crystal display or light emitting polymer displays.
Key-press module 120 provides user to carry out the interface inputted to mobile terminal 100 equally, and user can perform different functions by pressing different buttons to make mobile terminal 100.
First embodiment
Refer to Fig. 4, the process flow diagram of the program testing method that Fig. 4 provides for first embodiment of the invention.The present embodiment can be applicable in the applied environment shown in Fig. 1, realizes program test by the mobile terminal 100 shown in Fig. 1.As shown in Figure 4, the program testing method that the present embodiment provides comprises the following steps:
Step S101, starts preset automation tools, the firmware file bag that the acquisition instruction instruction obtaining user's triggering by this automation tools obtains, the installation kit of program to be measured and brush machine scheme;
In the present embodiment, mobile terminal 100 presets automation tools, and this automation tools is after the os starting of mobile terminal 100, the program of automatically starting.This automation tools is provided for the operation interface carrying out man-machine interaction with user, mobile terminal 100 receives the various instructions of this user triggering by this operation interface, perform corresponding operation according to this instruction, then operating result is fed back to this user by this operation interface.
Particularly, mobile terminal 100 obtains the acquisition instruction of user's triggering by this operation interface that this automation tools provides, according to the instruction of this acquisition instruction, obtain firmware file bag (ROM), the installation kit of program to be measured and brush machine scheme from server 200 or local device or external memory storage.
Firmware (Firmware) refers to the software of solidification, and it is the flashROM (flash memory) certain system program is written in specific hardware system.The firmware of mobile terminal is equivalent to the operating system of mobile terminal, reinstalls firmware and is just equivalent to reinstall operating system.The firmware file that may be used for the operating system of mobile terminal 100 being reinstalled as the different destination OS of the origin operation system version from mobile terminal 100 is comprised in the ROM of the instruction acquisition of the above-mentioned acquisition instruction according to user's triggering.Wherein, the operating system of mobile terminal 100 can be: Android (Android), Sailfish, Symbian (Saipan), iOS (apple), BlackBerryOS (blackberry, blueberry), Windowsphone (Microsoft), Windowsmobile (Microsoft) etc.
According to the type of operating system corresponding to ROM, the form of the installation kit of this automation tools, the installation kit of this program to be measured and the installation kit of this testing tool can be: APK (AndroidPackage, Android installation kit), SymbianSis (Symbian installation kit), Sisx (Symbian installation kit) etc.
This brush machine scheme is corresponding with the model of mobile terminal 100, is used to guide automation tools and the firmware file brush in ROM is entered mobile terminal 100.This brush machine scheme can together be stored in server 200 with ROM, or external memory storage, or in local device, also can be stored in separately in other memory devices.Automation tools in mobile terminal 100 upon actuation, the model of automatic detection mobile terminal 100, when receiving the acquisition instruction that the operation interface of user at this automation tools triggers, according to instruction and this model detected of this acquisition instruction, obtain corresponding brush machine scheme from server 200 or external memory storage.
Step S102, according to the installation kit of the installation kit of this firmware file bag, this automation tools, the installation kit of this program to be measured and preset testing tool, generates target firmware file bag;
Particularly, mobile terminal 100 obtains the installation kit of this automation tools, the firmware file comprised in the installation kit of preset testing tool and the ROM that obtains according to the instruction of the acquisition instruction of user, be target ROM by the installation bag pressure bag of the installation kit of the installation kit of this firmware file, this automation tools, this program to be measured and this testing tool, to make after the operating system reinstalling mobile terminal 100, this automation tools, this program to be measured and preset testing tool are unlikely to lose, but are reinstalled as quickly as possible in mobile terminal 100.
Understandably, can the installation kit of preset multiple testing tool in mobile terminal 100.User also can be used for the installation kit of installation kit as the testing tool in this target ROM of acquisition user testing tool selected from the installation kit of above-mentioned multiple testing tool in the acquisition instruction that the operation interface of this automation tools triggers, when this user is non-selected, the installation kit of installation kit as the testing tool in this target ROM of the testing tool that default acquiescence obtains can be obtained.
Step S103, according to this brush machine scheme, the file brush comprised in this target firmware file bag is entered this mobile terminal, make the operating system of this mobile terminal be reinstalled as quickly as possible as destination OS, this automation tools, this program to be measured and this testing tool are reinstalled as quickly as possible as being automatically installed in this mobile terminal after this destination OS in the operating system of this mobile terminal;
Particularly, mobile terminal 100 enters Recovery pattern by automation tools, under this Recovery pattern, according to brush machine scheme, under Recovery pattern, automatically brush the firmware file in target ROM, make the operating system in mobile terminal 100 be reinstalled as quickly as possible as the destination OS corresponding with this target ROM; Then, according to the installation kit of this automation tools in this target ROM, the installation kit of program to be measured and the installation kit of testing tool, this automation tools, this program to be measured and this testing tool are mounted in mobile terminal 100; Finally, restart mobile terminal 100, and start this automation tools.
Step S104, under this destination OS, when test assignment is triggered, calls this testing tool and tests this program to be measured.
When the operating system of mobile terminal 100 is successfully reinstalled as destination OS, mobile terminal 100 by this automation tools automatically actuated, is called this testing tool be reinstalled as quickly as possible and tests this program to be measured under new operating system of installing (namely under destination OS).Or mobile terminal 100 can receive the test instruction that user triggers at the operation interface of this automation tools, calls this testing tool, test the program to be measured of this test instruction instruction test.
The program testing method that the embodiment of the present invention provides, the firmware file bag for the operating system of mobile terminal being reinstalled the firmware file into the different destination OS of the origin operation system version from this mobile terminal is comprised by basis, the installation kit of preset automation tools, the installation kit of program to be measured and the installation kit of preset testing tool, generate target firmware file bag, according to brush machine scheme, the file brush comprised in this target firmware file bag is entered this mobile terminal, the operating system of this mobile terminal is made to be reinstalled as quickly as possible as this destination OS, this automation tools, this program to be measured and this testing tool are reinstalled as quickly as possible as being automatically installed in this mobile terminal after this destination OS in the operating system of this mobile terminal, then under this destination OS, when test assignment is triggered, call this testing tool to test this program to be measured, achieve the operating system of automatic switchover different editions, and Auto-mounting program to be measured is tested after switching, can simplify procedures test process, accelerate test speed, reduce testing cost.
Second embodiment
Refer to Fig. 5, the process flow diagram of the program testing method that Fig. 5 provides for second embodiment of the invention.The present embodiment can be applicable in the applied environment shown in Fig. 1, realizes program test by the mobile terminal 100 shown in Fig. 1.As shown in Figure 5, the program testing method that the present embodiment provides comprises the following steps:
Step S201, starts preset automation tools, detects this automation tools and whether has super administrator right;
Particularly, install beforehand automation tools in mobile terminal 100, this automation tools is after the os starting of mobile terminal 100, the program of automatically starting.
Super keeper or power user (Root), be present in unix system (as AIX, BSD etc.) and class unix system (Linux as each distribution version such as Debian, Redhat, Ubuntu and android system), be equivalent to the Administrator in Windows system.Root is power user unique in system, has authorities all in system, as started or stoped a process, deletes or adding users, increases or forbids hardware etc.Obtain Root authority and just mean the highest weight limit obtaining mobile terminal 100, the operation that now can perform all increasings, delete, change, look into any file (comprising system file) in mobile terminal 100.
Because this automation tools can reinstall the operating system of mobile terminal 100 in down-stream, if not there is Root authority, system file can not be revised, therefore for ensureing that down-stream is carried out smoothly, need first to detect these automated procedures and whether there is Root authority, so that when these automated procedures do not have this Root authority, for these automated procedures obtain this Root authority.
In the present embodiment, the operating system of mobile terminal 100 can be: Android (Android), Sailfish, Symbian (Saipan), iOS (apple), BlackBerryOS (blackberry, blueberry), Windowsphone (Microsoft), Windowsmobile (Microsoft) etc.
Step S202, when this automation tools does not have this super administrator right, for this automation tools obtains this super administrator right;
In the present embodiment, when this automation tools does not have this Root authority, mobile terminal 100 is automatically for this automation tools obtains this Root authority.In other embodiments, mobile terminal 100 also can work as this automation tools when not having this Root authority, by the operation interface of this automation tools to user's display reminding information, to point out and to inquire whether this user is that this automation tools obtains this Root authority, and obtain instruction, for this automation tools obtains this Root authority according to the Root authority that this user triggers based on this information.
Step S203, when this automation tools has this super administrator right, receive the acquisition instruction that triggers at the operation interface of this automation tools of user, obtain at least one firmware file bag, the installation kit of at least one program to be measured and brush machine scheme according to the instruction of this acquisition instruction from server or local device or external memory storage;
Particularly, this acquisition instruction may be used for indicating mobile terminal 100 obtains at least one firmware file bag (ROM) and at least one program to be measured installation kit from server 200 or local device or external memory storage.
Firmware (Firmware) refers to the software of solidification, and it is the flash memory (flashROM) certain system program is written in specific hardware system.The firmware of mobile terminal is equivalent to the operating system of mobile terminal, reinstalls firmware and is just equivalent to reinstall operating system.The firmware file that may be used for the operating system of mobile terminal 100 being reinstalled as the different destination OS of the origin operation system version from mobile terminal is comprised in this ROM.
Understandably, reception user before the acquisition instruction that the operation interface of this automation tools triggers, further, mobile terminal 100 first can detect the version number of the model of mobile terminal 100 and the operating system of current installation by this automation tools, and obtain title and the version number of the alternative ROM of corresponding all versions from server 200 according to this model, and by this model, the version number of the operating system of this current installation, title and the version number of the alternative ROM of all versions of this correspondence are shown to user by this operation interface, make user can according to display content choice for the operating system of mobile terminal 100 being reinstalled the ROM into the different destination OS of the origin operation system version from mobile terminal 100.
Understandably, mobile terminal 100 once obtains all ROM of this acquisition instruction instruction acquisition from server 200 by automation tools, and this ROM is stored in storage card, or in the particular zones of system draws, like this when mobile terminal 100 reinstalls operating system, above-mentioned ROM can not be deleted.Then, mobile terminal 100 generates target ROM according to the above-mentioned ROM stored in storage card or particular zones and is brushed into mobile terminal 100 one by one, then tests.
Or, whole test process is divided into many wheels, can be considered when all programs to be measured complete test under the operating system that ROM is corresponding and taken turns test, mobile terminal 100 once only can obtain a ROM, when one take turns test complete time, according to being stored in storage card, or the test record in the particular zones of system draws, obtain next ROM from server 200 to brush into mobile terminal 100, and carry out next round test.Understandably, mobile terminal 100 by this automation tools each take turns test complete time, record this and take turns destination OS corresponding to test, test result be stored in storage card, or the particular zones of system draws, so that this automation tools according to this test result when previous round has been tested, add up the testing progress of whole test, determine next round test need again to brush into destination OS, and when the testing progress of whole test is 100%, statistical test result also exports.
In other embodiments, mobile terminal 100 also can detect title and the version number of all alternative ROM stored in local device or external memory storage 300, and this title and version number are shown to user, make user can according to display content choice for the operating system of mobile terminal 100 being reinstalled the ROM into the different destination OS of the origin operation system version from mobile terminal 100.
Brush machine scheme is corresponding with the model of mobile terminal 100, is used to guide automation tools and the firmware file brush in ROM is entered mobile terminal 100.In the present embodiment, this brush machine scheme can be stored in server 200.Automation tools in mobile terminal 100 upon actuation, the model of automatic detection mobile terminal 100, when receiving the acquisition instruction that the operation interface of user at this automation tools triggers, according to instruction and this model detected of this acquisition instruction, obtain corresponding brush machine scheme from server 200.
According to the type of operating system corresponding to ROM, the form of the installation kit of this automation tools, the installation kit of this program to be measured and the installation kit of this testing tool can be: APK (AndroidPackage, Android installation kit), SymbianSis (Symbian installation kit), Sisx (Symbian installation kit) etc.
Step S204, receives the backup instruction that this user triggers at this operation interface, according to the instruction of this backup instruction, backs up the application data in this mobile terminal of this backup instruction instruction backup, obtains backup file;
In the present embodiment, this backup file can be stored in storage card, or in the particular zones of system draws, like this when mobile terminal 100 reinstalls operating system, can not delete this backup file.Application data in mobile terminal 100 can comprise: the program and configuration file etc. thereof of the picture file of the message registration in mobile terminal 100, note record, storage, audio-video document, address list, installation.According to this backup instruction, mobile terminal 100 backs up the part or all of of the above-mentioned application data of this backup instruction instruction backup by automation tools.
Step S205, according to the installation kit of the installation kit of this firmware file bag, this automation tools, the installation kit of this program to be measured and preset testing tool, generates target firmware file bag;
Particularly, mobile terminal 100 passes through automation tools, unpack this ROM, obtain the file unpacking rear generation and (namely deposit the file of the firmware file comprised in the ROM that solution contracts out, such as: be defaulted as/system/app), store in this file comprise in this ROM for the operating system of mobile terminal 100 being reinstalled the firmware file into the different destination OS of the origin operation system version from mobile terminal 100; The installation kit of the installation kit of this automation tools, this program to be measured and the installation kit of this preset testing tool are put into this file; All Files in this file of pressure bag, generates this target ROM.Like this, by the installation kit of the installation kit of the firmware file in ROM, this automation tools, this program to be measured and the installation bag pressure of this testing tool are bundled into target ROM, can make after the operating system reinstalling mobile terminal 100, this automation tools, this program to be measured and preset testing tool are unlikely to lose, but be reinstalled as quickly as possible in mobile terminal 100, so that this automation tools by being reinstalled as quickly as possible in follow-up test procedure calls this testing tool test this program to be measured.
Step S206, according to this brush machine scheme, the file brush comprised in this target firmware file bag is entered this mobile terminal, make the operating system of this mobile terminal be reinstalled as quickly as possible as this destination OS, this automation tools, this program to be measured and this testing tool are reinstalled as quickly as possible as being automatically installed in this mobile terminal after this destination OS in the operating system of this mobile terminal;
In the present embodiment, this automation tools except obtaining except ROM according to the acquisition instruction of user, also can not brush in the mobile terminal 100 into (not with) Recovery file time, this Recovery file of automatic acquisition.
Particularly, the first step, whether this automation tools detects has brushed into this Recovery file in mobile terminal 100; Second step, if do not brush into this Recovery file, then obtains this Recovery file, brushes into this Recovery file, such as, can obtain this Recovery file from server 200 and be brushed into mobile terminal 100; 3rd step, enters Recovery pattern, according to this brush machine scheme, under this Recovery pattern, automatically brushes the firmware file in this target ROM; 4th step, according to the installation kit of this automation tools in this target ROM, the installation kit of this program to be measured and the installation kit of this testing tool, is mounted to mobile terminal 100 by this automation tools, this program to be measured and this testing tool; 5th step, restarts mobile terminal 100, and after restarting, the operating system of mobile terminal 100 changes to destination OS, and the version of this destination OS is different from the version of the origin operation system of mobile terminal 100; 6th step, if brushed into this Recovery file, has then performed the step that this of the 3rd step enters Recovery pattern.
Here, before the object of first brushing Recovery file is to remove system residual data and avoid brushing incompatible into what may cause during new operating system, and when brush machine failure time also by brush into Recovery file access pattern origin operation system, with prevent mobile terminal 100 because brush machine failure and scrap.
It should be noted that, whether this automation tools also can not detect in mobile terminal 100 has brushed into entering Recovery file, but each the file brush comprised in target ROM is entered mobile terminal 100 before, all perform and obtain Recovery file the step of being brushed into mobile terminal 100.
Step S207, according to this backup file, reduces this application data;
Particularly, mobile terminal 100 judges whether to there is backup file, or whether user is once at the triggered backup instruction of the operation interface of automation tools, if so, then according to the application data in this backup file reduction mobile terminal 100.
Step S208, under this destination OS, when test assignment is triggered, calls this testing tool and tests this program to be measured.
Particularly, mobile terminal 100, after this automation tools starts, by this automation tools under new operating system of installing (namely under destination OS), calls this testing tool be reinstalled as quickly as possible and tests this program to be measured.
Or mobile terminal 100 can receive the test instruction that user triggers at the operation interface of this automation tools, calls this testing tool, test the program to be measured of this test instruction instruction test.
Step S209, detect whether exist do not brush into this firmware file bag;
If exist this do not brush into this firmware file bag, then perform step S205;
By detect whether exist do not brush into ROM, when exist this do not brush into ROM time, re-execute the installation kit according to the firmware file comprised in this ROM, this automation tools, the installation kit of this program to be measured and the installation kit of preset testing tool, generate target ROM; Then under Recovery pattern, according to this brush machine scheme, the file brush comprised in this target ROM is entered mobile terminal 100, make the operating system of mobile terminal 100 be reinstalled as quickly as possible as this destination OS, this automation tools, this program to be measured and this testing tool are installed in this mobile terminal; Then, under this destination OS, by this automation tools of being reinstalled as quickly as possible when test assignment is triggered, the step that this testing tool of reinstalling is tested this program to be measured reinstalled is called.Make mobile terminal 100 can take turns after test completes one, automatically operating system is reinstalled the operating system into other versions, and called by the testing tool automatically reinstalled by automatically actuated by the automation tools automatically reinstalled under new operating system of installing, test by the program to be measured automatically reinstalled, thus the operating system that can realize based on automatic switchover different editions and the program test carried out, simplify procedures test process, accelerate test speed, reduce testing cost.
If do not exist this do not brush into this firmware file bag, then perform step S210: according to the preset way of output, output test result.
If do not exist this do not brush into this ROM, can determine that test completes, mobile terminal 100 passes through this automation tools according to the preset way of output, output test result, such as: test result is reserved mailbox according to user, phone number sends to this user, or printed by printout, or export store path that this user specifies etc. to.
For further illustrating the present embodiment, for example, assuming that the origin operation system of mobile terminal 100 is Android4.0, mobile terminal 100 starts automation tools, detect this automation tools and whether there is Root authority, if do not have, then for this automation tools obtains Root authority; Receive acquisition instruction and backup instruction that user triggers at the operation interface of this automation tools; According to the address list in the instruction backup mobile terminal 100 of this backup instruction, and obtain backup file; Then, instruction according to this acquisition instruction obtains firmware file bag ROM1, ROM2 from server 200, the installation kit of program 1 to be measured and program 2 to be measured is obtained from local device, and brush machine scheme, the operating system that firmware file wherein in ROM1 is corresponding is the operating system that the firmware file in Android4.1, ROM2 is corresponding is Android4.2; Then unpack ROM1, the installation kit of this automation tools, program to be measured 1 and the installation kit of program 2 to be measured and the installation kit of testing tool are put into the file generated after unpacking ROM1, the All Files in this file of pressure bag, generates target ROM1; Detect in mobile terminal 100 and whether brushed into Recovery file, suppose not brush into, then obtain this Recovery file from server 200, this Recovery file brush is entered mobile terminal 100, enter Recovery pattern (suppose to have brushed in mobile terminal 100 into this Recovery file, then directly enter this Recovery pattern); According to this brush machine scheme, under this Recovery pattern, firmware file brush in target ROM1 is entered mobile terminal 100, and according to the installation kit of this automation tools in this target ROM1, the installation kit of this program 1 to be measured and program 2 to be measured, and the installation kit of this testing tool, install this automation tools, this program 1 to be measured and program 2 to be measured, and this testing tool; Restart mobile terminal 100, the operating system of restarting rear mobile terminal 100 is switched to Android4.1 by Android4.0; Afterwards according to the backup file reduction address list obtained before brush machine; Then this automation tools by starting along with mobile terminal 100 os starting calls this testing tool, tests under Android4.1 to this program 1 to be measured with program 2 to be measured, when testing is complete, and logging test results; Detect whether exist do not brush into ROM, according to test record, owing to only brushing into ROM1, now also need to brush into ROM2, therefore according to brush into the identical step of ROM1, the firmware file brush in ROM2 is entered mobile terminal 100, and under the operating system Android4.2 that ROM2 is corresponding, this program 1 to be measured is tested with program 2 to be measured, then when test completes, obtains the test result of ROM2; Owing to can determine that according to this acquisition instruction only needing to treat ranging sequence respectively under the operating system that ROM1 and ROM2 is corresponding tests, therefore, after the test result obtaining this ROM2, can determine that this test all completes, by the test result of the test result of this ROM2 together with ROM1, the email address reserved according to user exports in the E-mail address of this user, makes this user optimize this program 1 to be measured and program 2 to be measured according to the test result exported.
The program testing method that the embodiment of the present invention provides, the firmware file bag for the operating system of mobile terminal being reinstalled the firmware file into the different destination OS of the origin operation system version from this mobile terminal is comprised by basis, the installation kit of preset automation tools, the installation kit of program to be measured and the installation kit of preset testing tool, generate target firmware file bag, according to brush machine scheme, the file brush comprised in this target firmware file bag is entered this mobile terminal, the operating system of this mobile terminal is made to be reinstalled as quickly as possible as this destination OS, this automation tools, this program to be measured and this testing tool are reinstalled as quickly as possible as being automatically installed in this mobile terminal after this destination OS in the operating system of this mobile terminal, then under this destination OS, when test assignment is triggered, call this testing tool to test this program to be measured, achieve the operating system of automatic switchover different editions, and Auto-mounting program to be measured is tested after switching, can simplify procedures test process, accelerate test speed, reduce testing cost.
3rd embodiment
The structural representation of the program test device that Fig. 6 provides for third embodiment of the invention.The program test device that the present embodiment provides can run in the mobile terminal 100 shown in Fig. 1, for realizing the program testing method in above-described embodiment.As shown in Figure 6, program test device 30 comprises: start module 31, first acquisition module 32, generation module 33, brush machine module 34 and test module 35.
Start module 31, for starting preset automation tools;
First acquisition module 32, the firmware file bag that the acquisition instruction instruction that this automation tools for starting by starting module 31 obtains user's triggering obtains, the installation kit of program to be measured and brush machine scheme, comprise the firmware file for the operating system of mobile terminal being reinstalled as the different destination OS of the origin operation system version from this mobile terminal in this firmware file bag, this brush machine scheme is corresponding with the model of this mobile terminal;
Generation module 33, for the installation kit of this firmware file bag according to the first acquisition module 32 acquisition, the installation kit of this automation tools, the installation kit of this program to be measured and preset testing tool, generates target firmware file bag;
Brush machine module 34, for this brush machine scheme obtained according to the first acquisition module 32, the file brush comprised in this target firmware file bag generated by generation module 33 enters this mobile terminal, make the operating system of this mobile terminal be reinstalled as quickly as possible as this destination OS, this automation tools, this program to be measured and this testing tool are reinstalled as quickly as possible as being automatically installed in this mobile terminal after this destination OS in the operating system of this mobile terminal;
Test module 35, under this destination OS of brushing in brush machine module 34, when test assignment is triggered, call brush machine module 34 brush into this testing tool this program to be measured is tested.
Each module can be by software code realization above, and now, above-mentioned each module can be stored in storer 102, as shown in Figure 7.Each module can be realized by hardware such as integrated circuit (IC) chip equally above.
The present embodiment, to the detailed process of each Implement of Function Module of program test device 30 function separately, refers to the particular content of above-mentioned Fig. 1 to middle description embodiment illustrated in fig. 5, repeats no more herein.
The program test device that the embodiment of the present invention provides, the firmware file bag for the operating system of mobile terminal being reinstalled the firmware file into the different destination OS of the origin operation system version from this mobile terminal is comprised by basis, the installation kit of preset automation tools, the installation kit of program to be measured and the installation kit of preset testing tool, generate target firmware file bag, according to brush machine scheme, the file brush comprised in this target firmware file bag is entered this mobile terminal, the operating system of this mobile terminal is made to be reinstalled as quickly as possible as this destination OS, this automation tools, this program to be measured and this testing tool are reinstalled as quickly as possible as being automatically installed in this mobile terminal after this destination OS in the operating system of this mobile terminal, then under this destination OS, when test assignment is triggered, call this testing tool to test this program to be measured, achieve the operating system of automatic switchover different editions, and Auto-mounting program to be measured is tested after switching, can simplify procedures test process, accelerate test speed, reduce testing cost.
4th embodiment
The structural representation of the program test device that Fig. 8 provides for fourth embodiment of the invention.The program test device that the present embodiment provides can run in the mobile terminal 100 shown in Fig. 1, for realizing the program testing method in above-described embodiment.As shown in Figure 8, program test device 40 comprises: start module 31, first acquisition module 32, generation module 33, brush machine module 34, test module 35, detection module 41, second acquisition module 42, receiver module 43, backup module 44, recovery module 45 and output module 46.
Start module 31, for starting preset automation tools;
First acquisition module 32, the firmware file bag that the acquisition instruction instruction that this automation tools for starting by starting module 31 obtains user's triggering obtains, the installation kit of program to be measured and brush machine scheme, comprise the firmware file for the operating system of mobile terminal being reinstalled as the different destination OS of the origin operation system version from this mobile terminal in this firmware file bag, this brush machine scheme is corresponding with the model of this mobile terminal;
Generation module 33, for the installation kit of this firmware file bag according to the first acquisition module 32 acquisition, the installation kit of this automation tools, the installation kit of this program to be measured and preset testing tool, generates target firmware file bag;
Brush machine module 34, for this brush machine scheme obtained according to the first acquisition module 32, the file brush comprised in this target firmware file bag generated by generation module 33 enters this mobile terminal, make the operating system of this mobile terminal be reinstalled as quickly as possible as this destination OS, this automation tools, this program to be measured and this testing tool are reinstalled as quickly as possible as being automatically installed in this mobile terminal after this destination OS in the operating system of this mobile terminal;
Test module 35, under this destination OS of brushing in brush machine module 34, when test assignment is triggered, call brush machine module 34 brush into this testing tool this program to be measured is tested;
Whether detection module 41, have super administrator right for detecting this automation tools;
Second acquisition module 42, if be no for the testing result of detection module 36, then for this automation tools obtains this super administrator right;
Receiver module 43, for receiving the backup instruction that this user triggers at this operation interface;
Backup module 44, for the instruction according to this backup instruction, backs up the application data in this mobile terminal of this backup instruction instruction backup, obtains backup file;
Recovery module 45, for according to this backup file, reduces this application data.
Output module 46, if for the testing result of detection module 41 be do not exist this do not brush into this firmware file bag, then according to the preset way of output, output test result.
Preferably, as shown in Figure 9, the first acquisition module 32 comprises:
Receiving element 321, for receiving the acquisition instruction that this user triggers at the operation interface of this automation tools, this acquisition instruction is used to indicate the installation kit obtaining at least one this firmware file bag and at least one this program to be measured;
First acquiring unit 322, for obtaining at least one this firmware file bag, the installation kit of at least one this program to be measured and this brush machine scheme according to the instruction of this acquisition instruction from server or local device or external memory storage.
Preferably, as shown in Figure 10, generation module 33 comprises:
Unwrapper unit 331, for unpacking this firmware file bag, obtains the file unpacking rear generation;
Placement unit 332, for putting into this file by the installation kit of this automation tools, the installation kit of this program to be measured and the installation kit of this testing tool;
Pressure bag unit 333, for pressing the All Files in this file of bag, generates this target firmware file bag.
Preferably, as shown in figure 11, brush machine module 34 comprises:
Whether detecting unit 341, brushed into recovery file for detecting in this mobile terminal;
Second acquisition unit 342, fashionable for not brushing for the testing result when this detecting unit, obtain this recovery file;
Brush into unit 343, for brushing into this recovery file;
Brushing into unit 343, also for entering reforestation practices, according to this brush machine scheme, under this reforestation practices, brushing the firmware file in this target firmware file bag;
Installation unit 344, for the installation kit according to this automation tools in this target firmware file bag, the installation kit of this program to be measured and the installation kit of this testing tool, this automation tools, this program to be measured and this testing tool are mounted to this mobile terminal;
Restart unit 345, for restarting this mobile terminal;
Detecting unit 341, also brushes for fashionable for the testing result when detecting unit 341, calls this and brush into unit, perform the step that this enters reforestation practices.
Preferably, detection module 41, also for detect whether exist do not brush into this firmware file bag, if and exist, then call generation module 33 and perform this installation kit according to the installation kit of this firmware file bag, this automation tools, the installation kit of this program to be measured and preset testing tool obtained according to the first acquisition module 32, generate the step of target firmware file bag.
The present embodiment, to the detailed process of each Implement of Function Module of program test device 40 function separately, refers to the particular content of above-mentioned Fig. 1 to middle description embodiment illustrated in fig. 5, repeats no more herein.
The program test device that the embodiment of the present invention provides, the firmware file bag for the operating system of mobile terminal being reinstalled the firmware file into the different destination OS of the origin operation system version from this mobile terminal is comprised by basis, the installation kit of preset automation tools, the installation kit of program to be measured and the installation kit of preset testing tool, generate target firmware file bag, according to brush machine scheme, the file brush comprised in this target firmware file bag is entered this mobile terminal, the operating system of this mobile terminal is made to be reinstalled as quickly as possible as this destination OS, this automation tools, this program to be measured and this testing tool are reinstalled as quickly as possible as being automatically installed in this mobile terminal after this destination OS in the operating system of this mobile terminal, then under this destination OS, when test assignment is triggered, call this testing tool to test this program to be measured, achieve the operating system of automatic switchover different editions, and Auto-mounting program to be measured is tested after switching, can simplify procedures test process, accelerate test speed, reduce testing cost.
It should be noted that, each embodiment in this instructions all adopts the mode of going forward one by one to describe, and what each embodiment stressed is the difference with other embodiments, between each embodiment identical similar part mutually see.For device class embodiment, due to itself and embodiment of the method basic simlarity, so description is fairly simple, relevant part illustrates see the part of embodiment of the method.
It should be noted that, in this article, the such as relational terms of first and second grades and so on is only used for an entity or operation to separate with another entity or operational zone, and not necessarily requires or imply the relation that there is any this reality between these entities or operation or sequentially.And, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thus make to comprise the process of a series of key element, method, article or device and not only comprise those key elements, but also comprise other key elements clearly do not listed, or also comprise by the intrinsic key element of this process, method, article or device.When not more restrictions, the key element limited by statement " comprising ... ", and be not precluded within process, method, article or the device comprising key element and also there is other identical element.
One of ordinary skill in the art will appreciate that all or part of step realizing above-described embodiment can have been come by hardware, the hardware that also can carry out instruction relevant by program completes, program can be stored in a kind of computer-readable recording medium, the above-mentioned storage medium mentioned can be ROM (read-only memory), disk or CD etc.
Above, it is only preferred embodiment of the present invention, not any pro forma restriction is done to the present invention, although the present invention discloses as above with preferred embodiment, but and be not used to limit the present invention, any those skilled in the art, do not departing within the scope of technical solution of the present invention, make a little change when the technology contents of above-mentioned announcement can be utilized or be modified to the Equivalent embodiments of equivalent variations, in every case be do not depart from technical solution of the present invention content, according to any simple modification that technical spirit of the present invention is done above embodiment, equivalent variations and modification, all still belong in the scope of technical solution of the present invention.

Claims (17)

1. a program testing method, is characterized in that, comprising:
Start preset automation tools, the firmware file bag that the acquisition instruction instruction obtaining user's triggering by described automation tools obtains, the installation kit of program to be measured and brush machine scheme, comprise the firmware file for the operating system of mobile terminal being reinstalled as the different destination OS of the origin operation system version from described mobile terminal in described firmware file bag, described brush machine scheme is corresponding with the model of described mobile terminal;
According to the installation kit of described firmware file bag, described automation tools, the installation kit of described program to be measured and the installation kit of preset testing tool, generate target firmware file bag;
According to described brush machine scheme, the file brush comprised in described target firmware file bag is entered described mobile terminal, make the operating system of described mobile terminal be reinstalled as quickly as possible as described destination OS, described automation tools, described program to be measured and described testing tool are reinstalled as quickly as possible after for described destination OS in the operating system of described mobile terminal and are automatically installed in described mobile terminal;
Under described destination OS, when test assignment is triggered, calls described testing tool and described program to be measured is tested.
2. method according to claim 1, is characterized in that, before the firmware file bag that the described acquisition instruction instruction obtaining user's triggering by described automation tools obtains, the installation kit of program to be measured and brush machine scheme, also comprises:
Detect described automation tools and whether there is super administrator right;
If not, be then that described automation tools obtains described super administrator right.
3. method according to claim 1, is characterized in that, the firmware file bag that the described acquisition instruction instruction obtaining user's triggering by described automation tools obtains, the installation kit of program to be measured and brush machine scheme, comprising:
Receive the acquisition instruction that described user triggers at the operation interface of described automation tools, described acquisition instruction is used to indicate the installation kit obtaining firmware file bag and program to be measured described at least one described at least one;
According to the instruction of described acquisition instruction from server or local device or external memory storage obtains firmware file bag described at least one, the installation kit of program to be measured described at least one and described brush machine scheme.
4. method according to claim 1, is characterized in that, the described installation kit according to described firmware file bag, described automation tools, the described installation kit of program to be measured and the installation kit of preset testing tool, generates target firmware file bag, comprising:
Unpack described firmware file bag, obtain the file unpacking rear generation, in this file, store this firmware file;
The installation kit of described automation tools, the installation kit of described program to be measured and the installation kit of described testing tool are put into described file;
All Files in the described file of pressure bag, generates described target firmware file bag.
5. the method according to any one of Claims 1-4, is characterized in that, described according to described brush machine scheme, before the file brush comprised is entered described mobile terminal, also comprises in described target firmware file bag:
Receive the backup instruction that described user triggers at described operation interface;
According to the instruction of described backup instruction, back up the application data in the described mobile terminal of described backup instruction instruction backup, obtain backup file.
6. method according to claim 5, is characterized in that, described under described destination OS, when test assignment is triggered, calls before described testing tool tests described program to be measured, also comprises:
According to described backup file, reduce described application data.
7. method according to claim 1, is characterized in that, described according to described brush machine scheme, the file brush comprised is entered described mobile terminal, comprising in described target firmware file bag:
Detect in described mobile terminal and whether brushed into recovery file;
If do not brush into, then obtain described recovery file, brush into described recovery file;
Enter reforestation practices, according to described brush machine scheme, under described reforestation practices, brush the firmware file in described target firmware file bag;
According to the installation kit of the described automation tools in described target firmware file bag, the installation kit of described program to be measured and the installation kit of described testing tool, described automation tools, described program to be measured and described testing tool are mounted to described mobile terminal;
Restart described mobile terminal;
If brushed into, then enter the step of reforestation practices described in performing.
8. method according to claim 1, is characterized in that, described method also comprises:
Detect whether exist do not brush into described firmware file bag;
If exist, then perform the described installation kit according to described firmware file bag, described automation tools, the described installation kit of program to be measured and the installation kit of preset testing tool, generate the step of target firmware file bag.
9. method according to claim 8, is characterized in that, described method also comprises:
If do not brush described in not existing into described firmware file bag, then according to the preset way of output, output test result.
10. a program test device, is characterized in that, comprising:
Start module, for starting preset automation tools;
First acquisition module, described automation tools for being started by described startup module obtains the firmware file bag of acquisition instruction instruction acquisition, the installation kit of program to be measured and the brush machine scheme that user triggers, comprise the firmware file for the operating system of mobile terminal being reinstalled as the different destination OS of the origin operation system version from described mobile terminal in described firmware file bag, described brush machine scheme is corresponding with the model of described mobile terminal;
Generation module, for the described firmware file bag, the installation kit of described automation tools, the installation kit of described program to be measured and the installation kit of preset testing tool that obtain according to described first acquisition module, generates target firmware file bag;
Brush machine module, for the described brush machine scheme obtained according to described first acquisition module, the file brush comprised in the described target firmware file bag generated by described generation module enters described mobile terminal, make the operating system of described mobile terminal be reinstalled as quickly as possible as described destination OS, described automation tools, described program to be measured and described testing tool are reinstalled as quickly as possible after for described destination OS in the operating system of described mobile terminal and are automatically installed in described mobile terminal;
Test module, under the described destination OS that enters at described brush machine module brush, when test assignment is triggered, calls the described testing tool that described brush machine module brush enters and tests described program to be measured.
11. devices according to claim 10, is characterized in that, described device also comprises:
Whether detection module, have super administrator right for detecting described automation tools;
Second acquisition module if be no for the testing result of described detection module, is then that described automation tools obtains described super administrator right.
12. devices according to claim 10, is characterized in that, described first acquisition module comprises:
Receiving element, for receiving the acquisition instruction that described user triggers at the operation interface of described automation tools, described acquisition instruction is used to indicate the installation kit obtaining firmware file bag and program to be measured described at least one described at least one;
First acquiring unit, for according to the instruction of described acquisition instruction from server or local device or external memory storage obtains firmware file bag described at least one, the installation kit of program to be measured described at least one and described brush machine scheme.
13. devices according to claim 10, is characterized in that, described generation module comprises:
Unwrapper unit, for unpacking described firmware file bag, obtains the file unpacking rear generation;
Placement unit, for putting into described file by the installation kit of described automation tools, the installation kit of described program to be measured and the installation kit of described testing tool;
Pressure bag unit, for pressing the All Files in the described file of bag, generates described target firmware file bag.
14. according to claim 10 to 13 any one described in device, it is characterized in that, described device also comprises:
Receiver module, for receiving the backup instruction that described user triggers at described operation interface;
Backup module, for the instruction according to described backup instruction, backs up the application data in the described mobile terminal of described backup instruction instruction backup, obtains backup file;
Recovery module, for according to described backup file, reduces described application data.
15. devices according to claim 10, is characterized in that, described brush machine module comprises:
Whether detecting unit, brushed into recovery file for detecting in described mobile terminal;
Second acquisition unit, fashionable for not brushing for the testing result when described detecting unit, obtain described recovery file;
Brush into unit, for brushing into described recovery file;
Describedly brushing into unit, also for entering reforestation practices, according to described brush machine scheme, under described reforestation practices, brushing the firmware file in described target firmware file bag;
Installation unit, for the installation kit according to the described automation tools in described target firmware file bag, the installation kit of described program to be measured and the installation kit of described testing tool, described automation tools, described program to be measured and described testing tool are mounted to described mobile terminal;
Restart unit, for restarting described mobile terminal;
Described detecting unit, also fashionable for have brushed for the testing result when described detecting unit, call and describedly brush into unit, described in execution, enter the step of reforestation practices.
16. devices according to claim 10, is characterized in that,
Described detection module, also for detect whether exist do not brush into described firmware file bag, if and exist, then call described generation module and perform the described installation kit according to described firmware file bag, described automation tools, the described installation kit of program to be measured and the installation kit of preset testing tool that obtain according to described first acquisition module, generate the step of target firmware file bag.
17. devices according to claim 16, is characterized in that, described device also comprises:
Output module, if for described detection module testing result for do not brush described in not existing into described firmware file bag, then according to the preset way of output, output test result.
CN201410384621.4A 2014-08-06 2014-08-06 Program testing method and device Active CN105468504B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410384621.4A CN105468504B (en) 2014-08-06 2014-08-06 Program testing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410384621.4A CN105468504B (en) 2014-08-06 2014-08-06 Program testing method and device

Publications (2)

Publication Number Publication Date
CN105468504A true CN105468504A (en) 2016-04-06
CN105468504B CN105468504B (en) 2020-12-04

Family

ID=55606235

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410384621.4A Active CN105468504B (en) 2014-08-06 2014-08-06 Program testing method and device

Country Status (1)

Country Link
CN (1) CN105468504B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106484620A (en) * 2016-10-12 2017-03-08 北京元心科技有限公司 Method for testing multi-system terminal equipment, control equipment and console
CN106557425A (en) * 2016-11-25 2017-04-05 北京金山安全软件有限公司 Application adaptation test method and device and terminal equipment
CN106911497A (en) * 2017-02-07 2017-06-30 腾讯科技(深圳)有限公司 Identification, the method and apparatus of adaption system more new equipment
CN108650507A (en) * 2018-04-26 2018-10-12 珠海全志科技股份有限公司 Test method, device, terminal device and the storage medium of terminal device
WO2019023987A1 (en) * 2017-08-02 2019-02-07 深圳传音通讯有限公司 Testing method and test system based on intelligent terminal
CN112416716A (en) * 2020-11-25 2021-02-26 宁波阶梯教育科技有限公司 Automatic firmware checking method and equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101876940A (en) * 2009-11-30 2010-11-03 北京飞天诚信科技有限公司 Automatic test method and device
CN103019775A (en) * 2012-11-28 2013-04-03 北京小米科技有限责任公司 Method, device and equipment for flashing for terminal equipment
CN103164238A (en) * 2011-12-12 2013-06-19 纬创资通股份有限公司 Method for automatically and continuously installing operating system
CN103530226A (en) * 2013-09-24 2014-01-22 福建联迪商用设备有限公司 Method and device for testing peripheral compatibility of electronic device
CN103593289A (en) * 2013-11-12 2014-02-19 浪潮齐鲁软件产业有限公司 Design method for android set top box production testing software

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101876940A (en) * 2009-11-30 2010-11-03 北京飞天诚信科技有限公司 Automatic test method and device
CN103164238A (en) * 2011-12-12 2013-06-19 纬创资通股份有限公司 Method for automatically and continuously installing operating system
CN103019775A (en) * 2012-11-28 2013-04-03 北京小米科技有限责任公司 Method, device and equipment for flashing for terminal equipment
CN103530226A (en) * 2013-09-24 2014-01-22 福建联迪商用设备有限公司 Method and device for testing peripheral compatibility of electronic device
CN103593289A (en) * 2013-11-12 2014-02-19 浪潮齐鲁软件产业有限公司 Design method for android set top box production testing software

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106484620A (en) * 2016-10-12 2017-03-08 北京元心科技有限公司 Method for testing multi-system terminal equipment, control equipment and console
CN106484620B (en) * 2016-10-12 2019-06-18 北京元心科技有限公司 Method for testing multi-system terminal equipment, control equipment and console
CN106557425A (en) * 2016-11-25 2017-04-05 北京金山安全软件有限公司 Application adaptation test method and device and terminal equipment
CN106911497A (en) * 2017-02-07 2017-06-30 腾讯科技(深圳)有限公司 Identification, the method and apparatus of adaption system more new equipment
WO2019023987A1 (en) * 2017-08-02 2019-02-07 深圳传音通讯有限公司 Testing method and test system based on intelligent terminal
CN108650507A (en) * 2018-04-26 2018-10-12 珠海全志科技股份有限公司 Test method, device, terminal device and the storage medium of terminal device
CN112416716A (en) * 2020-11-25 2021-02-26 宁波阶梯教育科技有限公司 Automatic firmware checking method and equipment

Also Published As

Publication number Publication date
CN105468504B (en) 2020-12-04

Similar Documents

Publication Publication Date Title
CN111757426B (en) Roaming network access method and device
CN105468504A (en) Program test method and device
US20170244574A1 (en) Electronic device and method for registering smart home device in smart home system
CN105677335A (en) Method and device for increasing first starting speed of mobile terminal
CN106465249B (en) Roaming network access method and device
CN104935744A (en) Verification code display method, verification code display device and mobile terminal
EP3119133B1 (en) Roaming network access method and apparatus
WO2018113298A1 (en) Method and device for notifying user of application version upgrade
US11317276B2 (en) Methods and/or systems for activation and/or configuration of an electronic subscriber identity module (eSIM)
CN105528229A (en) Method and device for improving first starting speed of mobile terminal
CN109564598A (en) A kind of endpoint detection methods and terminal
CN103544033A (en) Method, device and associated equipment for rolling back application program
CN106911500B (en) Physical machine configuration method and device and physical machine
CN106713608B (en) Application function state modification method and device and terminal
CN106445609A (en) Automatic updating method of application program and mobile terminal
CN105320616A (en) External device control method and device
CN106126377B (en) The method and device of system starting
CN105022687A (en) Implementation method and device of sliding operation in automated testing scheme
CN103607431A (en) Mobile terminal resource processing method, apparatus and equipment thereof
US10491730B2 (en) Method and apparatus for providing contact information
CN109117153A (en) Processing method, device, terminal and the storage medium of application program
CN105430448A (en) Control processing method for video player and video player client
CN106445594B (en) System application installation method and device and terminal equipment
CN113039517A (en) Audio resource calling method and device and electronic equipment
CN105700895B (en) The adaptation method and terminal and system server of a kind of terminal system

Legal Events

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