CN101951636A - Method for wireless communication module to carry out BUG regression test by using AT command - Google Patents

Method for wireless communication module to carry out BUG regression test by using AT command Download PDF

Info

Publication number
CN101951636A
CN101951636A CN2010102976829A CN201010297682A CN101951636A CN 101951636 A CN101951636 A CN 101951636A CN 2010102976829 A CN2010102976829 A CN 2010102976829A CN 201010297682 A CN201010297682 A CN 201010297682A CN 101951636 A CN101951636 A CN 101951636A
Authority
CN
China
Prior art keywords
bug
test
order
wireless communication
communication module
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.)
Pending
Application number
CN2010102976829A
Other languages
Chinese (zh)
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.)
SHANGHAI TIANCHEN WEIXUN INFORMATION TECHNOLOGY Co Ltd
Original Assignee
SHANGHAI TIANCHEN WEIXUN INFORMATION 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 SHANGHAI TIANCHEN WEIXUN INFORMATION TECHNOLOGY Co Ltd filed Critical SHANGHAI TIANCHEN WEIXUN INFORMATION TECHNOLOGY Co Ltd
Priority to CN2010102976829A priority Critical patent/CN101951636A/en
Publication of CN101951636A publication Critical patent/CN101951636A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Telephone Function (AREA)

Abstract

The invention discloses a method for a wireless communication module to carry out BUG regression test by using the AT command, which is characterized by editing and storing automatic test scripts of the BUG needing to be verified, selecting the BUG to be tested by parameter setting, synchronously comparing the BUG verification result with the correct result and indicating BUG verification is successful if the BUG verification result conforms to the condition; and directly importing the automatic test scripts of the BUG for new projects. The method can improve the efficiency of the wireless communication module to carry out BUG regression test by using the AT command and ensure the test process not to affect the performance of software due to omission of certain BUG.

Description

