Abstract:
A method is capable of testing wireless connection function of a mobile phone. Firstly, a wireless module of the mobile phone is turned on. The wireless module then searches for access points. In succession, the wireless module is connected to a first pre-set access point in the searched access points. Finally, the mobile phone accesses a first pre-set website via the wireless module and the pre-set access point.

Description:
BACKGROUND 
       [0001]    1. Technical Field 
         [0002]    The present disclosure relates to mobile phones, and particularly to a method for testing wireless connection function of a mobile phone. 
         [0003]    2. Description of Related Art 
         [0004]    Portable electronic devices such as mobile phones enjoy widespread popularity. In particular, characteristics of these devices provide users with access to information and communication outlets in ways that were never before available. To ensure the continued popularity of portable electronic devices, attempts are made to further expand the flexibility and capabilities of these portable electronic devices and to further enhance the services available to users. For example, mobile phones are now capable of accessing the Internet in different ways, such as WIFI (Wireless Fidelity). 
         [0005]    Before the mobile phones go to market, they are tested. However, it is often troublesome and time-consuming to test the wireless connection function of mobile phones in a conventional manner. 
         [0006]    Therefore, there is room for improvement within the art. 
     
    
     
       BRIEF DESCRIPTION OF THE DRAWINGS 
         [0007]    Many aspects of the embodiments can be better understood with references to the following drawings. The components in the drawings are not necessarily drawn to scale, the emphasis instead being placed upon clearly illustrating the principles of the embodiments. Moreover, in the drawings, like reference numerals designate corresponding parts throughout the several views. 
           [0008]      FIG. 1  is a block view of a system of an embodiment for testing wireless connection function of a mobile phone; 
           [0009]      FIG. 2  is a schematic view of a test parameter input interface of the system of  FIG. 1 ; 
           [0010]      FIG. 3  is a flow chart of a method of an embodiment for testing wireless connection function of a mobile phone; 
           [0011]      FIG. 4  is a detailed flow chart of a step  306  of the method of  FIG. 3 ; 
           [0012]      FIG. 5  is a detailed flow chart of a step  307  of the method of  FIG. 3 ; and 
           [0013]      FIG. 6  is a detailed flow chart of a step  308  of the method of  FIG. 3 . 
       
    
    
     DETAILED DESCRIPTION 
       [0014]    Referring to  FIGS. 1 and 2 , a system for testing wireless connection function of a mobile phone, in accordance with an embodiment, includes an access point  10  which is connected to the Internet, and a mobile phone  50  which needs to be tested. The mobile phone  50  includes a wireless module  51  (such as a WIFI module), a control module  53 , and a screen  54 . The control module  53  is capable of turning on or off the wireless module  51 . 
         [0015]    Referring to  FIG. 2 , a test parameter input interface on the screen  54  is shown to input test parameters in the control module  53 . The test parameters may include names of the access points, websites, and a test count. The test parameters can be set in different patterns. 
         [0016]    For example, in a first pattern, set an access point, such as “AP 1 ”, set a website, such as “www.1.com”, and set a test count, such as five times. Therefore, in test, the mobile phone  50  connects to the access point AP 1 , and then accesses the website “www.1.com”. The above test steps are repeated five times. 
         [0017]    In a second pattern, set a plurality of access points, such as “AP 1 ”, “AP 2 ”, “AP 3 ”, set a website, such as “www.1.com”, and do not set a test count. Therefore, in test, the mobile phone  50  in turn connects to each of the plurality of access points, and accesses the website “www.1.com” through each of the access points. 
         [0018]    In a third pattern, set an access point, such as “AP 1 ”, a plurality of websites, such as “www.1.com”, “www.2.com”, “www.3.com”; and do not set test count. Therefore, in test, the mobile phone  50  connects to the access point AP 1  for a plurality of times, and accesses a different website each time connected to the access point AP 1 . 
         [0019]    Referring to  FIG. 3 , a method for testing a wireless connection function of the mobile phone  50 , is shown as follows: 
         [0020]    In step  301 , the control module  53  of the mobile phone  50  turns on the wireless module  51 ; then go to step  302 . 
         [0021]    In step  302 , the wireless module  51  searches for access points; then go to step  303 . 
         [0022]    In step  303 , check if all of the access points listed in the test parameters are found; if all of the access points are not found, go to step  304 ; if all of the access points are found, go to step  305 . 
         [0023]    In step  304 , the mobile phone fails test. 
         [0024]    In step  305 , check the pattern of the test parameters being set; if the parameters are set in the first pattern, go to a first test mode of step  306 ; if the parameters are set in the second pattern, go to a first test mode of step  307 ; if the parameters are set in the third pattern, go to a third test mode of step  308 . 
         [0025]    Referring to  FIG. 4 , detail steps of the step  306  are shown as follows: 
         [0026]    In step  601 , the wireless module  51  connects to the access point listed in the test parameters; then go to step  602 ; 
         [0027]    In step  602 , check if the connection between the wireless module  51  and the access point is good; if it is, go to step  603 ; if it is not, go to step  304 , and the mobile phone  50  fails test. 
         [0028]    In step  603 , the mobile phone  50  accesses the website listed in the test parameters via the wireless module  51  and the access point; then go to  604 ; 
         [0029]    In step  604 , check if the mobile phone  50  successfully accesses the website; if it does, go to step  605 ; if it does not, go to step  304 , and the mobile phone  50  fails. 
         [0030]    In step  605 , a counter, whose initial count is zero, is incremented by one; then go to step  606 . 
         [0031]    In step  606 , check if the count of the counter is the same as the test count listed in the test parameters; if it is, go to step  608 ; if it is not, go to step  607 . 
         [0032]    In step  607 , the connection between the wireless module  51  and the access point is cut off; then go back to step  601 ; 
         [0033]    In step  608 , the mobile phone  50  passes the test, and the count of the counter is reset to zero. 
         [0034]    Referring to  FIG. 5 , detail steps of the step  307  are shown as follows: 
         [0035]    In step  701 , the wireless module  51  connects to the first access point listed in the test parameters; then go to step  702 . 
         [0036]    In step  702 , check if the connection between the wireless module  51  and the access point is good; if it is, go to step  703 ; if it is not, go to step  304 , and the mobile phone  50  fails. 
         [0037]    In step  703 , the mobile phone  50  accesses the website listed in the test parameters via the wireless module  51  and the access point; then go to  704 . 
         [0038]    In step  704 , check if the mobile phone  50  successfully accesses the website; if it does, go to step  705 ; if it does not, go to step  304 , and the mobile phone  50  fails. 
         [0039]    In step  705 , check if the access point is the last access point in the test parameters; if it is not, go to step  706 ; if it is, go to step  707 . 
         [0040]    In step  706 , the connection between the wireless module  51  and the access point is cut off; then go back to step  601 , and connect to next access point. 
         [0041]    In step  707 , the mobile phone  50  passes the test. 
         [0042]    Referring to  FIG. 6 , detail steps of the step  307  are shown as follows: 
         [0043]    In step  801 , the wireless module  51  connects to the access point listed in the test parameters; then go to step  802 . 
         [0044]    In step  802 , check if the connection between the wireless module  51  and the access point is good; if it is, go to step  803 ; if it is not, go to step  304 , and the mobile phone  50  fails. 
         [0045]    In step  803 , the mobile phone  50  accesses to the first website listed in the test parameters via the wireless module  51  and the access point; then go to  804 . 
         [0046]    In step  804 , check if the mobile phone  50  successfully accesses the website; if it does, go to step  805 ; if it does not, go to step  304 , and the mobile phone  50  fails. 
         [0047]    In step  805 , check if the web network is the last web network in the test parameters; if it is not, go to step  806 ; if it is, go to step  807 . 
         [0048]    In step  806 , the connection between the wireless module  51  and the access point is cut off; then go back to step  801 , and connect to the access point again to access the next website. 
         [0049]    In step  807 , the mobile phone  50  passes the test. 
         [0050]    It is to be understood, however, that even though numerous characteristics and advantages of the embodiments have been set forth in the foregoing description, together with details of the structure and function of the embodiments, the disclosure is illustrative only, and changes may be made in detail, especially in matters of shape, size, and arrangement of parts within the principles of the present disclosure to the full extent indicated by the broad general meaning of the terms in which the appended claims are expressed. 
         [0051]    It is also to be understood that the above description and the claims drawn to a method may include some indication in reference to certain steps. However, the indication used is only to be viewed for identification purposes and not as a suggestion as to an order for the steps.