CN105279063B - A kind of test method, device and server - Google Patents
A kind of test method, device and server Download PDFInfo
- Publication number
- CN105279063B CN105279063B CN201410361443.3A CN201410361443A CN105279063B CN 105279063 B CN105279063 B CN 105279063B CN 201410361443 A CN201410361443 A CN 201410361443A CN 105279063 B CN105279063 B CN 105279063B
- Authority
- CN
- China
- Prior art keywords
- test
- terminal
- information
- goal systems
- function
- 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.)
- Active
Links
Landscapes
- Telephone Function (AREA)
Abstract
The embodiment of the present invention provides a kind of test method, device and server, method therein can include: when terminal to be measured is from source system update to goal systems, obtains the test information of the terminal;The test information is loaded onto the goal systems;The test information is run in the goal systems to test the terminal.The present invention can carry out automatic test to terminal, reduce resource consumption, promote testing efficiency.
Description
Technical field
The present invention relates to Internet technical fields, and in particular to terminal processing techniques field more particularly to a kind of test side
Method, device and server.
Background technique
Terminal system renewal process refers to that terminal reinstalls the process of operating system, which can be described as brush machine, example again
Such as: a kind of mobile phone of Android (Android, Mobile operating system) system is from Android4.0 system update to Android4.3 system
System, etc..In order to guarantee that the terminal after brush machine being capable of normal use, it usually needs carry out function to the terminal for being mounted with new system
Test.Currently, mainly carried out using artificial to the test process of terminal, specifically: tester detect manually be mounted with newly be
The various functions of the terminal of system, such as: the wireless networks such as manually opened wifi (Wireless Fidelity, Wireless Fidelity), bluetooth
The switch of network detects whether to open successfully to confirm whether the radio network functions such as wifi, bluetooth are normal;Alternatively, addition manually
Contact person, searching terminal contact whether there is newly-increased contact person record to confirm whether address book function is normal;Etc..At present
This artificial detection scheme needs to expend a large amount of human resources, and reduces testing efficiency.
Summary of the invention
The embodiment of the present invention provides a kind of test method, device and server, can carry out automatic test to terminal, subtract
Few resource consumption, promotes testing efficiency.
First aspect of the embodiment of the present invention provides a kind of test method, it may include:
When terminal to be measured is from source system update to goal systems, the test information of the terminal is obtained;
The test information is loaded onto the goal systems;
The test information is run in the goal systems to test the terminal.
Second aspect of the embodiment of the present invention provides a kind of test device, it may include:
Module is obtained, for when terminal to be measured is from source system update to goal systems, obtaining the test letter of the terminal
Breath;
Loading module, for the test information to be loaded onto the goal systems;
Test module, for running the test information in the goal systems to test the terminal.
The third aspect of the embodiment of the present invention provides a kind of server, it may include the test device that above-mentioned second aspect provides.
The implementation of the embodiments of the present invention has the following beneficial effects:
The test information of terminal is loaded onto goal systems, In by the embodiment of the present invention when terminal carries out system update
The test information is run in the goal systems can be realized automatic test to terminal, avoids and is brought using manual testing
Human resources expend, save resource consumption, testing efficiency be effectively promoted.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with
It obtains other drawings based on these drawings.
Fig. 1 is a kind of flow chart of test method provided in an embodiment of the present invention;
Fig. 2 is the flow chart of another test method provided in an embodiment of the present invention;
Fig. 3 is the flow chart of another test method provided in an embodiment of the present invention;
Fig. 4 is a kind of structural schematic diagram of test device provided in an embodiment of the present invention;
Fig. 5 is a kind of structural schematic diagram for obtaining module provided in an embodiment of the present invention;
Fig. 6 is a kind of structural schematic diagram of loading module provided in an embodiment of the present invention;
Fig. 7 is a kind of structural schematic diagram of test module provided in an embodiment of the present invention;
Fig. 8 is the structural schematic diagram of another test module provided in an embodiment of the present invention;
Fig. 9 is a kind of structural schematic diagram of server provided in an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other
Embodiment shall fall within the protection scope of the present invention.
Below in conjunction with attached drawing 1- attached drawing 3, describe in detail to test method provided in an embodiment of the present invention.
It referring to Figure 1, is a kind of flow chart of test method provided in an embodiment of the present invention;This method may include following step
Rapid S101- step S103.
S101 obtains the test information of the terminal when terminal to be measured is from source system update to goal systems.
The terminal may include but be not limited to: mobile phone, smart phone, PAD (tablet computer), intelligent wearable device etc.
Deng.The system of terminal refers to the operating system of the terminal, it may include but be not limited to: android system, Saipan system, windows
System etc..Process of the terminal from source system update to goal systems, refers to that the terminal reinstalls the mistake of operating system
Journey, the process can be described as brush machine again, such as: the mobile phone of android system is from Android4.0 system update to Android4.3
System, etc..
The test information includes at least one test function, the test function can be used for the function of the terminal into
Row test, the test function may include but be not limited to: telephony feature test function, address book function test function, short message function
In energy test function, wireless network connection functional test function, time function test function and image processing function test function
It is any one or more.In this step, when terminal to be measured needs to carry out brush machine, the test information of the terminal is obtained.
The test information is loaded onto the goal systems by S102.
In this step, the test information is loaded onto the goal systems, that is, refers to and is loaded into institute in the goal systems
Test information is stated, the test information is run in the goal systems;Such as: the mobile phone of android system from
Test information is then loaded onto Android4.3 system by Android4.0 system update to Android4.3 system, this step,
To carry out functional test for the mobile phone to Android4.3 system.
S103 runs the test information in the goal systems to test the terminal.
The terminal can run test information loaded by the goal systems during using the goal systems,
The test information can carry out functional test to the terminal;According to example shown in step S102, mobile phone upgrade enters
Android4.3 system carries out function survey to mobile phone in use, this step can run the test information in the Android4.3 system
Examination.It should be noted that the process tested using the test information the terminal, actually can be regarded as using described
The process that test information verifies the function for the terminal for being mounted with the goal systems can be confirmed by the test process
Whether update of the terminal from source system to goal systems succeeds;Such as: the mobile phone of android system is from Android4.0 system
System is updated to Android4.3 system, and the test information is run in Android4.3 system and is carried out to the telephony feature of mobile phone
Test, the test information analog make a phone call process, check with the presence or absence of the calling record in the message registration of mobile phone, if depositing
Pass through in then test, shows that the telephony feature verification of the mobile phone of Android4.3 system is normal, confirmation mobile phone upgrade success;Or
Person runs the test information in Android4.3 system and tests the image processing function of mobile phone, the test information
Analog camera executes photographing operation, checks in the picture library of mobile phone with the presence or absence of clapped picture, if it does not exist then test crash,
Show that the image processing function verification of the mobile phone of Android4.3 system is abnormal, confirmation mobile phone upgrade failure.
The test information of terminal is loaded onto goal systems, In by the embodiment of the present invention when terminal carries out system update
The test information is run in the goal systems can be realized automatic test to terminal, avoids and is brought using manual testing
Human resources expend, save resource consumption, testing efficiency be effectively promoted.
Fig. 2 is referred to, for the flow chart of another test method provided in an embodiment of the present invention;This method may include following
Step S201- step S208.
S201 obtains believing to brake for the goal systems when terminal to be measured is from source system update to goal systems
Breath.
The terminal may include but be not limited to: mobile phone, smart phone, PAD, intelligent wearable device etc..Terminal is
System refers to the operating system of the terminal, it may include but be not limited to: android system, Saipan system, windows system etc..Institute
Process of the terminal from source system update to goal systems is stated, refers to that the terminal reinstalls the process of system, which can claim again
For brush machine, such as: the mobile phone of android system is from Android4.0 system update to Android4.3 system, etc..
The functional information to be measured is used to describe the function of the goal systems in need of test, i.e., for describing to need
That is tested is mounted with the function of the terminal of the goal systems, it may include but be not limited to: telephony feature information, address list
In functional information, message function information, wireless network connection functional information, time function information and image processing function information
It is any one or more.In this step, when terminal to be measured needs to carry out brush machine, believing to brake for the goal systems is obtained
Breath.
S202 searches the corresponding test function of the functional information to be measured.
The test function is for testing the function of the goal systems in need of test, i.e., for peace
The function of having filled the terminal of the goal systems is tested.The test function may include but be not limited to: telephony feature tests letter
Number, address book function test function, message function test function, wireless network connection functional test function, time function are surveyed
Trial function and image processing function test function are any one or more of.The test function and the functional information one to be measured
One is corresponding, such as: if it is address book function information and wireless network connection function that step S201, which obtains the functional information to be measured,
Information, this step then search the corresponding address book function test function of the address book function information, search the wireless network connection
The corresponding wireless network connection functional test function of functional information.
S203 generates the test information of the terminal according to the corresponding test function of the functional information to be measured.
In this step, the corresponding test function of the functional information to be measured can be packaged, generate the survey of the terminal
Try information;In the specific implementation, the test information can be executable format, executable format refers to the format that can be installed,
Such as: it is directed to android system, executable format refers to APK (Android Package, Android installation kit) format;Alternatively, needle
To Windows system, executable format refers to exe (EXE File, executable program) format, etc..According to institute in step S202
Example child, this step can carry out address book function test function and wireless network connection functional test function according to APK format
Encapsulation, generates the test information of the terminal, which can be used for the communication to the terminal for being mounted with the goal systems
Recording function and wireless network connection function are tested.
The step S201- step S203 of the present embodiment can be the specific refinement step of the step S101 of embodiment illustrated in fig. 1
Suddenly.
S204 parses the system file of the goal systems, and obtain the goal systems opens configuration file certainly.
The system file of the goal systems, which refers to, is used to support the file that the goal systems operates normally, such as:
The XXXrom.zip file of android system;The system file of the goal systems may include but be not limited to: system configuration text
Part, run time file, opens configuration file etc. at mount directory file certainly.Wherein, it is described from open configuration file can be used for store open
Machine from the file that opens, such as: the XXXrom.zip of android system system app.It, can be to the target system in this step
The system file of system unzips it processing, and obtain the goal systems opens configuration file certainly.
The test information is loaded onto opening in configuration file certainly for the goal systems by S205.
In this step, the test information is loaded onto opening in configuration file certainly for the goal systems, the terminal exists
It, then can be described in automatic running from the test information opened in configuration file when starting the goal systems;According to step S203-
Example shown in S204, this step can store the test information of APK format to XXXrom.zip system app, then will storage
The system file of the test information of APK format re-starts compression processing, to form new system file.It is subsequent new using this
System file brush machine carried out to terminal, the test information of the APK format is then automatically mounted in goal systems after brush machine is completed
In.
The step S204- step S205 of the present embodiment can be the specific refinement step of the step S102 of embodiment illustrated in fig. 1
Suddenly.
The system file of the goal systems is pushed into the terminal using system update order by S206.
In this step, the system file of the goal systems is pushed into the mistake of the terminal using system update order
Journey can refer to the process that the terminal carries out brush machine;Such as: it is directed to android system, shell-command can be used by institute in this step
The system file for stating goal systems, which is pushed into the storage card of the terminal, carries out card brush.Wherein, the system of the goal systems
File refers to store test information after the new system file that is formed, specifically can refer to store shape after the test information of APK format
At new system file.
S207 starts the goal systems in the terminal.Wherein, it can be described for starting the process of the goal systems
Start process after terminal brush machine.
S208, the test information opened in configuration file certainly for running the goal systems survey the terminal
Examination.
After the completion of step S206 is to the terminal brush machine, the test information of APK format is automatically mounted in goal systems.
In step S207-S208, the terminal, can be described in automatic running from the institute opened in configuration file when starting the goal systems
Test information is stated, the terminal is tested.According to example shown in the present embodiment, the terminal can run the survey of APK format
Information is tried, the address book function test function analog in the test information increases the operation of contact person newly, checks the communication of terminal
It whether is stored in newly-increased record in record database, then address book function test passes through if it exists;Wireless network in the test information
The operation of network linkage function test function analog wireless network connection, checks whether wireless network switch is opened, if opening
Wireless network connection functional test passes through.
The step S207- step S208 of the present embodiment can be the specific refinement step of the step S103 of embodiment illustrated in fig. 1
Suddenly.
The test information of terminal is loaded onto goal systems, In by the embodiment of the present invention when terminal carries out system update
The test information is run in the goal systems can be realized automatic test to terminal, avoids and is brought using manual testing
Human resources expend, save resource consumption, testing efficiency be effectively promoted.
Fig. 3 is referred to, is the flow chart of another test method provided in an embodiment of the present invention;This method may include following
Step S301- step S310.
S301 obtains believing to brake for the goal systems when terminal to be measured is from source system update to goal systems
Breath.
S302 searches the corresponding test function of the functional information to be measured.
S303 generates the test information of the terminal according to the corresponding test function of the functional information to be measured.
S304 parses the system file of the goal systems, and obtain the goal systems opens configuration file certainly.
The test information is loaded onto opening in configuration file certainly for the goal systems by S305.
The step S301- step S305 of the present embodiment can be found in step S201- the step S205, In of embodiment illustrated in fig. 2
This is not repeated.
S306 positions the occupied data subregion of source system described in the terminal.
S307 is formatted processing to the data subregion.
Step S306-S307 can be the preprocessing process before terminal brush machine, which is actually to remove
Source system it is data cached, guarantee brush machine process can be normally carried out.For android system, step S306-S307 be can be described as
Double clear processes.
The system file of the goal systems is pushed into the terminal using system update order by S308.
S309 starts the goal systems in the terminal.
S310, the test information opened in configuration file certainly for running the goal systems survey the terminal
Examination.
The step S308- step S310 of the present embodiment can be found in step S206- the step S208, In of embodiment illustrated in fig. 2
This is not repeated.The step S306- step S310 of the present embodiment can be the specific refinement step of the step S103 of embodiment illustrated in fig. 1
Suddenly.
The test information of terminal is loaded onto goal systems, In by the embodiment of the present invention when terminal carries out system update
The test information is run in the goal systems can be realized automatic test to terminal, avoids and is brought using manual testing
Human resources expend, save resource consumption, testing efficiency be effectively promoted.
Below in conjunction with attached drawing 4- attached drawing 8, describe in detail to a kind of test device provided in an embodiment of the present invention.It needs
It is noted that test device described in attached drawing 4- attached drawing 8 can be applied to execute the attached method shown in Fig. 3 of above-mentioned attached drawing 1-.
Fig. 4 is referred to, is a kind of structural schematic diagram of test device provided in an embodiment of the present invention;The device can include:
Obtain module 101, loading module 102 and test module 103.
Module 101 is obtained, for obtaining the test of the terminal when terminal to be measured is from source system update to goal systems
Information.
The terminal may include but be not limited to: mobile phone, smart phone, PAD, intelligent wearable device etc..Terminal is
System refers to the operating system of the terminal, it may include but be not limited to: android system, Saipan system, windows system etc..Institute
Process of the terminal from source system update to goal systems is stated, refers to that the terminal reinstalls the process of operating system, the process is again
It can be described as brush machine, such as: the mobile phone of android system is from Android4.0 system update to Android4.3 system, etc..
The test information includes at least one test function, the test function can be used for the function of the terminal into
Row test, the test function may include but be not limited to: telephony feature test function, address book function test function, short message function
In energy test function, wireless network connection functional test function, time function test function and image processing function test function
It is any one or more.When terminal to be measured needs to carry out brush machine, the test information for obtaining module 101 and obtaining the terminal.
Loading module 102, for the test information to be loaded onto the goal systems.
The test information is loaded onto the goal systems by the loading module 102, that is, refer to the loading module 102 to
It is loaded into the test information in the goal systems, the test information is run in the goal systems;Such as:
For the mobile phone of android system from Android4.0 system update to Android4.3 system, the loading module 102 then will test
Information is loaded onto Android4.3 system, to carry out functional test for the mobile phone to Android4.3 system.
Test module 103, for running the test information in the goal systems to test the terminal.
The terminal can run test information loaded by the goal systems during using the goal systems,
The test information can carry out functional test to the terminal;According to example shown in the present embodiment, mobile phone upgrade enters
Android4.3 system is in use, the test module 103 can run the test information in the Android4.3 system to mobile phone
Carry out functional test.It should be noted that the process tested using the test information the terminal, is actually appreciated that
For the process verified using the test information to the function for the terminal for being mounted with the goal systems, pass through the test
Journey, can confirm whether update of the terminal from source system to goal systems succeeds;Such as: the mobile phone of android system from
Android4.0 system update runs the test information to mobile phone to Android4.3 system in Android4.3 system
Telephony feature is tested, which makes a phone call process, and checking, which whether there is in the message registration of mobile phone, is somebody's turn to do
Calling record, then test passes through if it exists, shows that the telephony feature verification of the mobile phone of Android4.3 system is normal, confirms mobile phone
The success of brush machine;The image processing function of mobile phone is tested alternatively, running the test information in Android4.3 system,
The test information analog camera executes photographing operation, checks with the presence or absence of clapped picture in the picture library of mobile phone, if it does not exist
Then test crash shows that the image processing function verification of the mobile phone of Android4.3 system is abnormal, confirmation mobile phone upgrade failure.
The test information of terminal is loaded onto goal systems, In by the embodiment of the present invention when terminal carries out system update
The test information is run in the goal systems can be realized automatic test to terminal, avoids and is brought using manual testing
Human resources expend, save resource consumption, testing efficiency be effectively promoted.
Fig. 5 is referred to, for a kind of structural schematic diagram for obtaining module provided in an embodiment of the present invention;The acquisition module 101
Can include: information acquisition unit 1101, function lookup unit 1102 and test information generating unit 1103 to be measured.
Information acquisition unit 1101 to be measured, for when terminal to be measured is from source system update to goal systems, described in acquisition
The functional information to be measured of goal systems.
The functional information to be measured is used to describe the function of the goal systems in need of test, i.e., for describing to need
That is tested is mounted with the function of the terminal of the goal systems, it may include but be not limited to: telephony feature information, address list
In functional information, message function information, wireless network connection functional information, time function information and image processing function information
It is any one or more.When terminal to be measured needs to carry out brush machine, the information acquisition unit 1101 to be measured obtains the target
The functional information to be measured of system.
Function lookup unit 1102, for searching the corresponding test function of the functional information to be measured.
The test function is for testing the function of the goal systems in need of test, i.e., for peace
The function of having filled the terminal of the goal systems is tested.The test function may include but be not limited to: telephony feature tests letter
Number, address book function test function, message function test function, wireless network connection functional test function, time function are surveyed
Trial function and image processing function test function are any one or more of.The test function and the functional information one to be measured
One is corresponding, such as: if the functional information to be measured obtained is address book function information and wireless network connection functional information, institute
It states function lookup unit 1102 and then searches the corresponding address book function test function of the address book function information, search the wireless network
The corresponding wireless network connection functional test function of network linkage function information.
Information generating unit 1103 is tested, for according to the corresponding test function of the functional information to be measured, described in generation
The test information of terminal.
The test information generating unit 1103 can be packaged the corresponding test function of the functional information to be measured, raw
At the test information of the terminal;In the specific implementation, the test information can be executable format, executable format refers to can be into
The format of row installation, such as: it is directed to android system, executable format refers to APK format;Alternatively, it is directed to Windows system, it can
It executes format and refers to exe format, etc..According to example shown in the present embodiment, the test information generating unit 1103 can will be communicated
Recording function test function and wireless network connection functional test function are packaged according to APK format, generate the survey of the terminal
Information is tried, which can be used for the address book function and wireless network connection function to the terminal for being mounted with the goal systems
It can be carried out test.
The test information of terminal is loaded onto goal systems, In by the embodiment of the present invention when terminal carries out system update
The test information is run in the goal systems can be realized automatic test to terminal, avoids and is brought using manual testing
Human resources expend, save resource consumption, testing efficiency be effectively promoted.
Fig. 6 is referred to, is a kind of structural schematic diagram of loading module provided in an embodiment of the present invention;The loading module 102
Can include: resolution unit 1201 and loading unit 1202.
Resolution unit 1201 obtains opening certainly for the goal systems and matches for parsing the system file of the goal systems
Set file.
The system file of the goal systems, which refers to, is used to support the file that the goal systems operates normally, such as:
The XXXrom.zip file of android system;The system file of the goal systems may include but be not limited to: system configuration text
Part, run time file, opens configuration file etc. at mount directory file certainly.Wherein, it is described from open configuration file can be used for store open
Machine from the file that opens, such as: the XXXrom.zip of android system system app.The resolution unit 1201 can be to described
The system file of goal systems unzips it processing, and obtain the goal systems opens configuration file certainly.
Loading unit 1202, for the test information to be loaded onto opening in configuration file certainly for the goal systems.
The test information is loaded onto opening in configuration file certainly for the goal systems by the loading unit 1202, described
Terminal, then can be described in automatic running from the test information opened in configuration file when starting the goal systems;According to this
Example shown in embodiment, the loading unit 1202 can store the test information of APK format to XXXrom.zip system
App, then the system file for the test information for storing APK format is re-started into compression processing, to form new system file.
Subsequent to carry out brush machine to terminal using the new system file, the test information of the APK format is then pacified automatically after brush machine is completed
Loaded in goal systems.
The test information of terminal is loaded onto goal systems, In by the embodiment of the present invention when terminal carries out system update
The test information is run in the goal systems can be realized automatic test to terminal, avoids and is brought using manual testing
Human resources expend, save resource consumption, testing efficiency be effectively promoted.
Fig. 7 is referred to, is a kind of structural schematic diagram of test module provided in an embodiment of the present invention;The test module 103
Can include: system update unit 1301, start unit 1302 and test cell 1303.
System update unit 1301, for the system file of the goal systems to be pushed into institute using system update order
State terminal.
The system file of the goal systems is pushed into institute using system update order by the system update unit 1301
The process for stating terminal can refer to the process that the terminal carries out brush machine;Such as: it is directed to android system, the system update unit
1301, which can be used shell-command, is pushed into the system file of the goal systems in the storage card of the terminal and carries out card brush.
Wherein, the system file of the goal systems refers to the new system file for storing and being formed after test information, specifically can refer to store
The new system file formed after the test information of APK format.
Start unit 1302, for starting the goal systems in the terminal.Wherein, start the goal systems
Process can be the start process after the terminal brush machine.
Test cell 1303, for running the test information of the goal systems opened in configuration file certainly to described
Terminal is tested.
After the completion of the terminal brush machine, the test cell 1303, can automatic running when starting the goal systems
Certainly the test information opened in configuration file, tests the terminal.Such as: the test cell 1303 is opening
When moving the goal systems, the test information of APK format can be run, the address book function test function in the test information can mould
The operation of quasi- newly-increased contact person, checks newly-increased record whether is stored in the address book data library of terminal, if it exists then address list
Functional test passes through;Wireless network connection functional test function analog wireless network connection operation in the test information, is looked into
See whether wireless network switch is opened, wireless network connection functional test passes through if opening.
The test information of terminal is loaded onto goal systems, In by the embodiment of the present invention when terminal carries out system update
The test information is run in the goal systems can be realized automatic test to terminal, avoids and is brought using manual testing
Human resources expend, save resource consumption, testing efficiency be effectively promoted.
Fig. 8 is referred to, for the structural schematic diagram of another test module provided in an embodiment of the present invention;The test module
103 can include: system update unit 1301, start unit 1302, test cell 1303, positioning unit 1304 and formatting unit
1305.Wherein, the structure and function of system update unit 1301, start unit 1302 and test cell 1303 can be found in Fig. 7 institute
Show the associated description of embodiment, this will not be repeated here.
Positioning unit 1304, for positioning the occupied data subregion of source system described in the terminal.
Formatting unit 1305, for being formatted processing to the data subregion.
The positioning unit 1304 and the formatting unit 1305 can be the preprocessing process before terminal brush machine, should
Preprocessing process is actually the data cached of removing source system, guarantees that brush machine process can be normally carried out.For Android system
System, the preprocessing process can be described as double clear processes.
The test information of terminal is loaded onto goal systems, In by the embodiment of the present invention when terminal carries out system update
The test information is run in the goal systems can be realized automatic test to terminal, avoids and is brought using manual testing
Human resources expend, save resource consumption, testing efficiency be effectively promoted.
It may include a test device, the test device in the server the embodiment of the invention also discloses a kind of server
Structure and function can be found in Fig. 4-embodiment illustrated in fig. 8 associated description, this will not be repeated here.
The test information of terminal is loaded onto goal systems, In by the embodiment of the present invention when terminal carries out system update
The test information is run in the goal systems can be realized automatic test to terminal, avoids and is brought using manual testing
Human resources expend, save resource consumption, testing efficiency be effectively promoted.
Fig. 9 is referred to, is a kind of structural schematic diagram of server provided in an embodiment of the present invention;The clothes of the embodiment of the present invention
Business device includes: at least one processor 201, such as CPU, at least one communication bus 202, at least one network interface 203 is deposited
Reservoir 204.Wherein, communication bus 202 is for realizing the connection communication between these components.Wherein, the network interface 203 can
Choosing may include standard wireline interface and wireless interface (such as WI-FI, mobile communication interface).The memory 204 can be with
It is high speed RAM memory, is also possible to non-labile memory (non-volatile memory), for example, at least a magnetic
Disk storage.The memory 204 optionally can also be that at least one is located remotely from the storage device of aforementioned processor 201.
As shown in figure 9, as operating system, network communication module is stored in a kind of memory 204 of computer storage medium, and deposit
It contains for the program tested and other programs.
In a kind of feasible embodiment, wherein specifically, the processor 201 can be used for calling the memory
The program for being tested stored in 204 executes following steps:
When terminal to be measured is from source system update to goal systems, the test information of the terminal is obtained;
The test information is loaded onto the goal systems;
The test information is run in the goal systems to test the terminal.
Further, the processor 201 is executing described when terminal to be measured is from source system update to goal systems, obtains
When the step of the test information of the terminal, following steps are specifically executed:
When terminal to be measured is from source system update to goal systems, the functional information to be measured of the goal systems is obtained;
Search the corresponding test function of the functional information to be measured;
According to the corresponding test function of the functional information to be measured, the test information of the terminal is generated.
Wherein, the functional information to be measured include: telephony feature information, address book function information, message function information,
Wireless network connection functional information, time function information and image processing function information are any one or more of.
Further, the processor 201 is executing the described the step of test information is loaded onto the goal systems
When, specifically execute following steps:
The system file for parsing the goal systems, obtain the goal systems opens configuration file certainly;
The test information is loaded onto opening in configuration file certainly for the goal systems.
Further, the processor 201 described runs the test information to institute in the goal systems executing
When stating the step that terminal is tested, following steps are specifically executed:
The system file of the goal systems is pushed by the terminal using system update order;
Start the goal systems in the terminal;
The test information opened in configuration file certainly for running the goal systems tests the terminal.
Further, the processor 201 is described literary by the system of the goal systems using system update order in execution
Part was pushed into before the step of terminal, was also executed the following steps:
Position the occupied data subregion of source system described in the terminal;
Processing is formatted to the data subregion.
The test information of terminal is loaded onto goal systems, In by the embodiment of the present invention when terminal carries out system update
The test information is run in the goal systems can be realized automatic test to terminal, avoids and is brought using manual testing
Human resources expend, save resource consumption, testing efficiency be effectively promoted.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with
Relevant hardware is instructed to complete by computer program, the program can be stored in a computer-readable storage medium
In, the program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein, the storage medium can be magnetic
Dish, CD, read-only memory (Read-Only Memory, ROM) or random access memory (Random Access
Memory, RAM) etc..
The above disclosure is only the preferred embodiments of the present invention, cannot limit the right model of the present invention with this certainly
It encloses, therefore equivalent changes made in accordance with the claims of the present invention, is still within the scope of the present invention.
Claims (12)
1. a kind of test method characterized by comprising
When terminal to be measured is from source system update to goal systems, the test information of the terminal is obtained, the terminal is from source system
The process that system is updated to goal systems is brush machine;
The system file for parsing the goal systems, obtain the goal systems opens configuration file certainly;
The test information is loaded onto opening in configuration file certainly for the goal systems, so that the terminal is after brush machine
Start process when, from the test information opened in configuration file described in automatic running;
The test information is run in the goal systems to test the terminal.
2. the method as described in claim 1, which is characterized in that described when terminal to be measured is from source system update to goal systems
When, obtain the test information of the terminal, comprising:
When terminal to be measured is from source system update to goal systems, the functional information to be measured of the goal systems is obtained;
Search the corresponding test function of the functional information to be measured;
According to the corresponding test function of the functional information to be measured, the test information of the terminal is generated.
3. method according to claim 2, which is characterized in that the functional information to be measured includes: telephony feature information, communication
Recording function information, message function information, wireless network connection functional information, time function information and image processing function information
It is any one or more of.
4. the method as described in claim 1, which is characterized in that it is described run in the goal systems test information with
The terminal is tested, comprising:
The system file of the goal systems is pushed by the terminal using system update order;
Start the goal systems in the terminal;
The test information opened in configuration file certainly for running the goal systems tests the terminal.
5. method as claimed in claim 4, which is characterized in that described to be by the goal systems using system update order
System file is pushed into before the terminal, further includes:
Position the occupied data subregion of source system described in the terminal;
Processing is formatted to the data subregion.
6. a kind of test device characterized by comprising
Module is obtained, for obtaining the test information of the terminal, institute when terminal to be measured is from source system update to goal systems
Stating process of the terminal from source system update to goal systems is brush machine;
Loading module, for the test information to be loaded onto the goal systems;
Test module, for running the test information in the goal systems to test the terminal;
The loading module includes:
Resolution unit, for parsing the system file of the goal systems, obtain the goal systems opens configuration file certainly;
Loading unit, for the test information to be loaded onto opening in configuration file certainly for the goal systems, so that described
Terminal is in the start process after brush machine, from the test information opened in configuration file described in automatic running.
7. device as claimed in claim 6, which is characterized in that the acquisition module includes:
Information acquisition unit to be measured, for obtaining the goal systems when terminal to be measured is from source system update to goal systems
Functional information to be measured;
Function lookup unit, for searching the corresponding test function of the functional information to be measured;
Information generating unit is tested, for generating the survey of the terminal according to the corresponding test function of the functional information to be measured
Try information.
8. device as claimed in claim 7, which is characterized in that the functional information to be measured includes: telephony feature information, communication
Recording function information, message function information, wireless network connection functional information, time function information and image processing function information
It is any one or more of.
9. device as claimed in claim 6, which is characterized in that the test module includes:
System update unit, for the system file of the goal systems to be pushed into the terminal using system update order;
Start unit, for starting the goal systems in the terminal;
Test cell, the test information opened in configuration file certainly for running the goal systems carry out the terminal
Test.
10. device as claimed in claim 9, which is characterized in that the test module further include:
Positioning unit, for positioning the occupied data subregion of source system described in the terminal;
Formatting unit, for being formatted processing to the data subregion.
11. a kind of server, which is characterized in that including such as described in any item test devices of claim 6-10.
12. a kind of computer-readable storage medium, which is characterized in that be stored with one in the computer-readable storage medium
Item or a plurality of program, described program are used to carry out test method as described in any one in claim 1-5.
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 CN105279063A (en) | 2016-01-27 |
CN105279063B true 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) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108650507B (en) * | 2018-04-26 | 2020-05-19 | 珠海全志科技股份有限公司 | Terminal device testing method and device, terminal device and storage medium |
CN114490307A (en) * | 2020-11-12 | 2022-05-13 | 腾讯科技(深圳)有限公司 | Unit testing method, device and storage medium |
Citations (5)
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 |
-
2014
- 2014-07-25 CN CN201410361443.3A patent/CN105279063B/en active Active
Patent Citations (5)
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 |
Also Published As
Publication number | Publication date |
---|---|
CN105279063A (en) | 2016-01-27 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105677335B (en) | Improve the method and device that mobile terminal first powers on speed | |
CN106598835B (en) | Application testing method, device and system | |
CN105528229B (en) | Improve the method and device that mobile terminal first powers on speed | |
CN106201552A (en) | A kind of method for upgrading software, client, server and system | |
CN105468393B (en) | Module release upgrade method and terminal installation | |
CN110780789B (en) | Game application starting method and device, storage medium and electronic device | |
CN105554137B (en) | A kind of standby system and method | |
CN105740017B (en) | The upgrade method and device of cloud television system | |
CN107798064B (en) | Page processing method, electronic device and computer readable storage medium | |
CN104021218A (en) | Information display method and device | |
CN107967207B (en) | Method and device for testing user interface interaction function | |
CN106886422A (en) | Method for upgrading software and device, electronic equipment | |
CN107632901A (en) | A kind of self-repair method and device of application program operation exception | |
CN108563472B (en) | Service plug-in loading method and device based on multi-open application | |
CN103124276A (en) | Method for expanding storage space of communication terminal and communication terminal | |
KR20170098110A (en) | Supporting method for operation of an embedded subscriber identifier module and electronic device supporting the same | |
CN109117153A (en) | Processing method, device, terminal and the storage medium of application program | |
CN105279063B (en) | A kind of test method, device and server | |
CN105468504A (en) | Program test method and device | |
CN106293790B (en) | application program upgrading method and device based on Firefox operating system | |
CN108762983B (en) | Multimedia data recovery method and device | |
CN117056115B (en) | Application program repairing method and device, storage medium and electronic equipment | |
CN104424098B (en) | A kind of application testing method and device | |
CN111128139B (en) | Non-invasive voice test method and device | |
CN111158987B (en) | Health check method and device for micro-service architecture |
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 |