CN106131869A - Method of testing and device, test system for mobile terminal - Google Patents

Method of testing and device, test system for mobile terminal Download PDF

Info

Publication number
CN106131869A
CN106131869A CN201610407188.0A CN201610407188A CN106131869A CN 106131869 A CN106131869 A CN 106131869A CN 201610407188 A CN201610407188 A CN 201610407188A CN 106131869 A CN106131869 A CN 106131869A
Authority
CN
China
Prior art keywords
mobile terminal
mentioned
test case
instruction information
destination mobile
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
CN201610407188.0A
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.)
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN201610407188.0A priority Critical patent/CN106131869A/en
Publication of CN106131869A publication Critical patent/CN106131869A/en
Pending legal-status Critical Current

Links

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)

Abstract

This application discloses the method for testing for mobile terminal and device, test system.One detailed description of the invention of described method includes: obtain test case;Described test case and the communication identifier of described mobile terminal is sent to the destination mobile terminal being connected with described communication of mobile terminal, wherein, described test case is resolved to the operation instruction information for indicating the traffic operation to described mobile terminal by described destination mobile terminal, and according to described operation instruction information and communication identifier, described mobile terminal is performed traffic operation;Traffic operation based on the described destination mobile terminal detected, determines and tests whether described mobile terminal successfully.This embodiment improves the efficiency of test.

Description

