CN105786700A - Multi-card automatic test system and method and mobile terminal - Google Patents

Multi-card automatic test system and method and mobile terminal Download PDF

Info

Publication number
CN105786700A
CN105786700A CN201410855736.7A CN201410855736A CN105786700A CN 105786700 A CN105786700 A CN 105786700A CN 201410855736 A CN201410855736 A CN 201410855736A CN 105786700 A CN105786700 A CN 105786700A
Authority
CN
China
Prior art keywords
test
unit
task
assignment
mobile terminal
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.)
Granted
Application number
CN201410855736.7A
Other languages
Chinese (zh)
Other versions
CN105786700B (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.)
Spreadtrum Communications Shanghai Co Ltd
Spreadtrum Communications Inc
Original Assignee
Spreadtrum Communications Shanghai 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 Spreadtrum Communications Shanghai Co Ltd filed Critical Spreadtrum Communications Shanghai Co Ltd
Priority to CN201410855736.7A priority Critical patent/CN105786700B/en
Publication of CN105786700A publication Critical patent/CN105786700A/en
Application granted granted Critical
Publication of CN105786700B publication Critical patent/CN105786700B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses a multi-card automatic test system and method and a mobile terminal, and belongs to the technical field of mobile terminal tests. The system comprises a control unit, a task issuing unit, an analysis unit, and a result acquisition unit. The method comprises the following steps: establishing a task sequence; selecting one of test tasks and issuing a corresponding test action, and making a corresponding issuing mark on an issued test task in the task sequence; analyzing the issued test action into a corresponding test instruction; executing the test instruction according to a preset execution sequence so as to control a function module to execute a test on a data card; acquiring and recording a corresponding test result which is obtained by executing the test instruction; and executing an issuing step circularly so as to issue and execute all the test tasks included in the task sequence. The above technical scheme provided by the invention has the following beneficial effects: the test complexity is reduced; the cost of maintaining a test script is reduced; some test tasks which cannot be realized in the existing testing technology can be realized; and the realization is simple and the cost is low.

Description