Wireless communication module uses the AT order to carry out BUG regression test method
Technical field
The invention belongs to the wireless communication technique field, relate to a kind of method of testing of wireless communication module, relate in particular to a kind of wireless communication module and use the AT order to carry out BUG regression test method.
Background technology
AT is Attention, AT command set is from terminal equipment (Terminal Equipment, TE) or data terminal equipment (Data Terminal Equipment, DTE) to terminal adapter (Terminal Adapter, TA) or data circuit termination equipment (Data Circuit Terminal Equipment DCE) sends.By TA, TE sends AT and instructs and control travelling carriage (Mobile Station, function MS) are carried out with the GSM Network alternately.The control of aspects such as the user can call out by the AT instruction, note, phone directory, data service, fax.
At the beginning of the nineties, the AT instruction only is used to the Modem operation.Do not control the precedent of mobile phone text message, only developed the agreement of a kind of SMS of crying BlockMode, control fully by terminal equipment (te) or computer.By the invention of Hayes company, a standard on now having come true and a Modem commands language that is adopted by all modem manufacturers.Every order starts with letter " AT ", thereby gains the name.AT heel letter and number shows concrete function.SMS。After several years, main Nokia of mobile phone production firm, Ericsson, Motorola and HP developed a whole set of AT instruction for GSM jointly, wherein just comprises the control to SMS.The AT instruction is developed on this basis and is added into GSM07.05 standard and present GSM07.07 standard, standardization and relatively more sound standard fully.As: the control to SMS has 3 kinds of realization approach: initial BlockMode; TextMode based on the AT instruction; PDUMode based on the AT instruction.PDUMode has replaced BlockMode till now, and the latter is faded out gradually.Communication protocol between gsm module and the computer is some AT command set, and the AT instruction is to make head with AT, and the character string of EOC is during the response data of AT instruction wraps in.Whether each instruction runs succeeded all to have accordingly and returns.The unexpected information of other some (if any the people dial into, circuit no signal etc.), module will have some corresponding information indicatings, receiving terminal can be done corresponding processing.
The software test of wireless communication module is all ordered by AT basically and is finished, and the regression test of BUG mainly is to carry out AT by the serial ports instrument to order its test result of manual authentication one by one.Same BUG needs to carry out the validation test of repetition when the renewal of the upgrading of software and platform, cause a large amount of time wastes easily like this, and the omission situation appears in too much BUG quantity easily in proof procedure, thus the integrality of influence test and the process of project.
Therefore, need a method solve these problems, guarantee that when improving BUG regression test efficient test can be by matter finishing according to quantity.
Summary of the invention
Technical problem to be solved by this invention is: provide a kind of wireless communication module to use the AT order to carry out BUG regression test method, can be used for solving the BUG regression test of each platform project of wireless communication module of using the AT order.
For solving the problems of the technologies described above, the present invention adopts following technical scheme:
A kind of wireless communication module uses the AT order to carry out BUG regression test method, editor preserves the automatic test script that needs checking BUG, utilize parameter setting to select the BUG that tests, and BUG is verified that result and correct result contrast synchronously, eligiblely illustrate that promptly this BUG checking passes through; New project directly imports the automatic test script of this BUG.
As a preferred embodiment of the present invention, described method comprises the steps:
Step S1, use Serial Port Line connect wireless communication module and PC;
Step S2, select the parameter of serial ports and baud rate in Config, this parameter must be identical with the serial ports and the baud rate of wireless module, confirms that AT order communication is normal;
Step S3, the form with text document in editing machine are write test script, and content comprises AT order and each parameter-definition and correct operating result;
Step S4, in project, select relevant parameters, comprise phone directory, SMS, CALL, confirm the function items of test;
Step S5, select relevant parameters in station, which BUG affirmation need begin checking from, avoids omitting phenomenon;
The script of step S6, importing step S3 begins test;
Step S7, check that on Progress one hurdle the process of test and result judge whether test is passed through;
Step S8, if test is passed through, change step S9, otherwise execution in step S4;
Step S9, finish.
A kind of wireless communication module uses the AT order to carry out BUG regression test method, and described method comprises the steps:
Step S1, use Serial Port Line connect wireless communication module and computer;
Step S2, select the parameter of serial ports and baud rate in CONFIG, this parameter is identical with the serial ports and the baud rate of wireless module, confirms that AT orders communication normal;
Step S3, the form with text document in editing machine are write test script, and content comprises AT order, each parameter-definition and correct operating result;
Step S4, selection relevant parameters are confirmed the function items of testing;
Step S5, select relevant parameters in station, which BUG affirmation need begin checking from, avoids omitting phenomenon;
The script of step S6, importing step S3 begins test;
Step S7, the process of checking test and result judge whether test is passed through;
Step S8, if test is passed through, change step S9, otherwise execution in step S4;
Step S9, finish.
As a preferred embodiment of the present invention, the script among the described step S3 comprises following content: the BUG content; Open serial port command; The link block order; The order of SM phone directory is set; The coded system order is set; Checking BUG operational order; Close serial port command.
As a preferred embodiment of the present invention, the parameter of selecting among the described step S4 comprises phone directory, SMS, CALL.
As a preferred embodiment of the present invention, among the described step S8,, then return affirmation if test is passed through, the while automated test tool can store this BUG into the relevant position and call in order to checking next time, changes step S9; Otherwise execution in step S4.
As a preferred embodiment of the present invention, the script among the described step S3 comprises following content:
-BUG content: edit phone directory under the UCS2 coded system, name length surpasses 6 words can't edit successful problem;
-open serial ports DevOpen GerneralDLL.dll 0 dut1 00;
-link block DevFind GerneralDLL.dll AT-OK dut1 00;
-SM phone directory DevQuery GerneralDLL.dll AT+CPBS=" SM " dut10 0 is set;
-coded system is set for " UCS2 " DevQuery GerneralDLL.dll AT+CSCS=" UCS2 " dut1 00;
-editor name length is 6 DevFind GerneralDLL.dllAT+CPBW=1, " 123 ", 129, " 003100320033003400350036 "-OK dut1 00;
-editor name length surpasses 6 DevFind GerneralDLL.dllAT+CPBW=1, " 123 ", 129, " 0031003200330034003500360037 " OK dut1 00;
-close serial ports DevClose GerneralDLL.dll 0d,ut1 00.
Beneficial effect of the present invention is: the wireless communication module that the present invention proposes uses the AT order to carry out BUG regression test method, preserve the automatic test script that needs checking BUG by editor, utilize parameter setting to select the BUG that tests, and BUG verified that result and correct result contrast synchronously, eligiblely illustrate that promptly this BUG checking passes through; New project then can directly import the automatic test script of this BUG.The present invention can improve wireless communication module and carry out BUG regression tested efficient and guarantee that test process does not influence the performance of software because of the omission of certain BUG by the AT order.
Description of drawings
Fig. 1 is the flow chart of regression test method of the present invention.
Embodiment
Describe the preferred embodiments of the present invention in detail below in conjunction with accompanying drawing.
Embodiment one
The present invention has disclosed a kind of wireless communication module and has used the AT order to carry out BUG regression test method, solves wireless communication module and uses the AT order to carry out in the BUG regression test, the problem of BUG test leakage occurs and improves the method for BUG regression test efficient.Comprise the steps: to edit the automatic test script that preservation need be verified BUG, utilize parameter setting to select the BUG that tests, and BUG is verified that result and correct result contrast synchronously, eligiblely illustrate that promptly this BUG checking passes through; New project directly imports the automatic test script of this BUG.
See also Fig. 1, present embodiment operates to example with the inventive method at the windows platform and introduces the present invention, and in the present embodiment, regression test method of the present invention comprises the steps:
Step S1, use Serial Port Line connect wireless communication module and PC;
Step S2, select the parameter of serial ports and baud rate in Config, this parameter must be identical with the serial ports and the baud rate of wireless module, confirms that AT order communication is normal;
Step S3, the form with text document in editing machine are write test script, and content comprises AT order and each parameter-definition and correct operating result.Wherein, script can comprise following content: the BUG content; Open serial port command; The link block order; The order of SM phone directory is set; The coded system order is set; Checking BUG operational order; Close serial port command.
Step S4, in project, select relevant parameters, comprise phone directory, SMS, CALL etc., confirm the function items of test;
Step S5, select relevant parameters in station, which BUG affirmation need begin checking from, avoids omitting phenomenon;
The script of step S6, importing step S3 begins test;
Step S7, check that on Progress one hurdle the process of test and result judge whether test is passed through;
Step S8, if test is passed through, change step S9, otherwise execution in step S4;
Step S9, finish.
In the present embodiment, the script among the step S3 is exemplified below, and described script comprises:
-BUG content: edit phone directory under the UCS2 coded system, name length surpasses 6 words can't edit successful problem;
-open serial ports DevOpen GerneralDLL.dll 0 dut1 00;
-link block DevFind GerneralDLL.dll AT-OK dut1 00;
-SM phone directory DevQuery GerneralDLL.dll AT+CPBS=" SM " dut10 0 is set;
-coded system is set for " UCS2 " DevQuery GerneralDLL.dll AT+CSCS=" UCS2 " dut1 00;
-editor name length is 6 DevFind GerneralDLL.dllAT+CPBW=1, " 123 ", 129, " 003100320033003400350036 " OK dut1 00;
-editor name length surpasses 6 DevFind GerneralDLL.dllAT+CPBW=1, " 123 ", 129, " 0031003200330034003500360037 " OK dut1 00;
-close serial ports DevClose GerneralDLL.dll 0 dut1 00.
Script notes is as follows:
Preceding two parameters mainly are that the corresponding scope of relevant AT order is set, and open serial ports such as " DevOpen " expression; " DevQuery " expression is provided with relevant parameter; The relevant AT order of " DevFind " expression editor.The back is exactly the AT content of the BUG operation of your required checking, is the step that editor surpasses 6 words such as " AT+CPBW=1, " 123 ", 129, " 0031003200330034003500360037 " ".Its correct return value is " OK ", if not " OK " authentication failed then, returns FAIL.Successful then PASS continues next bar BUG of checking.The while automated test tool can store this BUG into the relevant position and call in order to checking next time.
The content of above script is a kind of implementation of the present invention, and those skilled in the art can associate other implementations easily according to the foregoing description and prior art.
In sum, the wireless communication module that the present invention proposes uses the AT order to carry out BUG regression test method, preserve the automatic test script that needs checking BUG by editor, utilize parameter setting to select the BUG that tests, and BUG verified that result and correct result contrast synchronously, eligiblely illustrate that promptly this BUG checking passes through; New project then can directly import the automatic test script of this BUG.The present invention can improve wireless communication module and carry out BUG regression tested efficient and guarantee that test process does not influence the performance of software because of the omission of certain BUG by the AT order.
Here description of the invention and application is illustrative, is not to want with scope restriction of the present invention in the above-described embodiments.Here the distortion of disclosed embodiment and change are possible, and the various parts of the replacement of embodiment and equivalence are known for those those of ordinary skill in the art.Those skilled in the art are noted that under the situation that does not break away from spirit of the present invention or substantive characteristics, and the present invention can be with other form, structure, layout, ratio, and realize with other assembly, material and parts.Under the situation that does not break away from the scope of the invention and spirit, can carry out other distortion and change here to disclosed embodiment.

