CN102404768A - Automatic test method for mobile phone data network - Google Patents

Automatic test method for mobile phone data network Download PDF

Info

Publication number
CN102404768A
CN102404768A CN2011103733161A CN201110373316A CN102404768A CN 102404768 A CN102404768 A CN 102404768A CN 2011103733161 A CN2011103733161 A CN 2011103733161A CN 201110373316 A CN201110373316 A CN 201110373316A CN 102404768 A CN102404768 A CN 102404768A
Authority
CN
China
Prior art keywords
data
test
mobile phone
testing
phone network
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
CN2011103733161A
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 CN2011103733161A priority Critical patent/CN102404768A/en
Publication of CN102404768A publication Critical patent/CN102404768A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses an automatic test method for a mobile phone data network. The method comprises the following steps of: 1, starting a mobile phone data network test program; 2, entering an initial time judgment program; 3, entering a data packet test program; 4, generating LOG and saving according to test results of the steps 2 and 3; and 5, exiting the mobile phone data network test program. Compared with the prior art, the method has the advantages that the initial test time and a test web address are set during initial testing, a function of automatically testing a network state between a mobile phone and a server is realized, a request data packet is automatically sent to the server, and information such as network delay and the like between the mobile and the server is quantitatively acquired according to response data packets of the server.

Description

A kind of data in mobile phone network automatically method of testing
Technical field
The present invention relates to a kind of handset testing method, particularly relate to a kind of data in mobile phone network automatically method of testing.
Background technology
The test of data network needs manual work to carry out at present.For the test of different periods, varying strength, manual operation is more loaded down with trivial details; Some test item, needs understanding data network situation just can be tested, but does not have the method for testing of quantification.
Summary of the invention
The objective of the invention is to overcome the deficiency of prior art; A kind of data in mobile phone network automatically method of testing is provided; This invention can be accomplished the automatic test of the data network of different periods, different web sites flexibly; Provide the test result of quantification, understand data network situation between mobile phone and the server.
In order to achieve the above object, the technical scheme that the present invention adopts is: a kind of data in mobile phone network automatically method of testing, and its step is following:
Step 1, the data in mobile phone network test program that starts;
Step 2, entering time started determining program;
Step 3, entering packet test program;
Step 4, step 2,3 test result generate the LOG daily record and preserve;
Step 5, withdraw from data in mobile phone network test program.
The step of above-mentioned steps 2 described time started determining programs is following:
Step 101, judge whether the current time satisfy the time started of packet test program;
Step 102, be execution in step 3 then, otherwise wait for 5 seconds, get into step 101.
The described wait of step 102 was not imported the acquiescence preset data value under the concrete data for the user in 5 seconds, according to the concrete test program adjustment stand-by period.
The step of above-mentioned steps 3 described packet test programs is following:
Step 201, the IP address that obtains address test;
Step 202, judge whether that success gets access to legal IP;
Step 203, be then to get into step 204, otherwise OPADD resolves or network address mistake LOG daily record, and get into step 213;
Step 204, transmission ICMP request data package;
Step 205, judge whether to send successfully;
Step 206, be then to get into step 207, otherwise packet failure LOG daily record is sent in output, and get into step 211;
Step 207, reception ICMP reply data bag;
Step 208, judge whether successfully to receive;
Step 209, be then to get into step 210, otherwise output receives the overtime LOG daily record of packet, and get into step 211;
The transmission receive time delay of step 210, calculated data bag, TTL information;
Step 211, judge whether to reach preset testing time;
Step 212, be then to get into step 213, otherwise get into step 205;
Step 213, end test.
Above-mentioned steps 210 described TTL are a value in the IP protocol package.
Above-mentioned steps 211 described preset testing times are not imported the acquiescence preset data value under the concrete data for the user, according to concrete test adjustment.
Described time started, address test be preset assignment before test.
Compared with prior art; The invention has the beneficial effects as follows: when beginning to test, set test time started, address test; Realize the function of network condition between automatic testing mobile phone and the server; Automatically send request data package to server, through the reply data bag of server, the information such as mobile phone and server network delay that draw of quantification.
Description of drawings
Fig. 1 is a method flow diagram of the present invention;
Fig. 2 is step 2 of the present invention, 3 detail flowcharts.
Embodiment
Purport of the present invention is to overcome the deficiency of prior art, and a kind of data in mobile phone network automatically method of testing is provided, and ICMP is the abbreviation of English Internet Control Message Protocol, is Internet Control Message Protocol.It is a sub-protocol of TCP/IP protocol suite, is used for transmitting control message between IP main frame, router.Control messages is meant the message of logical obstructed, the network such as whether main frame can reach, route is whether available of network itself.Though these control messages are transmitting user data not, play an important role for the transmission of user data.
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 is as shown in Figure 1, a kind of data in mobile phone network automatically method of testing, and its step is following:
Step 1, the data in mobile phone network test program that starts;
Step 2, entering time started determining program;
Step 3, entering packet test program;
Step 4, step 2,3 test result generate the LOG daily record and preserve;
Step 5, withdraw from data in mobile phone network test program.
Fig. 2 is step 2 of the present invention, 3 detail flowcharts, and the step of above-mentioned steps 2 described time started determining programs is following:
Step 101, judge whether the current time satisfy the time started of packet test program;
Step 102, be execution in step 3 then, otherwise wait for 5 seconds, get into step 101.
The described wait of step 102 was not imported the acquiescence preset data value under the concrete data for the user in 5 seconds, according to the concrete test program adjustment stand-by period.
The step of above-mentioned steps 3 described packet test programs is following:
Step 201, the IP address that obtains address test;
Step 202, judge whether that success gets access to legal IP;
Step 203, be then to get into step 204, otherwise OPADD resolves or network address mistake LOG daily record, and get into step 213;
Step 204, transmission ICMP request data package;
Step 205, judge whether to send successfully;
Step 206, be then to get into step 207, otherwise packet failure LOG daily record is sent in output, and get into step 211;
Step 207, reception ICMP reply data bag;
Step 208, judge whether successfully to receive;
Step 209, be then to get into step 210, otherwise output receives the overtime LOG daily record of packet, and get into step 211;
The transmission receive time delay of step 210, calculated data bag, TTL information;
Step 211, judge whether to reach preset testing time;
Step 212, be then to get into step 213, otherwise get into step 205;
Step 213, end test.
Above-mentioned steps 211 described preset testing times are not imported the acquiescence preset data value under the concrete data for the user, according to concrete test adjustment.
Described time started, address test be preset assignment before test.
The present invention realizes the function of network condition between automatic testing mobile phone and the server.According to artificial setting, send request data package automatically to server, through the reply data bag of server, the information such as mobile phone and server network delay that draw of quantification.
The test of data network needs manual work to carry out at present.For the test of different periods, varying strength, manual operation is more loaded down with trivial details, some test item, and needs understanding data network situation just can be tested, but does not have the method for testing of quantification.This invention can be according to setting; Test assignment is accomplished in automation, reflects the situation of data network quantitatively, and can accomplish the automatic test of the data network of different periods, different web sites flexibly; Provide the test result of quantification, understand data network situation between mobile phone and the server.
The content of mentioning in the foregoing description is not to be to qualification of the present invention, and under the prerequisite that does not break away from inventive concept of the present invention, any conspicuous replacement is all within protection scope of the present invention.

