CN106649096B - The method and device of change facility information based on automatic test - Google Patents

The method and device of change facility information based on automatic test Download PDF

Info

Publication number
CN106649096B
CN106649096B CN201610929378.9A CN201610929378A CN106649096B CN 106649096 B CN106649096 B CN 106649096B CN 201610929378 A CN201610929378 A CN 201610929378A CN 106649096 B CN106649096 B CN 106649096B
Authority
CN
China
Prior art keywords
facility information
mobile device
group
mac address
effective
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
Application number
CN201610929378.9A
Other languages
Chinese (zh)
Other versions
CN106649096A (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.)
Lingdu Guangdong Intelligent Technology Development Co Ltd
Original Assignee
Xiamen Meitu Mobile Technology 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 Xiamen Meitu Mobile Technology Co Ltd filed Critical Xiamen Meitu Mobile Technology Co Ltd
Priority to CN201610929378.9A priority Critical patent/CN106649096B/en
Publication of CN106649096A publication Critical patent/CN106649096A/en
Application granted granted Critical
Publication of CN106649096B publication Critical patent/CN106649096B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses the methods of the change facility information based on automatic test, this method is suitable for executing in the mobile device for being stored with the facility information list comprising multiple groups facility information, comprising steps of determining whether that the system starting for receiving mobile device broadcasts the message;Facility information is arranged according to the execution time of automatized script if receiving and changes the period;Automatic test is carried out to mobile device by executing automatic test script;One group of facility information is sequentially read from facility information list every the facility information change period;Whether effective detect read this group of facility information, if this group of facility information effectively if the facility information of the mobile device is changed to this group of facility information;And restart mobile device, it is repeated in above-mentioned steps.The present invention discloses change facility information device and mobile device based on automatic test together.

Description