A kind of many cards Auto-Test System and method and mobile terminal
Technical field
The present invention relates to mobile terminal test technical field, particularly relate to a kind of many cards Auto-Test System and method and mobile terminal.
Background technology
Living the multiplex needs of commercial affairs to meet people, increasing mobile terminal starts to realize the technology of one-telephone multi-card.The mobile terminal of so-called one-telephone multi-card, refers to have multiple deck inside mobile terminal, it is possible to hold many data cards simultaneously.Adopt the mobile terminal of above-mentioned technology, it is possible to allow user to switch between different data cards easily, meet the requirement that user wishes to make a distinction job content and life content.
In prior art, when producing the mobile terminal of one-telephone multi-card, it is necessary to the many data cards wherein loaded are tested.At present on the market to the tests blocked, writing of its test script is more complicated, and changes test environment every time, is likely to need again to write script, and maintenance cost is higher more.
Summary of the invention
According to problems of the prior art, now provide the technical scheme of a kind of many cards Auto-Test System and method and mobile terminal, it is intended to reduce test complexity when many data card is tested and maintenance cost;
Technique scheme specifically includes:
A kind of many cards Auto-Test System, it is adaptable to carry the mobile terminal of many data cards;Wherein, including:
Control unit, corresponding described data card is performed corresponding test assignment by the functional module for directly controlling described mobile terminal;
Task issues unit, connect described control unit, described task issues and is preset with multiple described test assignment in unit, and each described test assignment includes at least one test action of correspondence, and described task issues unit for issuing corresponding described test assignment to described control unit;
Resolution unit, it is connected to described task and issues between unit and described control unit, the all described test action that the described test assignment issued for described task issues unit includes resolves to corresponding test instruction and exports, and described control unit controls the described functional module corresponding described test assignment of execution of described mobile terminal according to resolving the described test instruction obtained;
Result feedback unit, connects described control unit, for the test result fed back after obtaining the described test assignment of execution;
Described control unit is according to described test instruction, and different described data cards is separately or concurrently performed corresponding described test assignment by the different described functional module controlling described mobile terminal.
Preferably, this many cards Auto-Test System, wherein, the described functional module of described mobile terminal includes the data card switch unit of described mobile terminal, short message receiving-transmitting unit, telephony unit, network connection unit and data transmission unit;
Preferably, this many cards Auto-Test System, wherein, the definition of all described test action of a corresponding described test assignment is packaged in a corresponding test script and performs.
Preferably, this many cards Auto-Test System, wherein, also include:
Log unit, connects described result feedback unit, for recording the described test result that described result feedback unit obtains.
Preferably, this many cards Auto-Test System, wherein, also include:
Display unit, connects described result feedback unit, for showing the described test result that described result feedback unit obtains.
Preferably, this many cards Auto-Test System, wherein, described resolution unit includes multiple parsing module, and a described parsing module correspondence resolves a described test action;
Multiple described parsing modules resolve the multiple described test action included in same described test assignment parallel, to obtain corresponding described test instruction.
Preferably, this many cards Auto-Test System, wherein, also include:
Input block, connects described task and issues unit, defines, for user, the described test action that described test assignment includes, or
For user, the definition defaulting in the described test action that the described test assignment that described task issues in unit includes is modified.
Preferably, this many cards Auto-Test System, wherein, described task issues unit and includes:
Task sequence module, for being pre-formed the task sequence including the described test assignment that needs perform;
Task issues module, connects described task sequence module, for issuing described test assignment according to described task sequence;
Task flagging module, connects described task respectively and issues module and described task sequence module, issues labelling accordingly for the described test assignment issued in described task sequence is stamped;
After issuing labelling described in being all labeled with when all described test assignment in described task sequence, described task issues module and stops issuing described test assignment.
A kind of many cards automatic test approach, it is adaptable to carry the mobile terminal of many data cards;Wherein, including:
Step S1, sets up the task sequence including multiple test assignment;
Step S2, select one of them described test assignment and issue including test action, in described task sequence, the described test assignment issued is stamped and issues labelling accordingly;
Step S3, resolves to the described test action issued and tests instruction accordingly;
Step S4, performs described test instruction according to default execution sequence, and corresponding described data card is performed corresponding described test assignment by the corresponding functional module to control described mobile terminal;
Step S5, obtains and records the corresponding test result fed back after performing described test instruction;
Step S6, it is judged that whether also have the described test assignment issuing labelling described in not yet stamping in described task sequence:
If described task sequence also have not yet stamp described in issue the described test assignment of labelling, then return described step S2;
If all described test assignment in described task sequence issues labelling described in being all labeled with, then exit;
In described step S4, according to described test instruction, different described data cards is separately or concurrently performed corresponding described test assignment by the different described functional module controlling described mobile terminal.
Preferably, this many cards automatic test approach, wherein, in described step S4, the described functional module of described mobile terminal includes the data card switch unit of described mobile terminal, short message receiving-transmitting unit, telephony unit, network connection unit and data transmission unit.
Preferably, this many cards automatic test approach, wherein, in described step S2, the definition of all described test action that described test assignment includes is packaged in a corresponding test script.
Preferably, this many cards automatic test approach, wherein, in described step S3, adopt a test module to resolve a corresponding described test action, to obtain corresponding described test instruction.
Preferably, this many cards automatic test approach, wherein, after performing described step S5, first show described test result, then switch into described step S6.
A kind of mobile terminal, wherein, including above-mentioned many cards Auto-Test System.
A kind of mobile terminal, wherein, adopts above-mentioned many cards automatic test approach.
Technique scheme provides the benefit that:
1) that reduces test script writes complexity, thus reducing the complexity of test;
2) cost of maintenance test script is reduced;
3) some test assignments that existing measuring technology cannot realize can be realized;
4) realize relatively simple, it is achieved less costly.
Accompanying drawing explanation
Fig. 1 is in the preferred embodiment of the present invention, the structural representation of a kind of many cards Auto-Test System;
Fig. 2 is in the preferred embodiment of the present invention, the schematic flow sheet of a kind of many cards automatic test approach.
Detailed description of the invention
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is only a part of embodiment of the present invention, rather than whole embodiments.Based on the embodiment in the present invention, the every other embodiment that those of ordinary skill in the art obtain under the premise not making creative work, broadly fall into the scope of protection of the invention.
It should be noted that when not conflicting, the embodiment in the present invention and the feature in embodiment can be mutually combined.
Below in conjunction with the drawings and specific embodiments, the invention will be further described, but not as limiting to the invention.
Prior art is tested for what block automatically, generally require the content writing simulation manual operation in test script, and perform simulated operation step by step according to the test script write and just can finally give test result, such test process is very loaded down with trivial details, and the project that more such as cannot simultaneously activate for some test assignment can not complete test;Simultaneously for traditional test script, often data card of switching is required for entering in the setting options of mobile terminal again equipment, complicated operation, after the resolution of mobile terminal or user interface change, test script is also required to revise accordingly therewith, and maintenance cost is higher.
Meanwhile, when the mobile terminal being equipped with many data cards being tested in prior art, it is necessary to technical staff is operated on computer terminals, the instruction of terminal is sent to and is test in mobile terminal, then controls the mobile terminal corresponding test assignment of execution.Directly can the method for operational testing task on mobile terminals in prior art.
Based on the above-mentioned problems in the prior art, the present invention provides a kind of many cards Auto-Test System.In the preferred embodiment of the present invention, this many cards Auto-Test System is applied to mobile terminal, further, is applied to be equipped with the mobile terminal of many data cards A1.
In the preferred embodiment of the present invention, as it is shown in figure 1, above-mentioned many cards Auto-Test System specifically includes:
Control unit 1, corresponding data card A1 is performed corresponding test assignment by the multiple functional module (not shown) for controlling mobile terminal.
In the preferred embodiment of the present invention, the functional module of above-mentioned mobile terminal includes the data card switch unit of mobile terminal, short message receiving-transmitting unit, telephony unit, network connection unit and data transmission unit etc.;
Further, in the preferred embodiment of the present invention:
Data card switch unit is for switching the data card worked, or many data cards is placed under duty;
Short message receiving-transmitting unit is for performing corresponding function of receiving and sending short message to the data card worked;
Telephony unit for performing the function of corresponding dialing/connection phone to the data card worked;
Network connection unit is for performing network savvy to the data card worked;
Data transmission unit is for the function that the data card performing data worked is defeated.
In the preferred embodiment of the present invention, control unit 1 is according to the test instruction issued, and different data cards is performed corresponding test assignment by the different functional module separately or concurrently controlling mobile terminal, for instance:
While first blocks of data card is performed corresponding test assignment according to the network connection unit testing instruction control mobile terminal issued and data transmission unit by control unit 1, control the telephony unit of mobile terminal to the second blocks of data card corresponding test assignment of execution according to the test instruction issued.
Task issues unit 2, connects above-mentioned control unit 1.In the preferred embodiment of the present invention, task issues and is preset with multiple test assignment in unit 2, and includes multiple test action in each test assignment.In the preferred embodiment of the present invention, task issues unit 2 for issuing corresponding test assignment, in other words, for issuing all test actions including in a test assignment.
In the preferred embodiment of the present invention, task issues unit 2 and test assignment is issued in above-mentioned control unit 1, and is selected the functional module of corresponding mobile terminal by control unit 1, and corresponding data card A1 performs the test assignment issued.
In the preferred embodiment of the present invention, above-mentioned task issues unit 2 and farther includes:
Task sequence module 21.In the preferred embodiment of the present invention, task sequence module 21 is for forming the task sequence of a test assignment including needing issuing.In other words, in the preferred embodiment of the present invention, task sequence module 21 is for presetting during this is tested automatically the test assignment needing to perform.
In the preferred embodiment of the present invention, above-mentioned task sequence module 21 is pre-formed the mode of task sequence, it is possible to import the multiple test assignments needing test in advance for user, it is also possible to automatically set the required test assignment performed of this test for control software design.
In the preferred embodiment of the present invention, above-mentioned task sequence can also set corresponding execution sequence.
Above-mentioned task issues in unit 2 and also includes:
Task issues module 22, connects above-mentioned task sequence module 21.In the preferred embodiment of the present invention, task issues module 22 for issuing the test assignment that in above-mentioned task sequence module 21, preformed task sequence includes.
Further, in the preferred embodiment of the present invention, above-mentioned task issues module 22 can issue, according to transmitting sequence set in advance, the test assignment including in task sequence.
In the preferred embodiment of the present invention, task issues module 22 when issuing test assignment, namely means to issue all test actions including in test assignment.
Above-mentioned task issues in unit 2 and also includes:
Task flagging module 23, connects above-mentioned task sequence module 21 respectively and task issues module 22.In the preferred embodiment of the present invention, when task issues after module 22 issues a test assignment including in task sequence, this test assignment is stamped and is issued labelling accordingly by task flagging module 23, to represent that this test assignment is issued.
In the preferred embodiment of the present invention, except the above-mentioned test assignment issued being stamped and issues labelling, it can be stamped different labellings by different conditions residing for test assignment by task flagging module 23.Such as:
When test assignment execution feedback reports an error (error), corresponding test assignment is stamped labelling of makeing mistakes by task flagging module 13;Or
When test assignment performs feedback normal outcome, for instance when returning failed execution result (fail), corresponding test assignment is stamped the labelling that result returns by task flagging module 23.
In the preferred embodiment of the present invention, it is possible to test assignment is stamped different labellings by the state being presently according to test assignment, and hereinafter only relates to test assignment is stamped the situation issuing labelling.Therefore, technical solution of the present invention is not limiting as the state of the test assignment of kind and the correspondence that test assignment is marked.
In the preferred embodiment of the present invention, based on described above, namely namely this test assignment is stamped after test assignment issues and issue labelling accordingly, then task issued module 23 before issuing test assignment firstly the need of searching the test assignment whether also being not yet labeled with issuing labelling in task sequence, and issued the test assignment being not yet labeled with labelling;And all test assignments in task sequence be all labeled with issuing labelling after stop issuing test assignment.
In the preferred embodiment of the present invention, if task sequence module 21 is preset with the order issuing test assignment, then task issues module 22 and issues test assignment according to this order, it is not necessary to travels through task sequence every time before issuing and searches whether not yet to stamp the test assignment issuing labelling.
The delivery method of above-mentioned test assignment is only the preferred method solving how to carry out batch test automatically, not limits protection scope of the present invention with two kinds of methods of foregoing description.Other methods being capable of batch test automatically equally that those skilled in the art draw based on technical solution of the present invention still include in protection scope of the present invention.
In the preferred embodiment of the present invention, still as it is shown in figure 1, above-mentioned many cards Auto-Test System also includes;
Resolution unit 3, is connected to above-mentioned task and issues between unit 2 and control unit 1.It is probably artificially writes owing to task issues in the test assignment that unit 2 issues included test action, control unit 1 directly cannot control the functional module corresponding test assignment of execution of mobile terminal according to above-mentioned test action, therefore, in the preferred embodiment of the present invention, all test actions that the test assignment that resolution unit 3 issues for task issues unit 2 includes resolve, and are tested instruction accordingly to resolve.
In the preferred embodiment of the present invention, resolution unit 3 farther includes multiple parsing module 31 (only illustrating in Fig. 1), each parsing module 31 is corresponding resolves a test action, and namely a corresponding test action parsing formation tests instruction accordingly.In the preferred embodiment of the present invention, the machine instruction that above-mentioned test instruction and mobile terminal bottom can directly perform, after control unit 1 receives above-mentioned test instruction, select a corresponding data card, and perform corresponding test assignment by performing the mode of above-mentioned test instruction.
In one preferred embodiment of the present invention, above-mentioned parsing module 31 can be an interface for the test action of certain correspondence, this interface for corresponding test action resolved to mobile terminal it will be appreciated that and the test instruction performed, control unit 1 performs corresponding test assignment according to resolving the above-mentioned test instruction obtained.
In the preferred embodiment of the present invention, for test assignment, it is carried out serial parsing by the order that resolution unit 3 issues, according to above-mentioned task, the test assignment that unit 2 issues;And for the test action in a test assignment, it can be carried out serial parsing by resolution unit 3, namely having resolved a test action and resolved next test action again, it is also possible to it is resolved parallel, namely parallel parsing includes the multiple test actions in same test assignment.
In the preferred embodiment of the present invention, the definition of all test actions that the same test assignment of above-mentioned correspondence includes, it is packaged in corresponding test script according to default execution sequence, and performs test script when performing test assignment according to this execution sequence.
In the preferred embodiment of the present invention, above-mentioned many cards Auto-Test System also includes:
Result feedback unit 4, connects above-mentioned control unit 1.In the preferred embodiment of the present invention, the result feedback unit 3 test result for feeding back after obtaining the above-mentioned test assignment of execution.Further, in the preferred embodiment of the present invention, after corresponding data card A1 is performed corresponding test assignment by control unit 1, it is possible to obtain the test result that this test assignment is fed back after performing;Then the above results feedback unit 3 obtains the test result of above-mentioned feedback.
Log unit 5, connects the above results feedback unit 4.In the preferred embodiment of the present invention, log unit 5 obtains the test result that the above results feedback unit 4 obtains and exports, and this test result is recorded as journal file.
In the preferred embodiment of the present invention, above-mentioned many cards Auto-Test System also includes:
Display unit 6, connects the above results feedback unit 4.In the preferred embodiment of the present invention, display unit 5 is for showing the test result that the above results feedback unit 4 obtains.
Further, in the preferred embodiment of the present invention, understand the result of test for the ease of tester's entirety, display unit 6 can also limit whole test result, for instance show the result that each test action obtains after performing.
In the preferred embodiment of the present invention, display unit 6 can be the display screen of mobile terminal.
In the preferred embodiment of the present invention, above-mentioned many cards Auto-Test System also includes:
Input block 7, connects above-mentioned task and issues unit 2.In the preferred embodiment of the present invention, the test action that input block 7 includes for user definition test assignment, or
The definition that the task of defaulting in issues the test action that the test assignment in unit includes for user is modified.
In other words, in a preferred embodiment of the present invention, each test action that test assignment includes, can represent with a definition.
Hereinafter carry Double Data card for mobile terminal, enumerate the execution process of several test assignments in technical solution of the present invention, for instance:
1) for switching many cards, it is achieved the single deck tape-recorder of poll card, for instance for switching to card 1, opening the data traffic of card 1, by the test assignment of card 1 online, it can to encode formation:
Wherein,
Test action 1a represents that switch data card is card 1;
Test action 1b represents the data traffic opening card 1;
Test action 1c represents the webpage that connection is specified;
In other words, above-mentioned test assignment 1) include three test action 1a, 1b and 1c, and each test action all can be defined with a statement.
Then in the preferred embodiment of the present invention, control unit 1 according to above-mentioned test action resolved obtain afterwards test instruction accordingly, the data card worked is switched to card 1 (test action 1a) by the data card switch unit controlling mobile terminal;The data transmission unit controlling mobile terminal subsequently opens the data traffic of card 1 (test action 1b);The network connection unit finally controlling mobile terminal accesses the webpage (test action 1c) specified.
In the preferred embodiment of the present invention, above-mentioned each test action has corresponding result to judge, and is nested against one another, therefore eventually exports a corresponding test result;Such as:
If test action 1a performs failure, then export the test result of " SwitchDataSimFail ", and be recorded as journal file;If test action 1a runs succeeded, then turn to execution test action 1b;
If test action 1b performs failure, then export the test result of " OpenDataFail ", and be recorded as journal file;Test action 1b runs succeeded, then turn to execution test action 1c;
If test action 1c performs failure, then export the test result of " ConntectInternetFail ", and be recorded as journal file;If test action 1c runs succeeded, then export the test result of " ConntectInternetPass ", and be recorded as journal file.
Then in the preferred embodiment of the present invention, the difference of the test result of the test action feedback performed by each stage, the performance drawing this test assignment may finally be judged.
The process outputed test result in specific embodiment described below and record is similar as above, therefore repeats no more hereinafter.
In the preferred embodiment of the present invention, above-mentioned test action 1a, 1b and 1c are packaged in corresponding test script, and upon execution, are performed according to default execution sequence (1a-1b-1c).
In the preferred embodiment of the present invention, above-mentioned SwitchDataSim can be the description of the parsing module of corresponding test action 1a, correspondingly, above-mentioned OpenData can be the description of the parsing module of corresponding test action 1b, and above-mentioned ConntectInternet can be the description of the parsing module of corresponding test action 1c.Then the definition of test action can be converted to corresponding test instruction and be identified by control unit 1 by corresponding parsing module 31.
In contrast prior art, if having wanted above-mentioned test assignment 1), simulation manual operation is then needed to be encoded, need at least to complete: enter main interface screen sliding and enter and arrange entrance SIM and arrange selection data card and arrange selection card 1 six steps such as grade, it is necessary to the complexity of the statement of coding in the present invention to above-mentioned test assignment 1) definition that carries out.
2) for the interoperability business between blocking, for instance for the mobile terminal carrying Double Data card, adopting card 1 to send short messages to card 2, it can to encode formation more:
Wherein,
Test action 2a represent by note arrange switch to card 1;
Test action 2b represents the telephone number obtaining card 2;
Test action 2c represents that the short message receiving-transmitting unit execution controlling mobile terminal card 1 sends an SMS to the action of card 2;
In other words, above-mentioned test assignment 2) include three test action 2a, 2b and 2c, and each test action all can be defined with a statement.
Correspondingly, performed by above-mentioned test action 2a, 2b and 2c order, a corresponding test result may finally be returned, record this test result and be shown to user and check, it is possible to finally learning the result that this test assignment performs.
In the preferred embodiment of the present invention, above-mentioned SwitchSMSSim can be the description of the parsing module of corresponding test action 2a, correspondingly, above-mentioned GetSIMNumber can be the description of the parsing module of corresponding test action 2b, and above-mentioned SendSMS can be the description of the parsing module of corresponding test action 2c.Then the definition of test action can be converted to corresponding test instruction and be identified by mobile terminal processor by corresponding parsing module 21.
In contrast prior art, if it is desired to complete above-mentioned test assignment 2), then need simulation manual operation to be encoded, and if use traditional test script, then change after data card, it is necessary to again change test script, the complexity performing test is relatively larger.
In the preferred embodiment of the present invention, above-mentioned test action 2a, 2b and 2c are packaged in corresponding test script, and upon execution, are performed according to default execution sequence (2a-2b-2c).
3) for the voice and packet data concurrent service between blocking, for instance for the mobile terminal carrying Double Data card more, surfing the Net with card 1, carry out the test assignment making a phone call to carry out concurrent test simultaneously with card 2, it can encode formation:
Wherein,
Test action 1a represents that switch data card is card 1;
Test action 1b represents the data traffic opening card 1;
Test action 1c represents connection webpage;
Test action 3d represents the action that the telephony unit execution controlling mobile terminal card 2 is called;
In other words, above-mentioned test assignment 2) include three test action 1a, 1b, 1c and 3d, and each test action all can be defined with a statement.
Correspondingly, performed by above-mentioned test action 1a, 1b, 1c and 3d order, a corresponding test result may finally be returned, record this test result and be shown to user and check, it is possible to finally learning the result that this test assignment performs.
In the preferred embodiment of the present invention, above-mentioned CallByPhoneId can be the description of the parsing module of corresponding test action 3d.
In contrast prior art, if it is desired to complete above-mentioned test assignment 3), then need simulation manual operation to be encoded, for instance need to be coded into being advanced into browser and input the test processs such as network address-minimize browser-call.But browser is once after being minimized, mobile terminal just connects webpage no longer in real time, cannot realize test assignment 3 in therefore traditional test script) in regulation adopt card 1 online while call with card 2.
In the preferred embodiment of the present invention, above-mentioned test action 1a, 1b, 1c and 3d are packaged in corresponding test script, and upon execution, are performed according to default execution sequence (1a-1b-1c-3d).
In sum, adopting the many cards Auto-Test System described in technical solution of the present invention, it is possible to perform the test assignment that traditional test script cannot realize, relatively traditional test script code is simpler simultaneously, and computation complexity is lower, thus promoting testing efficiency.
In the preferred embodiment of the present invention, the above-mentioned description to parsing module 31 (i.e. interface) can include multiple, for instance:
Many cards switching interface type, for instance SwitchDataSim and SwitchSMSSim etc.;
Many cards arrange query interface type, for instance GetDataSim and GetSMSSim etc.;
Directly with the interface type sticking into industry business, for instance CallByPhoneId etc. more.
In the preferred embodiment of the present invention, as described above, each interface completes the parsing of a test action, and namely each interface correspondence resolves a corresponding definition statement of test action.
In the preferred embodiment of the present invention, as described above, the parsing of each test action and perform all to adopt background thread to process, the test action that namely test assignment includes can parallel processing, to ensure treatment effeciency.
In the preferred embodiment of the present invention, after performing test action, it is possible to automatic decision goes out the result performed, it is ensured that the robustness (Robust) of test script.
In the preferred embodiment of the present invention, it is provided that a kind of many cards automatic test approach based on above-mentioned many cards Auto-Test System, it is adaptable to carry the mobile terminal of many data cards;Its step is concrete as in figure 2 it is shown, include:
Step S1, sets up the task sequence including multiple test assignment;
In the preferred embodiment of the present invention, the task sequence including test assignment to be tested can by user sets itself, it is also possible to be set according to predefined sequence by test software.
Step S2, select one of them test assignment and issue including test action, in task sequence, the test assignment issued is stamped and issues labelling accordingly;
In the preferred embodiment of the present invention, after a test assignment has issued, the test assignment issued is stamped and issues labelling;
In the preferred embodiment of the present invention, test assignment being issued-resolved-process that performs in residing free position, corresponding labelling can be labeled with: such as test assignment performs or resolves makes mistakes, then be labeled with labelling of makeing mistakes.
In the preferred embodiment of the present invention, above-mentioned steps S2 is concerned only with test assignment is stamped and issues labelling, does not therefore limit the situation of kind and the correspondence that test assignment is marked;
Step S3, resolves to the test action issued and tests instruction accordingly;
In the preferred embodiment of the present invention, a corresponding test action, adopt a corresponding parsing module to resolve, i.e. a corresponding test action of parsing module (i.e. interface).
In the preferred embodiment of the present invention, in same test assignment, the parsing of test action can be parallel, namely when resolving and performing a test action, it is possible to starts to resolve next test action;Can also be serial, for instance resolve in a certain order and perform test action.
Therefore, in the preferred embodiment of the present invention, the definition of the above-mentioned all test actions included in same test assignment, it is packaged in corresponding test script according to default execution sequence.
Step S4, performs test instruction according to default execution sequence, and corresponding data card is performed corresponding test assignment by the corresponding functional module to control mobile terminal;
Step S5, obtains and records the corresponding test result fed back after performing test instruction, to obtain corresponding analysis result;
In the preferred embodiment of the present invention, after performing above-mentioned steps S5, after namely obtaining corresponding test result, it is possible to show this test result, go to step S6 subsequently again.
Step S6, it is judged that whether also have in task sequence and not yet stamp the test assignment issuing labelling:
If task sequence also has not yet stamps the test assignment issuing labelling, then return step S2;
If all test assignments in task sequence are labeled with issuing labelling all, then exit.
In the preferred embodiment of the present invention, in above-mentioned steps S6, the mode that task issues can adopt following method to complete:
Issue a test assignment;
Issue, and this test assignment is stamped issued labelling accordingly;
Traversal task sequence: not yet stamp, if finding to also have, the test assignment issuing labelling, then this test assignment is issued, and stamp equally and issue labelling;If all test assignments are all stamped and are issued labelling, then it represents that all test assignments have all issued, with backed off after random.
Above-mentioned task issues each test assignment that process is meant to ensure that in task sequence and has all been issued, it is achieved predetermined test plan, ensures that same test assignment is not issued twice, it is to avoid retest simultaneously.
In other preferred embodiments of the present invention, the mode that above-mentioned task issues can also adopt the mode that order issues, for instance:
The order that the task of presetting issues;
Issue test assignment according to transmitting sequence set in advance, and stamp after each test assignment has issued and issue labelling accordingly;
Instantly after distributing last test assignment, travel through whole task sequence, check whether not yet to stamp the test assignment issuing labelling:
Not yet stamp, if having, the test assignment issuing labelling, then turn to and issue this test assignment, and stamp and issue labelling;
If all test assignments are all labeled with issuing labelling, then it represents that all test assignments in task sequence have all issued, it is achieved predetermined test plan, then exit;
Therefore, the step that above-mentioned task issues is equally in order to ensure that each test assignment in task sequence has all been issued, it is achieved predetermined test plan, ensures that same test assignment is not issued twice, it is to avoid retest simultaneously.
Above-mentioned preferred embodiment issues the description of mode for task and is only the content making those skilled in the art be easy to understand technical solution of the present invention, not thereby limit protection scope of the present invention.Task is issued mode on the basis of technical solution of the present invention and carries out foreseeable change by those skilled in the art, reaches to ensure to realize predetermined test plan equally, and avoids the purpose of retest, then should include within protection scope of the present invention equally.
In the preferred embodiment of the present invention, also provide for a kind of mobile terminal, including above-mentioned many cards Auto-Test System.
In the preferred embodiment of the present invention, also provide for a kind of mobile terminal, wherein adopt above-mentioned many cards automatic test approach.
The foregoing is only preferred embodiment of the present invention; not thereby restriction embodiments of the present invention and protection domain; to those skilled in the art; the equivalent replacement done by all utilizations description of the present invention and diagramatic content and the obtained scheme of apparent change should be can appreciate that, all should be included in protection scope of the present invention.