Method of testing and device, test system for mobile terminal
Technical field
The application relates to field of computer technology, is specifically related to technical field of measurement and test, particularly for mobile terminal Method of testing and device, test system.
Background technology
At present, various mobile terminal devices are the most intelligent, in order to ensure the normal use of mobile terminal, need to come it Electricity or carry out the effect of note and verify.When there being New function to occur, also need mobile terminal is carried out regression test.
But, existing method is typically manual test, manually controls two terminal units, and a terminal unit is used In sending note to another terminal unit or making a phone call, another terminal unit is used for the result.This method needs to survey Examination personnel manually carry out test operation, accordingly, there are the problem that testing efficiency is low.
Summary of the invention
The purpose of the application is to propose the method for testing for mobile terminal of a kind of improvement and device, test system, Solve the technical problem that background section above is mentioned.
First aspect, this application provides a kind of method of testing for mobile terminal, and described method includes: obtain test Use-case;The logical of described test case and described mobile terminal is sent to the destination mobile terminal that is connected with described communication of mobile terminal Beacon is known, and wherein, described test case is resolved to for indicating the communication to described mobile terminal by described destination mobile terminal The operation instruction information of operation, and perform to communicate to described mobile terminal behaviour according to described operation instruction information and communication identifier Make;Traffic operation based on the described destination mobile terminal detected, determines and tests whether described mobile terminal successfully.
In certain embodiments, described operation instruction information is indicated for described destination mobile terminal carries out predetermined time The information of call for several times.
In certain embodiments, before described acquisition test case, described method also includes: installs and does not deposits for interception It is to preset the application of the telephone number in list.
Second aspect, this application provides a kind of method of testing for mobile terminal, and described method includes: from described The destination mobile terminal that communication of mobile terminal connects receives test case and the communication identifier of described destination mobile terminal;To described Test case resolves, and generates the operation instruction information for indicating the traffic operation to described destination mobile terminal;According to Described operation instruction information and described communication identifier, perform traffic operation to described destination mobile terminal.
In certain embodiments, described operation instruction information is indicated for described destination mobile terminal carries out predetermined time The information of call for several times.
The third aspect, this application provides a kind of test system, and described system includes: mobile terminal, is used for obtaining test Use-case, and send described test case and described mobile terminal to the destination mobile terminal that is connected with described communication of mobile terminal Communication identifier;Destination mobile terminal, for resolving to described test case for indicating the communication to described mobile terminal to grasp The operation instruction information made, and according to described operation instruction information and described communication identifier, described mobile terminal is performed logical Letter operation.
In certain embodiments, described operation instruction information is indicated for described destination mobile terminal carries out predetermined time The information of call for several times.
Fourth aspect, this application provides a kind of test device for mobile terminal, and described device includes: obtain single Unit, is configured to obtain test case;Transmitting element, is configured to the target to being connected with described communication of mobile terminal and moves end End sends described test case and the communication identifier of described mobile terminal, and wherein, described test is used by described destination mobile terminal Example resolves to the operation instruction information for indicating the traffic operation to described mobile terminal, and according to described operation instruction information With communication identifier, described mobile terminal is performed traffic operation;Determine unit, be configured to move based on the described target detected The traffic operation of dynamic terminal, determines and tests whether described mobile terminal successfully.
In certain embodiments, described operation instruction information is indicated for described destination mobile terminal carries out predetermined time The information of call for several times.
In certain embodiments, described device also includes: installation unit, is configured to installation and is not present in pre-for interception If the application of the telephone number in list.
5th aspect, this application provides a kind of test device for mobile terminal, and described device includes: receive single Unit, is configured to receive test case from the destination mobile terminal being connected with described communication of mobile terminal and described target moves end The communication identifier of end;Signal generating unit, is configured to resolve described test case, generates and moves described target for instruction The operation instruction information of the traffic operation of dynamic terminal;Performance element, is configured to according to described operation instruction information and described logical Beacon is known, and described destination mobile terminal is performed traffic operation.
In certain embodiments, described operation instruction information is indicated for described destination mobile terminal carries out predetermined time The information of call for several times.
The method of testing for mobile terminal of the application offer and device, test system, by destination mobile terminal Send test case and the communication identifier of mobile terminal so that destination mobile terminal resolves the test case received and the mark that communicates Know, thus mobile terminal is performed traffic operation, and then improve the efficiency of test.
Accompanying drawing explanation
By the detailed description that non-limiting example is made made with reference to the following drawings of reading, other of the application Feature, purpose and advantage will become more apparent upon:
Fig. 1 is the exemplary architecture figure of the test system according to the application;
Fig. 2 is the sequential chart of an embodiment of the test system according to the application;
Fig. 3 is the flow chart of an embodiment of the method for testing for mobile terminal according to the application;
Fig. 4 is the flow chart of another embodiment of the method for testing for mobile terminal according to the application;
Fig. 5 is the flow chart of the further embodiment of the method for testing for mobile terminal according to the application;
Fig. 6 is the structural representation of an embodiment of the test device for mobile terminal according to the application;
Fig. 7 is the structural representation of another embodiment of the test device for mobile terminal according to the application;
Fig. 8 is adapted for the structural representation of the computer system of the terminal unit for realizing the embodiment of the present application.
Detailed description of the invention
With embodiment, the application is described in further detail below in conjunction with the accompanying drawings.It is understood that this place is retouched The specific embodiment stated is used only for explaining related invention, rather than the restriction to this invention.It also should be noted that, in order to It is easy to describe, accompanying drawing illustrate only the part relevant to about invention.
It should be noted that in the case of not conflicting, the embodiment in the application and the feature in embodiment can phases Combination mutually.Describe the application below with reference to the accompanying drawings and in conjunction with the embodiments in detail.
Fig. 1 shows the exemplary architecture 100 of the test system according to the application.
As it is shown in figure 1, system architecture 100 can include terminal unit 101,103 and network 102, as example, terminal sets Standby 101 can be mobile terminal, and terminal unit 103 can be destination mobile terminal.Network 102 is in order to terminal unit 101 He The medium of communication link is provided between terminal unit 103.Network can include various connection type, such as wireless communication link etc. Deng.
Terminal unit 101 is mutual with terminal unit 103 by network 102, to receive or to send message etc..Terminal unit The communication identifier of the test case got and terminal unit 101 can be sent to terminal unit 103, terminal unit 103 by 101 The test case received is resolved to the instruction operation instruction information to terminal unit 101, and leading to for terminal unit 101 Beacon knowledge performs traffic operation to terminal unit 101.Can be provided with various telecommunication customer end on terminal unit 101,103 should With, such as equipment safety precaution class application, communication class application etc..
Terminal unit 101,103 can be to have a display screen and various electronic equipments that supported web page browses, including but It is not limited to smart mobile phone, panel computer, E-book reader, MP3 player (Moving Picture Experts Group Audio Layer III, dynamic image expert's compression standard audio frequency aspect 3), MP4 (Moving Picture Experts Group Audio Layer IV, dynamic image expert's compression standard audio frequency aspect 4) player, pocket computer on knee and Desk computer etc..
It should be understood that the number of terminal unit in Fig. 1 and network is only schematically.According to realizing needs, permissible There is any number of terminal unit, network and server.
With continued reference to Fig. 2, it is shown that according to the sequential chart of an embodiment of the test system of the application.
The test system of this enforcement includes: mobile terminal and destination mobile terminal;Wherein, mobile terminal is (such as shown in Fig. 1 Terminal unit 101), be used for obtaining test case, and send to the destination mobile terminal being connected with described communication of mobile terminal Described test case and the communication identifier of described mobile terminal;Destination mobile terminal (the such as terminal unit 103 shown in Fig. 1), For described test case being resolved to the operation instruction information for indicating the traffic operation to described mobile terminal, and root According to described operation instruction information and described communication identifier, described mobile terminal is performed traffic operation.
As in figure 2 it is shown, in step 201, acquisition for mobile terminal test case.
Here, above-mentioned mobile terminal can obtain test case, wherein, above-mentioned test case (Test Case) be for Certain special objective and work out one group test input, execution condition and expected results.As example, above-mentioned special objective can Be verify above-mentioned mobile terminal whether can realize Stranger Calls or the interception of strange note, wherein, above-mentioned Stranger Calls or Strange note can be from the incoming call or short in the telephone number being not present in the address list that above-mentioned mobile terminal is stored Letter;Above-mentioned special objective can also be to verify that above-mentioned mobile terminal repeatedly receives the ability to bear after phone and note.Above-mentioned Test case can be pre-stored within the local test case of above-mentioned mobile terminal, it is also possible to is to utilize above-mentioned mobile terminal to enter The test case that the user of row test is manually entered.
In step 202., mobile terminal to the destination mobile terminal that is connected with communication of mobile terminal send test case and The communication identifier of mobile terminal.
Here, first above-mentioned mobile terminal can be communicatively coupled with destination mobile terminal, and above-mentioned mobile terminal can To be attached by socket (socket) technology with above-mentioned destination mobile terminal, wherein, above-mentioned socket is to support TCP/ The basic operation unit of the network service of IP, the process between different main frame that may refer to carries out the end points of two-way communication, simply A kind of agreement saying two sides being exactly communication, complete communication process with the correlation function in socket.Above-mentioned mobile terminal Both can be service end (server), it is also possible to be client (client);Above-mentioned mobile terminal can also move with above-mentioned target Dynamic terminal is attached by bluetooth (Bluetooth) technology.Afterwards, above-mentioned mobile terminal can send to destination mobile terminal Above-mentioned test case and the communication identifier of above-mentioned mobile terminal, wherein, above-mentioned communication identifier can be the electricity of above-mentioned mobile terminal Words number.
In step 203, test case is resolved to for indicating the traffic operation to mobile terminal by destination mobile terminal Operation instruction information.
Here, first above-mentioned destination mobile terminal can receive the test use encapsulated by predetermined format (such as, JSON) Example, wherein, the format transmission message that above-mentioned predetermined format is above-mentioned mobile terminal and above-mentioned destination mobile terminal is made an appointment, so Rear above-mentioned destination mobile terminal can resolve the test case by predetermined format encapsulation received and determine mobile terminal The operation instruction information of traffic operation.Wherein, above-mentioned traffic operation can be that above-mentioned mobile terminal is called operation, also Can be the operation of the transmission note to above-mentioned mobile terminal, it is also possible to be the operation of the communication connection to above-mentioned mobile terminal, above-mentioned Operation instruction information could be for instruction and above-mentioned mobile terminal called operation, it is also possible to be indicated for above-mentioned The transmission note operation of mobile terminal, it is also possible to be indicated for the operation of the communication connection to above-mentioned mobile terminal.As example, When whether the target of above-mentioned test case is to block to verify above-mentioned mobile terminal can realize Stranger Calls or strange note When cutting, aforesaid operations instruction information may refer to show that above-mentioned mobile terminal is called or send short by destination mobile terminal The information of letter.
In step 204, destination mobile terminal, according to operation instruction information and communication identifier, performs communication to mobile terminal Operation.
Here, destination mobile terminal can indicate information and the communication identifier of above-mentioned mobile terminal according to aforesaid operations, Mobile terminal is performed traffic operation.As example, above-mentioned destination mobile terminal can be according to indicating above-mentioned destination mobile terminal Carry out calling or send the information of note and the telephone number of above-mentioned mobile terminal, perform to dial electricity to above-mentioned mobile terminal Words or the traffic operation of transmission note.
In some optional implementations of the present embodiment, if the target of above-mentioned test case is to verify above-mentioned shifting When dynamic terminal repeatedly receives the ability to bear after phone, aforesaid operations instruction information could be for instruction and moves above-mentioned target Dynamic terminal carries out the information of pre-determined number time call.
The test system that the application provides, sends test case and mobile terminal by mobile terminal to destination mobile terminal Communication identifier, destination mobile terminal resolves the test case that receives and communication identifier, thus mobile terminal is performed communication Operation, and then improve the efficiency of test.
With continued reference to Fig. 3, it illustrates an embodiment of the method for testing for mobile terminal according to the application Flow process 300.The general mobile terminal 101 as shown in Figure 1 of the method for testing for mobile terminal shown in the present embodiment performs.Institute The method of testing for mobile terminal stated, comprises the following steps:
Step 301, obtains test case.
In the present embodiment, the method for testing for mobile terminal runs on electronic equipment thereon (such as shown in Fig. 1 Mobile terminal 101) test case that the user utilizing above-mentioned mobile terminal to carry out testing is manually entered can be obtained.Wherein, on Stating test case is one group of test input, execution condition and the expected results worked out for certain special objective.As example, Above-mentioned special objective can be to verify whether above-mentioned mobile terminal can realize Stranger Calls or the interception of strange note, wherein, Above-mentioned Stranger Calls or strange note can be from the phone being not present in the address list that above-mentioned electronic equipment is stored The incoming call of number or note;Above-mentioned special objective can also be verify above-mentioned electronic equipment to repeatedly receiving phone and note after Ability to bear.Above-mentioned test case can also be to be pre-stored within the test case that above-mentioned electronic equipment is local.
Step 302, sends the logical of test case and mobile terminal to the destination mobile terminal that is connected with communication of mobile terminal Beacon is known.
In the present embodiment, the method for testing for mobile terminal runs on electronic equipment thereon (such as shown in Fig. 1 Mobile terminal 101) can first be communicatively coupled with destination mobile terminal, above-mentioned mobile terminal can move with above-mentioned target Terminal is attached by socket technology, and wherein, above-mentioned socket is the basic operation list of the network service supporting TCP/IP Unit, the process between different main frame that may refer to carries out the end points of two-way communication, is exactly briefly the one of two sides of communication Agreement, completes communication process with the correlation function in socket.Above-mentioned mobile terminal both can be service end, it is also possible to be visitor Family end;Above-mentioned mobile terminal can also be attached by Bluetooth technology with above-mentioned destination mobile terminal.Afterwards, above-mentioned mobile whole End can send above-mentioned test case and the communication identifier of above-mentioned mobile terminal, wherein, above-mentioned communication mark to destination mobile terminal Knowledge can be the telephone number of above-mentioned mobile terminal.By predetermined format (such as, first above-mentioned destination mobile terminal can receive JSON) test case encapsulated, wherein, above-mentioned predetermined format is above-mentioned mobile terminal and above-mentioned destination mobile terminal is made an appointment Format transmission message, the most above-mentioned destination mobile terminal can resolve receive by predetermined format encapsulation test case come Determine the operation instruction information of the traffic operation to mobile terminal.Wherein, aforesaid operations instruction information could be for indicating right Above-mentioned mobile terminal call operation, it is also possible to be indicated for the transmission note to above-mentioned mobile terminal operation, also may be used To be indicated for the operation of the communication connection to above-mentioned mobile terminal.
Step 303, traffic operation based on the destination mobile terminal detected, determine and mobile terminal is tested whether into Merit.
In the present embodiment, the method for testing for mobile terminal runs on electronic equipment thereon (such as shown in Fig. 1 Mobile terminal 101) can first detect whether to receive the traffic operation of destination mobile terminal, in response to detecting that target moves The traffic operation of terminal, it is then determined that utilize above-mentioned destination mobile terminal to test whether successfully what above-mentioned electronic equipment was carried out. As example, when the target of above-mentioned test case is to verify whether above-mentioned electronic equipment can realize Stranger Calls or strange During the interception of note, above-mentioned electronic equipment detects the phone receiving destination mobile terminal, it is then determined that above-mentioned target moves Whether the telephone number of terminal is present in the interception notice of the Stranger Calls of above-mentioned electronic equipment, the most above-mentioned tests into Merit;When the target of above-mentioned test case is to verify that above-mentioned mobile terminal repeatedly receives the ability to bear after phone and note Time, above-mentioned electronic equipment detects and receives the repeatedly phone of destination mobile terminal or repeatedly after note, determines above-mentioned target Whether the system journal of mobile terminal occurs ANR's (Application Not Responding, application program is without response) Dialog box, or whether the rate of change of sensed system parameter is more than scheduled rate, and wherein, said system parameter includes but does not limits In: central processing unit (CPU, Central Processing Unit) utilization rate, memorizer (Memory) occupancy and temperature, It is successfully tested if it is not, the most above-mentioned.
The method that above-described embodiment of the application provides is by sending test case and mobile terminal to destination mobile terminal Communication identifier so that destination mobile terminal resolves the test case that receives and communication identifier, thus performs mobile terminal Traffic operation, and then improve the efficiency of test.
With continued reference to Fig. 4, it illustrates another embodiment of the method for testing for mobile terminal according to the application Flow process 400.The general mobile terminal 103 as shown in Figure 1 of the method for testing for mobile terminal shown in the present embodiment performs. The described method of testing for mobile terminal, comprises the following steps:
Step 401, installs for intercepting the application being not present in presetting the telephone number in list.
In the present embodiment, the method for testing for mobile terminal runs on electronic equipment thereon (such as shown in Fig. 1 Mobile terminal 103) can first install for intercepting the application being not present in presetting the telephone number in list, wherein, above-mentioned Application can be that mobile phone safe takes precautions against class application, and above-mentioned default list can be the address list that above-mentioned mobile terminal is stored.
Step 402, obtains test case.
Above-mentioned electronic equipment can obtain the test case that the user utilizing above-mentioned mobile terminal to carry out testing is manually entered. Wherein, above-mentioned test case is one group of test input, execution condition and the expected results worked out for certain special objective.Make For example, above-mentioned special objective can be to verify that above-mentioned mobile terminal repeatedly receives the ability to bear after phone and note.
Step 403, sends the logical of test case and mobile terminal to the destination mobile terminal that is connected with communication of mobile terminal Beacon is known.
In the present embodiment, first above-mentioned electronic equipment can be communicatively coupled with destination mobile terminal, above-mentioned movement Terminal can be attached by socket technology with above-mentioned destination mobile terminal, and wherein, above-mentioned socket is to support TCP/IP The basic operation unit of network service, the process between different main frame that may refer to carries out the end points of two-way communication, simply Say a kind of agreement of two sides being exactly communication, complete communication process with the correlation function in socket.Above-mentioned mobile terminal was both Can be service end, it is also possible to be client;Above-mentioned mobile terminal can also pass through Bluetooth technology with above-mentioned destination mobile terminal It is attached.Afterwards, above-mentioned mobile terminal can send above-mentioned test case and above-mentioned mobile terminal to destination mobile terminal Communication identifier, wherein, above-mentioned communication identifier can be the telephone number of above-mentioned mobile terminal.Above-mentioned destination mobile terminal can be by The test case received resolves to the operation instruction information for indicating the traffic operation to above-mentioned electronic equipment, and according to upper Stating operation instruction information and communication identifier and above-mentioned electronic equipment is performed traffic operation, wherein, above-mentioned traffic operation can be right Above-mentioned destination mobile terminal call operation, it is also possible to be the transmission note to above-mentioned destination mobile terminal operation, also may be used To be the operation of the communication connection to above-mentioned destination mobile terminal.Aforesaid operations instruction information could be for instruction to above-mentioned movement Terminal call operation, it is also possible to be indicated for the transmission note to above-mentioned mobile terminal operation, it is also possible to be for The communication connection to above-mentioned mobile terminal is indicated to operate.
As example, above-mentioned mobile terminal could be in checking to the test case that above-mentioned destination mobile terminal sends State whether mobile terminal can realize Stranger Calls or the test case of the interception of strange note.
Step 404, traffic operation based on the destination mobile terminal detected, determine and mobile terminal is tested whether into Merit.
In the present embodiment, above-mentioned electronic equipment can first detect whether to receive the communication behaviour of destination mobile terminal Make, in response to the traffic operation of destination mobile terminal being detected, it is then determined that utilize above-mentioned destination mobile terminal to above-mentioned electronics What equipment was carried out tests whether successfully.As example, when the target of above-mentioned test case is to verify that above-mentioned electronic equipment is When no energy realizes the interception to Stranger Calls or strange note, above-mentioned electronic equipment detects the electricity receiving destination mobile terminal Words, it is then determined that the interception whether telephone number of above-mentioned destination mobile terminal is present in the Stranger Calls of above-mentioned electronic equipment is led to In knowing, the most above-mentioned it is successfully tested;When the target of above-mentioned test case is to verify that above-mentioned mobile terminal repeatedly receives electricity During ability to bear after words and note, above-mentioned electronic equipment detects the repeatedly phone or repeatedly receiving destination mobile terminal After note, determine the dialog box whether ANR occurs in the system journal of above-mentioned destination mobile terminal, or sensed system parameter Rate of change whether more than scheduled rate, wherein, said system parameter includes but not limited to: utilization rate of central processing unit, deposit Reservoir occupancy and temperature, be successfully tested if it is not, the most above-mentioned.
With continued reference to Fig. 5, it illustrates the further embodiment of the method for testing for mobile terminal according to the application Flow process 500.The general mobile terminal 103 as shown in Figure 1 of the method for testing for mobile terminal shown in the present embodiment performs. The described method of testing for mobile terminal, comprises the following steps:
Step 501, receives test case and destination mobile terminal from the destination mobile terminal being connected with communication of mobile terminal Communication identifier.
In the present embodiment, the method for testing for mobile terminal runs on electronic equipment thereon (such as shown in Fig. 1 Mobile terminal 103) test case and destination mobile terminal can be received from the destination mobile terminal being connected with communication of mobile terminal Communication identifier.Here, first above-mentioned electronic equipment can be communicatively coupled with destination mobile terminal, above-mentioned mobile terminal Can be attached by socket technology with above-mentioned destination mobile terminal, wherein, above-mentioned socket is the net supporting TCP/IP The basic operation unit of network communication, the process between different main frame that may refer to carries out the end points of two-way communication, the most just It is a kind of agreement of two sides of communication, completes communication process with the correlation function in socket.Above-mentioned mobile terminal is the most permissible It is service end, it is also possible to be client;Above-mentioned mobile terminal can also be carried out by Bluetooth technology with above-mentioned destination mobile terminal Connect.Afterwards, above-mentioned mobile terminal can send communicating of above-mentioned test case and above-mentioned mobile terminal to destination mobile terminal Mark, wherein, above-mentioned communication identifier can be the telephone number of above-mentioned mobile terminal.
Step 502, resolves test case, generates the operation for indicating the traffic operation to destination mobile terminal Instruction information.
In the present embodiment, above-mentioned electronic equipment can be to the test by predetermined format encapsulation received in step 501 Use-case resolves, thus generates the operation instruction information for indicating the traffic operation to destination mobile terminal.Wherein, above-mentioned Traffic operation can be that above-mentioned destination mobile terminal is called operation, it is also possible to is to send out above-mentioned destination mobile terminal Sending note to operate, it is also possible to be the operation of the communication connection to above-mentioned destination mobile terminal, aforesaid operations instruction information can be to use In instruction, above-mentioned mobile terminal is called operation, it is also possible to be indicated for the behaviour of the transmission note to above-mentioned mobile terminal Make, it is also possible to be indicated for the operation of the communication connection to above-mentioned mobile terminal.
In some optional implementations of the present embodiment, if the target of above-mentioned test case is to verify above-mentioned shifting When dynamic terminal repeatedly receives the ability to bear after phone, aforesaid operations instruction information could be for instruction and moves above-mentioned target Dynamic terminal carries out the information of pre-determined number time call.
Step 503, according to operation instruction information and communication identifier, performs traffic operation to destination mobile terminal.
In the present embodiment, above-mentioned electronic equipment can be according to aforesaid operations instruction information and above-mentioned destination mobile terminal Communication identifier, performs traffic operation to destination mobile terminal.As example, above-mentioned electronic equipment can be according to indicating above-mentioned electronics Information and the telephone number of above-mentioned destination mobile terminal of note is repeatedly called and sent to equipment, and above-mentioned target is moved end End performs repeatedly to call or repeatedly send the operation of note.
The method that above-described embodiment of the application provides, by resolving the test case received from destination mobile terminal, generates The operation instruction information of instruction destination mobile terminal, further according to communicating of operation instruction information and the destination mobile terminal received Mark, performs traffic operation to destination mobile terminal.
With further reference to Fig. 6, as to the realization of method shown in above-mentioned each figure, itself please provide a kind of for mobile whole One embodiment of the test device of end, this device embodiment is corresponding with the embodiment of the method shown in Fig. 3, and this device specifically may be used To be applied in various mobile electronic device.
As shown in Figure 6, the test device 600 for mobile terminal described in the present embodiment includes: acquiring unit 601, send out Send unit 602 and determine unit 603.Wherein, acquiring unit 601 is used for obtaining test case;Transmitting element 602 for institute State the destination mobile terminal described test case of transmission and the communication identifier of described mobile terminal that communication of mobile terminal connects, its In, described test case is resolved to the operation for indicating the traffic operation to described mobile terminal by described destination mobile terminal Instruction information, and according to described operation instruction information and communication identifier, described mobile terminal is performed traffic operation;And determine list Unit 603, for traffic operation based on the described destination mobile terminal detected, determines and tests whether described mobile terminal Success.
In the present embodiment, the acquiring unit 601 for the test device 600 of mobile terminal can obtain and utilize above-mentioned shifting The test case that the user that dynamic terminal carries out testing is manually entered.Wherein, above-mentioned test case is to compile for certain special objective One group of test input, execution condition and the expected results of system.As example, above-mentioned special objective can be to verify above-mentioned movement Whether terminal can realize Stranger Calls or the interception of strange note, and wherein, above-mentioned Stranger Calls or strange note can be come From in the incoming call of the telephone number being not present in the address list that above-mentioned electronic equipment is stored or note;Above-mentioned special objective is also It can be the checking above-mentioned electronic equipment ability to bear to repeatedly receiving after phone and note.Above-mentioned test case can also be It is pre-stored within the test case that above-mentioned electronic equipment is local.
In the present embodiment, first above-mentioned transmitting element 602 can be communicatively coupled with destination mobile terminal, above-mentioned shifting Dynamic terminal can be attached by socket technology with above-mentioned destination mobile terminal, and wherein, above-mentioned socket is to support TCP/ The basic operation unit of the network service of IP, the process between different main frame that may refer to carries out the end points of two-way communication, simply A kind of agreement saying two sides being exactly communication, complete communication process with the correlation function in socket.Above-mentioned mobile terminal Both can be service end, it is also possible to be client;Above-mentioned mobile terminal can also be with above-mentioned destination mobile terminal by bluetooth skill Art is attached.Afterwards, above-mentioned mobile terminal can send above-mentioned test case and above-mentioned mobile terminal to destination mobile terminal Communication identifier, wherein, above-mentioned communication identifier can be the telephone number of above-mentioned mobile terminal.
In the present embodiment, the above-mentioned communication determining that unit 603 can first detect whether to receive destination mobile terminal Operation, in response to detecting the traffic operation of destination mobile terminal, it is then determined that utilize above-mentioned destination mobile terminal to above-mentioned electricity What subset was carried out tests whether successfully.
In some optional implementations of the present embodiment, the above-mentioned test device 600 for mobile terminal is all right Including: installation unit (not shown).Above-mentioned installation unit can be installed for intercepting the electricity being not present in default list The application of words number, wherein, above-mentioned application can be that mobile phone safe takes precautions against class application, and above-mentioned default list can be above-mentioned movement The address list that terminal is stored.
With further reference to Fig. 7, as to the realization of method shown in above-mentioned each figure, itself please provide a kind of for mobile whole Another embodiment of the test device of end, this device embodiment is corresponding with the embodiment of the method shown in Fig. 5, and this device is concrete Can apply in various mobile electronic device.
As it is shown in fig. 7, the test device 700 for mobile terminal described in the present embodiment includes: receive unit 701, life Become unit 702 and performance element 703.Wherein, unit 701 is received for moving from the target being connected with described communication of mobile terminal Terminal receives test case and the communication identifier of described destination mobile terminal;Signal generating unit 702 is for entering described test case Row resolves, and generates the operation instruction information for indicating the traffic operation to described destination mobile terminal;Performance element 703 is used for According to described operation instruction information and described communication identifier, described destination mobile terminal is performed traffic operation.
In the present embodiment, the reception unit 701 for the test device 700 of mobile terminal can lead to from mobile terminal The destination mobile terminal that letter connects receives test case and the communication identifier of destination mobile terminal.Here, above-mentioned electronic equipment Can first be communicatively coupled with destination mobile terminal, above-mentioned mobile terminal can pass through with above-mentioned destination mobile terminal Socket technology is attached, and wherein, above-mentioned socket is the basic operation unit of the network service supporting TCP/IP, Ke Yishi Refer to that the process between different main frame carries out the end points of two-way communication, be exactly briefly a kind of agreement of two sides of communication, use Correlation function in socket completes communication process.Above-mentioned mobile terminal both can be service end, it is also possible to be client;On State mobile terminal to be attached by Bluetooth technology with above-mentioned destination mobile terminal.Afterwards, above-mentioned mobile terminal is permissible Sending above-mentioned test case and the communication identifier of above-mentioned mobile terminal to destination mobile terminal, wherein, above-mentioned communication identifier is permissible It it is the telephone number of above-mentioned mobile terminal.
In the present embodiment, above-mentioned signal generating unit 702 can be encapsulated by predetermined format receive in reception unit 701 Test case resolve, thus generate for the instruction operation instruction information to the traffic operation of destination mobile terminal.Its In, above-mentioned traffic operation can be that above-mentioned destination mobile terminal is called operation, it is also possible to is to move above-mentioned target The transmission note operation of terminal, it is also possible to be the operation of the communication connection to above-mentioned destination mobile terminal, aforesaid operations instruction information Could be for instruction and above-mentioned mobile terminal is called operation, it is also possible to be indicated for above-mentioned mobile terminal is sent out Note is sent to operate, it is also possible to be indicated for the operation of the communication connection to above-mentioned mobile terminal.
In the present embodiment, above-mentioned performance element 703 can move end according to aforesaid operations instruction information and above-mentioned target The communication identifier of end, performs traffic operation to destination mobile terminal.As example, above-mentioned electronic equipment can be above-mentioned according to instruction Information and the telephone number of above-mentioned destination mobile terminal of note is repeatedly called and sent to electronic equipment, moves above-mentioned target Dynamic terminal performs repeatedly to call or repeatedly send the operation of note.
In some optional implementations of the present embodiment, if the target of above-mentioned test case is to verify above-mentioned shifting When dynamic terminal repeatedly receives the ability to bear after phone, aforesaid operations instruction information could be for instruction and moves above-mentioned target Dynamic terminal carries out the information of pre-determined number time call.
Below with reference to Fig. 8, it illustrates the computer system 800 being suitable to the terminal unit for realizing the embodiment of the present application Structural representation.
As shown in Figure 8, computer system 800 includes CPU (CPU) 801, and it can be read-only according to being stored in Program in memorizer (ROM) 802 or be loaded into the program random access storage device (RAM) 803 from storage part 808 and Perform various suitable action and process.In RAM 803, also storage has system 800 to operate required various programs and data. CPU 801, ROM 802 and RAM 803 are connected with each other by bus 804.Input/output (I/O) interface 805 is also connected to always Line 804.
It is connected to I/O interface 805: include the importation 806 of keyboard, mouse etc. with lower component;Including liquid crystal display Etc. and the output part 807 of speaker etc. (LCD);Storage part 808 including hard disk etc.;And include such as LAN card, tune The communications portion 809 of the NIC of modulator-demodulator etc..Communications portion 809 performs mailing address via the network of such as the Internet Reason.Driver 810 is connected to I/O interface 805 also according to needs.Detachable media 811, such as disk, CD, magneto-optic disk, half Conductor memory etc., is arranged in driver 810 as required, in order to the computer program read from it is as required It is mounted into storage part 808.
Especially, according to embodiment of the disclosure, the process described above with reference to flow chart may be implemented as computer Software program.Such as, embodiment of the disclosure and include a kind of computer program, it includes being tangibly embodied in machine readable Computer program on medium, above computer program comprises the program code for performing the method shown in flow chart.At this In the embodiment of sample, this computer program can be downloaded and installed from network by communications portion 809, and/or from removable Unload medium 811 to be mounted.
Flow chart in accompanying drawing and block diagram, it is illustrated that according to system, method and the computer journey of the various embodiment of the application Architectural framework in the cards, function and the operation of sequence product.In this, each square frame in flow chart or block diagram can generation One module of table, unit, program segment or a part for code, a part for above-mentioned module, unit, program segment or code comprises The executable instruction of one or more logic functions for realizing regulation.It should also be noted that at some as the realization replaced In, the function marked in square frame can also occur to be different from the order marked in accompanying drawing.Such as, two succeedingly represent Square frame can essentially perform substantially in parallel, they can also perform sometimes in the opposite order, and this is according to involved merit Depending on energy.It is also noted that square frame in each square frame in block diagram and/or flow chart and block diagram and/or flow chart Combination, can realize by the function or the special hardware based system of operation that perform regulation, or can with special firmly Part realizes with the combination of computer instruction.
It is described in the embodiment of the present application involved module to realize by the way of software, it is also possible to by firmly The mode of part realizes.Described module can also be arranged within a processor, for example, it is possible to be described as: a kind of processor bag Include acquiring unit, transmitting element and determine unit.Wherein, the title of these modules is not intended that under certain conditions to this module The restriction of itself, such as, acquiring unit is also described as " obtaining the unit of test case ".
It is described in the embodiment of the present application involved unit to realize by the way of software, it is also possible to by firmly The mode of part realizes.Described unit can also be arranged within a processor, for example, it is possible to be described as: a kind of processor bag Include reception unit, signal generating unit and performance element.Wherein, the title of these unit is not intended that under certain conditions to this unit The restriction of itself, such as, performance element is also described as " described destination mobile terminal performs the unit of traffic operation ".
As on the other hand, present invention also provides a kind of nonvolatile computer storage media, this non-volatile calculating Machine storage medium can be the nonvolatile computer storage media in above-described embodiment included in said apparatus;Can also be Individualism, is unkitted the nonvolatile computer storage media allocating in terminal.Above-mentioned nonvolatile computer storage media is deposited Contain one or more program, when said one or multiple program are performed by an equipment so that the said equipment: obtain Test case;Described test case and described mobile terminal is sent to the destination mobile terminal being connected with described communication of mobile terminal Communication identifier, wherein, described destination mobile terminal described test case is resolved to for instruction to described mobile terminal The operation instruction information of traffic operation, and perform to communicate to described mobile terminal with communication identifier according to described operation instruction information Operation;Traffic operation based on the described destination mobile terminal detected, determines and tests whether described mobile terminal successfully.
As on the other hand, present invention also provides a kind of nonvolatile computer storage media, this non-volatile calculating Machine storage medium can be the nonvolatile computer storage media in above-described embodiment included in said apparatus;Can also be Individualism, is unkitted the nonvolatile computer storage media allocating in terminal.Above-mentioned nonvolatile computer storage media is deposited Contain one or more program, when said one or multiple program are performed by an equipment so that the said equipment: from The destination mobile terminal that described communication of mobile terminal connects receives test case and the communication identifier of described destination mobile terminal;Right Described test case resolves, and generates the operation instruction information for indicating the traffic operation to described destination mobile terminal; According to described operation instruction information and described communication identifier, described destination mobile terminal is performed traffic operation.
Above description is only the preferred embodiment of the application and the explanation to institute's application technology principle.People in the art Member should be appreciated that invention scope involved in the application, however it is not limited to the technology of the particular combination of above-mentioned technical characteristic Scheme, also should contain in the case of conceiving without departing from foregoing invention simultaneously, above-mentioned technical characteristic or its equivalent feature carry out Combination in any and other technical scheme of being formed.Such as features described above has similar merit with (but not limited to) disclosed herein The technical scheme that the technical characteristic of energy is replaced mutually and formed.