The method and device of change facility information based on automatic test
Technical field
The present invention relates to mobile device testing field, be based especially on the change facility information of automatic test method and Device.
Background technique
For the production firm of mobile device, mobile device is needed in the process of development by repeatedly automating survey Examination, to ensure the stability of software version.For example, Android automatic test is carried out using Monkey method, to complete to The application program or module of exploitation or the pressure test of mobile device system.However, the development phase test manufacture mobile device simultaneously Seldom, it but needs to test to collect test result a large amount of mobile devices.In order to solve, mobile device resource is nervous to be asked Topic, current adoptable scheme is that one is written again to the mobile device for having completed test assignment by the number of the writing tool of computer end The new facility information of group, that is, the facility information by changing mobile device is modeled to a new mobile device, followed by It is continuous to carry out automatic test, the problem of mobile device resource anxiety when alleviating test.But do so one group of equipment of write-in every time When information will manual hand manipulation, can not achieve complete automatic test, efficiency is to be improved.
Summary of the invention
For this purpose, the present invention provides the method and devices of the change facility information based on automatic test, to try hard to solve Or at least alleviate at least one existing problem above.
According to an aspect of the invention, there is provided the method for the change facility information based on automatic test, method are suitable In executing in a mobile device, the facility information list comprising multiple groups facility information is stored in mobile device, method includes step It is rapid: to determine whether to receive the system starting broadcast message of mobile device if receiving according to the execution of automatic test script Time is arranged facility information and changes the period;Automatic test is carried out to mobile device by executing automatic test script;Every The facility information change period sequentially reads one group of facility information from facility information list;Detect read this group of facility information Whether effectively, if this group of facility information effectively if the facility information of the mobile device is changed to this group of facility information;And Restart mobile device, is repeated in above-mentioned.
Optionally, in the method according to the invention, one group of facility information includes: the international mobile device mark of mobile device Knowledge, WIFI MAC Address and Bluetooth MAC address.
Optionally, in the method according to the invention, the step of carrying out automatic test, it is automatic to further comprise the steps of: reading Change the log information of test and records test result.
Optionally, in the method according to the invention, detecting the whether effective step of read facility information includes inspection It surveys international mobile device in this group of facility information and identifies whether effective step: judging whether International Mobile Station Equipment Identification is 15 Ten's digit;If 15 ten's digits then calculate check code with 14 bit digitals before International Mobile Station Equipment Identification;With And compare counted check code and last bit check position, determine that International Mobile Station Equipment Identification is effective if consistent.
Optionally, in the method according to the invention, detecting the whether effective step of read facility information further includes Detect the step that whether WIFI MAC Address effective in this group of facility information: judge WIFI MAC Address whether be 12 16 into System number, if then WIFI MAC Address is effective.
Optionally, in the method according to the invention, detecting the whether effective step of read facility information further includes It detects the step that whether Bluetooth MAC address is effective in this group of facility information: judging whether Bluetooth MAC address is 12 hexadecimals Number, if then Bluetooth MAC address is effective.
Optionally, in the method according to the invention, detecting the whether effective step of read facility information further includes Step: judge whether read this group of facility information be unique, if then facility information is effective.
Optionally, in the method according to the invention, if facility information effectively if the facility information of mobile device changed The step of for this group of facility information further include: will effective this group of facility information write-in mobile device of judgement non-volatile random Access memory.
According to another aspect of the present invention, the device of the change facility information based on automatic test is provided, device is stayed It stays in a mobile device, the facility information list comprising multiple groups facility information is stored in mobile device, device includes: that detection is single Member, being adapted to determine whether to receive the system starting broadcast message of mobile device, be further adapted for detecting read facility information is It is no effective;Setting unit, suitable for being set according to the execution time of automatic test script when receiving system starting broadcast message Set the facility information change period;Test cell, suitable for carrying out automation survey to mobile device by executing automatic test script Examination;Information reading unit, suitable for sequentially reading one group of equipment from the facility information list every the facility information change period Information;And setting unit is further adapted for when detecting that this group of facility information is effective, and the facility information of the mobile device is changed For this group of facility information and restart the mobile device.
Optionally, in a device in accordance with the invention, one group of facility information includes: the international mobile device mark of mobile device Knowledge, WIFI MAC Address and Bluetooth MAC address.
Optionally, in a device in accordance with the invention, test cell is further adapted for reading the log information, simultaneously of automatic test Record test result.
Optionally, in a device in accordance with the invention, detection unit further include: judgment sub-unit is suitable for the international shifting of judgement Whether dynamic device identification is 15 ten's digits;Computation subunit, suitable for when judgement is 15 ten's digits, with the world Preceding 14 bit digital of mobile device mark calculates check code;And judgment sub-unit be further adapted for by the counted check code with Last bit check position compares, and determines that International Mobile Station Equipment Identification is effective if consistent.
Optionally, in a device in accordance with the invention, judgment sub-unit is further adapted for judging whether WIFI MAC Address is 12 Position hexadecimal digit, if then determining that WIFI MAC Address is effective.
Optionally, in a device in accordance with the invention, judgment sub-unit is further adapted for judging whether Bluetooth MAC address is 12 Hexadecimal digit, if then determining that Bluetooth MAC address is effective.
Optionally, in a device in accordance with the invention, judgment sub-unit is further adapted for judging read this group of facility information It is whether unique, if then determining that this group of facility information is effective.
Optionally, in a device in accordance with the invention, setting unit is further adapted for judge that effective this group of facility information is write Enter the nonvolatile random access memory of mobile device.
According to another aspect of the present invention, a kind of mobile device is provided, automatic test is adapted for carrying out, there is institute as above The device for the change facility information based on automatic test stated.
According to foregoing description, the solution of the present invention changes the period by setting facility information, and every primary automation of execution is surveyed After examination, the automatic facility information for changing mobile device, then start to execute new round automatic test, it is able to solve automatic test The problem of middle mobile device resource anxiety, and manual operation is reduced, it can be improved the efficiency of automatic test.
Detailed description of the invention
To the accomplishment of the foregoing and related purposes, certain illustrative sides are described herein in conjunction with following description and drawings Face, these aspects indicate the various modes that can practice principles disclosed herein, and all aspects and its equivalent aspect It is intended to fall in the range of theme claimed.Read following detailed description in conjunction with the accompanying drawings, the disclosure it is above-mentioned And other purposes, feature and advantage will be apparent.Throughout the disclosure, identical appended drawing reference generally refers to identical Component or element.
Fig. 1 shows the construction block diagram of the mobile device 100 of an illustrative embodiments according to the present invention;
The method 200 for changing facility information based on automatic test that Fig. 2 shows according to an embodiment of the invention Flow chart;And
Fig. 3 shows the device 300 of the change facility information according to an embodiment of the invention based on automatic test Schematic diagram.
Specific embodiment
Exemplary embodiments of the present disclosure are described in more detail below with reference to accompanying drawings.Although showing the disclosure in attached drawing Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure without should be by embodiments set forth here It is limited.On the contrary, these embodiments are provided to facilitate a more thoroughly understanding of the present invention, and can be by the scope of the present disclosure It is fully disclosed to those skilled in the art.
Fig. 1 is 100 organigram of mobile device according to an embodiment of the invention.Referring to Fig.1, mobile device 100 include: memory interface 102, one or more data processor, image processor and/or central processing unit 104, with And peripheral interface 106.Memory interface 102, one or more processors 104 and/or peripheral interface 106 are either discrete member Part also can integrate in one or more integrated circuits.In mobile device 100, various elements can pass through one or more Communication bus or signal wire couple.Sensor, equipment and subsystem may be coupled to peripheral interface 106, to help reality Existing multiple functions.For example, motion sensor 110, optical sensor 112 and range sensor 114 may be coupled to peripheral interface 106, to facilitate the functions such as orientation, illumination and ranging.Other sensors 116 can equally be connected with peripheral interface 106, such as fixed Position system (such as GPS receiver), temperature sensor, biometric sensor or other sensor devices, it is possible thereby to help reality Apply relevant function.
Camera sub-system 120 and optical sensor 122 can be used for the camera of convenient such as record photos and video clips The realization of function, wherein camera sub-system and optical sensor for example can be charge-coupled device (CCD) or complementary metal oxygen Compound semiconductor (CMOS) optical sensor.It can help to realize communication by one or more radio communication subsystems 124 Function, wherein radio communication subsystem may include radio-frequency transmitter and transmitter and/or light (such as infrared) receiver and hair Penetrate machine.The particular design and embodiment of radio communication subsystem 124 can depend on be supported one of mobile device 100 or Multiple communication networks.For example, mobile device 100 may include be designed to support GSM network, GPRS network, EDGE network, The communication subsystem 124 of Wi-Fi or WiMax network and BlueboothTM network.Audio subsystem 126 can be with loudspeaker 128 and microphone 130 be coupled, to help to implement to enable the function of voice, such as speech recognition, speech reproduction, number Record and telephony feature.
I/O subsystem 140 may include touch screen controller 142 and/or other one or more input controllers 144. Touch screen controller 142 may be coupled to touch screen 146.For example, the touch screen 146 and touch screen controller 142 can be with The contact carried out therewith and movement or pause are detected using any one of a variety of touch-sensing technologies, wherein sensing skill Art includes but is not limited to capacitive character, resistive, infrared and surface acoustic wave technique.Other one or more input controllers 144 May be coupled to other input/control devicess 148, for example, one or more buttons, rocker switch, thumb wheel, infrared port, The pointer device of USB port, and/or stylus etc.One or more button (not shown)s may include for controlling loudspeaking The up/down button of 130 volume of device 128 and/or microphone.
Memory interface 102 can be coupled with memory 150.The memory 150 may include that high random access is deposited Reservoir and/or nonvolatile memory (can hereinafter be further noted that), such as one or more disk storage equipments, one Or multiple optical storage apparatus and/or flash memories (such as NAND, NOR).Memory 150 can store an operating system 152, such as the operating system of Android, IOS or Windows Phone etc.The operating system 152 may include being used for It handles basic system services and executes the instruction of the task dependent on hardware.Memory 150 can also be stored using 154.This A little applications in operation, can be loaded on processor 104 from memory 150, and in the operation system run via processor 104 It is run on system, and realizes the various desired functions of user using the interface that operating system and bottom hardware provide, such as immediately Communication, web page browsing, pictures management etc..Using can be independently of operating system offer, it is included to be also possible to operating system 's.
According to a kind of implementation, the signified mobile device 100 of the present invention can be mobile phone with above-mentioned construction, flat Plate, wearable smart machine etc..As it was noted above, needing large batch of mobile device to complete before mobile device factory Automatic test, in order to solve the problems, such as that test mobile device resource is nervous, the present invention provides one kind be adapted for carrying out it is above-mentioned The mobile device 100 of automatic test, can be by arranging change accordingly based on automatic test in mobile device 100 The device 300 of facility information realizes above-mentioned function, meanwhile, in 150 (e.g., the non-volatile memories of memory of mobile device 100 Device) in, storing device information list includes multiple groups facility information in the list.
The method 200 for changing facility information based on automatic test that Fig. 2 shows according to an embodiment of the invention Flow chart.As shown in Fig. 2, method 200 starts from step S210, it is determined whether the system starting broadcast for receiving mobile device disappears Breath.According to one embodiment of present invention, when mobile device is switched on, system can send system starting broadcast message, with arrangement For the mobile phone of Android operation system, once mobile phone power-on, system will send following broadcast message:
android.intent.action.BOOT_COMPLETED
Then in step S220, after receiving this broadcast, it is considered as mobile phone and completes starting.At this point, according to this The execution time setting facility information of automatic test script changes the period.For example, being tested using Monkey to being developed Some module carries out pressure test in application program or application program, and required testing time length is different, develops or survey Examination personnel can estimate that equipment is believed according to the execution time (that is, the workload for needing test content) of this automatic test script The breath change period.According to a kind of embodiment, it is default 12 hours that the facility information change period, which also can be set, i.e., regardless of in test What appearance is, is all every 12 hours progress primary equipment information updates.The present invention is not intended to limit the facility information change period Length, as long as guaranteeing the test assignment that can complete automatic test in the given time.
Then in step S230, after setting the facility information change period, i.e., by executing automatic test script To carry out automatic test to mobile device.According to an embodiment of the invention, test step can be write according to pre-determined text rule Suddenly and test script is generated, the test command of this automatic test is contained in test script.Test content or test assignment, Such as can be, random customer incident stream is sent to the system of mobile device, as key-press input, touch screen input, gesture are defeated Enter, Sensor event etc., realizes the pressure test to application program or module to be tested.The present invention does not limit test content Fixed, any automatic test can be combined with the embodiment of the present invention, be changed during automatic test with realizing The function of facility information.
According to an embodiment of the invention, further including that step (is not shown in Fig. 2 when step S230 executes automatic test Out): reading the log information of automatic test and record test result.
According to a kind of embodiment, before automatic test starts, storing path is set for test log.It is surveyed in automation The initial time that runin is begun opens the snoopy test log of log monitor process, when log monitor process is monitored in test log To test object malfunction information when, by record test object error message test log store to the storing path set In.For example, log monitor process monitors in log whether have following error message: kernel layers are abnormal (KE:kernel Exception), it is abnormal (NE:native exception), java layers of abnormal (JE:java for native layers Exception) etc., if in log including these exceptions, this time test is fail and misregistration type to mark, is otherwise marked For pass.Finally, being written to pre-determined text together with the facility information one-to-one correspondence of the mobile device and copying out into calculating equipment It is saved, so as to developer's Macro or mass analysis test case.
Optionally, test case can also be recorded by record screen video.In the initial time that automatic test starts, open Record screen process is opened, record screen process records a video to the screen of tested mobile device suitable for the time at each interval.
Then in step S240, one group of equipment is sequentially read from facility information list every the facility information change period Information.Optionally, one group of facility information includes following content: International Mobile Station Equipment Identification IMEI, WIFI MAC of mobile device Address and Bluetooth MAC address, wherein IMEI, WIFI MAC Address and Bluetooth MAC address can uniquely identify movement and set It is standby.
Then in step s 250, whether effective read this group of facility information is detected, if this group of facility information is effective The facility information of mobile device is then changed to this group of facility information.
According to an embodiment of the invention, the whether effective step of detection device information can be divided into: judge respectively IMEI, Whether WIFI MAC Address and Bluetooth MAC address effectively and judge whether are IMEI, WIFI MAC Address and Bluetooth MAC address Uniquely.Specific execution process is as follows:
A. judge whether International Mobile Station Equipment Identification IMEI is 15 ten's digits.IMEI is made of 15 bit digitals, In, preceding 6 (TAC) are Type Approval numbers, represent mobile device type;Then 2 (FAC) are last assembly number, represent and produce Ground;6 (SNR) are strings number afterwards, represent production sequence number;Last 1 (SP) is check code.
Therefore if judging, IMEI is 15 ten's digits, uses preceding 14 bit digital of International Mobile Station Equipment Identification (i.e. TAC+FAC+SNR check code) is calculated, counted check code and last bit check position (SP) are compared, if consistent Determine that International Mobile Station Equipment Identification is effective.
The calculation method of IMEI check code are as follows:
(1), even number bit digital is obtained into double figures multiplied by 2 respectively, calculates separately each double figures units and tens The sum of;
(2), odd number bit digital is added, adds (1) counted value;
(3), check code is 0 if the several positions obtained are 0, and otherwise check code subtracts units for 10.
Such as, 14 before IMEI are as follows: 35 89 01 80 69 72 41
Even bit is obtained multiplied by 2: 5*2=10,9*2=18,1*2=02,0*2=00,9*2=18,2*2=04,1*2 =02, then, the sum of the sum of odd number bit digital and even bit position ten are calculated, is obtained: 3+ (1+0)+8+ (1+8)+0+ (0+2) + 8+ (0+0)+6+ (1+8)+7+ (0+4)+4+ (0+2)=63, you can get it check code are as follows: 10-3=7.
The length that WIFI MAC Address and Bluetooth MAC address are made of the number of 16 systems is 48 bits (that is, 6 words Section) numeric string, therefore, when judge whether WIFI MAC Address and Bluetooth MAC address effective, only need:
B. judge whether WIFI MAC Address is 12 hexadecimal digits, if then WIFI MAC Address is effective.
C. judge whether Bluetooth MAC address is 12 hexadecimal digits, if then Bluetooth MAC address is effective.
Embodiment according to the present invention judges the effective step of facility information further include:
D. whether unique read facility information is judged, if then this group of facility information is effective.
It should be noted that the sequence that above-mentioned step a, b, c, d for judging whether facility information is effective is executed is can to become It changes, the present invention is not intended to limit this.
If judging that this group of facility information is effective through above-mentioned steps, the facility information of the mobile device is changed to the group Facility information, that is, by the nonvolatile random access memory (NVRAM) of this group of facility information write-in mobile device.
Then in step S260, the mobile device is restarted, the facility information being just written after restarting will come into force, successively Repeat the above steps S210, step S220, step S230, step S240, step S250, and every execution is primary, can be according to equipment The facility information of sequence change mobile device in information list, then the mobile device will be set by the movement new as one The standby automatic test for carrying out this.
It is described according to above-mentioned process, this programme is surveyed by the setting change facility information period in the primary automation of every execution After examination, the automatic facility information for changing mobile device, then start to execute new round automatic test, it is able to solve automatic test The problem of middle mobile device resource anxiety, and manual operation is reduced, it can be improved the efficiency of automatic test.
Fig. 3 shows the device 300 of the change facility information according to an embodiment of the invention based on automatic test Schematic diagram.As shown in figure 3, the device 300 includes: that detection unit 310, setting unit 320, test cell 330 and information are read Take unit 340.
Detection unit 310 is adapted to determine whether to receive the system starting broadcast message of mobile device.It is according to the present invention Embodiment, if mobile device 100 to be tested is the mobile phone for arranging Android operation system, once mobile phone power-on, system is just Following broadcast message can be sent:
android.intent.action.BOOT_COMPLETED
After detection unit 310 listens to this broadcast, it is considered as mobile phone and completes starting.
Setting unit 320 is suitable for when receiving above-mentioned broadcast message, is set according to the execution time of automatic test script Set the facility information change period.For example, being tested using Monkey to some mould in application program being developed or application program Block carries out pressure test, and required testing time length is different, and exploitation or tester can be according to needing test content Workload come estimate facility information change the period length.According to a kind of embodiment, the facility information change period also can be set It is default 12 hours, i.e., is all every 12 hours progress primary equipment information updates regardless of what test content is.The present invention is simultaneously The not length in limiting device information change period, as long as guaranteeing the test assignment that can complete automatic test within the period.
Test cell 330 is suitable for carrying out automatic test to mobile device by executing automatic test script.According to this The embodiment of invention can write testing procedure according to pre-determined text rule and generate test script, contain in test script The test command of this automatic test.Test content or test assignment, such as can be, to the system of mobile device send with The customer incident stream of machine, such as the input of key-press input, touch screen, gesture input, Sensor event are realized to application to be tested The pressure test of program or module.The present invention is not construed as limiting test content, any automatic test can with it is of the invention Embodiment combines, to realize the function of changing facility information during automatic test.
According to a kind of embodiment, test cell 330 is further adapted for reading the log information of automatic test and records test knot Fruit.Test cell 330 is adapted for listening in log whether having following error message: kernel layers are abnormal (KE:kernel Exception), it is abnormal (NE:native exception), java layers of abnormal (JE:java for native layers Exception) etc., if in log including these exceptions, this time test is fail and misregistration type to mark, is otherwise marked For pass.Finally, being written to pre-determined text together with the facility information one-to-one correspondence of the mobile device 100 and copying out to calculating equipment In saved, so as to developer's Macro or mass analysis test case.
Optionally, test cell 330 is further adapted for recording test case by record screen video.Start in automatic test Initial time, opens record screen process, and record screen process is suitable for screen progress of the time to tested mobile device 100 at each interval Video recording.
Information reading unit 340 is suitable for sequentially reading one from facility information list every the facility information change period Group facility information, and transfer to detection unit 310 coupled thereto.Optionally, one group of facility information includes: the world of mobile device Mobile device mark, WIFI MAC Address and Bluetooth MAC address.
Whether detection unit 310 is further adapted for detecting read this group of facility information effective.
Wherein, the International Mobile Station Equipment Identification IMEI of mobile device is made of 15 bit digitals, and specifically, preceding 6 (TAC) are Type Approval number represents mobile device type;Then 2 (FAC) are last assembly number, represent the place of production;6 (SNR) are afterwards String number, represents production sequence number;Last 1 (SP) is check code.And WIFI MAC Address and Bluetooth MAC address be by 16 into The length of the number composition of system is the numeric string of 48 bits (that is, 6 bytes).Therefore detection unit 310 further includes judgment sub-unit 312 and computation subunit 314.
Judgment sub-unit 312 is suitable for judging whether International Mobile Station Equipment Identification is 15 ten's digits.Computation subunit 314 are suitable for when 15 ten's digits, calculating check code with 14 bit digitals before International Mobile Station Equipment Identification when judging.Sentence Disconnected subelement 312 is further adapted for comparing counted check code and last bit check position, determines international movement if consistent Device identification is effective.
Further, judgment sub-unit 312 is further adapted for judging whether WIFI MAC Address is 12 hexadecimal digits, if It is to determine that WIFI MAC Address is effective.Equally, judgment sub-unit 312 is further adapted for judging whether Bluetooth MAC address is 12 ten Senary number, if then determining that Bluetooth MAC address is effective.Also, judgment sub-unit 312 is further adapted for judging read equipment Whether information is unique, if then determining that the facility information is effective.
Setting unit 320 is further adapted for when detection unit 310 detects that this group of facility information is effective, by the mobile device Facility information is changed to this group of facility information, and optionally, setting unit 320 is further adapted for judge that effective this group of facility information is write Enter the nonvolatile random access memory of mobile device.
Then, setting unit 320 restarts mobile device 100, and the facility information being just written after restarting will come into force.
After restarting, the system starting broadcast that detection unit 310 is suitable for continuing to determine whether to receive mobile device 100 disappears Breath.
Similarly, setting unit 320 is suitable for when receiving above-mentioned broadcast message, according to this automatic test script It executes time setting facility information and changes the period;Meanwhile test cell 330 is adapted for carrying out automatic test;Information reading unit 340 are suitable for sequentially reading one group of facility information from facility information list every the facility information change period, and transfer to detection single The validity of first 310 pairs of this group of equipment detects;Setting unit 320 is further adapted for detecting this group of equipment in detection unit 310 When information is effective, the facility information of the mobile device 100 is changed to this group of facility information, that is, this group of facility information is written The nonvolatile random access memory of mobile device continues to restart mobile device 100 to carry out automatic test next time.
Such circulating repetition, until all replacement is completed by the facility information in facility information list, or, until exploitation Personnel terminate test.
It should be appreciated that in order to simplify the disclosure and help to understand one or more of the various inventive aspects, it is right above In the description of exemplary embodiment of the present invention, each feature of the invention be grouped together into sometimes single embodiment, figure or In person's descriptions thereof.However, the disclosed method should not be interpreted as reflecting the following intention: i.e. claimed hair Bright requirement is than feature more features expressly recited in each claim.More precisely, as the following claims As book reflects, inventive aspect is all features less than single embodiment disclosed above.Therefore, it then follows specific real Thus the claims for applying mode are expressly incorporated in the specific embodiment, wherein each claim itself is used as this hair Bright separate embodiments.
Those skilled in the art should understand that the module of the equipment in example disclosed herein or unit or groups Part can be arranged in equipment as depicted in this embodiment, or alternatively can be positioned at and the equipment in the example In different one or more equipment.Module in aforementioned exemplary can be combined into a module or furthermore be segmented into multiple Submodule.
Those skilled in the art will understand that can be carried out adaptively to the module in the equipment in embodiment Change and they are arranged in one or more devices different from this embodiment.It can be the module or list in embodiment Member or component are combined into a module or unit or component, and furthermore they can be divided into multiple submodule or subelement or Sub-component.Other than such feature and/or at least some of process or unit exclude each other, it can use any Combination is to all features disclosed in this specification (including adjoint claim, abstract and attached drawing) and so disclosed All process or units of what method or apparatus are combined.Unless expressly stated otherwise, this specification is (including adjoint power Benefit require, abstract and attached drawing) disclosed in each feature can carry out generation with an alternative feature that provides the same, equivalent, or similar purpose It replaces.
The present invention also discloses together:
A6, method as described in a5, wherein detecting the whether effective step of read facility information further includes that detection should The whether effective step of Bluetooth MAC address in group facility information: judging whether Bluetooth MAC address is 12 hexadecimal digits, If then Bluetooth MAC address is effective.
A7, the method as described in A6 sentence wherein detecting the whether effective step of read facility information and further comprising the steps of: Whether read this group of facility information that break be unique, if then the facility information is effective.
A8, the method as described in any one of A1-7, wherein if this group of facility information effectively if setting the mobile device The step of standby information is changed to this group of facility information further include: by the non-of effective this group of facility information write-in mobile device of judgement Volatile random access memory.
B13, as described in B12 device, wherein judgment sub-unit is further adapted for judging whether the WIFI MAC Address is 12 Position hexadecimal digit, if then determining that WIFI MAC Address is effective.
B14, the device as described in B13, wherein judgment sub-unit is further adapted for judging whether the Bluetooth MAC address is 12 Position hexadecimal digit, if then determining that Bluetooth MAC address is effective.
B15, the device as described in B14, wherein only whether judgment sub-unit be further adapted for judging read facility information One, if then determining that this group of facility information is effective.
B16, the device as described in any one of B9-15, wherein setting unit is further adapted for judge effective this group of equipment The nonvolatile random access memory of information write-in mobile device.
In addition, it will be appreciated by those of skill in the art that although some embodiments in this include institute in other embodiments Including certain features rather than other feature, but the combination of the feature of different embodiment means in the scope of the present invention Within and form different embodiments.For example, in the following claims, embodiment claimed it is any it One can in any combination mode come using.
In addition, be described as herein can be by the processor of computer system or by execution function by some in embodiment Other devices implement method or method element combination.Therefore, there is necessity for implementation method or method element to refer to The processor of order forms the device for implementing this method or method element.In addition, the element in this of Installation practice be as The example of lower device: the device be used for implement as in order to implement the purpose of the invention element performed by function.
As used in this, unless specifically stated, come using ordinal number " first ", " second ", " third " etc. Description plain objects, which are merely representative of, is related to the different instances of similar object, and is not intended to imply that the object being described in this way must Must have the time it is upper, spatially, sequence aspect or given sequence in any other manner.
Although the embodiment according to limited quantity describes the present invention, above description, the art are benefited from It is interior it is clear for the skilled person that in the scope of the present invention thus described, it can be envisaged that other embodiments.Additionally, it should be noted that Language used in this specification primarily to readable and introduction purpose and select, rather than in order to explain or limit Determine subject of the present invention and selects.Therefore, without departing from the scope and spirit of the appended claims, for this Many modifications and changes are obvious for the those of ordinary skill of technical field.For the scope of the present invention, to this Invent done disclosure be it is illustrative and not restrictive, it is intended that the scope of the present invention be defined by the claims appended hereto.