Claims (15)

1. card Auto-Test System more than a kind, it is adaptable to carry the mobile terminal of many data cards;It is characterized in that, including:
Control unit, corresponding described data card is performed corresponding test assignment by the functional module for directly controlling described mobile terminal;
Task issues unit, connect described control unit, described task issues and is preset with multiple described test assignment in unit, and each described test assignment includes at least one test action of correspondence, and described task issues unit for issuing corresponding described test assignment to described control unit;
Resolution unit, it is connected to described task and issues between unit and described control unit, the all described test action that the described test assignment issued for described task issues unit includes resolves to corresponding test instruction and exports, and described control unit controls the described functional module corresponding described test assignment of execution of described mobile terminal according to resolving the described test instruction obtained;
Result feedback unit, connects described control unit, for the test result fed back after obtaining the described test assignment of execution;
Described control unit is according to described test instruction, and different described data cards is separately or concurrently performed corresponding described test assignment by the different described functional module controlling described mobile terminal.
2. many cards Auto-Test System as claimed in claim 1, it is characterised in that the described functional module of described mobile terminal includes the data card switch unit of described mobile terminal, short message receiving-transmitting unit, telephony unit, network connection unit and data transmission unit.
3. many cards Auto-Test System as claimed in claim 1, it is characterised in that the definition of all described test action of a corresponding described test assignment is packaged in a corresponding test script and performs.
4. many cards Auto-Test System as claimed in claim 1, it is characterised in that also include:
Log unit, connects described result feedback unit, for recording the described test result that described result feedback unit obtains.
5. many cards Auto-Test System as claimed in claim 4, it is characterised in that also include:
Display unit, connects described result feedback unit, for showing the described test result that described result feedback unit obtains.
6. many cards Auto-Test System as claimed in claim 1, it is characterised in that described resolution unit includes multiple parsing module, a described parsing module correspondence resolves a described test action;
Multiple described parsing modules resolve the multiple described test action included in same described test assignment parallel, to obtain corresponding described test instruction.
7. many cards Auto-Test System as claimed in claim 1, it is characterised in that also include:
Input block, connects described task and issues unit, defines, for user, the described test action that described test assignment includes, or
For user, the definition defaulting in the described test action that the described test assignment that described task issues in unit includes is modified.
8. many cards Auto-Test System as claimed in claim 1, it is characterised in that described task issues unit and includes:
Task sequence module, for being pre-formed the task sequence including the described test assignment that needs perform;
Task issues module, connects described task sequence module, for issuing described test assignment according to described task sequence;
Task flagging module, connects described task respectively and issues module and described task sequence module, issues labelling accordingly for the described test assignment issued in described task sequence is stamped;
After issuing labelling described in being all labeled with when all described test assignment in described task sequence, described task issues module and stops issuing described test assignment.
9. card automatic test approach more than a kind, it is adaptable to carry the mobile terminal of many data cards;It is characterized in that, including:
Step S1, sets up the task sequence including multiple test assignment;
Step S2, select one of them described test assignment and issue including test action, in described task sequence, the described test assignment issued is stamped and issues labelling accordingly;
Step S3, resolves to the described test action issued and tests instruction accordingly;
Step S4, performs described test instruction according to default execution sequence, and corresponding described data card is performed corresponding described test assignment by the corresponding functional module to control described mobile terminal;
Step S5, obtains and records the corresponding test result fed back after performing described test instruction;
Step S6, it is judged that whether also have the described test assignment issuing labelling described in not yet stamping in described task sequence:
If described task sequence also have not yet stamp described in issue the described test assignment of labelling, then return described step S2;
If all described test assignment in described task sequence issues labelling described in being all labeled with, then exit;
In described step S4, according to described test instruction, different described data cards is separately or concurrently performed corresponding described test assignment by the different described functional module controlling described mobile terminal.
10. many cards automatic test approach as claimed in claim 9, it is characterized in that, in described step S4, the described functional module of described mobile terminal includes the data card switch unit of described mobile terminal, short message receiving-transmitting unit, telephony unit, network connection unit and data transmission unit.
11. many cards automatic test approach as claimed in claim 9, it is characterised in that in described step S2, the definition of all described test action that described test assignment includes is packaged in a corresponding test script.
12. many cards automatic test approach as claimed in claim 10, it is characterised in that in described step S3, a test module is adopted to resolve a corresponding described test action, to obtain corresponding described test instruction.
13. many cards automatic test approach as claimed in claim 9, it is characterised in that after performing described step S5, first show described test result, then switch into described step S6.
14. a mobile terminal, it is characterised in that include the many cards Auto-Test System as described in claim 1-8.
15. a mobile terminal, it is characterised in that adopt the many cards automatic test approach as described in claim 9-13.
CN201410855736.7A 2014-12-26 2014-12-26 A kind of more card Auto-Test Systems and method and mobile terminal Active CN105786700B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410855736.7A CN105786700B (en) 2014-12-26 2014-12-26 A kind of more card Auto-Test Systems and method and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410855736.7A CN105786700B (en) 2014-12-26 2014-12-26 A kind of more card Auto-Test Systems and method and mobile terminal

