CN101175284A - Function testing method of portable electronic apparatus - Google Patents

Function testing method of portable electronic apparatus Download PDF

Info

Publication number
CN101175284A
CN101175284A CNA2006101352022A CN200610135202A CN101175284A CN 101175284 A CN101175284 A CN 101175284A CN A2006101352022 A CNA2006101352022 A CN A2006101352022A CN 200610135202 A CN200610135202 A CN 200610135202A CN 101175284 A CN101175284 A CN 101175284A
Authority
CN
China
Prior art keywords
computer
key
test
electronic equipment
key information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CNA2006101352022A
Other languages
Chinese (zh)
Other versions
CN101175284B (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.)
Motorola Mobile Communication Technology Ltd
Original Assignee
Lenovo Mobile Communication Technology 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 Lenovo Mobile Communication Technology Ltd filed Critical Lenovo Mobile Communication Technology Ltd
Priority to CN 200610135202 priority Critical patent/CN101175284B/en
Publication of CN101175284A publication Critical patent/CN101175284A/en
Application granted granted Critical
Publication of CN101175284B publication Critical patent/CN101175284B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Telephone Function (AREA)
  • Input From Keyboards Or The Like (AREA)

Abstract

The present invention discloses the functional testing method of a portable electronic device, the portable electronic device is provided with a keyboard. The testing method includes three steps, . Step A is script recording, keystroke operations are performed on the keyboard of the electronic device in order to produce keystroke information, the produced keystroke information data is sent to a computer which receives the keystroke information; step B is script playback and includes two steps; in step B1, the computer converts the keystroke information data into the corresponding keystroke instructions, a test script file is formed by the keystroke instruction sequences, the computer plays back the test script file and sends keystroke instruction data to the electronic device; in step B2, the electronic device receives the keystroke instruction data and automatically executes the keystroke instructions in order to test the functions of the electronic device. The generation, the modification and the maintenance of the test script file of the present invention are simple and convenient.

Description

