CN102355641A - Method for carrying out automated test on group control of short messages - Google Patents

Method for carrying out automated test on group control of short messages Download PDF

Info

Publication number
CN102355641A
CN102355641A CN2011102462764A CN201110246276A CN102355641A CN 102355641 A CN102355641 A CN 102355641A CN 2011102462764 A CN2011102462764 A CN 2011102462764A CN 201110246276 A CN201110246276 A CN 201110246276A CN 102355641 A CN102355641 A CN 102355641A
Authority
CN
China
Prior art keywords
test
mobile phone
program
note
log
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
CN2011102462764A
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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN2011102462764A priority Critical patent/CN102355641A/en
Publication of CN102355641A publication Critical patent/CN102355641A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Mobile Radio Communication Systems (AREA)
  • Telephone Function (AREA)

Abstract

The invention discloses a method for carrying out an automated test on the group control of short messages, and the method is implemented as follows: a mobile phone can realize a test mode of triggering an amount of mobile phones to automatically execute an automated test and report errors by way of short messages through presetting automated test software in a tested mobile phone, wherein the automated test software can receive short messages, and automatically execute automated tests according to the short messages, and send error reports. The method is characterized in that once receiving information, all mobile phones immediately run related items in an automated test tool; once a mobile phone participating in the test has errors, log information can be produced in a specified folder in the mobile phone; if the mobile phone participating in the test does not lose the communication capacity, i.e., the mobile phone does not has a system crash, an error-reporting short message is produced timely and replied to an exciting mobile phone; if the mobile phone participating in the test has a system crash, system restart can be performed, and after the system restart is completed, an error-reporting short message is sent to the exciting mobile phone to carry out notification; and if no error occur, the mobile phones participating in the test continues to wait for receiving instruction short messages.

Description