Claims (12)

1. the method for testing for mobile terminal, it is characterised in that described method includes:
Obtain test case;
The logical of described test case and described mobile terminal is sent to the destination mobile terminal that is connected with described communication of mobile terminal Beacon is known, and wherein, described test case is resolved to for indicating the communication to described mobile terminal by described destination mobile terminal The operation instruction information of operation, and perform to communicate to described mobile terminal behaviour according to described operation instruction information and communication identifier Make;
Traffic operation based on the described destination mobile terminal detected, determines and tests whether described mobile terminal successfully.
Method the most according to claim 1, it is characterised in that described operation instruction information is indicated for described target Mobile terminal carries out the information of pre-determined number time call.
Method the most according to claim 2, it is characterised in that before described acquisition test case, described method is also wrapped Include: install for intercepting the application being not present in presetting the telephone number in list.
4. the method for testing for mobile terminal, it is characterised in that described method includes:
The logical of test case and described destination mobile terminal is received from the destination mobile terminal that is connected with described communication of mobile terminal Beacon is known;
Described test case is resolved, generates the operation instruction for indicating the traffic operation to described destination mobile terminal Information;
According to described operation instruction information and described communication identifier, described destination mobile terminal is performed traffic operation.
Method the most according to claim 4, it is characterised in that described operation instruction information is indicated for described target Mobile terminal carries out the information of pre-determined number time call.
6. a test system, it is characterised in that described test system includes:
Mobile terminal, is used for obtaining test case, and sends institute to the destination mobile terminal being connected with described communication of mobile terminal State test case and the communication identifier of described mobile terminal;
Destination mobile terminal, for resolving to the behaviour for indicating the traffic operation to described mobile terminal by described test case Make instruction information, and according to described operation instruction information and described communication identifier, described mobile terminal is performed traffic operation.
System the most according to claim 6, it is characterised in that described operation instruction information is indicated for described target Mobile terminal carries out the information of pre-determined number time call.
8. the test device for mobile terminal, it is characterised in that described device includes:
Acquiring unit, is configured to obtain test case;
Transmitting element, be configured to the destination mobile terminal that is connected with described communication of mobile terminal send described test case and The communication identifier of described mobile terminal, wherein, described test case is resolved to for instruction institute by described destination mobile terminal State the operation instruction information of the traffic operation of mobile terminal, and according to described operation instruction information and communication identifier to described movement Terminal performs traffic operation;
Determine unit, be configured to traffic operation based on the described destination mobile terminal detected, determine described mobile whole Testing whether successfully of end.
Device the most according to claim 8, it is characterised in that described operation instruction information is indicated for described target Mobile terminal carries out the information of pre-determined number time call.
Device the most according to claim 9, it is characterised in that described device also includes:
Installation unit, is configured to install for intercepting the application being not present in presetting the telephone number in list.
11. 1 kinds of test devices for mobile terminal, it is characterised in that described device includes:
Receive unit, be configured to receive test case and described from the destination mobile terminal that is connected with described communication of mobile terminal The communication identifier of destination mobile terminal;
Signal generating unit, is configured to resolve described test case, generates for instruction described destination mobile terminal The operation instruction information of traffic operation;
Performance element, is configured to, according to described operation instruction information and described communication identifier, hold described destination mobile terminal Row traffic operation.
12. devices according to claim 11, it is characterised in that described operation instruction information is indicated for described mesh Mark mobile terminal carries out the information of pre-determined number time call.
CN201610407188.0A 2016-06-12 2016-06-12 Method of testing and device, test system for mobile terminal Pending CN106131869A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610407188.0A CN106131869A (en) 2016-06-12 2016-06-12 Method of testing and device, test system for mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610407188.0A CN106131869A (en) 2016-06-12 2016-06-12 Method of testing and device, test system for mobile terminal