A kind of function test method of portable electric appts
Technical field
The present invention relates to a kind of function test method of portable electric appts.
Background technology
Portable electric appts as mobile phone, belongs to embedded system, embedded system platform lacks interface unified, standard, and this makes and is difficult for general for the testing tool of embedded system development.Therefore, need the common point of analytical electron equipment, and, realize that by less cost testing tool is in all spendable purpose of the platform of different embedded systems as entry.Because how the input method of electronic equipment is by keyboard, existing scheme is also many to be input as method with simulating keyboard.Existing scheme is the input that comes analogue-key with the form of hardware, promptly link to each other with the pcb board of electronic equipment keyboard by the button analog switch, by software-driven button analog switch, make electronic equipment keyboard pcb board produce corresponding conducting, come the analogue-key input.This method needs hardware auxiliary, and cost is higher, is unfavorable for promoting on a large scale using; And need to destroy electronic equipment, the keyboard pcb board is exposed so that link to each other with the button analog switch, also cause certain loss.
There is the people to propose solution at above-mentioned shortcoming, discloses the application for a patent for invention of denomination of invention for " a kind of CDMA cell phone software automatic test method ", its application number 200410009308.9 on January 11st, 2006 as Chinese patent database.A kind of CDMA cell phone software automatic test method, this method mainly is by the computer simulation mobile phone key, clicks the user interface of analogue mobile phone keyboard in computer, thereby generates corresponding test script file.Test script file is interpreted as the order that mobile phone can discern again and mails to mobile phone, mobile phone is carried out and is ordered accordingly and repay, thereby finishes test.This scheme is in the process of generation script, because of the effective feedback (as: result of display operation (as: enter main menu, show short message content etc.)) that can not get the button input, whole process is not directly perceived, is difficult for positioning function test and which proceeds to has gone on foot, so that recording process makes things convenient for inadequately is smooth and easy.And, if mistake has taken place in recording process, also can be difficult for finding immediately and changing because of can not get in time feeding back.Change afterwards also can be difficult because of the location, and the comparison difficulty that becomes.Generally speaking, existing scheme is more time-consuming bothersome in generation, the modification of script, aspect safeguarding.In the process of cell phone software exploitation, the implementation method of modify feature is more frequent thing, and the modification of function generally all can cause importing the variation of keystroke sequence, that is to say that script will often adjust thereupon.Therefore, the easy realization that script generates, revises, safeguards is to utilize key commands to realize one of key factor of automatic test preferably; And existing scheme has than obvious defects aspect generation, the modification of script, safeguarding, needs to improve.
Summary of the invention
The invention provides a kind of function test method of portable electric appts, it has overcome the described deficiency of background technology.
Purpose of the present invention realizes like this: a kind of function test method of portable electric appts, and this portable electric appts has keyboard, and this method of testing comprises:
Steps A, script is recorded step, carries out button operation to generate key information on the keyboard of electronic equipment, sends the key information data that generate to computer, and computer receives key information;
Step B, the script replay procedure comprises:
Step B1, computer is converted to corresponding key commands with the key information data, and those key commands sequences are formed test script file, and computer playback test script file sends the key commands data to electronic equipment;
Step B2, electronic equipment receives the key commands data and automatically performs key commands with the test electronic function.
Described script is recorded step: carry out button operation to generate key information on the keyboard of electronic equipment, the key information that generates is packaged into the inter-area traffic interarea with certain format, send inter-area traffic interarea to computer again, computer receives, the resolving information data flow obtains key information;
Described script replay procedure comprises:
Step B1, computer is converted to corresponding key commands with key information, and those key commands sequences are formed test script file and are preserved this test script file; Computer playback test script file is packaged into order data stream with certain format with key commands and order data is spread according to bar and gives electronic equipment;
Step B2, electronic equipment reception, resolve command data flow also automatically perform key commands with the test electronic function;
Step B3, electronic equipment is packaged into result data stream and the repayment computer with certain format with the execution result of key commands, and computer receives, resolves and the judgement execution result.
Described script is recorded step and is comprised:
Steps A 1, computer sends the order that begins to transmit the key information data to electronic equipment, and electronic equipment receives and carries out this order;
Steps A 2 is carried out button operation to generate key information on the keyboard of electronic equipment, the key information that generates is packaged into the inter-area traffic interarea with certain format, and sends inter-area traffic interarea to computer;
Steps A 3, computer receives, the resolving information data flow obtains key information, shows the key information that receives simultaneously in the key information frame of computer screen;
Steps A 5, whether the test of user's arbitration functions finishes, if, sending the order that stops to transmit the key information data from computer, mobile phone receives and carries out this order, finishes recording of script; If not, continue execution in step A2.
Described script is recorded between the steps A 3 of step and the steps A 5 and is also comprised:
Steps A 4, has the user judged whether operating mistake? if have, computer sends the order that stops to transmit the key information data, the user manually deletes the key information of makeing mistakes, again with the operation recovery on the mobile phone before make mistakes, and then sending the order begin to transmit the key information data from computer, mobile phone receives and execution in step A2; If no, then continue following steps.
Step B1 in the described script replay procedure comprises:
Step B11, after key information all receives, computer is converted to corresponding key commands with key information and is presented in the key commands message box of computer, and those key commands sequences are formed test script and can be saved as test script file, computer playback test script;
Step B12, computer select command sending function, give electronic equipment with being presented at article one key commands of the key commands sequence in the key commands message box of computer, being packaged into order data stream and order data being spread, then execution in step B2 with certain format;
Step B3 in the described script replay procedure comprises:
Step B31, electronic equipment is packaged into the result data with certain format with the execution result of key commands and flows back to and offer computer, and computer receives, resolves execution result;
Step B32, computer is judged the electronic equipment key commands that whether correctly received also correct execution according to the execution result of resolving, if, execution in step B33 then, if not, execution in step B34 then;
Step B33, computer judge whether that key commands needs to send in addition, if then execution in step B12 continues to send next bar key commands data, if not, then finishes testing process;
Step B34, computer send the information of reporting an error and are presented at computer display, stop to send next bar key commands data.
Call and make up a plurality of test script files and become the series function combined test, should import in the task list respectively by a plurality of test script files, and import each test script file and wish the number of times carried out, and test with the function to electronic equipment by predefined procedure number of times playback test script file, wherein test script file is kept at computer by said method.
Described electronic equipment is a mobile phone.
Load mode between described electronic equipment and the computer can be any in serial ports transmission means, the defeated mode of USB flash disk oral instructions, infrared transmission mode, Bluetooth transmission mode or the wireless network transmissions mode.
Described script is recorded in the step, carries out button operation simultaneously on the keyboard of electronic equipment, the object information of the LCD display display button of electronic equipment operation.
At least comprise following content in the described key information: the state of key value and button; At least comprise following content in the key commands: the duration that the interval between button character string, button, button continue; At least comprise following content in the execution result of key commands: the object information of button character string, execution.
The technical program is compared with background technology, has following advantage:
The invention provides a kind of technical scheme, when on electronic equipment, testing, send key information to computer, generate the test script of forming by the key commands sequence on computers by electronic equipment.Playback test script from the computer again, electronic equipment receives also and automatically performs the key commands sequence, finishes the method for corresponding test.And this programme does not need the hardware auxiliary equipment, does not need to destroy mobile phone yet.The cost of scheme is low, is beneficial on a large scale to use.The technical program is aspect the script generation, and employing is repaid key commands by electronic equipment to computer when directly testing on electronic equipment, thereby generates test script.This method can directly utilize the LCD of electronic equipment to show, sees result's feedback (as: enter main menu, show short message content etc.) of input button intuitively), guarantee the correctness of script easily.When recording when making a mistake, be very easy to find and in time make amendment.When software function is revised,, can obtain the test script that upgraded simultaneously as long as on electronic equipment, once test again.Like this, the generation of script, modification, maintenance, just becoming is simple and easy to use.In addition, the test program of computer terminal of the present invention provides more strong functions, as: generate at random keystroke sequence and test, call a plurality of test scripts and carry out combined test of a series of functions etc.
Description of drawings
The present invention is further described below in conjunction with drawings and Examples.
Fig. 1 is the principle flow chart of the function test method of the embodiment of the invention one.
Embodiment
Embodiment one
A kind of function test method of mobile phone, the electronic equipment of present embodiment is a mobile phone, but does not exceed with mobile phone, other also is applicable to this method as PDA.The hardware that this method adopted comprises the physical channel of mobile phone, computer, connection mobile phone and computer.
Mobile phone: receive user's button input, the record key information is packaged into the inter-area traffic interarea with certain format with this key information, sends to the test program of computer terminal; The order data stream that comprises key commands that the receiving computer end sends parses key commands, and carries out corresponding button according to key commands automatically and handle; Execution result is packaged into the result data stream with certain format, sends to the test program of computer terminal.Above-mentioned packing data can adopt data compression, decompression method.
Computer terminal test program: receive, resolve the inter-area traffic interarea that mobile phone is sent, obtain key information, and key information is converted to the key commands preservation to form test script file; Key commands is packaged into the order data stream with certain format, sends to mobile phone; Receive, resolve the result data stream that mobile phone is sent, obtain execution result, to judge the mobile phone test result.Wherein, by after recording test script file and preserving, can call, repeat repeatedly automatic this test script file of playback, need not to operate script again and record step, then can finish pressure test, regression test to the mobile phone software function and the functional test that some do not need too much concern to show easily.The computer terminal test program also can be realized following function: transmission, the circulation that edit key information and key commands sequence, the key commands sequence that will handle be saved to script file, call in key commands sequence, the beginning/suspend/continue/command sequence that stops key from script file repeatedly carry out carry out supporting between error handling processing, key commands delay process key commands sequence, the implementation, arbitrarily cycle-index is carried out a plurality of key commands sequences in any order.
In order to connect mobile phone and computer terminal test program, need between mobile phone and computer terminal test program, set up reliable communication mechanism.Communication mechanism comprises the content of two aspects: the one, to set up the physical channel that reliable communication connects on the hardware, can but be not limited to realize that in order to method down communication connects: serial ports, USB flash disk mouth, infrared, bluetooth, WLAN (wireless local area network) etc.; The 2nd, a cover communications protocol to be arranged, with packing, transmission, analytic method and the concrete form of specified data on the software.Communications protocol can adopt agreement existing regulation, standard, as: the AT order of standard or expansion, also can oneself establish a cover communications protocol, realize this agreement at the test program end of mobile phone end, computer respectively.
As shown in Figure 1, method of testing comprises:
Steps A, script are recorded (key information collection) step, comprising:
Steps A 1, preliminary step: mobile phone enters testing process, and then the test program of computer terminal sends the order that begins to transmit the key information data to mobile phone, and mobile phone receives and carries out this order;
Steps A 2, key information generates, forwarding step: the user carries out button operation to generate key information on the keyboard of mobile phone, the object information of the LCD display display operation of mobile phone (as: enter main menu, show short message content etc.), and the key information that generates is packaged into the inter-area traffic interarea with certain format, again inter-area traffic interarea is sent to the test program of computer terminal;
Steps A 3, the key information receiving step: the test program of computer terminal receives, the resolving information data flow obtains key information, and the while shows the key information that receives in the key information frame of the test program of computer terminal;
Steps A 4, the user judges whether the operating mistake step: the function interface (as: enter main menu, show short message content etc.) of user by showing on the LCD of mobile phone, whether the input of judging button wrong? if have, the user sends order and the manual key information of makeing mistakes that shows in the key information frame of deleting that stops to transmit the key information data from the test program of computer terminal, again with the operation recovery on the mobile phone before make mistakes, and then sending the order that begins to transmit the key information data from the test program of computer terminal, mobile phone receives and execution in step A2; If no, then continue following steps;
Steps A 5, does whether user's arbitration functions tests end step: the test of user's arbitration functions finish (cell phone keyboard finishes input)? if, send the order that stops to transmit the key information data from the test program of computer terminal, mobile phone receives and carries out this order, finishes recording of script; If not, continue execution in step A2;
Step B, script playback (key commands sends and carries out) step comprises:
Step B11, script generates step: key information is converted to corresponding key commands with key information after all receiving, and the while is the display button command sequence in the key commands frame of the test program of computer terminal;
Those key commands sequences are formed test script file and are preserved this test script file, the test program playback test script file of computer terminal;
Step B12, order forwarding step: computer select command sending function, article one key commands of the key commands sequence in the key commands message box of test program of computer will be presented at, be packaged into order data stream and order data spread and give electronic equipment, then execution in step B2 with certain format;
Step B2, the command execution step: mobile phone reception, resolve command data flow also automatically perform key commands with the testing mobile phone function;
Step B31 receives the execution result step: mobile phone is packaged into the result data with certain format with the execution result of key commands and flows back to the test program of offering computer terminal, and the test program of computer terminal receives, resolves execution result;
Step B32, whether correct judge execution result step: is the test program of computer terminal judged the mobile phone key commands that whether correctly received also correct execution according to the execution result of resolving? if, execution in step B33 then, if not, execution in step B34 then;
Step B33, does judge whether key commands step in addition: the test program of computer terminal judge whether that key commands needs to send in addition? if, then execution in step B12 and continuation send next bar (second by that analogy) key commands data, if not, then finish testing process;
Step B34, send the step that reports an error: the test program of computer terminal sends the information of reporting an error and is presented at the test program display screen of computer terminal, stops to send next bar key commands data.
Because the task on the mobile phone is busy, the data volume when requiring each transmission key information or key commands is as far as possible little, to reduce the influence to the normal operation of mobile phone.Should comprise following content at least in the key information: the state of key value, button (press, discharge or long by); Should comprise following content at least in the key commands: the duration that the interval between button character string, button, button continue; At least comprise following content in the key commands execution result: the object information of button character string, execution (as: reason of success, failure and failure).
Judge that whether correct in the execution result step be to adopt following method to judge: at first, judge passback execution result the key commands character string with send identical? if inequality, execution result mistake then; If identical, then see execution result information? if execution result information is successfully, think that then execution result is successful.If execution result is then thought the execution result mistake for failure.
For making things convenient for the user that key information or key commands are carried out some editors or modification, the key information in the key information frame in the test program of computer terminal, the key commands in the key commands message box all can allow the user according to the rules data format require to edit.Below respectively with script record with the script playback be example, the occasion that may use editor once is described.
If record in the step cell phone keyboard of having found misoperation at script: as above-mentioned steps A 4, then the user stops to transmit the key information order by the test program of computer terminal to the mobile phone transmission, the key information of the corresponding misoperation of deletion in the text edit box of display button information; Position on mobile phone before the reduction misoperation; Then, the user again the test program by computer terminal send to mobile phone and begin to transmit the key information order; The key information of Jie Shouing (key information of modification) will be followed at before key information (correct key information) afterwards afterwards.Like this, just make to occur some in the script recording process when wrong, have easy method to be corrected.
In the process of mobile phone test, in most cases button all be short by, the operation of realization also can be finished at short notice.But under some specific situations, grow by button and just can finish certain operation; Or behind the short button, this operation will just can be finished in the long time.At these situations, when the key commands playback, will carry out some adjustment, for example: the time that the lengthening button continues, between key commands, increase time-delay or the like to key commands.
In the process of the key commands playback of script replay procedure, the progress indication should be arranged, indicate the key commands of current execution.When the repayment of receiving the expression mistake is arranged in the replayed section, the test program of computer terminal should be pointed out error message, stop transmission, the execution of subsequent commands, and with the key commands of significant method (as: redness, runic, italic etc.) when the internal labeling of key commands message box makes mistakes.In the process of key commands playback, stop sometimes, do more careful observation, so during playback, the function that the test program of computer terminal also should provide time-out, continue is with the demand above satisfying with regard to a certain occasion.
Generate in the data processing function of step at script, for key information correctly is converted to key commands, need to judge the validity of key information, this determination methods is: the one, judge whether the key value of key information drops in the button span of permission; The 2nd, during the normal running button, the action of pressing and the action of release must occur in pairs, if occur action that same key value only presses or the action of having only release in the key information of repayment, then this key value should be judged as invalidly, should give bomp during data processing.If key information is effective, then be converted into key commands; If key information is invalid, then should gives bomp and cancel this key information.Since different in key commands and the key information to expressing possibility of key value, can construct a correspondence table, the key value that the key value in the key information corresponds in the key commands is represented.
Data processing is intact, and just can preserve as test script file through the key commands sequence of adjusting after confirming.And the test program of computer terminal should provide the key commands sequence is saved as file and calls in the function of key commands sequence from file, and then test next time just need not to carry out script and records step, only need call and the playback test script file can be finished test.
Sometimes when finishing test, can find that some probability of happening are not 100% problems.The reproduction of these problems just need be done retest repeatedly.Therefore, the test program of computer terminal should provide the function of the repeatedly loop test of same test script file.Allow the user import to wish the number of times of loop test, after beginning test, have corresponding indication to show that current which time test what carry out be.If mobile phone supports the limit to do test limit record mobile phone operation information, if pinpoint the problems, the ruuning situation of mobile phone offers the developer in the time of just can writing down the generation problem in loop test, to accelerate the solution of problem.
Embodiment two
Present embodiment and embodiment one difference are: embodiment one realizes the recording of single test script file, playback function, finishes the situation of test; The mobile phone that allows that present embodiment provides is finished the combined test of a plurality of test script files.Wherein each test script file all adopts the method for testing of embodiment one to preserve.
A kind of function combinations method of testing of Portable mobile phone comprises:
Confirm step: a plurality of test script files are imported respectively in the task list, import each test script and wish the number of times carried out;
Sequential steps: selecting sequence is carried out function, presses the order that script file is arranged, and executes the number of times of last script file regulation earlier, continues to carry out the number of times of back one script file regulation again, all executes until script file.
It also is the script playback that above-mentioned script file is carried out, and as mentioned above, comprising:
Step B12, order forwarding step: computer select command sending function, article one key commands of the key commands sequence in the key commands message box of test program of computer will be presented at, be packaged into order data stream and order data spread and give electronic equipment, then execution in step B2 with certain format;
Step B2, the command execution step: mobile phone reception, resolve command data flow also automatically perform key commands with the testing mobile phone function;
Step B31 receives the execution result step: mobile phone is packaged into the result data with certain format with the execution result of key commands and flows back to the test program of offering computer terminal, and the test program of computer terminal receives, resolves execution result;
Step B32, whether correct judge execution result step: is the test program of computer terminal judged the mobile phone key commands that whether correctly received also correct execution according to the execution result of resolving? if, execution in step B33 then, if not, execution in step B34 then;
Step B33, does judge whether key commands step in addition: the test program of computer terminal judge whether that key commands needs to send in addition? if, then execution in step B12 and continuation send next bar (second by that analogy) key commands data, if not, then finish testing process;
Step B34, send the step that reports an error: the test program of computer terminal sends the information of reporting an error and is presented at the test program display screen of computer terminal, stops to send next bar key commands data.
Above-mentioned sequential steps also can be: select to carry out function at random, will select the order of script to carry out at random.If the script file of choosing, its stipulated number executed is intact, then selects other script file to carry out, until all executing.
Make up script test, daily use that can analog subscriber, testing mobile phone is in the normal degree of stability of using in a period of time.Serious problems such as promptly look at whether to crash, restart.In when test, preferably the mobile phone end has and can write down that mobile phone crashes, restarts reason and deadlock, the mechanism of some important register values when restarting.Can when going wrong, stay record like this so that exploitation is analyzed.
In the process that test script is carried out, if occur though some mistakes take place but situation that communication mechanism still can normally move, the history run before the test program of computer terminal should write down and make mistakes (promptly before having moved which script), the script situation when makeing mistakes (which bar order of which script) and the reported information when makeing mistakes by execution sequence.After a period of time, recover automatically to carry out follow-up unenforced script then, all execute until all scripts.Situation as if occurring making a mistake and causing communication mechanism normally to move then writes down the above-mentioned information of mentioning, and the prompting user makes mistakes, and stops the execution of follow-up script.
In the process of script executing, should provide the progress indication of the historical record and the current execution script of script executing.Also should write down the total script executing time and the time of implementation of each script.The function that should also provide time-out, continues is to interrupt and to recover the execution of script.
The above, only for preferred embodiment of the present invention, so can not limit scope of the invention process with this, i.e. the equivalence of doing according to the present patent application claim and description changes and modification, all should still belong in the scope that patent of the present invention contains.