The method of a kind of SMS selective-collective type test
Technical field
The present invention relates to the automated testing method that a kind of need are tested a large amount of mobile phone samples fast, particularly relate to the method for a kind of SMS selective-collective type test.
Background technology
Development along with the science and technology and the communications industry; Mobile phone is increasing to be used in the middle of the people's the life; Test for the various functions of mobile phone; At present general employing adds the mode of manual combination automatically; And need mobile phone and PC end to carry out simultaneously; Needing the tester to exercise supervision at the scene and check could normal operation; What is more important; Each mobile phone all needs a test man to go operation, and the result is checked in test; Past contact is because some cause specifics; The test errors feedback is not prompt enough, has so just expended manpower and materials greatly, and operating efficiency is quite low.
Summary of the invention
The objective of the invention is to overcome the deficiency of prior art; The scheme of a kind of SMS selective-collective type test is provided; Can realize that a mobile phone drives a large amount of mobile phones and carries out automatic test; Testing equipment is simple; Test errors is in time fed back; Be easy to control, saved plenty of time and manpower, improved efficient.
In order to achieve the above object, the technical scheme that the present invention adopts is, the method for a kind of SMS selective-collective type test, and its step is following:
Step 1, program are waited for and are received note;
Step 2, judge whether note instruction triggers test;
Step 3, do not trigger and then return step 1, trigger test and then carry out automatic test by parameter;
Step 4, judge whether automatic test makes mistakes;
Step 5, test do not make mistakes and then return step 1, and program is made mistakes and then sent abnormal information and give and return step 1 after exciting mobile phone.
The detailed step of automated testing method is following:
Step 101, testing mobile phone are all installed the automatic test program;
Step 102, testing mobile phone are all loaded onto the mobile phone card, and phone number is given record;
Step 103, excite the address list of mobile phone to preserve all phone numbers to be tested and sort out group;
Step 104, testing mobile phone start are left standstill, and open automatic test program and running background;
Step 105, excite mobile phone editor set form parameter information and send to all mobile phones to be tested;
Step 106, testing mobile phone receive note, and the automatic test program begins anticipation SMS content;
Step 107, being not the note execution in step 104 then of specifying content, is to specify then intercepting note of the note parameter of content and preserve;
Step 108, carry out automatic test software according to parameter;
Whether step 109, judge to fail in the automatic test course and produce log, then do not skip to step 112 because of failure produces log, be then to continue to judge whether to be to assert that log causes crashing;
Step 110, be to assert that log causes crashing then to restart machine and execution in step 111, otherwise direct execution in step 111;
Step 111, transmission abnormal information are to designated mobile phone, and preservation log tabulation;
Step 112, judge whether to finish this program through the note parameter;
Step 113, be then to finish the automatic test program, otherwise continue execution in step 104.
Automatic test described in the above-mentioned steps 101 comprises automatically a large amount of unordered operational testing with note parameter operation designated module, with test program under a large amount of unordered operations stability and whether can make mistakes because of various a large amount of and unordered operations.
Log described in the above-mentioned steps 109 is at the program running automatic test, any collapse occurs in promptly unordered a large amount of operation, crashes, and program is made mistakes, and positive closing all can generate log; The log information representation be the type that program is made mistakes, code line is shown to the code line of makeing mistakes with the stack recursive mode always, and make mistakes before mobile phone operation behavior and mobile phone state information.
Note parameter described in the above-mentioned steps 105 comprises the test module code name, and the test seed number is tested time of delay, test operation total degree, control phone number etc.
The note of the given content described in the above-mentioned steps 106 comprises two parts, and first is that the number that sends mobile phone is to specify number, and second is the content that the short message content that sends is meant the formula of fixing; Format content is following, 1-1-200-50000 or 1+2-1-200-50000, and the each several part parameter is with "-" sign field separately.
First parameter is represented the module code name, first module of " 1 " representative test, and first module and second module are tested in " 1+2 " representative simultaneously, if be set to " 0 " then carry out module testing at random;
Second parameter representative species subnumber, different seed number can produce different random test sequences;
The 3rd parameter representative postpones to describe, and unit is a millisecond, sets the time of delay between two operations;
The 4th parameter represented the test operation total degree, and test program stops after can carrying out unordered operation how many times.
Compared with prior art, the invention has the beneficial effects as follows:
The first, testing equipment is simple, only need one can bulk SMS mobile phone just can test whenever and wherever possible, the tester even need also can far distance controlled test in test site;
The second, simple to operate, to the test of many machines, only need a note to trigger, test triggers accomplishes the foolization;
Three, test can automatically perform, and much platform is carried out simultaneously, can only control execution by a people;
Four, test comprehensively can be through each functional module on the automated test tool comprehensive automation testing mobile phone;
Whether five, error feedback is timely, do not need one one inspection wrong, timely feedback simultaneously, and one wrongly can allow the tester know, and does not have the geographical position limitation;
Six, for the automatic test of many mobile phones of large tracts of land operation and convenient and be prone to control, save the plenty of time manpower, can realize uninterrupted test in 24 hours by the timing SMS function.
Description of drawings
Fig. 1 is a method flow diagram of the present invention;
Fig. 2 is this automatic test program execution flow figure.
Embodiment
The objective of the invention is to overcome the deficiency of prior art; The method of a kind of SMS selective-collective type test is provided; Can realize that a mobile phone drives a large amount of mobile phones and carries out automatic test; Testing equipment is simple; Test errors is in time fed back; Be easy to control, saved plenty of time and manpower, improved efficient.
The present invention comes large-scale all mobile phones that automated test tool is housed that start to test automatically through way of short messages; The mobile phone that receives note can be automatically carried out automatic test by parameter, continuously test until makeing mistakes to corresponding module, during do not need the tester to operate to look after, independently accomplish test automatically; Through the automated test tool error mechanism, timely feedback test result, Bug is found in the test of answer short message notice, accomplishes that test result in time knows, and is accurate to the designated module code line in the single test machine; Started a kind of pattern of extensive automatic test, made test turn to piecemeal automatic test from piecemeal test with this mode of note, used scale, quantity and time integral make the disordering operation also can pinpoint the problems in a large number.
Be elaborated with reference to accompanying drawing below in conjunction with embodiment, so that technical characterictic of the present invention and advantage are carried out more deep annotation.
Method flow diagram of the present invention as shown in Figure 1, the method for a kind of SMS selective-collective type test, its step is following:
Step 1, program are waited for and are received note;
Step 2, judge whether note instruction triggers test;
Step 3, do not trigger and then return step 1, trigger test and then carry out automatic test by parameter;
Step 4, judge whether automatic test makes mistakes;
Step 5, test do not make mistakes and then return step 1, and program is made mistakes and then sent abnormal information and give and return step 1 after exciting mobile phone.
As shown in Figure 2, the detailed step of automated testing method is following:
Step 101, testing mobile phone are all installed the automatic test program;
Step 102, testing mobile phone are all loaded onto the mobile phone card, and phone number is given record;
Step 103, excite the address list of mobile phone to preserve all phone numbers to be tested and sort out group;
Step 104, testing mobile phone start are left standstill, and open automatic test program and running background;
Step 105, excite mobile phone editor set form parameter information and send to all mobile phones to be tested;
Step 106, testing mobile phone receive note, and the automatic test program begins anticipation SMS content;
Step 107, being not the note execution in step 104 then of specifying content, is to specify then intercepting note of the note parameter of content and preserve;
Step 108, carry out automatic test software according to parameter;
Whether step 109, judge to fail in the automatic test course and produce log, then do not skip to step 112 because of failure produces log, be then to continue to judge whether to be to assert that log causes crashing;
Step 110, be to assert that log causes crashing then to restart machine and execution in step 111, otherwise direct execution in step 111;
Step 111, transmission abnormal information are to designated mobile phone, and preservation log tabulation;
Step 112, judge whether to finish this program through the note parameter;
Step 113, be then to finish the automatic test program, otherwise continue execution in step 104.
Automatic test described in the above-mentioned steps 101 comprises automatically a large amount of unordered operational testing with note parameter operation designated module, with test program under a large amount of unordered operations stability and whether can make mistakes because of various a large amount of and unordered operations.
Log described in the above-mentioned steps 109 is at the program running automatic test, any collapse occurs in promptly unordered a large amount of operation, crashes, and program is made mistakes, and positive closing all can generate log; The log information representation be the type that program is made mistakes, code line is shown to the code line of makeing mistakes with the stack recursive mode always, and make mistakes before mobile phone operation behavior and mobile phone state information.
Note parameter described in the above-mentioned steps 105 comprises the test module code name, and the test seed number is tested time of delay, test operation total degree, control phone number etc.
The note of the given content described in the above-mentioned steps 106 comprises two parts, and first is that the number that sends mobile phone is to specify number, and second is the content that the short message content that sends is meant the formula of fixing; Format content is following, 1-1-200-50000 or 1+2-1-200-50000, and the each several part parameter is with "-" sign field separately.
First parameter is represented the module code name, first module of " 1 " representative test, and first module and second module are tested in " 1+2 " representative simultaneously, if be set to " 0 " then carry out module testing at random;
Second parameter representative species subnumber, different seed number can produce different random test sequences;
The 3rd parameter representative postpones to describe, and unit is a millisecond, sets the time of delay between two operations;
The 4th parameter represented the test operation total degree, and test program stops after can carrying out unordered operation how many times.
The automated test tool brief introduction is following:
This instrument passes through Android system intialization triggering command, and in test process, can produce the log daily record of TXT text formatting when makeing mistakes.Excite mobile phone to send preset information, after in a single day all mobile phones receive information, promptly move the relevant item in the automated test tool to all mobile phones of participating in test.Make mistakes in case participate in the mobile phone of test, the mobile phone inside of participating in test can produce log information under specified folder.If participate in the lost communication capacity of the mobile phone of test, promptly system does not collapse, and then in time produces the note that reports an error, and is returned to and excites mobile phone, excites mobile phone promptly to send the mobile phone that the test command note is given tested test-run a machine; If participate in the cell phone system collapse of test, system can restart, and after restarting, the mobile phone file system will detect the difference in the specified folder, restarts function and carries for the mobile phone file system, and specified folder is variant, promptly sends number and notifies to triggering mobile phone.
Carry out automatic test and need a series of parameter.These parameter introductions are following:
The module code name: the corresponding corresponding module of corresponding code name is the module that the user can select need oneself to feel test; Trigger index: i.e. SEED, different SEED produces different random test sequence appearance, and the chance event that same SEED carries out out is the same, can reappear problem through same SEED; The test time delay: the interval between per two random actions is a unit with the millisecond, if do not have time delay or time delay very little, may cause procedure termination; Testing time: the number of clicks that promptly produces random test; Log is checked in click: can check the log that problem produced that this instrument test back mobile phone occurs, the log title is with " bag name "+" date "+" time " .txt name.
Program of the present invention is made the backstage service mode, the back system is installed once starting operation; For preventing to assert that deadlock Log does not send, program travels through at the beginning searches acquiescence Log file, as produce new Log just abnormal information is sent to before on the predetermined number of preservation; Program backstage is always monitored note, and whether one comes note promptly to analyze triggers the automatic test software operation, if the given content note promptly triggers the automatic test process; If failure generation Log system does not collapse then abnormal information is sent to assigned number; Preserve having deposited the Log tabulation in the specified folder after producing new Log, so that restart the traversal inspection of start back; No matter fail or successful automatic test end back program continuation continuation monitoring note setup test on the backstage; If produce deadlock Log then restart automatically, begin this program once more.
Although the present invention has made the clear description of accomplishing through instantiation to how realizing the test of SMS selective-collective type; But the present invention is not limited only to said embodiment, and to reach identical purpose be contingent and all be included in the present invention through simple reprogramming.