Claims (17)

1. the method for the change facility information based on automatic test, the method are suitable for executing in a mobile device, the shifting It is stored with the facility information list comprising multiple groups facility information in dynamic equipment, the method includes the steps:
Determine whether that the system starting for receiving mobile device broadcasts the message;
If receiving the broadcast message, facility information is arranged according to the execution time of automatic test script and changes the period;
Automatic test is carried out to mobile device by executing automatic test script;
One group of facility information is sequentially read from the facility information list every the facility information change period;
Detect whether read this group of facility information effective, if this group of facility information effectively if the equipment of the mobile device believed Breath is changed to this group of facility information;And
Restart the mobile device, be repeated in above-mentioned steps,
Wherein the facility information includes: International Mobile Station Equipment Identification IMEI, WIFI MAC Address and bluetooth MAC of mobile device Address.
2. the method for claim 1, wherein one group of facility information include: mobile device International Mobile Station Equipment Identification, WIFI MAC Address and Bluetooth MAC address.
3. method according to claim 2, the step of automatic test is carried out to mobile device, further comprise the steps of:
It reads the log information of automatic test and records test result.
4. method as claimed in claim 3, wherein detecting the whether effective step of read facility information includes that detection should International mobile device identifies whether effective step in group facility information:
Judge whether the International Mobile Station Equipment Identification is 15 ten's digits;
If 15 ten's digits then calculate check code with 14 bit digitals before the International Mobile Station Equipment Identification;And
The counted check code and last bit check position are compared, determine that International Mobile Station Equipment Identification has if consistent Effect.
5. method as claimed in claim 4, wherein detecting the whether effective step of read facility information further includes detection The whether effective step of WIFI MAC Address in this group of facility information:
Judge whether the WIFI MAC Address is 12 hexadecimal digits, if then the WIFI MAC Address is effective.
6. method as claimed in claim 5, wherein detecting the whether effective step of read facility information further includes detection The whether effective step of Bluetooth MAC address in this group of facility information:
Judge whether the Bluetooth MAC address is 12 hexadecimal digits, if then the Bluetooth MAC address is effective.
7. method as claimed in claim 6, being further comprised the steps of: wherein detecting the whether effective step of read facility information
Judge whether read this group of facility information be unique, if then the facility information is effective.
8. such as method of any of claims 1-7, wherein if this group of facility information effectively if by the mobile device Facility information is changed to the step of this group of facility information further include:
By the nonvolatile random access memory of effective this group of facility information write-in mobile device of judgement.
9. the device of the change facility information based on automatic test, described device is resident in a mobile device, and the movement is set Standby to be above stored with the facility information list comprising multiple groups facility information, described device includes:
Detection unit, be adapted to determine whether to receive the system starting broadcast message of mobile device, be further adapted for detecting it is read Whether facility information is effective;
Setting unit, suitable for being arranged according to the execution time of automatic test script when receiving system starting broadcast message Facility information changes the period;
Test cell is suitable for carrying out automatic test to mobile device by executing automatic test script;
Information reading unit, suitable for sequentially reading one group from the facility information list every the facility information change period Facility information;And
The setting unit is further adapted for when detecting that read this group of facility information is effective, and the equipment of the mobile device is believed Breath is changed to this group of facility information and restarts the mobile device,
Wherein the facility information includes: International Mobile Station Equipment Identification IMEI, WIFI MAC Address and bluetooth MAC of mobile device Address.
10. device as claimed in claim 9, wherein one group of facility information includes: the international mobile device mark of mobile device Knowledge, WIFI MAC Address and Bluetooth MAC address.
11. device as claimed in claim 10, wherein
The test cell is further adapted for reading the log information of automatic test and records test result.
12. device as claimed in claim 11, wherein the detection unit further include:
Judgment sub-unit, suitable for judging whether the International Mobile Station Equipment Identification is 15 ten's digits;
Computation subunit, suitable for being moved with the world when judging the International Mobile Station Equipment Identification is 15 ten's digits Preceding 14 bit digital of dynamic device identification calculates check code;And
The judgment sub-unit is further adapted for comparing the counted check code and last bit check position, sentences if consistent It is effective to determine International Mobile Station Equipment Identification.
13. device as claimed in claim 12, wherein
The judgment sub-unit is further adapted for judging whether the WIFI MAC Address is 12 hexadecimal digits, if then determining The WIFI MAC Address is effective.
14. device as claimed in claim 13, wherein
The judgment sub-unit is further adapted for judging whether the Bluetooth MAC address is 12 hexadecimal digits, if then determining The Bluetooth MAC address is effective.
15. device as claimed in claim 14, wherein
The judgment sub-unit be further adapted for judging read facility information it is whether unique, if then determining that this group of facility information has Effect.
16. the device as described in any one of claim 9-15, wherein
The setting unit is further adapted for judge the based non-volatile random access of effective this group of facility information write-in mobile device Memory.
17. a kind of mobile device, is adapted for carrying out automatic test, have as described in any one of claim 9-16 based on oneself The device of the change facility information of dynamicization test, wherein the facility information includes: the International Mobile Station Equipment Identification of mobile device IMEI, WIFI MAC Address and Bluetooth MAC address.
CN201610929378.9A 2016-10-31 2016-10-31 The method and device of change facility information based on automatic test Active CN106649096B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610929378.9A CN106649096B (en) 2016-10-31 2016-10-31 The method and device of change facility information based on automatic test

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610929378.9A CN106649096B (en) 2016-10-31 2016-10-31 The method and device of change facility information based on automatic test