Claims (10)

1. the function test method of a portable electric appts, it is characterized in that: this portable electric appts has keyboard, and this method of testing comprises:
Steps A, script is recorded step, carries out button operation to generate key information on the keyboard of electronic equipment, sends the key information data that generate to computer, and computer receives key information;
Step B, the script replay procedure comprises:
Step B1, computer is converted to corresponding key commands with the key information data, and those key commands sequences are formed test script file, and computer playback test script file sends the key commands data to electronic equipment;
Step B2, electronic equipment receives the key commands data and automatically performs key commands with the test electronic function.
2. the function test method of a kind of portable electric appts according to claim 1 is characterized in that:
Described script is recorded step: carry out button operation to generate key information on the keyboard of electronic equipment, the key information that generates is packaged into the inter-area traffic interarea with certain format, send inter-area traffic interarea to computer again, computer receives, the resolving information data flow obtains key information;
Described script replay procedure comprises:
Step B1, computer is converted to corresponding key commands with key information, and those key commands sequences are formed test script file and are preserved this test script file; Computer playback test script file is packaged into order data stream with certain format with key commands and order data is spread according to bar and gives electronic equipment;
Step B2, electronic equipment reception, resolve command data flow also automatically perform key commands with the test electronic function;
Step B3, electronic equipment is packaged into result data stream and the repayment computer with certain format with the execution result of key commands, and computer receives, resolves and the judgement execution result.
3. the function test method of a kind of portable electric appts according to claim 2, it is characterized in that: described script is recorded step and is comprised:
Steps A 1 sends the order that begins to transmit the key information data from computer to electronic equipment, and electronic equipment receives and carry out this order;
Steps A 2 is carried out button operation to generate key information on the keyboard of electronic equipment, the key information that generates is packaged into the inter-area traffic interarea with certain format, and sends inter-area traffic interarea to computer;
Steps A 3, computer receives, the resolving information data flow obtains key information, shows the key information that receives simultaneously in the key information frame of computer screen;
Steps A 5, whether the test of user's arbitration functions finishes, if, sending the order that stops to transmit the key information data from computer, mobile phone receives and carries out this order, finishes recording of script; If not, continue execution in step A2.
4. the function test method of a kind of portable electric appts according to claim 3 is characterized in that: described script is recorded between the steps A 3 of step and the steps A 5 and is also comprised:
Steps A 4, has the user judged whether operating mistake? if have, computer sends the order that stops to transmit the key information data, the user manually deletes the key information of makeing mistakes, again with the operation recovery on the mobile phone before make mistakes, and then sending the order begin to transmit the key information data from computer, mobile phone receives and execution in step A2; If no, then continue following steps.
5. the function test method of a kind of portable electric appts according to claim 4, it is characterized in that: the step B1 in the described script replay procedure comprises:
Step B11, after key information all receives, computer is converted to corresponding key commands with key information and is presented in the key commands message box of computer, and those key commands sequences are formed test script and can be saved as test script file, computer playback test script;
Step B12, computer select command sending function, give electronic equipment with being presented at article one key commands of the key commands sequence in the key commands message box of computer, being packaged into order data stream and order data being spread, then execution in step B2 with certain format;
Step B3 in the described script replay procedure comprises:
Step B31, electronic equipment is packaged into the result data with certain format with the execution result of key commands and flows back to and offer computer, and computer receives, resolves execution result;
Step B32, computer is judged the electronic equipment key commands that whether correctly received also correct execution according to the execution result of resolving, if, execution in step B33 then, if not, execution in step B34 then;
Step B33, computer judge whether that key commands needs to send in addition, if then execution in step B12 continues to send next bar key commands data, if not, then finishes testing process;
Step B34, computer send the information of reporting an error and are presented at computer display, stop to send next bar key commands data.
6. the function test method of a kind of portable electric appts according to claim 5, it is characterized in that: call and make up a plurality of test script files and become the series function combined test, should import in the task list respectively by a plurality of test script files, and import each test script file and wish the number of times carried out, and test with the function to electronic equipment by predefined procedure number of times playback test script file, wherein test script file is kept at computer by said method.
7. according to the function test method of claim 1 or 2 or 3 or 4 or 5 or 6 described a kind of portable electric appts, it is characterized in that: described electronic equipment is a mobile phone.
8. according to the function test method of claim 1 or 2 or 3 or 4 or 5 or 6 described a kind of portable electric appts, it is characterized in that: the load mode between described electronic equipment and the computer can be any in serial ports transmission means, the defeated mode of USB flash disk oral instructions, infrared transmission mode, Bluetooth transmission mode or the wireless network transmissions mode.
9. according to the function test method of claim 1 or 2 or 3 or 4 or 5 or 6 described a kind of portable electric appts, it is characterized in that: described script is recorded in the step, on the keyboard of electronic equipment, carry out button operation simultaneously, the object information of the LCD display display button of electronic equipment operation.
10. according to the function test method of claim 1 or 2 or 3 or 4 or 5 or 6 described a kind of portable electric appts, it is characterized in that: comprise following content in the described key information at least: the state of key value and button; At least comprise following content in the key commands: the duration that the interval between button character string, button, button continue; At least comprise following content in the execution result of key commands: the object information of button character string, execution.
CN 200610135202 2006-11-01 2006-11-01 Function testing method of portable electronic apparatus Expired - Fee Related CN101175284B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 200610135202 CN101175284B (en) 2006-11-01 2006-11-01 Function testing method of portable electronic apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 200610135202 CN101175284B (en) 2006-11-01 2006-11-01 Function testing method of portable electronic apparatus