Publications (2)

Publication Number Publication Date
CN105786700A true CN105786700A (en) 2016-07-20
CN105786700B CN105786700B (en) 2018-11-16

Family

ID=56389218

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410855736.7A Active CN105786700B (en) 2014-12-26 2014-12-26 A kind of more card Auto-Test Systems and method and mobile terminal

Country Status (1)

Country Link
CN (1) CN105786700B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070207798A1 (en) * 2006-03-03 2007-09-06 Basil Talozi Improved subscriber identity module (sim) application toolkit test method and system
US20080078669A1 (en) * 2006-09-15 2008-04-03 Nokia Corporation Providing maintenance access via an external connector
CN101175285A (en) * 2006-11-01 2008-05-07 联想移动通信科技有限公司 Automatic testing method and system for mobile phone software
CN101287266A (en) * 2008-05-30 2008-10-15 德信无线通讯科技(北京)有限公司 Test system and method for mobile phone
CN102420717A (en) * 2011-11-04 2012-04-18 展讯通信(上海)有限公司 Test method and system for mobile terminal protocol stack

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070207798A1 (en) * 2006-03-03 2007-09-06 Basil Talozi Improved subscriber identity module (sim) application toolkit test method and system
US20080078669A1 (en) * 2006-09-15 2008-04-03 Nokia Corporation Providing maintenance access via an external connector
CN101175285A (en) * 2006-11-01 2008-05-07 联想移动通信科技有限公司 Automatic testing method and system for mobile phone software
CN101287266A (en) * 2008-05-30 2008-10-15 德信无线通讯科技(北京)有限公司 Test system and method for mobile phone
CN102420717A (en) * 2011-11-04 2012-04-18 展讯通信(上海)有限公司 Test method and system for mobile terminal protocol stack

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
毛艺丞: "TD-LTE Cu卡接口一致性测试", 《电信网技术 》 *