Claims (8)

1. a wireless communication module uses the AT order to carry out BUG regression test method, it is characterized in that:
Editor preserves the automatic test script that needs checking BUG;
Utilize parameter setting to select the BUG that tests, and BUG is verified that result and correct result contrast synchronously, eligiblely illustrate that promptly this BUG checking passes through;
New project directly imports the automatic test script of this BUG.
2. wireless communication module according to claim 1 uses the AT order to carry out BUG regression test method, it is characterized in that:
Described method comprises the steps:
Step S1, use Serial Port Line connect wireless communication module and PC;
Step S2, select the parameter of serial ports and baud rate in Config, this parameter must be identical with the serial ports and the baud rate of wireless module, confirms that AT order communication is normal;
Step S3, the form with text document in editing machine are write test script, and content comprises AT order and each parameter-definition and correct operating result;
Step S4, in project, select relevant parameters, comprise phone directory, SMS, CALL, confirm the function items of test;
Step S5, select relevant parameters in station, which BUG affirmation need begin checking from, avoids omitting phenomenon;
The script of step S6, importing step S3 begins test;
Step S7, check that on Progress one hurdle the process of test and result judge whether test is passed through;
Step S8, if test is passed through, change step S9, otherwise execution in step S4;
Step S9, finish.
3. a wireless communication module uses the AT order to carry out BUG regression test method, it is characterized in that described method comprises the steps:
Step S1, use Serial Port Line connect wireless communication module and computer;
Step S2, select the parameter of serial ports and baud rate in CONFIG, this parameter is identical with the serial ports and the baud rate of wireless module, confirms that AT orders communication normal;
Step S3, the form with text document in editing machine are write test script, and content comprises AT order, each parameter-definition and correct operating result;
Step S4, selection relevant parameters are confirmed the function items of testing;
Step S5, select relevant parameters in station, which BUG affirmation need begin checking from, avoids omitting phenomenon;
The script of step S6, importing step S3 begins test;
Step S7, the process of checking test and result judge whether test is passed through;
Step S8, if test is passed through, change step S9, otherwise execution in step S4;
Step S9, finish.
4. wireless communication module according to claim 3 uses the AT order to carry out BUG regression test method, it is characterized in that:
Script among the described step S3 comprises following content:
The BUG content;
Open serial port command;
The link block order;
The order of SM phone directory is set;
The coded system order is set;
Checking BUG operational order;
Close serial port command.
5. wireless communication module according to claim 4 uses the AT order to carry out BUG regression test method, it is characterized in that:
Script among the described step S3 comprises following content:
-BUG content: edit phone directory under the UCS2 coded system, name length surpasses 6 words can't edit successful problem;
-open serial ports DevOpen GerneralDLL.dll 0 dut1 00;
-link block DevFind GerneralDLL.dll AT OK dut1 00;
-SM phone directory DevQuery GerneralDLL.dll AT+CPBS=" SM " dut1 00 is set;
-coded system is set for " UCS2 " DevQuery GerneralDLL.dllAT+CSCS=" UCS2 " dut1 00;
-editor name length is 6 DevFind GerneralDLL.dllAT+CPBW=1, " 123 ", 129, " 003100320033003400350036 " OK dut1 00;
-editor name length surpasses 6 DevFind GerneralDLL.dllAT+CPBW=1, " 123 ", 129, " 0031003200330034003500360037 " OK dut1 00;
-close serial ports DevClose GerneralDLL.dll 0 dut1 00.
6. wireless communication module according to claim 3 uses the AT order to carry out BUG regression test method, it is characterized in that:
The parameter of selecting among the described step S4 comprises phone directory, SMS, CALL.
7. wireless communication module according to claim 3 uses the AT order to carry out BUG regression test method, it is characterized in that:
Among the described step S8, if test is passed through, then return affirmation, the while automated test tool can store this BUG into the relevant position and call in order to checking next time, changes step S9; Otherwise execution in step S4.
8. wireless communication module according to claim 3 uses the AT order to carry out BUG regression test method, it is characterized in that:
Described method comprises the steps:
Step S1, use Serial Port Line connect wireless communication module and PC;
Step S2, select the parameter of serial ports and baud rate in Config, this parameter must be identical with the serial ports and the baud rate of wireless module, confirms that AT order communication is normal;
Step S3, the form with text document in editing machine are write test script, and content comprises AT order and each parameter-definition and correct operating result;
Step S4, in project, select relevant parameters, comprise phone directory, SMS, CALL, confirm the function items of test;
Step S5, select relevant parameters in station, which BUG affirmation need begin checking from, avoids omitting phenomenon;
The script of step S6, importing step S3 begins test;
Step S7, check that on Progress one hurdle the process of test and result judge whether test is passed through;
Step S8, if test is passed through, change step S9, otherwise execution in step S4;
Step S9, finish.
CN2010102976829A 2010-09-29 2010-09-29 Method for wireless communication module to carry out BUG regression test by using AT command Pending CN101951636A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2010102976829A CN101951636A (en) 2010-09-29 2010-09-29 Method for wireless communication module to carry out BUG regression test by using AT command

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2010102976829A CN101951636A (en) 2010-09-29 2010-09-29 Method for wireless communication module to carry out BUG regression test by using AT command

Publications (1)

Publication Number Publication Date
CN101951636A true CN101951636A (en) 2011-01-19

Family

ID=43454961

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2010102976829A Pending CN101951636A (en) 2010-09-29 2010-09-29 Method for wireless communication module to carry out BUG regression test by using AT command

Country Status (1)

Country Link
CN (1) CN101951636A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107635247A (en) * 2017-09-13 2018-01-26 苏州简约纳电子有限公司 Terminal log store method in a kind of LTE automatic tests
CN111666208A (en) * 2020-05-19 2020-09-15 北京海致星图科技有限公司 Bug auto-regression method and system

Citations (4)

* 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
CN1719925A (en) * 2004-07-08 2006-01-11 中兴通讯股份有限公司 Method and apparatus for automatically testing CDMA cell phone software
CN101175284A (en) * 2006-11-01 2008-05-07 联想移动通信科技有限公司 Function testing method of portable electronic apparatus
CN101212755A (en) * 2006-12-27 2008-07-02 上海晨兴电子科技有限公司 System for automatic limit testing of mobile telephone

Patent Citations (4)

* 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
CN1719925A (en) * 2004-07-08 2006-01-11 中兴通讯股份有限公司 Method and apparatus for automatically testing CDMA cell phone software
CN101175284A (en) * 2006-11-01 2008-05-07 联想移动通信科技有限公司 Function testing method of portable electronic apparatus
CN101212755A (en) * 2006-12-27 2008-07-02 上海晨兴电子科技有限公司 System for automatic limit testing of mobile telephone

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107635247A (en) * 2017-09-13 2018-01-26 苏州简约纳电子有限公司 Terminal log store method in a kind of LTE automatic tests
CN111666208A (en) * 2020-05-19 2020-09-15 北京海致星图科技有限公司 Bug auto-regression method and system