Publications (2)

Publication Number Publication Date
CN101175284A true CN101175284A (en) 2008-05-07
CN101175284B CN101175284B (en) 2010-12-22

Family

ID=39423473

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 200610135202 Expired - Fee Related CN101175284B (en) 2006-11-01 2006-11-01 Function testing method of portable electronic apparatus

Country Status (1)

Country Link
CN (1) CN101175284B (en)

Cited By (32)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101931827A (en) * 2010-08-05 2010-12-29 康佳集团股份有限公司 Set-top box test method for event replay
CN101937393A (en) * 2010-08-31 2011-01-05 中山大学 Regression testing method and system for browser
CN101951636A (en) * 2010-09-29 2011-01-19 上海天臣威讯信息技术有限公司 Method for wireless communication module to carry out BUG regression test by using AT command
CN101964845A (en) * 2010-09-28 2011-02-02 中兴通讯股份有限公司 Method and device for recovering terminal operation
CN102147756A (en) * 2010-02-05 2011-08-10 中国移动通信集团公司 Methods and systems for testing terminal
CN101620564B (en) * 2008-06-30 2011-10-19 福建升腾资讯有限公司 Method for automatically testing recording playback mode of terminal system
US8090569B2 (en) 2008-11-14 2012-01-03 Hong Fu Jin Precision Industry (Shenzhen) Co., Ltd. Apparatus and method for testing electronic apparatuses
CN102519514A (en) * 2011-11-16 2012-06-27 中国电子科技集团公司第四十一研究所 One-click automatic testing realization method of electronic test instrument
CN102591754A (en) * 2011-01-18 2012-07-18 智比特信息技术(镇江)有限公司 Automatic testing method for electronic product controlled by computer
CN102638603A (en) * 2011-02-11 2012-08-15 上海闻泰电子科技有限公司 Method for automatically testing power consumption of mobile phone through simulation key
CN102999419A (en) * 2011-09-13 2013-03-27 百度在线网络技术(北京)有限公司 Android test incident record and playback methods and device
CN103164310A (en) * 2011-12-12 2013-06-19 百度在线网络技术(北京)有限公司 Method, equipment and system used for testing mobile equipment
CN103514088A (en) * 2012-06-19 2014-01-15 珠海世纪鼎利通信科技股份有限公司 Function regression testing method for terminal application software
CN103577290A (en) * 2013-11-01 2014-02-12 广东欧珀移动通信有限公司 Test script playback rhythm control method and system
CN103778055A (en) * 2012-10-23 2014-05-07 腾讯科技(深圳)有限公司 Key test method and device
CN103838673A (en) * 2014-03-05 2014-06-04 广东小天才科技有限公司 Automatic testing method and device
CN104008047A (en) * 2013-02-27 2014-08-27 腾讯科技(深圳)有限公司 Intelligent terminal program testing method and system
CN104216823A (en) * 2013-06-03 2014-12-17 联想(北京)有限公司 Automatic testing method and master control device
CN104298492A (en) * 2013-07-18 2015-01-21 工业和信息化部软件与集成电路促进中心 Remote control method and system for mobile terminal
CN104424089A (en) * 2013-08-21 2015-03-18 中兴通讯股份有限公司 Terminal testing method and device
CN104866384A (en) * 2014-02-20 2015-08-26 纬创资通股份有限公司 Method and system for rapidly testing and detecting mobile device
CN105354118A (en) * 2015-10-27 2016-02-24 广东欧珀移动通信有限公司 Method, apparatus and system for automatically testing intelligent terminal
CN105446650A (en) * 2015-12-07 2016-03-30 北京奇虎科技有限公司 Keyboard input information recording method, apparatus and system
CN105468166A (en) * 2015-12-07 2016-04-06 北京奇虎科技有限公司 Method, device and system for recording information input by keyboard
WO2016115801A1 (en) * 2015-01-21 2016-07-28 中兴通讯股份有限公司 Method and device for replaying user operation
CN103164310B (en) * 2011-12-12 2016-12-14 百度在线网络技术(北京)有限公司 A kind of method, apparatus and system for testing mobile device
CN107133072A (en) * 2017-04-27 2017-09-05 紫光华山信息技术有限公司 One kind operation performs method and apparatus
CN104239214B (en) * 2014-09-29 2017-12-01 广州视源电子科技股份有限公司 A kind of method and apparatus of configuration testing script
CN107817433A (en) * 2017-10-27 2018-03-20 东信和平科技股份有限公司 Test system, method, equipment and the computer-readable recording medium of smart card
CN107908554A (en) * 2017-11-06 2018-04-13 珠海金山网络游戏科技有限公司 A kind of method and system of the motion capture of mobile phone games, recording and recurrence
CN110502437A (en) * 2019-07-31 2019-11-26 惠州市德赛西威汽车电子股份有限公司 A kind of test macro and its method of on-vehicle Bluetooth application program
CN112732347A (en) * 2021-01-25 2021-04-30 北京睿芯高通量科技有限公司 Portable device for manually changing BIOS configuration in one-key mode and changing method

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1713745A (en) * 2004-06-22 2005-12-28 光宝科技股份有限公司 Automatic mobile testing system and method
CN100382624C (en) * 2004-07-08 2008-04-16 中兴通讯股份有限公司 Method and apparatus for automatically testing CDMA cell phone software
CN100364353C (en) * 2005-01-05 2008-01-23 华为技术有限公司 Automatic operation device, method for mobile phone and mobile phone testing system and method