Publications (2)

Publication Number Publication Date
CN106649096A CN106649096A (en) 2017-05-10
CN106649096B true CN106649096B (en) 2019-02-15

Family

ID=58821593

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610929378.9A Active CN106649096B (en) 2016-10-31 2016-10-31 The method and device of change facility information based on automatic test

Country Status (1)

Country Link
CN (1) CN106649096B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113157309B (en) * 2021-01-26 2024-02-13 上海商米科技集团股份有限公司 Software design method for storing activation files by utilizing NVRAM

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104333486A (en) * 2014-10-31 2015-02-04 大唐移动通信设备有限公司 Testing system and method of network cell device
CN104978271A (en) * 2015-07-06 2015-10-14 Tcl集团股份有限公司 Automatic upgrade pressure measurement method and system for Android system
CN105095078A (en) * 2015-07-22 2015-11-25 厦门美图移动科技有限公司 Systematic automation testing device and method and calculating device
CN105975391A (en) * 2016-04-29 2016-09-28 厦门美图移动科技有限公司 Restart testing method and device and mobile terminal

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140373184A1 (en) * 2013-06-12 2014-12-18 Lookout, Inc. Mobile device persistent security mechanism
US10084603B2 (en) * 2013-06-12 2018-09-25 Lookout, Inc. Method and system for rendering a stolen mobile communications device inoperative

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104333486A (en) * 2014-10-31 2015-02-04 大唐移动通信设备有限公司 Testing system and method of network cell device
CN104978271A (en) * 2015-07-06 2015-10-14 Tcl集团股份有限公司 Automatic upgrade pressure measurement method and system for Android system
CN105095078A (en) * 2015-07-22 2015-11-25 厦门美图移动科技有限公司 Systematic automation testing device and method and calculating device
CN105975391A (en) * 2016-04-29 2016-09-28 厦门美图移动科技有限公司 Restart testing method and device and mobile terminal