Also Published As

Publication number Publication date
CN105786700B (en) 2018-11-16

Similar Documents

Publication Publication Date Title
CN111737127B (en) Method and apparatus for testing map services
CN103744784B (en) Mobile phone application automated testing method and system
CN107453960B (en) Method, device and system for processing test data in service test
CN104821954B (en) A kind of cross-platform remote procedure calling (PRC) method
CN101150463B (en) Testing method and system
CN111427803B (en) Automated random test method, apparatus, computer device and medium
CN106681924A (en) Software testing method and software testing system
CN109002366A (en) A kind of remote debugging method and device of mobile terminal webpage
CN104778121A (en) Game program test method, device and system
CN109560996B (en) Automatic testing system and method for terminal of Internet of things
CN103577320A (en) Testing method and system of remote terminals
CN107070752B (en) Testing method and testing system for long connection capacity
CN106209503A (en) RPC interface test method and system
CN110941563A (en) Automatic script testing method and device
CN108234246B (en) Method and system for multi-directionally testing network performance of server
CN112631937A (en) Automatic CAN operation testing method and device for T-Box
CN114301506A (en) Method and device for simulating NFC function, NFC terminal and storage medium
CN103746873A (en) System and method for testing communication module
CN116545891A (en) Automatic distribution network testing method based on intelligent equipment
CN110334014A (en) For user interface automated testing method, system, server and storage medium
CN105786700A (en) Multi-card automatic test system and method and mobile terminal
CN116028367A (en) Automatic test system and method
CN112100187B (en) Student learning data storage method and device based on VueJS
CN109144850A (en) The test method interactively communicated and system of mobile terminal
CN105792241A (en) Automatic test system and method and mobile terminal

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant