CN107509212B - Test method and test system for mobile terminal - Google Patents

Test method and test system for mobile terminal Download PDF

Info

Publication number
CN107509212B
CN107509212B CN201710950321.1A CN201710950321A CN107509212B CN 107509212 B CN107509212 B CN 107509212B CN 201710950321 A CN201710950321 A CN 201710950321A CN 107509212 B CN107509212 B CN 107509212B
Authority
CN
China
Prior art keywords
network configuration
network
mobile
configuration information
operator name
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.)
Active
Application number
CN201710950321.1A
Other languages
Chinese (zh)
Other versions
CN107509212A (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.)
Shanghai Chuanying Information Technology Co Ltd
Original Assignee
Shanghai Spreadrise Technologies 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 Spreadrise Technologies Co Ltd filed Critical Shanghai Spreadrise Technologies Co Ltd
Priority to CN201710950321.1A priority Critical patent/CN107509212B/en
Publication of CN107509212A publication Critical patent/CN107509212A/en
Application granted granted Critical
Publication of CN107509212B publication Critical patent/CN107509212B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/02Arrangements for optimising operational condition

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Telephone Function (AREA)

Abstract

The invention provides a test method and a test system for a mobile terminal, wherein the test method comprises the following steps: the computer acquires a first network configuration file and a second network configuration file from the mobile terminal; judging whether a preset operator name preset in the computer is consistent with a target operator name in the first network configuration file or not; when the preset operator name is consistent with the target operator name, acquiring a group of target network configuration information from the second network configuration file; judging whether the target network configuration information is consistent with preset network configuration information preset in the computer or not; and when the target network configuration information is consistent with the preset network configuration information, displaying the test result on a display interface of the computer. After the technical scheme is adopted, the test process aiming at the network configuration information is conveniently and rapidly completed, the operation steps are saved, and the working efficiency is improved.

Description

Test method and test system for mobile terminal
Technical Field
The present invention relates to the field of mobile terminal technologies, and in particular, to a test method and a test system for a mobile terminal.
Background
At present, mobile terminal devices such as smart phones, wireless network card devices, and POS devices accessing a mobile network have become an indispensable part of daily life of people, and are convenient for users to implement various functions, such as communication with the outside, data interaction, and internet access. Due to the development of mobile communication technology, the mobile networks have moved from the first analog signal networks to digital signal networks, which are divided into different stages of development, including second generation mobile networks based on GSM, third generation mobile networks based on CDMA and TDMA technologies, and fourth generation mobile networks based on LTE and FDD, and the fifth generation mobile network standard has been established. The various mobile networks coexist all over the world, and for example, in China, various mobile networks from the second generation to the fourth generation exist simultaneously, different mobile network types also exist in the same generation of mobile network, and mobile network operators mainly based on China Mobile, China Unicom and China telecom are respectively responsible for respective mobile network operation. In foreign countries, different countries may use different mobile networks, and even the same country may have multiple mobile network operators, respectively operating the same or different types of mobile networks; in some dense small countries, there may be operators across countries that operate mobile networks in multiple countries in unison.
China has become a large research, development and manufacture country of mobile terminals, a large number of mobile terminals are exported to foreign countries, and in order to meet the change requirements of different foreign countries, different mobile network types and different operators, network configuration files recording various network configuration parameters need to be stored in the mobile terminals, so that appropriate network configurations can be selected in different application occasions to realize connection with local mobile networks. When leaving a factory, in order to ensure that the network configuration parameters are correct, the network configuration in the mobile terminal needs to be checked and verified, and the verification mode in the prior art is to insert a foreign SIM card into the mobile terminal, then start the mobile terminal to enter a network configuration interface, and check whether the network configuration parameters are correct. The prior art still has the following problems:
1. the SIM card is required to be inserted for verification, different SIM cards are required for different countries, and the cost is higher;
2. inserting and extracting the SIM card, and starting up consume a lot of operation time, so that the detection efficiency is low.
Therefore, a new testing method for testing the network configuration information of the mobile terminal is needed, so that an operator can conveniently and quickly complete the test of the network configuration information, operation steps are saved, and the working efficiency is improved.
Disclosure of Invention
In order to overcome the technical defects, the invention aims to provide a test method and a test system for a mobile terminal, which are used for obtaining a network configuration file in the mobile terminal on a computer connected with the mobile terminal, comparing network configuration information and finally obtaining a test result.
In a first aspect of the present application, a testing method for a mobile terminal is disclosed, which includes the following steps:
a computer connected with the mobile terminal acquires a first network configuration file and a second network configuration file from the mobile terminal;
aiming at the same mobile network of the same country, judging whether a preset operator name preset in the computer is consistent with a target operator name in the first network configuration file or not;
when the preset operator name is consistent with the target operator name, acquiring a group of target network configuration information corresponding to the country and the mobile network from the second network configuration file;
judging whether the target network configuration information is consistent with preset network configuration information which is preset in the computer and corresponds to the country and the mobile network;
and when the target network configuration information is consistent with the preset network configuration information, obtaining a test result, and displaying the test result on a display interface of the computer.
In certain embodiments of the first aspect of the present application, the step of obtaining, by a computer connected to the mobile terminal, a first network profile and a second network profile from within the mobile terminal comprises:
the computer runs an android operating system debugging tool;
and controlling the android operating system debugging tool to run twice file import commands, and respectively importing the first network configuration file and the second network configuration file in the mobile terminal into the computer.
In certain embodiments of the first aspect of the present application, the step of determining whether a preset operator name preset in the computer is consistent with the target operator name in the first network profile includes:
selecting a group of mobile equipment country codes and mobile network numbers preset in the computer;
acquiring a preset operator name corresponding to the country code and the mobile network number of the mobile equipment in a storage area of the computer;
acquiring a country code of the mobile equipment and a target operator name corresponding to a mobile network number in the first network configuration file;
and judging whether the preset operator name is consistent with the target operator name or not.
In some embodiments of the first aspect of the present application, when a set of target network configuration information corresponding to the country and the mobile network is obtained from the second network configuration file, the target network configuration information at least includes an APN network identifier, a network type, a network port, and a network protocol.
In certain embodiments of the first aspect of the present application, the step of displaying the test result on the display interface of the computer is replaced by the steps of:
for the mobile networks of all countries in the first network configuration file, the steps of judging whether the names of the operators are consistent, acquiring target network configuration information and judging whether the network configuration information is consistent are repeatedly executed until the network configurations of the mobile networks of all countries are tested;
recording a test result for the mobile network of each country;
and displaying the test result on a display interface of the computer or the mobile terminal.
In a second aspect of the present application, a test system for a mobile terminal is also disclosed, the test system comprising:
the configuration file acquisition module is arranged in a computer connected with the mobile terminal and used for acquiring a first network configuration file and a second network configuration file from the mobile terminal;
the operator name judging module is connected with the configuration file acquiring module and is used for judging whether a preset operator name preset in the computer is consistent with a target operator name in the first network configuration file or not aiming at the same mobile network of the same country;
a network configuration information obtaining module, connected to the configuration file obtaining module and the operator name judging module, for obtaining a set of target network configuration information corresponding to the country and the mobile network from the second network configuration file when the operator name judging module judges that the preset operator name is consistent with the target operator name;
a network configuration information judging module, connected to the network configuration information acquiring module, for judging whether the target network configuration information is consistent with preset network configuration information corresponding to the country and the mobile network, which is preset in the computer;
and the test result processing module is connected with the network configuration information judging module, and when the network configuration information judging module judges that the target network configuration information is consistent with the preset network configuration information, a test result is obtained and displayed on a display interface of the computer.
In certain embodiments of the second aspect of the present application, the profile acquisition module comprises:
the operation unit is used for operating an android operating system debugging tool;
and the importing unit is connected with the running unit, controls the android operating system debugging tool to run the file importing command twice, and respectively imports the first network configuration file and the second network configuration file in the mobile terminal into the computer.
In certain embodiments of the second aspect of the present application, the operator name determining module comprises:
a selection unit for selecting a group of country codes and mobile network numbers of mobile devices preset in the computer;
the preset operator name acquisition unit is connected with the selection unit and acquires a preset operator name corresponding to the country code and the mobile network number of the mobile equipment in a storage area of the computer;
the target operator name acquisition unit is connected with the selection unit and acquires a target operator name corresponding to the country code and the mobile network number of the mobile equipment in the first network configuration file;
and the judging unit is connected with the preset operator name acquiring unit and the target operator name acquiring unit and is used for judging whether the preset operator name is consistent with the target operator name or not.
In some embodiments of the second aspect of the present application, when the network configuration information obtaining module obtains a set of target network configuration information corresponding to the country and the mobile network from the second network configuration file, the target network configuration information at least includes an APN network identifier, a network type, a network port, and a network protocol.
In certain embodiments of the second aspect of the present application, the test result processing module is replaced with the following module:
the repeated execution module is used for repeatedly executing the operator name judgment module, the network configuration information acquisition module and the network configuration information judgment module aiming at the mobile networks of all the countries in the first network configuration file until the network configurations of the mobile networks of all the countries are tested;
the recording module is connected with the repeated execution module and records a test result aiming at the mobile network of each country;
and the display module is connected with the recording module and displays the test result on a display interface of the computer or the mobile terminal.
After the technical scheme is adopted, compared with the prior art, the method has the following beneficial effects:
1. the test process aiming at the network configuration information is conveniently and quickly completed, the operation steps are saved, and the working efficiency is improved;
2. the test can be finished without inserting an SIM card into the mobile terminal, so that the cost is saved.
Drawings
FIG. 1 is a flow chart illustrating a testing method for a mobile terminal in accordance with a preferred embodiment of the present invention;
FIG. 2 is a schematic flow chart illustrating the operation of step S101 in FIG. 1 according to a preferred embodiment of the present invention;
FIG. 3 is a flowchart illustrating the detailed process of step S102 in FIG. 1 according to a preferred embodiment of the present invention;
FIG. 4 is a flow chart illustrating a testing method for a mobile terminal according to another preferred embodiment of the present invention;
FIG. 5 is a block diagram of a test system for a mobile terminal in accordance with a preferred embodiment of the present invention;
FIG. 6 is a block diagram illustrating a configuration file acquisition module of FIG. 5 according to a preferred embodiment of the present invention;
FIG. 7 is a block diagram illustrating a structure of an operator name determination module shown in FIG. 5 according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of a test system for a mobile terminal according to another preferred embodiment of the present invention.
Reference numerals:
10-a test system, 11-a configuration file acquisition module, 111-an operation unit, 112-an import unit, 12-an operator name judgment module, 121-a selection unit, 122-a preset operator name acquisition unit, 123-a target operator name acquisition unit, 124-a judgment unit, 13-a network configuration information acquisition module, 14-a network configuration information judgment module, 15-a test result processing module, 16-a repeated execution module, 17-a recording module and 18-a display module.
Detailed Description
The advantages of the invention are further illustrated in the following description of specific embodiments in conjunction with the accompanying drawings.
In the following description, reference is made to the accompanying drawings that describe several embodiments of the application. The following detailed description is not to be taken in a limiting sense, and the scope of embodiments of the present application is defined only by the claims of the issued patent. Spatially relative terms, such as "upper," "lower," "left," "right," "lower," "below," "lower," "above," "upper," and the like, may be used herein to facilitate describing one element or feature's relationship to another element or feature as illustrated in the figures.
Furthermore, as used herein, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context indicates otherwise, it should be further understood that the terms "comprises" and "comprising" indicate the presence of the stated features, steps, operations, elements, components, items, species, and/or groups, but do not preclude the presence, or addition of one or more other features, steps, operations, elements, components, items, species, and/or groups. A; b; c; a and B; a and C; b and C; A. b and C ". an exception to this definition will occur only when a combination of elements, functions, steps or operations are inherently mutually exclusive in some way.
Referring to fig. 1, a flow chart of a testing method for a mobile terminal according to a preferred embodiment of the invention is shown, wherein the testing method comprises the following steps:
s101: and the computer connected with the mobile terminal acquires the first network configuration file and the second network configuration file from the mobile terminal.
The computer may be a computer device such as a desktop computer, a notebook computer, or a server, which has an operating system and can support the running of programs. The computer is in wired connection with the mobile terminal through a serial port, preferably a USB serial port, and the mobile terminal is in a starting state. The first network configuration file and the second network configuration file are stored in the mobile terminal, and different types of network configurations are recorded. In this embodiment, an android operating system is installed on the mobile terminal, and the first network configuration file is spn-conf.xml and is stored in the etc directory; and the second network configuration file is apn-conf.xml and is stored under the etc directory. The method for the computer to obtain the first network configuration file and the second network configuration file can be directly copying from a directory storing the files or can be obtained through a debugging tool. If the program is acquired through a debugging tool, an ADB (Android Debug Bridge) is required to be installed on the computer, the ADB (Android Debug Bridge) is a general debugging tool provided by an Android operating system, and the program which is developed can be well debugged by the tool. The ADB's run file ADB. exe is under the platform-tools catalog of the sdk development kit of installed android. When the first network configuration file and the second network configuration file are acquired by using the ADB, using an ADB command, that is: adbpull < remote path (mobile terminal) > < local path (computer) >, where the remote path is the etc directory path, and the local path is the path in the computer where the first network profile and the second network profile are intended to be stored, files or folders on the mobile terminal may be copied into the computer.
S102: and aiming at the same mobile network of the same country, judging whether a preset operator name preset in the computer is consistent with a target operator name in the first network configuration file.
The judgment object in this step is the name of the operator, i.e., the name of the operator of the mobile network. Because the operator can operate across countries, or there can be multiple operators in the same country, the name of the operator needs to be clarified by the aid of the country and the type of the mobile network. When the operator names are judged and compared in the step, the judged objects need to be directed to the same mobile network of the same country, and the type of the mobile network is represented by a mobile network number. The computer is pre-stored with preset operator names which are names of operators of countries possibly used by the mobile terminal, and the computer can be pre-stored with a plurality of preset operator names as judgment reference of the step. The first network configuration file also records a target operator name, and the target operator name can be multiple, so as to support mobile communication networks of multiple operators. The storage mode of the operator name in the computer or the mobile terminal is preferably stored in a data table with the country and the mobile network number according to rows and columns, the same row comprises the operator name, the country and the mobile network number, and the corresponding operator name can be found only by locking the country and the mobile network number.
S103: and when the preset operator name is consistent with the target operator name, acquiring a group of target network configuration information corresponding to the country and the mobile network from the second network configuration file.
When the step S102 determines that the preset operator name is consistent with the target operator name, which indicates that the target operator name in the first network configuration file is correct, the step is executed. In this step, target network configuration information is obtained from the second network configuration file, and the target network configuration information is mainly based on the APN parameter. The APN is a network access technology, and is a parameter that must be configured when a mobile terminal accesses the internet, and determines which access mode the mobile terminal accesses the network through. From the perspective of an operator, an APN is a logical name, and generally, the APN is deployed on GGSN equipment or logically connected to GGSN, and when a user uses GPRS to surf the internet, the APN is proxied to an external network through GGSN, so that APN setting, filtering, statistics, and the like become one of parameters having important reference values for GPRS charging and GPRS charges (because the APN can distinguish a service or an external network). If the APN parameter in the mobile terminal is correct, the mobile terminal can normally access the mobile communication network in the relevant country or region. When the target network configuration information is obtained in this step, the target network configuration information corresponds to the same country and mobile network number according to which the determination in step S102 is made, the target network configuration information, the country and the mobile network number are stored in the second network configuration file according to a data table, and after the country and the mobile network number are determined, the corresponding target network configuration information can be found.
S104: and judging whether the target network configuration information is consistent with preset network configuration information which is preset in the computer and corresponds to the country and the mobile network.
The computer is pre-stored with preset network configuration information, including network configuration information of countries that the mobile terminal may use. In this step, the target network configuration information obtained in step S103 is compared with the preset network configuration information, and both of them need to correspond to the same country and mobile network number. When comparing the target network configuration information with the preset network configuration information, each parameter should be compared, and when all the parameters are consistent, it can be determined that the parameters are consistent.
S105: and when the target network configuration information is consistent with the preset network configuration information, obtaining a test result, and displaying the test result on a display interface of the computer.
If the determination result in the step S104 is that the target network configuration information is consistent with the preset network configuration information, the step is executed. In this step, a test result is obtained, where the test result is that the operator name and the network configuration information corresponding to the country and the mobile network number in step S105 are correct. The test results may be text or a data table. And the step also displays the test result on a display interface of the computer so as to be known by an operator.
The procedure of the above-described test method does not require the mobile terminal to be inserted into a SIM card of the corresponding country because the first network profile and the second network profile are written into the mobile terminal during the manufacturing process.
In some embodiments of the first aspect of the present application, when a set of target network configuration information corresponding to the country and the mobile network is obtained from the second network configuration file, the target network configuration information at least includes an APN network identifier, a network type, a network port, and a network protocol. The preferred embodiment optimizes the target network configuration information, often records a plurality of network configuration parameters in the second network configuration file, and if all the network configuration parameters are compared, a large amount of computer operation resources are consumed, and much time is consumed, so that main network configuration parameters need to be selected for comparison, and the mobile terminal can be normally used abroad. In the target network configuration information selected in this embodiment, the APN network identifier is an identifier that a user can connect to an external network through a GGSN/PGW (Gateway GPRS Support Node, GPRS Gateway Support Node/PDN Gateway, packet data network Gateway), and the identifier is allocated to an ISP (Internet Service Provider) or a company by a network operator, is consistent with a fixed Internet domain name thereof, and is a necessary component of an APN; the network types are Internet, WAP website, group enterprise internal network, industry internal special network and other network types; the network port refers to a port in a TCP/IP protocol, and the port number ranges from 0 to 65535, such as 80 ports for browsing a web service and 21 ports for an FTP service; the network protocol refers to a set of rules, standards, or conventions established for exchanging data in a computer network.
Referring to fig. 2, a schematic flowchart of a specific process of step S101 in fig. 1 according to a preferred embodiment of the present invention is shown, where step S101 includes:
s101-1: the computer runs an android operating system debugging tool.
The android operating system is used as a mainstream intelligent device operating system, rich development and debugging tools are matched, connection can be established with the mobile terminal provided with the android operating system through the debugging tools, and a test command is sent to execute test operation. In this embodiment, acquiring the first network configuration file and the second network configuration file is realized by installing adb (android Debug bridge) on a computer. And the ADB can be opened only by running the adb.exe.
S101-2: and controlling the android operating system debugging tool to run twice file import commands, and respectively importing the first network configuration file and the second network configuration file in the mobile terminal into the computer.
In this step, a file import command is sent to the mobile terminal twice through the ADB, where the file import command is adbpull, and an executed object is also added when the adbpull is running, that is, < remote path (mobile terminal) > < local path (computer) >, which respectively represents a location of a source file and a target storage location. The first network configuration file and the second network configuration file are stored in the etc directory in the mobile terminal and can be acquired.
Referring to fig. 3, a schematic flowchart of a specific process of step S102 in fig. 1 according to a preferred embodiment of the present invention is shown, where step S102 includes:
s102-1: a set of mobile device country codes and mobile network numbers that are pre-provisioned in the computer are selected.
The Mobile equipment country code, MCC for short, is defined in international telecommunication union e.212, and is intended to identify Mobile equipment base in telecommunication networks, particularly in gsm and umts systems. The Mobile Network number, namely MNC, is a Mobile Network Code which is an English abbreviation and refers to a Mobile Network number, is used for identifying a Mobile Network to which a Mobile client belongs, and consists of 2-3 digits. The mobile device country code is typically used in conjunction with the mobile device network code (MCC/MNC) to identify the network operator. The computer is pre-stored with reference information, which has several groups of country codes and network numbers of mobile devices, and the said step selects one group of country codes and network numbers of mobile devices.
S102-2: and acquiring a preset operator name corresponding to the country code and the mobile network number of the mobile equipment in a storage area of the computer.
Since the mobile equipment country code and mobile network number may determine a certain mobile network of a certain country or region, in this case it is typically operated by a single operator, i.e. it is naturally possible to identify the unique operator. The computer prestores corresponding preset operator names for each group of mobile equipment country codes and mobile network numbers, and can find the corresponding preset operator names according to the mobile equipment country codes and the mobile network numbers selected in the step S102-1.
S102-3: and acquiring the country code of the mobile equipment and the name of a target operator corresponding to the mobile network number in the first network configuration file.
Similarly, the country code and the mobile network number of the mobile device and the corresponding name of the target operator are also stored in the first network profile, and the corresponding name of the target operator can be found according to the country code and the mobile network number of the mobile device selected in step S102-1.
S102-4: and judging whether the preset operator name is consistent with the target operator name or not.
In this step, it is determined whether the preset operator name obtained in step S102-2 is consistent with the target operator name obtained in step S102-3, and since both are stored in a data format of text characters, for example, both are ASCII codes, consistency comparison can be performed.
Referring to fig. 4, a flowchart of a testing method for a mobile terminal according to another preferred embodiment of the present invention is shown, where step S105 is replaced by the following steps:
s106: and repeating the steps S102 ', S103 ' and S104 ' for the mobile networks of all the countries in the first network configuration file until the network configurations of the mobile networks of all the countries are tested.
Since the first network configuration file and the second network configuration file may store network configuration information of different mobile networks in a plurality of countries or regions, it is necessary to test the network configuration information of the mobile networks in all countries. Therefore, the step repeatedly executes step S102 ', step S103 ' and step S104 ', and the network configuration information and the operator name corresponding to a set of the country code of the mobile device and the mobile network number are tested each time the step is executed. Correspondingly, the mobile device country code and the mobile network number of all the countries to be tested and the corresponding network configuration information are stored in the computer, that is, the information in the first network configuration file and the second network configuration file is a subset of the information stored in the computer. In this step, after the combined test of all the country codes and the mobile network numbers of the mobile devices in the first file is completed, the test for the mobile terminal is completed.
S107: the test results are recorded for the mobile network of each country.
In this step, a test result is recorded, and when testing is performed on each group of the country code and the mobile network number of the mobile device in step S106, a test conclusion as to whether the operator and network configuration information corresponding to the group of the country code and the mobile network number is correct is obtained, and the test result is formed in a text or data table form and includes the test conclusion for each group of the country code and the mobile network number of the mobile device.
S108: and displaying the test result on a display interface of the computer or the mobile terminal.
In this step, the test result recorded in step S107 is displayed, and the test result is displayed on the display screen of the computer. And opening an interface aiming at the display interface in the computer, and transmitting the text or data table recorded with the test result to a display module of the computer through the interface. In this step, the test result can be displayed on the display interface of the mobile terminal, and the test result can be sent to the mobile terminal and displayed through the serial port as the mobile terminal is connected with the computer through the serial port.
Referring to fig. 5, which is a schematic structural diagram of a test system for a mobile terminal according to a preferred embodiment of the present invention, the test system 10 includes:
a profile acquisition module 11
The configuration file acquisition module 11 is arranged in a computer connected with the mobile terminal and acquires a first network configuration file and a second network configuration file from the mobile terminal. The configuration file acquisition module 11 operates in the computer, the computer is connected with the mobile terminal through a serial port, and the mobile terminal keeps a power-on state. The first network configuration file and the second network configuration file are stored in the mobile terminal, and different types of network configurations are recorded. The method for acquiring the first network configuration file and the second network configuration file by the configuration file acquiring module 11 may be directly copying from a directory storing the above files, or may be acquired by a debugging tool. If the ADB is required to be installed on the computer by the debugging tool, the configuration file acquiring module 11 runs the ADB, and writes a command for acquiring the first network configuration file and the second network configuration file into the ADB.
Operator name judging module 12
An operator name determining module 12, connected to the configuration file obtaining module 11, for determining whether a preset operator name preset in the computer is consistent with a target operator name in the first network configuration file for a same mobile network in a same country. The operator name judging module 12 is disposed in the computer, acquires the first network configuration file from the configuration file acquiring module 11, and selects a target operator name for a same mobile network in a same country to judge, wherein the country and the mobile network are selected according to a group of mobile device country codes and mobile network numbers. Correspondingly, the preset operator names of different countries and different networks are prestored in the computer and are used as reference for judgment. The operator name judging module 12 selects a group of country codes and mobile network numbers of the mobile devices, and obtains corresponding preset operator names and target operator names from the computer and the first network configuration file respectively to judge whether the preset operator names and the target operator names are consistent. The operator name may be information recorded in a character or information represented by a string of code characters.
Network configuration information acquisition module 13
A network configuration information obtaining module 13, connected to the configuration file obtaining module 11 and the operator name judging module 12, and obtaining a set of target network configuration information corresponding to the country and the mobile network from the second network configuration file when the operator name judging module 12 judges that the preset operator name is consistent with the target operator name. The network configuration information obtaining module 13 is disposed in the computer, obtains the judgment result from the operator name judging module 12, and judges that the preset operator name is consistent with the target operator name when the judgment result is that the preset operator name is consistent with the target operator name, and executes the corresponding operation. The network configuration information obtaining module 13 obtains target network configuration information corresponding to the country and the mobile network from the configuration file obtaining module 11, that is, obtains corresponding target network configuration information according to a group of country codes and mobile network numbers of the mobile device selected when the operator name judging module 12 judges.
Network configuration information determination module 14
A network configuration information determining module 14, connected to the network configuration information obtaining module 13, for determining whether the target network configuration information is consistent with preset network configuration information corresponding to the country and the mobile network, which is preset in the computer. The computer is pre-stored with preset network configuration information, including network configuration information of countries that the mobile terminal may use. The network configuration information determining module 14 is disposed in the computer, and acquires the target network configuration information from the network configuration information acquiring module 13, and compares the target network configuration information with preset network configuration information corresponding to the same group of country codes and mobile network numbers of the mobile devices in the computer. Because the network configuration information comprises a plurality of network configuration parameters, a plurality of main network configuration parameters can be selected for comparison, all the network configuration parameters can be compared, and when the network configuration parameters which are compared are consistent, the judgment is true.
Test result processing module 15
The test result processing module 15 is connected to the network configuration information determining module 14, and when the network configuration information determining module 14 determines that the target network configuration information is consistent with the preset network configuration information, a test result is obtained, and the test result is displayed on a display interface of the computer. The test result processing module 15 is disposed in the computer, obtains the determination result from the network configuration information determining module 14, and executes corresponding operations when the determination is satisfied. The test result processing module 15 forms a conclusion that the target operator name and the target network configuration information corresponding to the group of the country codes and the mobile network numbers of the mobile device are correct, records the conclusion in a text or data table, and displays the conclusion on the display interface through an interface provided by a computer.
The operation of the modules does not require the mobile terminal to be inserted into the SIM card of the corresponding country, because the first network profile and the second network profile are written into the mobile terminal during the manufacturing process, and can be obtained without connecting the mobile network.
In some embodiments of the second aspect of the present application, when the network configuration information obtaining module 13 obtains a set of target network configuration information corresponding to the country and the mobile network from the second network configuration file, the target network configuration information at least includes an APN network identifier, a network type, a network port, and a network protocol.
Referring to fig. 6, which is a schematic structural diagram of the configuration file obtaining module in fig. 5 according to a preferred embodiment of the present invention, the configuration file obtaining module 11 includes:
operating unit 111
The running unit 111 runs an android operating system debugging tool. The android operating system debugging tool is ADB (android Debug bridge), an executable file adb.exe is arranged in an installation file of the ADB debugging tool, and the ADB can be opened only by operating the adb.exe by the operating unit 111. The android operating system debugging tool runs in a computer and is connected with the mobile terminal.
An introduction unit 112
And an importing unit 112, connected to the running unit 111, for controlling the android operating system debugging tool to run a file importing command twice, and importing the first network configuration file and the second network configuration file in the mobile terminal into the computer respectively. The importing unit 112 obtains the executed android operating system debugging tool from the executing unit 111, writes a file importing command into the android operating system debugging tool twice, and respectively imports the first network configuration file and the second network configuration file from the mobile terminal into the computer. In the ADB, the file import command is adbpull, and an executed object, namely < remote path (mobile terminal) > < local path (computer) >, needs to be added when the adbpull is run, and represents the location of the source file and the target storage location respectively. The first network configuration file and the second network configuration file are stored in the etc directory in the mobile terminal and can be acquired.
Referring to fig. 7, which is a schematic structural diagram of the operator name determining module shown in fig. 5 according to a preferred embodiment of the present invention, the operator name determining module 102 includes:
a selection unit 121
The selecting unit 121 selects a set of country codes and mobile network numbers of mobile devices preset in the computer. In the computer, the country code of the mobile device and the number of the mobile network are stored in a group, namely, the identification of the country and the mobile network is determined by a group of country codes of the mobile device and the number of the mobile network. And a plurality of groups of country codes and mobile network numbers of the mobile equipment are stored in the computer.
Preset operator name acquisition unit 122
A preset operator name obtaining unit 122, connected to the selecting unit 121, obtaining a preset operator name corresponding to the country code and the mobile network number of the mobile device in the storage area of the computer. Each group of the country code and the mobile network number of the mobile equipment in the computer corresponds to a preset operator name. The preset operator name obtaining unit 122 obtains the selected country code and mobile network number of the mobile device from the selecting unit 121, and then finds the corresponding preset operator name according to the information.
Target operator name acquisition unit 123
A target operator name obtaining unit 123, connected to the selecting unit 121, obtaining a target operator name corresponding to the country code and the mobile network number of the mobile device in the first network configuration file. The target operator name obtaining unit 123 obtains the selected country code and mobile network number of the mobile device from the selecting unit 121, and then may find the corresponding target operator name in the first network configuration file according to the information. Correspondingly, the first file also stores mobile equipment country codes and mobile network numbers in groups, and each group of mobile equipment country codes and mobile network numbers corresponds to a target operator name.
A judgment unit 124
The determining unit 124 is connected to the preset operator name obtaining unit 122 and the target operator name obtaining unit 123, and determines whether the preset operator name is consistent with the target operator name. The determining unit 124 obtains the preset operator name and the target operator name from the preset operator name obtaining unit 122 and the target operator name obtaining unit 123, respectively, and compares the preset operator name and the target operator name to determine whether the preset operator name and the target operator name are consistent.
Referring to fig. 8, which is a schematic structural diagram of a test system for a mobile terminal according to another preferred embodiment of the present invention, the test result processing module 15 is replaced with the following modules:
repeat execution module 16
And a repeated execution module 16, which repeatedly executes the operator name determination module 12, the network configuration information acquisition module 13, and the network configuration information determination module 14 for the mobile networks of all countries in the first network configuration file until the network configurations of the mobile networks of all countries are tested. The repeated execution module 16 tests all the groups of the country codes and the mobile network numbers of the mobile devices stored in the first network configuration file and the second network configuration file until the repeated execution of the tests is completed, and the mobile terminal can be determined to be tested completely.
A recording module 17
And a recording module 17 connected with the repeated execution module 16 and recording the test result aiming at the mobile network of each country. The repeated execution module 16 obtains the test result for the group of country codes and mobile network numbers of the mobile device from the repeated execution module 16 and records the test result in the form of text or data table every time the repeated execution module 16 executes one round of test. The content of the test result is whether the target operator name is correct and the target network configuration information is correct for the group of the country code and the mobile network number of the mobile device.
Display module 18
And the display module 18 is connected with the recording module 17 and displays the test result on a display interface of the computer or the mobile terminal. The display module 18 obtains the test result from the recording module 17, and opens an interface for a display interface through the computer to display the test result. The display module 18 may also send the test result to the mobile terminal through the serial port and display the test result, for example, if a display instruction is sent to the mobile terminal first and then the test result is sent to the mobile terminal, the mobile terminal displays the received test result. It is noted that the test results should be in a data format that can be displayed, such as a text format or a data table format.
It should be noted that the embodiments of the present invention have been described in terms of preferred embodiments, and not by way of limitation, and that those skilled in the art can make modifications and variations of the embodiments described above without departing from the spirit of the invention.