Claims (6)

1. the method for SMS selective-collective type test, its step is following:
Step 1, program are waited for and are received note;
Step 2, judge whether note instruction triggers test;
Step 3, do not trigger and then return step 1, trigger test and then carry out automatic test by parameter;
Step 4, judge whether automatic test makes mistakes;
Step 5, test do not make mistakes and then return step 1, and program is made mistakes and then sent abnormal information and give and return step 1 after exciting mobile phone.
2. the method for SMS selective-collective type according to claim 1 test is characterized in that, the detailed step of described automatic test is following:
Step 101, testing mobile phone are all installed the automatic test program;
Step 102, testing mobile phone are all loaded onto the mobile phone card, and phone number is given record;
Step 103, excite the address list of mobile phone to preserve all phone numbers to be tested and sort out group;
Step 104, testing mobile phone start are left standstill, and open automatic test program and running background;
Step 105, excite mobile phone editor set form parameter information and send to all mobile phones to be tested;
Step 106, testing mobile phone receive note, and the automatic test program begins anticipation SMS content;
Step 107, being not the note execution in step 104 then of specifying content, is to specify then intercepting note of the note parameter of content and preserve;
Step 108, carry out automatic test software according to parameter;
Whether step 109, judge to fail in the automatic test course and produce log, then do not skip to step 112 because of failure produces log, be then to continue to judge whether to be to assert that log causes crashing;
Step 110, be to assert that log causes crashing then to restart machine and execution in step 111, otherwise direct execution in step 111;
Step 111, transmission abnormal information are to designated mobile phone, and preservation log tabulation;
Step 112, judge whether to finish this program through the note parameter;
Step 113, be then to finish the automatic test program, otherwise continue execution in step 104.
3. the method for SMS selective-collective type according to claim 2 test; It is characterized in that: the automatic test described in the step 101 comprises automatically a large amount of unordered operational testing with note parameter operation designated module, with test program under a large amount of unordered operations stability and whether can make mistakes because of various a large amount of and unordered operations.
4. the method for SMS selective-collective type according to claim 3 test; It is characterized in that: the log described in the step 102 occurs any collapse at the program running automatic test in promptly unordered a large amount of operation, crashes; Program is made mistakes, and positive closing all can generate log; The log information representation be the type that program is made mistakes, code line is shown to the code line of makeing mistakes with the stack recursive mode always, and make mistakes before mobile phone operation behavior and mobile phone state information.
5. the method for SMS selective-collective type according to claim 4 test; It is characterized in that: the note of the given content described in the step 104 comprises two parts; First is that the number that sends mobile phone is to specify number, and second is the content that the short message content that sends is meant the formula of fixing.
6. the method for SMS selective-collective type according to claim 5 test; It is characterized in that: the note parameter described in the step 105 comprises the test module code name; The test seed number; Test time of delay; The test operation total degree; The control phone number, whether test withdraws from the automatic test program after accomplishing.
CN2011102462764A 2011-08-25 2011-08-25 Method for carrying out automated test on group control of short messages Pending CN102355641A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2011102462764A CN102355641A (en) 2011-08-25 2011-08-25 Method for carrying out automated test on group control of short messages

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2011102462764A CN102355641A (en) 2011-08-25 2011-08-25 Method for carrying out automated test on group control of short messages