Publications (1)

Publication Number Publication Date
CN106131869A true CN106131869A (en) 2016-11-16

Family

ID=57270525

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610407188.0A Pending CN106131869A (en) 2016-06-12 2016-06-12 Method of testing and device, test system for mobile terminal

Country Status (1)

Country Link
CN (1) CN106131869A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107908541A (en) * 2017-07-26 2018-04-13 平安壹钱包电子商务有限公司 Interface test method, device, computer equipment and storage medium
CN109246726A (en) * 2017-07-10 2019-01-18 大唐移动通信设备有限公司 A kind of test method and device
CN110233943A (en) * 2019-06-18 2019-09-13 深圳市珍爱云信息技术有限公司 Obtain method, apparatus, computer equipment and the storage medium of number mark

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102244592A (en) * 2010-05-11 2011-11-16 中国移动通信集团公司 Network service quality testing system, method, testing center and testing terminal
CN104881342A (en) * 2015-06-24 2015-09-02 小米科技有限责任公司 Terminal testing method and device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102244592A (en) * 2010-05-11 2011-11-16 中国移动通信集团公司 Network service quality testing system, method, testing center and testing terminal
CN104881342A (en) * 2015-06-24 2015-09-02 小米科技有限责任公司 Terminal testing method and device

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109246726A (en) * 2017-07-10 2019-01-18 大唐移动通信设备有限公司 A kind of test method and device
CN107908541A (en) * 2017-07-26 2018-04-13 平安壹钱包电子商务有限公司 Interface test method, device, computer equipment and storage medium
CN110233943A (en) * 2019-06-18 2019-09-13 深圳市珍爱云信息技术有限公司 Obtain method, apparatus, computer equipment and the storage medium of number mark