Cited By (45)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101620564B (en) * 2008-06-30 2011-10-19 福建升腾资讯有限公司 Method for automatically testing recording playback mode of terminal system
CN101738550B (en) * 2008-11-14 2013-03-20 鸿富锦精密工业(深圳)有限公司 Electronic device test device and test method
US8090569B2 (en) 2008-11-14 2012-01-03 Hong Fu Jin Precision Industry (Shenzhen) Co., Ltd. Apparatus and method for testing electronic apparatuses
CN102147756B (en) * 2010-02-05 2013-04-03 中国移动通信集团公司 Methods and systems for testing terminal
CN102147756A (en) * 2010-02-05 2011-08-10 中国移动通信集团公司 Methods and systems for testing terminal
CN101931827A (en) * 2010-08-05 2010-12-29 康佳集团股份有限公司 Set-top box test method for event replay
CN101937393A (en) * 2010-08-31 2011-01-05 中山大学 Regression testing method and system for browser
CN101964845A (en) * 2010-09-28 2011-02-02 中兴通讯股份有限公司 Method and device for recovering terminal operation
CN101964845B (en) * 2010-09-28 2014-07-02 中兴通讯股份有限公司 Method and device for recovering terminal operation
CN101951636A (en) * 2010-09-29 2011-01-19 上海天臣威讯信息技术有限公司 Method for wireless communication module to carry out BUG regression test by using AT command
CN102591754A (en) * 2011-01-18 2012-07-18 智比特信息技术(镇江)有限公司 Automatic testing method for electronic product controlled by computer
CN102638603A (en) * 2011-02-11 2012-08-15 上海闻泰电子科技有限公司 Method for automatically testing power consumption of mobile phone through simulation key
CN102638603B (en) * 2011-02-11 2015-09-23 上海闻泰电子科技有限公司 A kind of method by the automatic testing mobile phone power consumption of analogue-key
CN102999419A (en) * 2011-09-13 2013-03-27 百度在线网络技术(北京)有限公司 Android test incident record and playback methods and device
CN102519514A (en) * 2011-11-16 2012-06-27 中国电子科技集团公司第四十一研究所 One-click automatic testing realization method of electronic test instrument
CN102519514B (en) * 2011-11-16 2015-01-14 中国电子科技集团公司第四十一研究所 One-click automatic testing realization method of electronic test instrument
CN103164310B (en) * 2011-12-12 2016-12-14 百度在线网络技术(北京)有限公司 A kind of method, apparatus and system for testing mobile device
CN103164310A (en) * 2011-12-12 2013-06-19 百度在线网络技术(北京)有限公司 Method, equipment and system used for testing mobile equipment
CN103514088A (en) * 2012-06-19 2014-01-15 珠海世纪鼎利通信科技股份有限公司 Function regression testing method for terminal application software
CN103514088B (en) * 2012-06-19 2016-05-11 珠海世纪鼎利通信科技股份有限公司 A kind of function regression testing method of terminal application software
CN103778055A (en) * 2012-10-23 2014-05-07 腾讯科技(深圳)有限公司 Key test method and device
CN103778055B (en) * 2012-10-23 2018-02-27 腾讯科技(深圳)有限公司 A kind of key-press test method and device
CN104008047A (en) * 2013-02-27 2014-08-27 腾讯科技(深圳)有限公司 Intelligent terminal program testing method and system
CN104216823A (en) * 2013-06-03 2014-12-17 联想(北京)有限公司 Automatic testing method and master control device
CN104216823B (en) * 2013-06-03 2017-12-29 联想(北京)有限公司 A kind of automated testing method and master control set
CN104298492A (en) * 2013-07-18 2015-01-21 工业和信息化部软件与集成电路促进中心 Remote control method and system for mobile terminal
CN104298492B (en) * 2013-07-18 2018-03-16 工业和信息化部软件与集成电路促进中心 A kind of remote mobile terminal control method and system
CN104424089A (en) * 2013-08-21 2015-03-18 中兴通讯股份有限公司 Terminal testing method and device
CN103577290A (en) * 2013-11-01 2014-02-12 广东欧珀移动通信有限公司 Test script playback rhythm control method and system
CN104866384A (en) * 2014-02-20 2015-08-26 纬创资通股份有限公司 Method and system for rapidly testing and detecting mobile device
CN103838673A (en) * 2014-03-05 2014-06-04 广东小天才科技有限公司 Automatic testing method and device
CN104239214B (en) * 2014-09-29 2017-12-01 广州视源电子科技股份有限公司 A kind of method and apparatus of configuration testing script
WO2016115801A1 (en) * 2015-01-21 2016-07-28 中兴通讯股份有限公司 Method and device for replaying user operation
CN105868083A (en) * 2015-01-21 2016-08-17 中兴通讯股份有限公司 User operation playback method and apparatus
CN105354118A (en) * 2015-10-27 2016-02-24 广东欧珀移动通信有限公司 Method, apparatus and system for automatically testing intelligent terminal
CN105354118B (en) * 2015-10-27 2019-09-13 Oppo广东移动通信有限公司 Automatic test approach, the apparatus and system of intelligent terminal
CN105468166A (en) * 2015-12-07 2016-04-06 北京奇虎科技有限公司 Method, device and system for recording information input by keyboard
CN105446650A (en) * 2015-12-07 2016-03-30 北京奇虎科技有限公司 Keyboard input information recording method, apparatus and system
CN105468166B (en) * 2015-12-07 2019-04-23 北京奇虎科技有限公司 Record the method, apparatus and system of keyboard input information
CN107133072A (en) * 2017-04-27 2017-09-05 紫光华山信息技术有限公司 One kind operation performs method and apparatus
CN107817433A (en) * 2017-10-27 2018-03-20 东信和平科技股份有限公司 Test system, method, equipment and the computer-readable recording medium of smart card
CN107908554A (en) * 2017-11-06 2018-04-13 珠海金山网络游戏科技有限公司 A kind of method and system of the motion capture of mobile phone games, recording and recurrence
CN110502437A (en) * 2019-07-31 2019-11-26 惠州市德赛西威汽车电子股份有限公司 A kind of test macro and its method of on-vehicle Bluetooth application program
CN110502437B (en) * 2019-07-31 2023-07-28 惠州市德赛西威汽车电子股份有限公司 Test system and method for vehicle-mounted Bluetooth application program
CN112732347A (en) * 2021-01-25 2021-04-30 北京睿芯高通量科技有限公司 Portable device for manually changing BIOS configuration in one-key mode and changing method