Publications (1)

Publication Number Publication Date
CN102355641A true CN102355641A (en) 2012-02-15

Family

ID=45579122

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2011102462764A Pending CN102355641A (en) 2011-08-25 2011-08-25 Method for carrying out automated test on group control of short messages

Country Status (1)

Country Link
CN (1) CN102355641A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102880549A (en) * 2012-09-26 2013-01-16 广东欧珀移动通信有限公司 Method and device for production test
CN103927257A (en) * 2013-01-16 2014-07-16 珠海市君天电子科技有限公司 Method and device for triggering android behavior event
CN105004957A (en) * 2015-07-31 2015-10-28 福州瑞芯微电子股份有限公司 SD card test method and test device
CN106294119A (en) * 2015-06-24 2017-01-04 北京京东尚科信息技术有限公司 Test dispatching system, method and terminal unit
CN106792597A (en) * 2017-03-22 2017-05-31 世纪恒通科技股份有限公司 A kind of short, multimedia message test system and method

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1179776A1 (en) * 2000-08-11 2002-02-13 Sony Service Centre (Europe) N.V. Test automation framework
CN101212755A (en) * 2006-12-27 2008-07-02 上海晨兴电子科技有限公司 System for automatic limit testing of mobile telephone
CN101287266A (en) * 2008-05-30 2008-10-15 德信无线通讯科技(北京)有限公司 Test system and method for mobile phone
CN101335960A (en) * 2007-06-26 2008-12-31 英华达(上海)电子有限公司 Method and system implementing mobile phone automatic test
CN101500255A (en) * 2008-02-03 2009-08-05 中国移动通信集团公司 Mobile terminal test method and system
CN101626552A (en) * 2009-07-20 2010-01-13 厦门敏讯信息技术股份有限公司 Method for testing terminal with short message and platform device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1179776A1 (en) * 2000-08-11 2002-02-13 Sony Service Centre (Europe) N.V. Test automation framework
CN101212755A (en) * 2006-12-27 2008-07-02 上海晨兴电子科技有限公司 System for automatic limit testing of mobile telephone
CN101335960A (en) * 2007-06-26 2008-12-31 英华达(上海)电子有限公司 Method and system implementing mobile phone automatic test
CN101500255A (en) * 2008-02-03 2009-08-05 中国移动通信集团公司 Mobile terminal test method and system
CN101287266A (en) * 2008-05-30 2008-10-15 德信无线通讯科技(北京)有限公司 Test system and method for mobile phone
CN101626552A (en) * 2009-07-20 2010-01-13 厦门敏讯信息技术股份有限公司 Method for testing terminal with short message and platform device

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102880549A (en) * 2012-09-26 2013-01-16 广东欧珀移动通信有限公司 Method and device for production test
CN103927257A (en) * 2013-01-16 2014-07-16 珠海市君天电子科技有限公司 Method and device for triggering android behavior event
CN106294119A (en) * 2015-06-24 2017-01-04 北京京东尚科信息技术有限公司 Test dispatching system, method and terminal unit
CN105004957A (en) * 2015-07-31 2015-10-28 福州瑞芯微电子股份有限公司 SD card test method and test device
CN106792597A (en) * 2017-03-22 2017-05-31 世纪恒通科技股份有限公司 A kind of short, multimedia message test system and method