Similar Documents

Publication Publication Date Title
CN106127873B (en) Work attendance method, device based on mobile terminal and equipment
CN110532169A (en) Interface testing case generation method, device, computer equipment and storage medium
US8526929B1 (en) Mobile communication device provisioning and management
CN101888658B (en) GPRS (General Packet Radio Service) core network simulation and test system
CN106204776A (en) Work attendance method based on mobile terminal, device and equipment
CN107888703A (en) Information-pushing method, device, server and readable storage medium storing program for executing
CN109639751B (en) Block chain link point monitoring method, device and system and computer storage medium
EP1773082A1 (en) Remote testing of mobile terminals
CN106131869A (en) Method of testing and device, test system for mobile terminal
CN110336865A (en) Service calling method, device, storage medium and electronic equipment
CN107484155A (en) A kind of method for network access, a kind of electronic equipment and a kind of mobile terminal
CN109254914A (en) Software development kit test method, system, computer installation and readable storage medium storing program for executing
US20150199656A1 (en) Status Conditions of Imaging Devices for Generating Automatic Service Support
US20210383285A1 (en) System and method for allocating resources and services for an event using forecasting
CN106059860A (en) Method and device for testing network cards
CN110913362B (en) Method and device for realizing wireless signal test through client and test equipment
CN106648823A (en) Code release method and apparatus
CN106201852A (en) A kind of distributed test method and test system
CN108880923A (en) The method and apparatus that policer operation applied to application server is requested
CN100558056C (en) Automation consistency test method and device
CN111083018B (en) Production detection method and device for wireless equipment
US20150199655A1 (en) Status Conditions of Imaging Devices for Generating Automatic Service Support
CN105516394B (en) Dns address management method and terminal
CN103036911A (en) Business data processing system and business data processing method
CN113822036B (en) Privacy policy content generation method and device and electronic equipment

Legal Events

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

Application publication date: 20161116