Similar Documents

Publication Publication Date Title
CN101119522A (en) Method for simulating AT command report
US8798581B2 (en) Terminal and method for binding SIM card
US20100112997A1 (en) Local triggering methods, such as applications for device-initiated diagnostic or configuration management
CN104021082B (en) A kind of remote debugging method for browser and device
CN105933888A (en) Burning method and device of eSIM (Subscriber Identity Module) card based on NFC
CN104469737A (en) Embedded universal integrated circuit card and user subscription information activation method thereof
CN105873013A (en) Method and device for selecting operator based on e-SIM () card and mobile terminal
CN101287236B (en) Connecting method for mobile phone with double channels and mobile phone with double channels
CN103744787A (en) Cellphone automated testing method
CN101252469B (en) Multi-net elements automated testing method
CN104981027A (en) Application synchronization method and system for mobile terminals
CN104378375A (en) Remote access method for mobile phone, terminal device, server and system
CN106066802A (en) A kind of method and apparatus loading MBN file
CN101951636A (en) Method for wireless communication module to carry out BUG regression test by using AT command
CN101123483A (en) Detection method and device for service link
CN102256241A (en) Method, server and intelligent card for acquiring bearer independent protocol (BIP) information of terminal
CN103838664A (en) Pressure testing method and device
CN109144850B (en) Method and system for testing interactive communication of mobile terminal
CN108834126B (en) Card changing equipment and method
KR100585577B1 (en) Test method for mobile communication terminals based on auto-making of test scenario file
CN101299850B (en) Terminal number-baking method based on AT command
CN102012860A (en) AT (Attention) command automatic circulation test method
CN101650686A (en) Developing and using method of intelligent mobile phone based on Ethernet Over USB
CN111444109A (en) Mobile terminal UI automatic testing method and system
CN104683151A (en) Method and device for broadband troubleshooting

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20110119