Similar Documents

Publication Publication Date Title
CN104050075B (en) The method of testing and device of Andriod application programs
CN108366067B (en) System and method for testing consistency of universal service protocol of power system
CN102355641A (en) Method for carrying out automated test on group control of short messages
CN109710508A (en) Test method, test device, test equipment and computer readable storage medium
CN105426278A (en) Client equipment performance test method and system
WO2012104488A1 (en) Arrangement and method for model-based testing
CN102662828A (en) A method and device for achieving software automatic testing
CN109684847A (en) Self-repairing method, device, equipment and the storage medium of script loophole
CN102014016A (en) System and method for testing defects of network protocol
CN108322348B (en) Transformer substation monitoring information automatic acceptance signal triggering operation subsystem and method
CN111881014B (en) System test method, device, storage medium and electronic equipment
CN105955749A (en) Continuous software project integration method and device
CN107819611B (en) Client test method based on IEC61850 multi-server simulation
CN108984389A (en) A kind of applied program testing method and terminal device
CN110740071B (en) Method, device and system for monitoring network interface
CN105718340A (en) Crontab-based CPU stability test method
CN104794057A (en) Automatic testing method and device for crossed event
CN115221058B (en) Automatic software testing system and method
CN113051180A (en) Test task monitoring method, device, equipment and storage medium
CN109491883A (en) Performance detects control methods and system simultaneously between applying under a kind of Android platform more
CN103645985B (en) Source code macro-matching detection method
CN109141588B (en) Automatic simulation test system for gas meter
CN115080389A (en) Test system, method, equipment and storage medium for improving index statistical efficiency
CN110198222B (en) Plug-and-play test method and test master station for power distribution automation terminal
CN114238081A (en) Method and system suitable for small satellite batch test

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20120215