Claims (6)

1. data in mobile phone network automatically method of testing, its step is following:
Step 1, the data in mobile phone network test program that starts;
Step 2, entering time started determining program;
Step 3, entering packet test program;
Step 4, step 2,3 test result generate the LOG daily record and preserve;
Step 5, withdraw from data in mobile phone network test program.
2. data in mobile phone network automatically method of testing according to claim 1 is characterized in that, the step of above-mentioned steps 2 described time started determining programs is following:
Step 101, judge whether the current time satisfy the time started of packet test program;
Step 102, be execution in step 3 then, otherwise wait for 5 seconds, get into step 101.
3. data in mobile phone network automatically method of testing according to claim 2 is characterized in that: described wait was not imported the acquiescence preset data value under the concrete data for the user in 5 seconds, according to the concrete test program adjustment stand-by period.
4. data in mobile phone network automatically method of testing according to claim 3 is characterized in that, the step of above-mentioned steps 3 described packet test programs is following:
Step 201, the IP address that obtains address test;
Step 202, judge whether that success gets access to legal IP;
Step 203, be then to get into step 204, otherwise OPADD resolves or network address mistake LOG daily record, and get into step 213;
Step 204, transmission ICMP request data package;
Step 205, judge whether to send successfully;
Step 206, be then to get into step 207, otherwise packet failure LOG daily record is sent in output, and get into step 211;
Step 207, reception ICMP reply data bag;
Step 208, judge whether successfully to receive;
Step 209, be then to get into step 210, otherwise output receives the overtime LOG daily record of packet, and get into step 211;
The transmission receive time delay of step 210, calculated data bag, TTL information;
Step 211, judge whether to reach preset testing time;
Step 212, be then to get into step 213, otherwise get into step 205;
Step 213, end test.
5. data in mobile phone network automatically method of testing according to claim 4 is characterized in that: the described preset testing time of step 211 is not imported the acquiescence preset data value under the concrete data for the user, according to concrete test adjustment.
6. according to each described data in mobile phone network automatically method of testing in the claim 1~5, it is characterized in that: described time started, address test be preset assignment before test.
CN2011103733161A 2011-11-22 2011-11-22 Automatic test method for mobile phone data network Pending CN102404768A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2011103733161A CN102404768A (en) 2011-11-22 2011-11-22 Automatic test method for mobile phone data network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2011103733161A CN102404768A (en) 2011-11-22 2011-11-22 Automatic test method for mobile phone data network