Also Published As

Publication number Publication date
CN101175284B (en) 2010-12-22

Similar Documents

Publication Publication Date Title
CN101175284B (en) Function testing method of portable electronic apparatus
CN111104315A (en) Test script generation method and device and computer readable storage medium
WO2014169565A1 (en) Terminal testing method and device
CN103329108A (en) Test device
CN201392526Y (en) Onboard test system for mobile applications
CN102523475B (en) Testing method and device for electronic products, and television set
CN106445764A (en) Method for realizing automatic testing of stability of android facility
CN112115038A (en) Application testing method and device and storage medium
JP2016531352A (en) Method, device, program and device for updating input system
CN110515821A (en) Based on the event-handling method, electronic equipment and computer storage medium buried a little
WO2007061241A1 (en) Error test method for mobile communication terminals
CN109815079A (en) Problem feedback method, device, computer equipment and storage medium
CN112364049A (en) Data synchronization script generation method, system, terminal and storage medium
KR20080087918A (en) Test method for automatically testing target device and apparatus there-for
CN113760611B (en) System site switching method and device, electronic equipment and storage medium
CN106682910B (en) Information processing method, system and related equipment
US8922491B2 (en) Method and apparatus enabling keystroke acceleration
CN101241437A (en) Method for selecting operating system to be started through basic input output system
CN111026651A (en) Test method, test device, storage medium and electronic equipment
CN111400166A (en) Real-time communication service testing method, device and system and electronic equipment
CN101312546A (en) Method for tracking and recording television operation steps and television thereof
CN106034174A (en) Operation playback system, operation playback method and mobile terminal
CN101222740A (en) Method, device and system for controlling and configuring equipment with multi-version under testing
CN111339100B (en) Data checking method and device
CN102193644A (en) Computer system and method for simulating input of keyboard

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20101222

Termination date: 20151101

EXPY Termination of patent right or utility model