CN105279063A - Test method and apparatus, and server - Google Patents

Test method and apparatus, and server Download PDF

Info

Publication number
CN105279063A
CN105279063A CN201410361443.3A CN201410361443A CN105279063A CN 105279063 A CN105279063 A CN 105279063A CN 201410361443 A CN201410361443 A CN 201410361443A CN 105279063 A CN105279063 A CN 105279063A
Authority
CN
China
Prior art keywords
goal systems
terminal
information
function
detecting information
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
CN201410361443.3A
Other languages
Chinese (zh)
Other versions
CN105279063B (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 CN201410361443.3A priority Critical patent/CN105279063B/en
Publication of CN105279063A publication Critical patent/CN105279063A/en
Application granted granted Critical
Publication of CN105279063B publication Critical patent/CN105279063B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Telephone Function (AREA)

Abstract

Embodiments of the invention provide a test method and apparatus, and a server. The test method comprises the steps that when a to-be-tested terminal is updated from a source system to a target system, the test information of the terminal is obtained; the test information is loaded to the target system; the test information is operated in the target system for testing the terminal. According to the test method and apparatus, the terminal can be automatically tested, the resource consumption is reduced, and the test efficiency is improved.

Description

A kind of method of testing, device and server
Technical field
The present invention relates to Internet technical field, be specifically related to terminal processing techniques field, particularly relate to a kind of method of testing, device and server.
Background technology
Terminal system renewal process, refer to that terminal reinstalls the process of operating system, this process can be described as again brush machine, such as: Android (Android, a kind of Mobile operating system) mobile phone of system from Android4.0 system update to Android4.3 system, etc.In order to the terminal after ensureing brush machine can normally use, usually need to carry out functional test to the terminal of installing new system.At present, the test process of terminal is mainly adopted and manually carries out, be specially: tester manually detects the various functions of the terminal of having installed new system, such as: manually opened wifi (WirelessFidelity, Wireless Fidelity), the switch of the wireless network such as bluetooth, detect and whether open successfully to confirm that whether the radio network functions such as wifi, bluetooth normal; Or, manually add contact person, search terminal contact and whether there is newly-increased contact person record to confirm that whether address book function is normal; Etc..Current this manual detection scheme needs at substantial human resources, and reduces testing efficiency.
Summary of the invention
The embodiment of the present invention provides a kind of method of testing, device and server, can carry out automatic test to terminal, reduces resource consumption, promotes testing efficiency.
Embodiment of the present invention first aspect provides a kind of method of testing, can comprise:
When terminal to be measured is updated to goal systems from origin system, obtain the detecting information of described terminal;
Described detecting information is loaded on described goal systems;
Described detecting information is run to test described terminal in described goal systems.
Embodiment of the present invention second aspect provides a kind of proving installation, can comprise:
Acquisition module, for when terminal to be measured is updated to goal systems from origin system, obtains the detecting information of described terminal;
Load-on module, for being loaded on described goal systems by described detecting information;
Test module, for running described detecting information to test described terminal in described goal systems.
The embodiment of the present invention third aspect provides a kind of server, can comprise the proving installation that above-mentioned second aspect provides.
Implement the embodiment of the present invention, there is following beneficial effect:
The embodiment of the present invention is when terminal carries out system update, the detecting information of terminal is loaded in goal systems, the automatic test that this detecting information can realize terminal is run in this goal systems, avoid the human resources adopting manual testing to bring to expend, save resource consumption, effectively improve testing efficiency.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
The process flow diagram of a kind of method of testing that Fig. 1 provides for the embodiment of the present invention;
The process flow diagram of the another kind of method of testing that Fig. 2 provides for the embodiment of the present invention;
The process flow diagram of another method of testing that Fig. 3 provides for the embodiment of the present invention;
The structural representation of a kind of proving installation that Fig. 4 provides for the embodiment of the present invention;
The structural representation of a kind of acquisition module that Fig. 5 provides for the embodiment of the present invention;
The structural representation of a kind of load-on module that Fig. 6 provides for the embodiment of the present invention;
The structural representation of a kind of test module that Fig. 7 provides for the embodiment of the present invention;
The structural representation of the another kind of test module that Fig. 8 provides for the embodiment of the present invention;
The structural representation of a kind of server that Fig. 9 provides for the embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
Below in conjunction with accompanying drawing 1-accompanying drawing 3, the method for testing that the embodiment of the present invention provides is described in detail.
Referring to Fig. 1, is the process flow diagram of a kind of method of testing that the embodiment of the present invention provides; The method can comprise the following steps S101-step S103.
S101, when terminal to be measured is updated to goal systems from origin system, obtains the detecting information of described terminal.
Described terminal can include but not limited to: mobile phone, smart mobile phone, PAD (panel computer), intelligent wearable device etc.The system of terminal refers to the operating system of described terminal, can include but not limited to: android system, Saipan system, windows system etc.Described terminal is updated to the process of goal systems from origin system, and refer to that described terminal reinstalls the process of operating system, this process can be described as again brush machine, such as: the mobile phone of android system from Android4.0 system update to Android4.3 system, etc.
Described detecting information comprises at least one trial function, described trial function can be used for testing the function of described terminal, and this trial function can include but not limited to: any one or more in telephony feature trial function, address book function trial function, message function trial function, wireless network linkage function trial function, time function trial function and image processing function trial function.In this step, when terminal to be measured needs to carry out brush machine, obtain the detecting information of this terminal.
S102, is loaded on described goal systems by described detecting information.
In this step, described detecting information is loaded on described goal systems, namely refers to be loaded into described detecting information in described goal systems, described detecting information can be run in described goal systems; Such as: the mobile phone of android system is from Android4.0 system update to Android4.3 system, and detecting information is then loaded in Android4.3 system by this step, carries out functional test for the mobile phone of Android4.3 system.
S103, runs described detecting information to test described terminal in described goal systems.
Described terminal is in the process using described goal systems, and can run the detecting information loaded by this goal systems, this detecting information can carry out functional test to described terminal; According to example shown in step S102, when mobile phone upgrade enters the use of Android4.3 system, the detecting information that this step can be run in this Android4.3 system carries out functional test to mobile phone.It should be noted that, adopt the process that described detecting information is tested described terminal, the actual process that can be regarded as the function of the described detecting information of employing to the terminal of installing described goal systems and verify, by this test process, can confirm that whether described terminal is successful to the renewal of goal systems from origin system; Such as: the mobile phone of android system is from Android4.0 system update to Android4.3 system, in Android4.3 system, run the telephony feature of described detecting information to mobile phone test, this detecting information can simulate the process of calling, check in the message registration of mobile phone whether there is this calling record, if exist, test is passed through, show that the telephony feature verification of the mobile phone of Android4.3 system is normal, confirm mobile phone upgrade success; Or, in Android4.3 system, run the image processing function of described detecting information to mobile phone test, this detecting information analogue camera can perform photographing operation, check in the picture library of mobile phone whether there is clapped picture, if do not exist, test crash, show that the image processing function verification of the mobile phone of Android4.3 system is abnormal, confirm mobile phone upgrade failure.
The embodiment of the present invention is when terminal carries out system update, the detecting information of terminal is loaded in goal systems, the automatic test that this detecting information can realize terminal is run in this goal systems, avoid the human resources adopting manual testing to bring to expend, save resource consumption, effectively improve testing efficiency.
Referring to Fig. 2, is the process flow diagram of the another kind of method of testing that the embodiment of the present invention provides; The method can comprise the following steps S201-step S208.
S201, when terminal to be measured is updated to goal systems from origin system, obtains the function information to be measured of described goal systems.
Described terminal can include but not limited to: mobile phone, smart mobile phone, PAD, intelligent wearable device etc.The system of terminal refers to the operating system of described terminal, can include but not limited to: android system, Saipan system, windows system etc.Described terminal is updated to the process of goal systems from origin system, and refer to that described terminal reinstalls the process of system, this process can be described as again brush machine, such as: the mobile phone of android system from Android4.0 system update to Android4.3 system, etc.
Described function information to be measured is for describing the function needing to carry out the described goal systems of testing, namely needing to carry out the function of having installed the terminal of described goal systems of testing for describing, can include but not limited to: any one or more in telephony feature information, address book function information, message function information, wireless network linkage function information, time function information and image processing function information.In this step, when terminal to be measured needs to carry out brush machine, obtain the function information to be measured of described goal systems.
S202, searches the trial function that described function information to be measured is corresponding.
Described trial function is used for needing the function of the described goal systems of testing to test, namely for testing the function of the terminal of installing described goal systems.This trial function can include but not limited to: any one or more in telephony feature trial function, address book function trial function, message function trial function, wireless network linkage function trial function, time function trial function and image processing function trial function.Described trial function and described function information one_to_one corresponding to be measured, such as: if it is address book function information and wireless network linkage function information that step S201 obtains described function information to be measured, this step then searches address book function trial function corresponding to this address book function information, searches the wireless network linkage function trial function that this wireless network linkage function information is corresponding.
S203, the trial function corresponding according to described function information to be measured, generates the detecting information of described terminal.
In this step, can encapsulate by the trial function corresponding to described function information to be measured, generate the detecting information of described terminal; In specific implementation, described detecting information can be executable format, and executable format refers to the form that can carry out installing, and such as: for android system, executable format refers to APK (AndroidPackage, Android installation kit) form; Or for Windows system, executable format refers to exe (EXEFile, executable program) form, etc.According to example shown in step S202, address book function trial function and wireless network linkage function trial function can encapsulate according to APK form by this step, generate the detecting information of described terminal, this detecting information can be used for testing the address book function of the terminal of installing described goal systems and wireless network linkage function.
The step S201-step S203 of the present embodiment can be the concrete refinement step of step S101 embodiment illustrated in fig. 1.
S204, resolves the system file of described goal systems, and what obtain described goal systems opens configuration file certainly.
The system file of described goal systems refers to the file normally run for supporting described goal systems, such as: the XXXrom.zip file of android system; The system file of described goal systems can include but not limited to: CONFIG.SYS, mount directory file, run time file, certainly open configuration file etc.Wherein, describedly can be used for storing start from the file that opens from opening configuration file, such as: the XXXrom.zip of android system system app.In this step, can carry out decompression to the system file of described goal systems, what obtain described goal systems opens configuration file certainly.
S205, what described detecting information is loaded on described goal systems opens in configuration file certainly.
In this step, what described detecting information is loaded on described goal systems opens in configuration file certainly, and described terminal when starting described goal systems, then can run the described described detecting information from opening in configuration file automatically; According to example shown in step S203-S204, the detecting information of APK form can be stored to XXXrom.zip system app by this step, then the system file of the detecting information storing APK form is re-started compression process, to form new system file.This new system file of follow-up use carries out brush machine to terminal, and after brush machine completes, the detecting information of this APK form is then automatically mounted in goal systems.
The step S204-step S205 of the present embodiment can be the concrete refinement step of step S102 embodiment illustrated in fig. 1.
S206, adopts system update order that the system file of described goal systems is pushed into described terminal.
In this step, adopt system update order the system file of described goal systems to be pushed into the process of described terminal, can refer to that described terminal carries out the process of brush machine; Such as: for android system, this step can adopt shell-command to be pushed in the storage card of described terminal by the system file of described goal systems to carry out card brush.Wherein, the new system file that the system file of described goal systems is formed after referring to store detecting information, the new system file formed after specifically can referring to store the detecting information of APK form.
S207, starts described goal systems in described terminal.Wherein, the process starting described goal systems can be the start process after described terminal brush machine.
S208, the described detecting information certainly opened in configuration file running described goal systems is tested described terminal.
After step S206 completes described terminal brush machine, namely the detecting information of APK form is automatically mounted in goal systems.In step S207-S208, described terminal, when starting described goal systems, automatically can being run the described described detecting information from opening in configuration file, testing described terminal.According to example shown in the present embodiment, described terminal can run the detecting information of APK form, address book function trial function in this detecting information can simulate the operation of newly-increased contact person, checks in the address book data storehouse of terminal whether be stored in newly-increased record, if exist, address book function test is passed through; Wireless network linkage function trial function in this detecting information can analog wireless networks attended operation, checks whether this wireless network switch is opened, if open, the test of wireless network linkage function is passed through.
The step S207-step S208 of the present embodiment can be the concrete refinement step of step S103 embodiment illustrated in fig. 1.
The embodiment of the present invention is when terminal carries out system update, the detecting information of terminal is loaded in goal systems, the automatic test that this detecting information can realize terminal is run in this goal systems, avoid the human resources adopting manual testing to bring to expend, save resource consumption, effectively improve testing efficiency.
Referring to Fig. 3, is the process flow diagram of another method of testing that the embodiment of the present invention provides; The method can comprise the following steps S301-step S310.
S301, when terminal to be measured is updated to goal systems from origin system, obtains the function information to be measured of described goal systems.
S302, searches the trial function that described function information to be measured is corresponding.
S303, the trial function corresponding according to described function information to be measured, generates the detecting information of described terminal.
S304, resolves the system file of described goal systems, and what obtain described goal systems opens configuration file certainly.
S305, what described detecting information is loaded on described goal systems opens in configuration file certainly.
The step S301-step S305 of the present embodiment can the step S201-step S205 of embodiment shown in Figure 2, is not repeated herein.
S306, locates the data partition shared by origin system described in described terminal.
S307, carries out format process to described data partition.
Step S306-S307 can be the preprocessing process before terminal brush machine, and this preprocessing process is actually removes the data cached of origin system, ensures that brush machine process can normally be carried out.For android system, step S306-S307 can be described as two clear process.
S308, adopts system update order that the system file of described goal systems is pushed into described terminal.
S309, starts described goal systems in described terminal.
S310, the described detecting information certainly opened in configuration file running described goal systems is tested described terminal.
The step S308-step S310 of the present embodiment can the step S206-step S208 of embodiment shown in Figure 2, is not repeated herein.The step S306-step S310 of the present embodiment can be the concrete refinement step of step S103 embodiment illustrated in fig. 1.
The embodiment of the present invention is when terminal carries out system update, the detecting information of terminal is loaded in goal systems, the automatic test that this detecting information can realize terminal is run in this goal systems, avoid the human resources adopting manual testing to bring to expend, save resource consumption, effectively improve testing efficiency.
Below in conjunction with accompanying drawing 4-accompanying drawing 8, a kind of proving installation that the embodiment of the present invention provides is described in detail.It should be noted that, the proving installation described in accompanying drawing 4-accompanying drawing 8 can be applicable to perform the method shown in above-mentioned accompanying drawing 1-accompanying drawing 3.
Referring to Fig. 4, is the structural representation of a kind of proving installation that the embodiment of the present invention provides; This device can comprise: acquisition module 101, load-on module 102 and test module 103.
Acquisition module 101, for when terminal to be measured is updated to goal systems from origin system, obtains the detecting information of described terminal.
Described terminal can include but not limited to: mobile phone, smart mobile phone, PAD, intelligent wearable device etc.The system of terminal refers to the operating system of described terminal, can include but not limited to: android system, Saipan system, windows system etc.Described terminal is updated to the process of goal systems from origin system, and refer to that described terminal reinstalls the process of operating system, this process can be described as again brush machine, such as: the mobile phone of android system from Android4.0 system update to Android4.3 system, etc.
Described detecting information comprises at least one trial function, described trial function can be used for testing the function of described terminal, and this trial function can include but not limited to: any one or more in telephony feature trial function, address book function trial function, message function trial function, wireless network linkage function trial function, time function trial function and image processing function trial function.When terminal to be measured needs to carry out brush machine, described acquisition module 101 obtains the detecting information of this terminal.
Load-on module 102, for being loaded on described goal systems by described detecting information.
Described detecting information is loaded on described goal systems by described load-on module 102, namely refers to that described load-on module 102 is loaded into described detecting information in described goal systems, and described detecting information can be run in described goal systems; Such as: the mobile phone of android system is from Android4.0 system update to Android4.3 system, and detecting information is loaded in Android4.3 system by described load-on module 102, carries out functional test for the mobile phone of Android4.3 system.
Test module 103, for running described detecting information to test described terminal in described goal systems.
Described terminal is in the process using described goal systems, and can run the detecting information loaded by this goal systems, this detecting information can carry out functional test to described terminal; According to example shown in the present embodiment, when mobile phone upgrade enters the use of Android4.3 system, the detecting information that described test module 103 can run in this Android4.3 system carries out functional test to mobile phone.It should be noted that, adopt the process that described detecting information is tested described terminal, the actual process that can be regarded as the function of the described detecting information of employing to the terminal of installing described goal systems and verify, by this test process, can confirm that whether described terminal is successful to the renewal of goal systems from origin system; Such as: the mobile phone of android system is from Android4.0 system update to Android4.3 system, in Android4.3 system, run the telephony feature of described detecting information to mobile phone test, this detecting information can simulate the process of calling, check in the message registration of mobile phone whether there is this calling record, if exist, test is passed through, show that the telephony feature verification of the mobile phone of Android4.3 system is normal, confirm mobile phone upgrade success; Or, in Android4.3 system, run the image processing function of described detecting information to mobile phone test, this detecting information analogue camera can perform photographing operation, check in the picture library of mobile phone whether there is clapped picture, if do not exist, test crash, show that the image processing function verification of the mobile phone of Android4.3 system is abnormal, confirm mobile phone upgrade failure.
The embodiment of the present invention is when terminal carries out system update, the detecting information of terminal is loaded in goal systems, the automatic test that this detecting information can realize terminal is run in this goal systems, avoid the human resources adopting manual testing to bring to expend, save resource consumption, effectively improve testing efficiency.
Referring to Fig. 5, is the structural representation of a kind of acquisition module that the embodiment of the present invention provides; This acquisition module 101 can comprise: information acquisition unit 1101 to be measured, function lookup unit 1102 and detecting information generation unit 1103.
Information acquisition unit 1101 to be measured, for when terminal to be measured is updated to goal systems from origin system, obtains the function information to be measured of described goal systems.
Described function information to be measured is for describing the function needing to carry out the described goal systems of testing, namely needing to carry out the function of having installed the terminal of described goal systems of testing for describing, can include but not limited to: any one or more in telephony feature information, address book function information, message function information, wireless network linkage function information, time function information and image processing function information.When terminal to be measured needs to carry out brush machine, described information acquisition unit 1101 to be measured obtains the function information to be measured of described goal systems.
Function lookup unit 1102, for searching trial function corresponding to described function information to be measured.
Described trial function is used for needing the function of the described goal systems of testing to test, namely for testing the function of the terminal of installing described goal systems.This trial function can include but not limited to: any one or more in telephony feature trial function, address book function trial function, message function trial function, wireless network linkage function trial function, time function trial function and image processing function trial function.Described trial function and described function information one_to_one corresponding to be measured, such as: if the function information described to be measured obtained is address book function information and wireless network linkage function information, described function lookup unit 1102 searches address book function trial function corresponding to this address book function information, searches the wireless network linkage function trial function that this wireless network linkage function information is corresponding.
Detecting information generation unit 1103, for the trial function corresponding according to described function information to be measured, generates the detecting information of described terminal.
Described detecting information generation unit 1103 can encapsulate by the trial function corresponding to described function information to be measured, generates the detecting information of described terminal; In specific implementation, described detecting information can be executable format, and executable format refers to the form that can carry out installing, and such as: for android system, executable format refers to APK form; Or for Windows system, executable format refers to exe form, etc.According to example shown in the present embodiment, address book function trial function and wireless network linkage function trial function can encapsulate according to APK form by described detecting information generation unit 1103, generate the detecting information of described terminal, this detecting information can be used for testing the address book function of the terminal of installing described goal systems and wireless network linkage function.
The embodiment of the present invention is when terminal carries out system update, the detecting information of terminal is loaded in goal systems, the automatic test that this detecting information can realize terminal is run in this goal systems, avoid the human resources adopting manual testing to bring to expend, save resource consumption, effectively improve testing efficiency.
Referring to Fig. 6, is the structural representation of a kind of load-on module that the embodiment of the present invention provides; This load-on module 102 can comprise: resolution unit 1201 and loading unit 1202.
Resolution unit 1201, for resolving the system file of described goal systems, what obtain described goal systems opens configuration file certainly.
The system file of described goal systems refers to the file normally run for supporting described goal systems, such as: the XXXrom.zip file of android system; The system file of described goal systems can include but not limited to: CONFIG.SYS, mount directory file, run time file, certainly open configuration file etc.Wherein, describedly can be used for storing start from the file that opens from opening configuration file, such as: the XXXrom.zip of android system system app.Described resolution unit 1201 can carry out decompression to the system file of described goal systems, and what obtain described goal systems opens configuration file certainly.
Loading unit 1202, opens in configuration file for what described detecting information is loaded on described goal systems certainly.
What described detecting information was loaded on described goal systems by described loading unit 1202 opens in configuration file certainly, and described terminal when starting described goal systems, then can run the described described detecting information from opening in configuration file automatically; According to example shown in the present embodiment, described loading unit 1202 detecting information of APK form can be stored to XXXrom.zip system app, again the system file of the detecting information storing APK form is re-started compression process, to form new system file.This new system file of follow-up use carries out brush machine to terminal, and after brush machine completes, the detecting information of this APK form is then automatically mounted in goal systems.
The embodiment of the present invention is when terminal carries out system update, the detecting information of terminal is loaded in goal systems, the automatic test that this detecting information can realize terminal is run in this goal systems, avoid the human resources adopting manual testing to bring to expend, save resource consumption, effectively improve testing efficiency.
Referring to Fig. 7, is the structural representation of a kind of test module that the embodiment of the present invention provides; This test module 103 can comprise: system update unit 1301, start unit 1302 and test cell 1303.
System update unit 1301, is pushed into described terminal for adopting system update order by the system file of described goal systems.
Described system update unit 1301 adopts system update order that the system file of described goal systems is pushed into the process of described terminal, can refer to that described terminal carries out the process of brush machine; Such as: for android system, described system update unit 1301 can adopt shell-command to be pushed in the storage card of described terminal by the system file of described goal systems to carry out card brush.Wherein, the new system file that the system file of described goal systems is formed after referring to store detecting information, the new system file formed after specifically can referring to store the detecting information of APK form.
Start unit 1302, for starting described goal systems in described terminal.Wherein, the process starting described goal systems can be the start process after described terminal brush machine.
Test cell 1303, tests described terminal for the described detecting information certainly opened in configuration file running described goal systems.
After completing described terminal brush machine, described test cell 1303, when starting described goal systems, automatically can running the described described detecting information from opening in configuration file, testing described terminal.Such as: described test cell 1303 is when starting described goal systems, the detecting information of APK form can be run, address book function trial function in this detecting information can simulate the operation of newly-increased contact person, check in the address book data storehouse of terminal and whether be stored in newly-increased record, if exist, address book function test is passed through; Wireless network linkage function trial function in this detecting information can analog wireless networks attended operation, checks whether this wireless network switch is opened, if open, the test of wireless network linkage function is passed through.
The embodiment of the present invention is when terminal carries out system update, the detecting information of terminal is loaded in goal systems, the automatic test that this detecting information can realize terminal is run in this goal systems, avoid the human resources adopting manual testing to bring to expend, save resource consumption, effectively improve testing efficiency.
Referring to Fig. 8, is the structural representation of the another kind of test module that the embodiment of the present invention provides; This test module 103 can comprise: system update unit 1301, start unit 1302, test cell 1303, positioning unit 1304 and formatting unit 1305.Wherein, the 26S Proteasome Structure and Function of system update unit 1301, start unit 1302 and test cell 1303 can the associated description of embodiment shown in Figure 7, is not repeated herein.
Positioning unit 1304, for locating the data partition described in described terminal shared by origin system.
Formatting unit 1305, for carrying out format process to described data partition.
Described positioning unit 1304 and described formatting unit 1305 can be the preprocessing process before terminal brush machine, and this preprocessing process is actually removes the data cached of origin system, ensure that brush machine process can normally be carried out.For android system, this preprocessing process can be described as two clear process.
The embodiment of the present invention is when terminal carries out system update, the detecting information of terminal is loaded in goal systems, the automatic test that this detecting information can realize terminal is run in this goal systems, avoid the human resources adopting manual testing to bring to expend, save resource consumption, effectively improve testing efficiency.
The embodiment of the invention also discloses a kind of server, can comprise a proving installation in this server, the 26S Proteasome Structure and Function of this proving installation see the associated description of Fig. 4-embodiment illustrated in fig. 8, can be not repeated herein.
The embodiment of the present invention is when terminal carries out system update, the detecting information of terminal is loaded in goal systems, the automatic test that this detecting information can realize terminal is run in this goal systems, avoid the human resources adopting manual testing to bring to expend, save resource consumption, effectively improve testing efficiency.
Referring to Fig. 9, is the structural representation of a kind of server that the embodiment of the present invention provides; The server of the embodiment of the present invention comprises: at least one processor 201, such as CPU, at least one communication bus 202, at least one network interface 203, storer 204.Wherein, communication bus 202 is for realizing the connection communication between these assemblies.Wherein, described network interface 203 optionally can comprise wireline interface, the wave point (as WI-FI, mobile communication interface etc.) of standard.Described storer 204 can be high-speed RAM storer, also can be non-labile storer (non-volatilememory), such as at least one magnetic disk memory.Described storer 204 can also be optionally that at least one is positioned at the memory storage away from aforementioned processor 201.As shown in Figure 9, store operating system, network communication module as in a kind of storer 204 of computer-readable storage medium, and store for carrying out the program of testing and other programs.
In a kind of feasible embodiment, wherein concrete, described processor 201 may be used for calling in described storer 204 store for carrying out the program of testing, perform following steps:
When terminal to be measured is updated to goal systems from origin system, obtain the detecting information of described terminal;
Described detecting information is loaded on described goal systems;
Described detecting information is run to test described terminal in described goal systems.
Further, described processor 201, when being updated to goal systems when terminal to be measured from origin system described in performing, when obtaining the step of the detecting information of described terminal, specifically performs following steps:
When terminal to be measured is updated to goal systems from origin system, obtain the function information to be measured of described goal systems;
Search the trial function that described function information to be measured is corresponding;
The trial function corresponding according to described function information to be measured, generates the detecting information of described terminal.
Wherein, described function information to be measured comprises: any one or more in telephony feature information, address book function information, message function information, wireless network linkage function information, time function information and image processing function information.
Further, described processor 201 perform described described detecting information is loaded on the step of described goal systems time, specifically perform following steps:
Resolve the system file of described goal systems, what obtain described goal systems opens configuration file certainly;
What described detecting information is loaded on described goal systems opens in configuration file certainly.
Further, described processor 201, when running described detecting information with the step of testing described terminal in described goal systems described in performing, specifically performs following steps:
Adopt system update order that the system file of described goal systems is pushed into described terminal;
Described goal systems is started in described terminal;
The described detecting information certainly opened in configuration file running described goal systems is tested described terminal.
Further, described processor 201, before performing described employing system update order and the system file of described goal systems being pushed into the step of described terminal, also performs following steps:
Locate the data partition shared by origin system described in described terminal;
Format process is carried out to described data partition.
The embodiment of the present invention is when terminal carries out system update, the detecting information of terminal is loaded in goal systems, the automatic test that this detecting information can realize terminal is run in this goal systems, avoid the human resources adopting manual testing to bring to expend, save resource consumption, effectively improve testing efficiency.
One of ordinary skill in the art will appreciate that all or part of flow process realized in above-described embodiment method, that the hardware that can carry out instruction relevant by computer program has come, described program can be stored in a computer read/write memory medium, this program, when performing, can comprise the flow process of the embodiment as above-mentioned each side method.Wherein, described storage medium can be magnetic disc, CD, read-only store-memory body (Read-OnlyMemory, ROM) or random store-memory body (RandomAccessMemory, RAM) etc.
Above disclosedly be only present pre-ferred embodiments, certainly can not limit the interest field of the present invention with this, therefore according to the equivalent variations that the claims in the present invention are done, still belong to the scope that the present invention is contained.

Claims (13)

1. a method of testing, is characterized in that, comprising:
When terminal to be measured is updated to goal systems from origin system, obtain the detecting information of described terminal;
Described detecting information is loaded on described goal systems;
Described detecting information is run to test described terminal in described goal systems.
2. the method for claim 1, is characterized in that, described when terminal to be measured is updated to goal systems from origin system, obtains the detecting information of described terminal, comprising:
When terminal to be measured is updated to goal systems from origin system, obtain the function information to be measured of described goal systems;
Search the trial function that described function information to be measured is corresponding;
The trial function corresponding according to described function information to be measured, generates the detecting information of described terminal.
3. method as claimed in claim 2, it is characterized in that, described function information to be measured comprises: any one or more in telephony feature information, address book function information, message function information, wireless network linkage function information, time function information and image processing function information.
4. the method as described in any one of claim 1-3, is characterized in that, described described detecting information is loaded on described goal systems, comprising:
Resolve the system file of described goal systems, what obtain described goal systems opens configuration file certainly;
What described detecting information is loaded on described goal systems opens in configuration file certainly.
5. method as claimed in claim 4, is characterized in that, describedly in described goal systems, runs described detecting information to test described terminal, comprising:
Adopt system update order that the system file of described goal systems is pushed into described terminal;
Described goal systems is started in described terminal;
The described detecting information certainly opened in configuration file running described goal systems is tested described terminal.
6. method as claimed in claim 5, it is characterized in that, the order of described employing system update also comprises before the system file of described goal systems is pushed into described terminal:
Locate the data partition shared by origin system described in described terminal;
Format process is carried out to described data partition.
7. a proving installation, is characterized in that, comprising:
Acquisition module, for when terminal to be measured is updated to goal systems from origin system, obtains the detecting information of described terminal;
Load-on module, for being loaded on described goal systems by described detecting information;
Test module, for running described detecting information to test described terminal in described goal systems.
8. device as claimed in claim 7, it is characterized in that, described acquisition module comprises:
Information acquisition unit to be measured, for when terminal to be measured is updated to goal systems from origin system, obtains the function information to be measured of described goal systems;
Function lookup unit, for searching trial function corresponding to described function information to be measured;
Detecting information generation unit, for the trial function corresponding according to described function information to be measured, generates the detecting information of described terminal.
9. device as claimed in claim 8, it is characterized in that, described function information to be measured comprises: any one or more in telephony feature information, address book function information, message function information, wireless network linkage function information, time function information and image processing function information.
10. the device as described in any one of claim 7-9, is characterized in that, described load-on module comprises:
Resolution unit, for resolving the system file of described goal systems, what obtain described goal systems opens configuration file certainly;
Loading unit, opens in configuration file for what described detecting information is loaded on described goal systems certainly.
11. devices as claimed in claim 10, it is characterized in that, described test module comprises:
System update unit, is pushed into described terminal for adopting system update order by the system file of described goal systems;
Start unit, for starting described goal systems in described terminal;
Test cell, tests described terminal for the described detecting information certainly opened in configuration file running described goal systems.
12. devices as claimed in claim 11, it is characterized in that, described test module also comprises:
Positioning unit, for locating the data partition described in described terminal shared by origin system;
Formatting unit, for carrying out format process to described data partition.
13. 1 kinds of servers, is characterized in that, comprise the proving installation as described in any one of claim 7-12.
CN201410361443.3A 2014-07-25 2014-07-25 A kind of test method, device and server Active CN105279063B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410361443.3A CN105279063B (en) 2014-07-25 2014-07-25 A kind of test method, device and server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410361443.3A CN105279063B (en) 2014-07-25 2014-07-25 A kind of test method, device and server

Publications (2)

Publication Number Publication Date
CN105279063A true CN105279063A (en) 2016-01-27
CN105279063B CN105279063B (en) 2019-11-22

Family

ID=55148109

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410361443.3A Active CN105279063B (en) 2014-07-25 2014-07-25 A kind of test method, device and server

Country Status (1)

Country Link
CN (1) CN105279063B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108650507A (en) * 2018-04-26 2018-10-12 珠海全志科技股份有限公司 Test method, device, terminal device and the storage medium of terminal device
CN114490307A (en) * 2020-11-12 2022-05-13 腾讯科技(深圳)有限公司 Unit testing method, device and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101470610A (en) * 2007-12-25 2009-07-01 英业达股份有限公司 Updating method of program used for test
CN102045191A (en) * 2009-10-22 2011-05-04 华为技术有限公司 Method and equipment for testing compatibility after upgrading of system
CN102141960A (en) * 2011-03-18 2011-08-03 广东欧珀移动通信有限公司 Automatic test method based on Android
CN103123605A (en) * 2013-02-07 2013-05-29 百度在线网络技术(北京)有限公司 Android platform automation integration testing method and device
CN103634592A (en) * 2013-12-09 2014-03-12 乐视致新电子科技(天津)有限公司 Automatic test method and system for intelligent televisions

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101470610A (en) * 2007-12-25 2009-07-01 英业达股份有限公司 Updating method of program used for test
CN102045191A (en) * 2009-10-22 2011-05-04 华为技术有限公司 Method and equipment for testing compatibility after upgrading of system
CN102141960A (en) * 2011-03-18 2011-08-03 广东欧珀移动通信有限公司 Automatic test method based on Android
CN103123605A (en) * 2013-02-07 2013-05-29 百度在线网络技术(北京)有限公司 Android platform automation integration testing method and device
CN103634592A (en) * 2013-12-09 2014-03-12 乐视致新电子科技(天津)有限公司 Automatic test method and system for intelligent televisions

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108650507A (en) * 2018-04-26 2018-10-12 珠海全志科技股份有限公司 Test method, device, terminal device and the storage medium of terminal device
CN114490307A (en) * 2020-11-12 2022-05-13 腾讯科技(深圳)有限公司 Unit testing method, device and storage medium

Also Published As

Publication number Publication date
CN105279063B (en) 2019-11-22

Similar Documents

Publication Publication Date Title
CN105094903B (en) The method and device that firmware is upgraded
CN106598835B (en) Application testing method, device and system
KR101578832B1 (en) Method for storing application data and terminal device
CN106933593B (en) System switching method and device based on mobile terminal
CN110989926B (en) Fault magnetic disc slot positioning method and device and electronic equipment
CN103428333B (en) Mobile terminal, server and errors repair method
US20160170735A1 (en) Operating system updating method by using a checklist
CN111143150A (en) Method and system for testing PCBA (printed circuit board assembly), testing equipment and micro-control unit
CN110297658B (en) Function component sharing method and device and computer equipment
CN103249027B (en) The method and apparatus that a kind of terminal traffic processes
CN107632901A (en) A kind of self-repair method and device of application program operation exception
CN105468504B (en) Program testing method and device
CN105302711A (en) Application repairing method and apparatus and terminal
CN111258803B (en) Collapse positioning method and device and electronic equipment
CN109471799B (en) Method, device, storage medium and terminal for deploying demand environment
CN105279063A (en) Test method and apparatus, and server
CN104036193A (en) Local cross-domain vulnerability detection method and device for application program
CN107608923B (en) Test processing method and related product
US9928134B2 (en) Method and apparatus for repairing dynamic link library file
CN111128139B (en) Non-invasive voice test method and device
CN104778058A (en) Application program update method and application program update system
EP2835737A1 (en) Data terminal running mode switching method, device, and data terminal
CN103279334A (en) Android software rapid dynamic detection device and method
CN113360161A (en) Resource upgrading method and related product
CN107451067B (en) Processing method for downloading test and related product

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