Publications (1)

Publication Number Publication Date
CN102404768A true CN102404768A (en) 2012-04-04

Family

ID=45886447

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2011103733161A Pending CN102404768A (en) 2011-11-22 2011-11-22 Automatic test method for mobile phone data network

Country Status (1)

Country Link
CN (1) CN102404768A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103338081A (en) * 2013-05-30 2013-10-02 深圳市共进电子股份有限公司 Large power wireless AP production test mode unified processing method
CN104955095A (en) * 2015-06-15 2015-09-30 腾讯科技(深圳)有限公司 Communication network detection method and communication network detection device
CN105491594A (en) * 2015-11-24 2016-04-13 小米科技有限责任公司 Network connection processing method and device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2002027564A1 (en) * 2000-09-25 2002-04-04 Wireless Valley Communications, Inc. System and method for design, tracking, measurement, prediction and optimization of data communications networks
CN1744529A (en) * 2004-08-31 2006-03-08 英业达股份有限公司 Automatic test method for multi web site performance
CN101547466A (en) * 2009-05-05 2009-09-30 广东高新兴通信股份有限公司 An automatic call-testing system and method used to test the quality of the mobile communication network

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2002027564A1 (en) * 2000-09-25 2002-04-04 Wireless Valley Communications, Inc. System and method for design, tracking, measurement, prediction and optimization of data communications networks
CN1744529A (en) * 2004-08-31 2006-03-08 英业达股份有限公司 Automatic test method for multi web site performance
CN101547466A (en) * 2009-05-05 2009-09-30 广东高新兴通信股份有限公司 An automatic call-testing system and method used to test the quality of the mobile communication network

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103338081A (en) * 2013-05-30 2013-10-02 深圳市共进电子股份有限公司 Large power wireless AP production test mode unified processing method
CN104955095A (en) * 2015-06-15 2015-09-30 腾讯科技(深圳)有限公司 Communication network detection method and communication network detection device
CN105491594A (en) * 2015-11-24 2016-04-13 小米科技有限责任公司 Network connection processing method and device

Similar Documents

Publication Publication Date Title
EP3331205B1 (en) Data packet transmission method utilized in ipv6 network and device utilizing same
JP2012514414A5 (en)
RU2012136596A (en) LOCAL IP ACCESS DIAGRAM
EP2787742A1 (en) Method and system for transmitting network video
US20120269126A1 (en) Method for controlling wireless router and wireless router
JP2007235197A (en) Communication system, server thereof and terminal device
EP3073339A1 (en) Automatic inspection and monitoring method based on time domain slotting control
CN107820100A (en) internet audio and video playing method and device
CN113489625B (en) Network card testing method and device, electronic equipment and computer readable storage medium
WO2012062108A1 (en) Test system and test method
CN102404768A (en) Automatic test method for mobile phone data network
CN103052089A (en) Network detection method and network detection device for mobile terminal
WO2008063481A3 (en) Network audio directory server and method
US10505890B2 (en) Network access method, system and terminal device, and computer storage medium
US9648159B2 (en) Single-PDP dual stack serial dialing method and system
US10412778B2 (en) Data transmission method and apparatus for data service
US9723553B2 (en) Method, network device, computer program and computer program product for determining a set of power state parameters
CN108650310B (en) Service discovery method
CN104796874B (en) Information binding method and device
Puustinen et al. The effect of unwanted internet traffic on cellular phone energy consumption
WO2008049853A3 (en) Methods, apparatuses and computer program for improving sip parse performance
CN102413179A (en) Automatic power-on or wake-up machine and power-on or wake-up method thereof
WO2008093199A3 (en) Submit report handling in smsip
CN102625332A (en) Method for detecting network routing
JP2009065404A (en) Communication failure segmentation method, video distribution system having communication failure segmentation function, and receiving terminal

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: 20120404