Claims (8)

1. A test method for a mobile terminal, comprising the steps of:
a computer connected with the mobile terminal acquires a first network configuration file and a second network configuration file from the mobile terminal;
aiming at the same mobile network of the same country, judging whether a preset operator name preset in the computer is consistent with a target operator name in the first network configuration file or not;
when the preset operator name is consistent with the target operator name, acquiring a group of target network configuration information corresponding to the country and the mobile network from the second network configuration file;
judging whether the target network configuration information is consistent with preset network configuration information which is preset in the computer and corresponds to the country and the mobile network;
when the target network configuration information is consistent with the preset network configuration information, obtaining a test result, and displaying the test result on a display interface of the computer;
the step of acquiring a first network configuration file and a second network configuration file from the mobile terminal by a computer connected with the mobile terminal comprises the following steps:
the computer runs an android operating system debugging tool;
and controlling the android operating system debugging tool to run twice file import commands, and respectively importing the first network configuration file and the second network configuration file in the mobile terminal into the computer.
2. The test method of claim 1,
the step of determining whether a preset operator name preset in the computer is consistent with a target operator name in the first network configuration file includes:
selecting a group of mobile equipment country codes and mobile network numbers preset in the computer;
acquiring a preset operator name corresponding to the country code and the mobile network number of the mobile equipment in a storage area of the computer;
acquiring a country code of the mobile equipment and a target operator name corresponding to a mobile network number in the first network configuration file;
and judging whether the preset operator name is consistent with the target operator name or not.
3. The test method of claim 1,
and when a group of target network configuration information corresponding to the country and the mobile network is acquired from the second network configuration file, the target network configuration information at least comprises an APN network identifier, a network type, a network port and a network protocol.
4. The test method of claim 1,
the step of displaying the test result on the display interface of the computer is replaced by the following steps:
for the mobile networks of all countries in the first network configuration file, the steps of judging whether the names of the operators are consistent, acquiring target network configuration information and judging whether the network configuration information is consistent are repeatedly executed until the network configurations of the mobile networks of all countries are tested;
recording a test result for the mobile network of each country;
and displaying the test result on a display interface of the computer or the mobile terminal.
5. A test system for a mobile terminal, comprising:
the configuration file acquisition module is arranged in a computer connected with the mobile terminal and used for acquiring a first network configuration file and a second network configuration file from the mobile terminal;
the operator name judging module is connected with the configuration file acquiring module and is used for judging whether a preset operator name preset in the computer is consistent with a target operator name in the first network configuration file or not aiming at the same mobile network of the same country;
a network configuration information obtaining module, connected to the configuration file obtaining module and the operator name judging module, for obtaining a set of target network configuration information corresponding to the country and the mobile network from the second network configuration file when the operator name judging module judges that the preset operator name is consistent with the target operator name;
a network configuration information judging module, connected to the network configuration information acquiring module, for judging whether the target network configuration information is consistent with preset network configuration information corresponding to the country and the mobile network, which is preset in the computer;
the test result processing module is connected with the network configuration information judging module, and when the network configuration information judging module judges that the target network configuration information is consistent with the preset network configuration information, a test result is obtained and displayed on a display interface of the computer;
the configuration file acquisition module comprises:
the operation unit is used for operating an android operating system debugging tool;
and the importing unit is connected with the running unit, controls the android operating system debugging tool to run the file importing command twice, and respectively imports the first network configuration file and the second network configuration file in the mobile terminal into the computer.
6. The test system of claim 5,
the operator name judging module comprises:
a selection unit for selecting a group of country codes and mobile network numbers of mobile devices preset in the computer;
the preset operator name acquisition unit is connected with the selection unit and acquires a preset operator name corresponding to the country code and the mobile network number of the mobile equipment in a storage area of the computer;
the target operator name acquisition unit is connected with the selection unit and acquires a target operator name corresponding to the country code and the mobile network number of the mobile equipment in the first network configuration file;
and the judging unit is connected with the preset operator name acquiring unit and the target operator name acquiring unit and is used for judging whether the preset operator name is consistent with the target operator name or not.
7. The test system of claim 5,
and when the network configuration information acquisition module acquires a group of target network configuration information corresponding to the country and the mobile network from the second network configuration file, the target network configuration information at least comprises an APN network identifier, a network type, a network port and a network protocol.
8. The test system of claim 5,
the test result processing module is replaced by the following modules:
the repeated execution module is used for repeatedly executing the operator name judgment module, the network configuration information acquisition module and the network configuration information judgment module aiming at the mobile networks of all the countries in the first network configuration file until the network configurations of the mobile networks of all the countries are tested;
the recording module is connected with the repeated execution module and records a test result aiming at the mobile network of each country;
and the display module is connected with the recording module and displays the test result on a display interface of the computer or the mobile terminal.
CN201710950321.1A 2017-10-13 2017-10-13 Test method and test system for mobile terminal Active CN107509212B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710950321.1A CN107509212B (en) 2017-10-13 2017-10-13 Test method and test system for mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710950321.1A CN107509212B (en) 2017-10-13 2017-10-13 Test method and test system for mobile terminal