Also Published As

Publication number Publication date
CN106649096A (en) 2017-05-10

Similar Documents

Publication Publication Date Title
CN105630686B (en) A kind of application traversal test method, equipment and mobile terminal
CN107329750A (en) The recognition methods of advertisement page, jump method and mobile terminal in application program
CN105975391B (en) One kind restarting test method, equipment and mobile terminal
CN104991847B (en) A kind of RAM leakage automated detection method, device and mobile terminal
CN106126424B (en) A kind of visual automated testing method of script, device and mobile terminal
CN105868105A (en) Application traversal testing method and device, and mobile terminal
CN105512033B (en) A kind of automated testing method of mobile terminal, device and mobile terminal
CN105373479A (en) Automatic test method and device of memory leakage and mobile terminal
CN104318185B (en) A kind of application control method, equipment and mobile terminal
CN105824755A (en) Automation test method, automation test device and mobile terminal
CN106294041A (en) Method, device and the mobile terminal of a kind of BUG information reporting
CN110366100A (en) Localization method, positioning device, readable storage medium storing program for executing and the terminal device of terminal
US20160239609A1 (en) Optimized visibility for sleep sessions over time
CN108509348B (en) System aging test method and mobile terminal
CN113138925A (en) Function test method and device of application program, computer equipment and storage medium
CN109783149A (en) Start-up control method, device, mobile terminal and storage medium
CN107766134A (en) The cleaned system method and mobile device of a kind of mobile device
CN107656866A (en) A kind of method, mobile terminal and computing device tested using fluency
CN109672908A (en) A kind of method for protecting privacy, device and mobile terminal
CN106357480A (en) Method and device for monitoring network performance of application and mobile terminal
CN106649096B (en) The method and device of change facility information based on automatic test
CN113160873B (en) Memory testing method and device, electronic equipment and storage medium
CN111813307B (en) Application program display method and device and electronic equipment
CN114974391A (en) Memory test method and device, electronic equipment and storage medium
CN111128139B (en) Non-invasive voice test method and device

Legal Events

Date Code Title Description
PB01 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
TR01 Transfer of patent right

Effective date of registration: 20220516

Address after: 510000 room 1904, No. 407, Linjiang Avenue, Tianhe District, Guangzhou, Guangdong

Patentee after: Zhang Zhizhong

Address before: 361009 112a, Pioneer Building, Pioneer Park, torch hi tech Zone, Xiamen City, Fujian Province

Patentee before: Xiamen Meitu Mobile Technology Co.,Ltd.

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20220824

Address after: 510000 No. 601, 6th floor, building A3, No. 2399, Chuangye Avenue, Huangpu District, Guangzhou, Guangdong Province (office only)

Patentee after: Lingdu (Guangdong) Intelligent Technology Development Co.,Ltd.

Address before: 510000 room 1904, No. 407, Linjiang Avenue, Tianhe District, Guangzhou, Guangdong

Patentee before: Zhang Zhizhong

TR01 Transfer of patent right