Publications (2)

Publication Number Publication Date
CN107509212A CN107509212A (en) 2017-12-22
CN107509212B true CN107509212B (en) 2021-04-30

Family

ID=60701548

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710950321.1A Active CN107509212B (en) 2017-10-13 2017-10-13 Test method and test system for mobile terminal

Country Status (1)

Country Link
CN (1) CN107509212B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109587252A (en) * 2018-12-10 2019-04-05 上海闻泰电子科技有限公司 Loading method, device, electronic equipment and the storage medium of operator parameter
CN110649979B (en) * 2019-09-30 2022-04-01 东莞市欧珀精密电子有限公司 Electronic device antenna performance testing method, electronic device, equipment and storage medium
CN112231218B (en) * 2020-10-21 2022-07-08 苏州浪潮智能科技有限公司 Method, system, terminal and storage medium for automatically updating test diagnosis script
CN115460642B (en) * 2022-07-29 2023-10-03 荣耀终端有限公司 Network name display test method and device

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101656974A (en) * 2009-07-17 2010-02-24 厦门敏讯信息技术股份有限公司 SIM card compatibility automated test method and device

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9392476B2 (en) * 2012-06-05 2016-07-12 Viavi Solutions Uk Limited Method of processing network configuration data
CN103501505B (en) * 2013-09-18 2017-02-08 福州瑞芯微电子股份有限公司 System capable of automatically testing WIFI module on Android device
CN103744824B (en) * 2013-12-18 2016-09-07 乐视致新电子科技(天津)有限公司 One is dispatched from the factory method of testing and test system
CN104679631B (en) * 2015-03-23 2018-02-23 重庆蓝岸通讯技术有限公司 Method of testing and system for the equipment based on android system
CN106776294B (en) * 2016-11-29 2020-06-16 任子行网络技术股份有限公司 Automatic android mobile phone testing method and system

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101656974A (en) * 2009-07-17 2010-02-24 厦门敏讯信息技术股份有限公司 SIM card compatibility automated test method and device

Also Published As

Publication number Publication date
CN107509212A (en) 2017-12-22

Similar Documents

Publication Publication Date Title
CN107509212B (en) Test method and test system for mobile terminal
US11169867B2 (en) System and method for identifying operational disruptions in mobile computing devices via a monitoring application that repetitively records multiple separate consecutive files listing launched or installed applications
CN106776294B (en) Automatic android mobile phone testing method and system
CN112612686A (en) Performance test method and device, electronic equipment and storage medium
CN104902547A (en) WiFi (wireless fidelity) network connection method and WiFi network connection device
CN111651173A (en) Key code data burning method and device, terminal equipment and readable storage medium
JP4440185B2 (en) Scenario editing apparatus, pseudo base station test system, pseudo terminal test system, scenario editing method and test processing method, and storage medium storing computer-readable program and program
CN105187390B (en) Active mobile terminal Malware network flow data collection acquisition methods and system
CN112835802A (en) Equipment testing method, device, equipment and storage medium
CN112231206A (en) Script editing method for application program test, computer readable storage medium and test platform
CN110764036B (en) Intelligent distribution transformer terminal test method and system
CN111679652A (en) Test method and device based on smart screen, smart screen and readable storage medium
CN105760300A (en) Automatic STK/UTK service testing method and system
CN109600788B (en) Police digital cluster air interface consistency test method
CN112583663B (en) Automatic network performance testing method based on domestic operating system
CN113452556A (en) Product skill configuration method and device, storage medium and electronic device
CN113126993A (en) Automatic testing method and system applied to vehicle detection software
CN112433935A (en) Test method, test device, electronic equipment and storage medium
CN101267645B (en) Automatic test method and system for service flow software development of W base station
CN105738723A (en) Production line automatic detection method and detection device
CN104601823B (en) Intelligent terminal double-card dual-standby function decision method and system based on Android system
CN110543394A (en) server sensor information consistency testing method, system, terminal and storage medium
CN105204989A (en) Mobile terminal, server and system and method for detecting application
CN113434405B (en) Method and device for determining test file, storage medium and electronic device
CN114138654A (en) Interface test case generation method and device, computer equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20221214

Address after: 201203 1st floor, building 1, Lane 36, Xuelin Road, Pudong New Area Free Trade Zone, Shanghai

Patentee after: SHANGHAI TRANSSION INFORMATION TECHNOLOGY Ltd.

Address before: Room 922 / 926, block a, No.1 Lane 399, shengxia Road, Pudong New Area pilot Free Trade Zone, Shanghai 201203

Patentee before: SHANGHAI SPREADRISE COMMUNICATION TECHNOLOGY Ltd.

TR01 Transfer of patent right