Embodiment
For make above-mentioned purpose of the present invention, feature and advantage can be more obviously understandable, does detailed explanation below in conjunction with the accompanying drawing specific embodiments of the invention.
Set forth detail in the following description so that make much of the present invention.But the present invention can be different from alternate manner described here and implements with multiple, and those skilled in the art can do similar popularization under the situation of intension of the present invention.Therefore the present invention does not receive the restriction of following disclosed embodiment.
As described in the background technology; Prior art is as far as the test of mobile phone protocol stack; Generally can carry out through three kinds of modes; First kind: come the analog network environment through the network analog instrument, under the network environment of simulation, various scenes are carried out the test of mobile phone protocol stack, the higher and poor stability of the testing cost of this method of testing; Second kind: the test of mobile phone protocol stack is carried out in the place of mobile phone being taken to different cities, this method of testing can't omnibearing testing mobile phone protocol stack and cost high; The third: test by means of moving the mobile phone protocol stack on computers, this method of testing is difficult to find whether have problems between mobile phone protocol stack and the external interface module.
Therefore; The inventor proposes; The physical layer of portable terminal to be measured is simulated and correspondingly is configured to provide test required network environment through testing equipment to analog physical layer, and then come the protocol stack of portable terminal is tested accordingly through the operation test case.
See also Fig. 1; Fig. 1 is the basic structure sketch map of the test macro of embodiment of the present invention; As shown in Figure 1; Said test macro comprises portable terminal 1 and testing equipment 2, link to each other through data wire between testing equipment described in the present embodiment 2 and the said portable terminal 1, and the cooperation through said testing equipment 2 and said portable terminal 1 is to simulate required network environment; Said testing equipment 2 can be computer, comes the protocol stack of said portable terminal 1 is tested through moving the test case that is used for the testing mobile terminal protocol stack in the said computer.
In other embodiments, can also adopt wireless modes such as bluetooth, infrared, Wi-Fi to carry out the mutual of data between said portable terminal 1 and the testing equipment 2.
For the mobile terminal test method of the embodiment of the invention is described better, the mobile terminal test method of the embodiment of the invention is carried out detailed explanation below in conjunction with the implementation of the test case of testing mobile terminal caller function.
Before the mobile terminal test method to the embodiment of the invention described, first brief account is the implementation of test case once.See also Fig. 2, Fig. 2 is the implementation sketch map of embodiment of the invention test case; Said test case is used to test the process that portable terminal to be measured carries out calling service; As shown in Figure 2; For the test case of present embodiment, its implementation has generally included and has sent a command to portable terminal to be measured so that mobile terminal-opening to be measured, behind said mobile terminal-opening to be measured; Be the initial network environment of said mobile terminal configuration to be measured; Portable terminal to be measured search net successfully and resident after, through the mutual of information between portable terminal to be measured and the test case so that mobile terminal registers to be measured in proper cell, the main program in the implementation of test cases (dotted portion among Fig. 2) after this; Protocol stack with to portable terminal to be measured is tested accordingly; Particularly, be exactly can write in the main program of test case the test command relevant with test service and with mobile terminal protocol stack to be measured between carry out mutual relevant information, and send said test command and and the protocol stack of portable terminal to be measured between carry out extremely portable terminal to be measured of mutual relevant information; As: the concurrent carry information 1 of the establishment among Fig. 2 ... create concurrent carry information N.And said test case also will receive the feedback of protocol stack after the information that receives said test case transmission of portable terminal to be measured and verify, and then the protocol stack of portable terminal to be measured is tested.As: reception among Fig. 2 and authorization information 1 ... receive and authorization information N.Be configured to realize simulation through the analog physical layer of test case for outstanding in the present embodiment said portable terminal to be measured to the network environment of complicacy; So the part of the main program in Fig. 2 has marked " network environment that configuration is complicated " separately; The concurrent carry information of establishment that it also is equivalent to test case in essence, the concurrent carry information of establishment that is not both here is to be used for analog physical layer is correspondingly disposed.Usually; Different main programs can relate to the difference in functionality point of the protocol stack of testing portable terminal to be measured, then can realize the protocol stack of portable terminal to be measured is carried out the test of miscellaneous service, test of complex scene or the like through the execution to different test cases.After executing the main program of test case, test case can continue to send order to close portable terminal to be measured, EOT.
See also Fig. 3, Fig. 3 is the schematic flow sheet of the mobile terminal test method implemented of the present invention, and as shown in Figure 3, the mobile terminal test method of the embodiment of the invention comprises:
S11: testing equipment is based on required network environment, and the analog physical layer of portable terminal to be measured is configured;
S12: move at least one test case, the test command that generates is sent to portable terminal to be measured;
S13: monitor the process that said portable terminal to be measured is carried out said test command; Wherein, said portable terminal to be measured is based on to the execution of test command that protocol stack and the said analog physical layer of said portable terminal to be measured carry out;
S14:, obtain test result to the protocol stack of said portable terminal to be measured based on said monitoring.
In the present embodiment; In order to test all sidedly to the protocol stack of portable terminal to be measured; The network environment of different complicacy is provided need for portable terminal to be measured; So the testing equipment network environment required among the step S11, the analog physical layer of portable terminal to be measured correspondingly is configured to realize simulating required network environment according to test.After this, just can realize test through the operation test case to the protocol stack of portable terminal to be measured.
In the present embodiment; Analog physical layer described in the step S11; Mode through emulation is set up; Be used for simulating the behavior of actual physical layer of the protocol stack of portable terminal to be measured, and be to come the analog physical layer of portable terminal to be measured is configured to realize the behavior of actual physical layer and the simulation of network environment accordingly through the test case that is stored in the testing equipment.Specifically; It is the relevant parameter that portable terminal analog physical layer to be measured is set through in test case, writing; When implementation of test cases; Mutual through information between testing equipment and the portable terminal analog physical layer to be measured; The relevant parameter that being used to of writing in the test case is provided with analog physical layer is sent to the analog physical layer of portable terminal to be measured through eating dishes without rice or wine, accomplishing the configuration of portable terminal analog physical layer to be measured and then to obtain the required network environment of test, and also simulated the behavior of actual physical layer.
In the present embodiment; Through test case analog physical layer is correspondingly disposed; The behavior of both having simulated the actual physical layer has also obtained to test required network environment; Owing to need not to adopt network simulator analog network environment or take portable terminal to be measured to different city the protocol stack of portable terminal to be measured is tested, so reduced testing cost.
As stated; The analog physical layer of portable terminal to be measured can be simulated the behavior of actual physical layer after the test case configuration; Particularly; Said analog physical layer can respond the configuration of portable terminal 3G protocol stack layers two (data link layer) and layer each layer more than two etc., for example: the configuration of Radio Resource control (RRC, the Radio Resource Control) layer in the response 3G protocol stack.And; For the analog physical layer that is under the heterogeneous networks pattern; The behavior of the actual physical layer that it will be simulated is also different, as: for the single mode mobile phone under being in the TD-SCDMA network, analog physical layer need be simulated the behavior of portable terminal actual physical layer under the TD-SCDMA network; For not only being in the WCDMA network but also being in for the portable terminal of GSM network, analog physical layer then not only need have been simulated the behavior of portable terminal actual physical layer under the WCDMA network but also need simulate the behavior of portable terminal actual physical layer under the GSM network.Therefore, for the portable terminal under residing in heterogeneous networks, can be in the test case through different relevant parameters being set to reach the behavior that simulation resides in the actual physical layer of the mobile terminal protocol stack under the heterogeneous networks.
In the present embodiment, for reality be used to test for the test case of portable terminal caller function to be measured, step S11 then can be specially: L1SIM (L1SIM is set in test case; L1Simulator; The physical layer simulator) global variable, from the above, analog physical layer is to set up through the mode of emulation; L1SIM is used for the behavior of analog physical layer in the present embodiment, so L1SIM is equal to analog physical layer in the present embodiment.Send information specific to L1SIM, so that L1SIM is configured, and then reach the required initial network environment of configuration testing, said information specific comprises system information of subdistricts, and be in the L1SIM-NULL state this moment for L1SIM.
Can know according to the signal to the test case implementation among Fig. 2, for any one test case, all can write AT (Attention Commands) instruction of opening portable terminal to be measured; Order to open portable terminal to be measured through carrying out the AT that opens portable terminal to be measured, therefore, likewise; In the present embodiment, before the network environment of configuration testing, also need the AT in the first implementation of test cases to order to open portable terminal to be measured; This step action mainly is that each module in the portable terminal to be measured is carried out initialization; At this moment, status of mobile terminal to be measured is similar to the state that gets into offline mode, and its L1SIM then gets into the L1SIM-NULL state.By the way L1SIM is configured again after this, with the required network environment of simulation test.
In addition; In the simulation of success after the network environment; Because each module in the portable terminal to be measured has only been carried out initialization, therefore, the AT order of each module that also can write-enable portable terminal to be measured in the test case of reality; Testing equipment is carried out this order and is sent it to portable terminal to be measured so that its each module starts, and is similar to make portable terminal to be measured withdraw from offline mode.In the present embodiment, said offline mode is meant that portable terminal to be measured is in the state that does not transmit and receive signal, and still other functions of portable terminal to be measured still can be used, as: the inquiry phone directory, play video on the mobile phone or the like.
Above-mentioned L1SIM-NULL state is one of state that L1SIM had; For L1SIM, it has different state, sees also Fig. 4; Fig. 4 is the state transition graph of portable terminal analog physical layer; As shown in Figure 4, analog physical layer, promptly L1SIM has five kinds of transition statuses; Be respectively: L1SIM dummy status (L1SIM-NULL), L1SIM search net state (L1SIM-SRCH), L1SIM idle condition (L1SIM-IDLE), L1SIM dedicated mode state (L1SIM-DCH), L1SIM shared model state (L1SIM-FACH); Wherein, L1SIM-DCH is used to simulate the state that there is dedicated channel in terminal physical layer to be measured, and L1SIM-FACH is used to simulate the state that there is common signal channel in terminal physical layer to be measured; And the entering of each state, the upper strata of protocol stack that all depends on test case and portable terminal to be measured is in above-mentioned state to the configuration of L1SIM about L1SIM under which kind of situation, can see also the subsequent descriptions in the present embodiment.
In the test process of reality, dispose accordingly through analog physical layer portable terminal to be measured, normally after the startup work, portable terminal to be measured also can carry out following action with each module of required network environment of simulation test and portable terminal to be measured:
The upper strata of the protocol stack of portable terminal to be measured is with the process of initiating to search the net persistent district, and at this moment, L1SIM gets into the L1SIM-SRCH state.When the success of the upper strata of the protocol stack of portable terminal to be measured resident behind the sub-district; The upper strata of the protocol stack of portable terminal to be measured just can dispose L1SIM and get into the L1SIM-IDLE state; And registration process also will be initiated in the upper strata of portable terminal to be measured, and at this moment, testing equipment meeting analog network side and portable terminal to be measured communicate alternately to accomplish the process of registration; Testing equipment can generate the information of eating dishes without rice or wine, and is sent to portable terminal to be measured.Particularly; Be through the execution in the test case of testing equipment being obtained the information of eating dishes without rice or wine and be sent to the protocol stack of portable terminal to be measured, and then accomplish registration process alternately through information between test case in the testing equipment and the mobile terminal protocol stack to be measured.In the present embodiment; If the protocol stack of portable terminal to be measured is the 3G protocol stack; Then the upper strata of the protocol stack of said portable terminal to be measured specifically is meant the rrc layer in the Access Layer; If the protocol stack of portable terminal to be measured is the 2G protocol stack, then the upper strata of the protocol stack of said portable terminal to be measured specifically is meant radio resource (RR layer, Radio Resource Management).
Protocol stack with portable terminal to be measured is that the 3G protocol stack is an example; The registration process of portable terminal to be measured specifically comprises: the rrc layer in the protocol stack of portable terminal to be measured is given L1SIM allocating random access channel (RACH earlier; Random Access Channel) and send RRC-CONNECTION-REQUEST to L1SIM; This moment, L1SIM got into the L1SIM-FACH state; L1SIM can send to the test case that is stored in the testing equipment with RRC-CONNECTIION-REQUEST information simultaneously; Test case is after receiving information RRC-CONNECTIION-REQUEST; Transmission information RRC-CONNECTION-SETUP gets into the CELL-DCH state with the rrc layer of the protocol stack that disposes portable terminal to be measured, and the rrc layer of the protocol stack of portable terminal to be measured can dispose L1SIM and get into the L1SIM-DCH state after receiving RRC-CONNECTION-SETUP.Under the L1SIM-DCH state, the Non-Access Stratum of the protocol stack of portable terminal to be measured can continue and the test case interaction message, to accomplish registration process.
After this, testing equipment still communicates between analog network side and the portable terminal to be measured, makes portable terminal to be measured be in the IDLE state through the interacting message between the protocol stack of test case and portable terminal to be measured.Particularly; Send the rrc layer entering IDLE state that information RRC-CONNECTION-RELEASE disposes the protocol stack of portable terminal to be measured through test case; And after the rrc layer of the protocol stack of portable terminal to be measured receives RRC-CONNECTION-RELEASE information, can dispose L1SIM and get into the L1SIM-IDLE state.
So far,, simulated the required network environment of protocol stack of testing portable terminal to be measured on the one hand, made also that on the other hand portable terminal to be measured is in the IDLE state through above-mentioned process.
In the present embodiment; Can adopt a plurality of test cases to come the protocol stack of portable terminal to be measured is tested accordingly; It all has clear and definite test purpose for each test case; And corresponding with the corresponding function point of the protocol stack of portable terminal to be measured, specifically, be exactly that each test case is all write to certain function point of the protocol stack of test portable terminal to be measured.And for the operation of each test case; All be to select according to user's operation by testing equipment; And carry out control corresponding with the selected test case of run user, for a plurality of test cases of testing equipment operation, can adopt the mode of operation in batches to handle said test case, particularly; A plurality of test cases for user's selection; Select a plurality of test cases by testing equipment according to user's operation, and the execution sequence of control test case, the batch process for test case in the present embodiment specifically can be through the batch processing tool implementation of testing equipment.
Be that example describes to move a test case in the present embodiment; After the analog physical layer that adopts above-mentioned step S11 to the protocol stack of portable terminal to be measured is configured the required network environment of with simulation test portable terminal to be measured; Execution in step S12; Promptly continue to carry out said test case; Generate test command, can directly through data wire the test command that generates be sent to portable terminal to be measured in the present embodiment, said portable terminal to be measured is carried out said test command based on the protocol stack and the analog physical layer of said portable terminal to be measured.Next execution in step S13 monitors the process that said portable terminal to be measured is carried out said test command.
In the present embodiment, testing equipment is moved the form of the test command employing AT order of said test case generation.Said AT order is the character string with the AT beginning, and this character string comprises the indication information that concrete operations are carried out at the said auxiliary moving of indication terminal, and existing portable terminal is basically all supported the AT order.Correspondingly, the protocol stack of portable terminal to be measured can be carried out corresponding the processing after receiving said test command instruction, and for instance, if test command is ATD 10086, then the protocol stack of portable terminal to be measured can dialing numbers 10086 after receiving this order.
And; Carry out in the process of said test command at the protocol stack of portable terminal to be measured; The protocol stack that testing equipment can continue analog network side and portable terminal to be measured communicates alternately, and particularly, testing equipment communicates based on the analog physical layer of the protocol stack of said test case and portable terminal to be measured; Communicate with the protocol stack of portable terminal to be measured, the protocol stack of portable terminal to be measured is provided with.For instance; If the caller function that testing equipment will be tested portable terminal to be measured; Promptly test portable terminal to be measured and initiate caller; After then testing equipment issues the caller order of test portable terminal to be measured based on test case to portable terminal to be measured; Testing equipment also can be sent the protocol stack of the information of eating dishes without rice or wine to portable terminal to be measured, has comprised the information that test case is provided with the information of said mobile terminal protocol stack to be measured and in the caller process, is sent to the protocol stack of portable terminal to be measured in the said information of eating dishes without rice or wine.Particularly; When testing equipment can be tested portable terminal caller to be measured with being used to of writing in the test case; The information that the protocol stack relevant layers of portable terminal to be measured is set is sent to each layer with its corresponding mobile terminal protocol stack; And receive the protocol stack relevant layers feedack of portable terminal to be measured, and also can relating in the caller process simultaneously what write in the test case, the information that is sent to the protocol stack of portable terminal to be measured is sent to the protocol stack of portable terminal to be measured.Make the information that is provided with in protocol stack and the test case of portable terminal to be measured carry out alternately through testing equipment analog network side in the present embodiment; And then make the protocol stack of portable terminal to be measured realize execution to test command, promptly accomplish the test relevant with test command.
Still the test case with the caller function of above-mentioned test portable terminal to be measured is an example; After making portable terminal to be measured reside in proper cell through said process and succeeding in registration; Portable terminal to be measured is in the IDLE state; Continue implementation of test cases this moment, owing to be to be example with the test case of testing portable terminal caller function to be measured, so can write the test command that analog subscriber carries out the behavior of caller in the test case; here After test case is moved; The test command that generates can be sent to the protocol stack of portable terminal to be measured, and the protocol stack of portable terminal to be measured is after receiving this test command, with the process that initiatively begins CS MO CALL (Circuit Switched Mobile Originated Call).This moment, testing equipment can be obtained the test result to the protocol stack of portable terminal to be measured through the process that the protocol stack of monitoring portable terminal to be measured is carried out CS MO CALL; That is to say; Testing equipment can be through portable terminal to be measured protocol stack in the process of carrying out CS MO CALL and the interactive information between the test case judge test result to the protocol stack of portable terminal to be measured; Particularly; Testing equipment meeting analog network side; Carry out the mutual of the eat dishes without rice or wine information relevant with the protocol stack of portable terminal to be measured, and the informational needs of eating dishes without rice or wine of mobile terminal protocol stack to be measured feedback meets answer preset in the test case with CS MO CALL, if the protocol stack of portable terminal to be measured with the mutual process of test case in preset answer in the INFORMATION IS NOT test case of eating dishes without rice or wine of replying; Perhaps the protocol stack of portable terminal to be measured is not replied and is eated dishes without rice or wine information to testing equipment in the preset time, judges that then the test result to the protocol stack caller function of portable terminal to be measured is failure.
In the present embodiment, the protocol stack of portable terminal to be measured carry out CS MO CALL detailed process and and to be stored in the process of the information interaction between the test case in the testing equipment following:
The protocol stack of portable terminal to be measured is after receiving the instruction of carrying out caller; Rrc layer in the protocol stack of portable terminal to be measured can dispose RACH and send RRC-CONNECTION-REQUEST information to L1SIM to L1SIM earlier; So that L1SIM gets into the L1SIM-FACH state, rrc layer also can be sent to the test case that is stored in the testing equipment with RRC-CONNECTIION-REQUEST information simultaneously.
Test case is after receiving information RRC-CONNECTIION-REQUEST; The rrc layer that transmission information RRC-CONNECTION-SETUP disposes the protocol stack of portable terminal to be measured gets into the CELL-DCH state; And the rrc layer of the protocol stack of portable terminal to be measured can dispose L1SIM and get into the L1SIM-DCH state after receiving RRC-CONNECTION-SETUP.
After the L1SIM of portable terminal to be measured is in the L1SIM-DCH state; Calling control (the CC of the protocol stack of portable terminal to be measured; Call Control) carries out the mutual of information between layer meeting and the test case; After carrying out information interaction between the CC layer of the protocol stack of portable terminal to be measured and the test case, the carrying (RAB, Radio Access Bearer) that begins to set up accessing wirelessly.Particularly, the rrc layer that test case transmission information RB-SETUP disposes the protocol stack of portable terminal to be measured remains on the CELL-DCH state, has also distributed service transmission channel and physical channel resources for portable terminal to be measured through transmission information RB-SETUP simultaneously.Rrc layer can be configured relevant transmission channel and physical channel resources after receiving RB-SETUP information, and at this moment, L1SIM remains on the L1SIM-DCH state.
When L1SIM is in the L1SIM-DCH state, can proceed the mutual of information between the Non-Access Stratum of the protocol stack of portable terminal to be measured and the test case, until the process of accomplishing CS MO CALL.After the protocol stack of portable terminal to be measured is accomplished the process of CS MO CALL; Test case is sent information RRC-CONNECTION-RELEASE and is got into the IDLE state with the rrc layer of the protocol stack that disposes portable terminal to be measured; The rrc layer of the protocol stack of portable terminal to be measured can dispose L1SIM and get into the L1SIM-IDLE state after receiving RRC-CONNECTION-RELEASE information.
So far, through said process, the protocol stack of portable terminal to be measured has accomplished that test case sends is used to test the test of caller function of the protocol stack of portable terminal to be measured, has realized the automatic test of the protocol stack of portable terminal to be measured.
Need to prove, after the test of completion, also need continue implementation of test cases and close said portable terminal to be measured the caller function of the protocol stack of portable terminal to be measured; Particularly; Be under the L1SIM-IDLE state at L1SIM, protocol stack and the L1SIM of AT order in the implementation of test cases to close portable terminal to be measured, this moment is for portable terminal to be measured; Module of having only AT module, non-moving terminal protocol stack etc. is not closed, and is used to assist the operation of later test case.
In the present embodiment; Analog physical layer through to mobile terminal protocol stack to be measured correspondingly disposes, and with the network environment of Simulation of Complex, and other layers of mobile terminal protocol stack to be measured do not change; And in the test process; Mobile terminal protocol stack to be measured still operates on the actual portable terminal to be measured, therefore and the timer (Timer) that is associated of portable terminal hardware to be measured, burst sequence etc. can both be able to embody; And for directly protocol stack independently being become for a software module tests; Then can't simulate the sequential and the burst sequence of portable terminal to be measured, and, because mobile terminal protocol stack to be measured still operates on the actual portable terminal to be measured; Therefore can also realize the test between mobile terminal protocol stack to be measured and the external module, as: realize the test between mobile terminal protocol stack to be measured and keyboard, the display screen etc.Therefore, realized full test to mobile terminal protocol stack to be measured.
In addition; Need to prove; The mobile terminal test method of the embodiment of the invention; Can whether correct through moving different test cases if testing the protocol stack and the communication between its correlation module of portable terminal to be measured, also be the mobile terminal test method of the embodiment of the invention, be applicable to testing between the protocol stack of portable terminal and a plurality of module relevant with the mobile terminal protocol stack.For instance: the mobile terminal test method of the embodiment of the invention is applicable to testing between the protocol stack of portable terminal and the mobile phone interface relevant with the protocol stack of portable terminal (directly supplying the interface of user's operation in the mobile phone); Compatibility between the protocol stack of portable terminal and the SIM relevant with the protocol stack of portable terminal tests, to testing between the protocol stack of portable terminal and the USIM application toolkit (USAT, USIM Application Toolkit) relevant and the consistency of the protocol stack of portable terminal tested etc. with the protocol stack of portable terminal.
The embodiment of the invention also provides a kind of portable terminal; See also the portable terminal 1 shown in Fig. 6, as shown in Figure 6, said portable terminal 1 comprises: protocol stack 101 and physical layer; Wherein, Said physical layer is and the analog physical layer 102 of the protocol stack of said portable terminal 101 couplings, is suitable for being configured through the instruction that is provided with that comes self-testing device, to simulate required network environment.Need to prove; The protocol stack of the portable terminal 1 shown in Fig. 6 does not comprise real physical layer; And for the physical layer of portable terminal in the outstanding embodiment of the invention is an analog physical layer 102, so specially analog physical layer 102 and its protocol stack 101 of portable terminal 1 identified respectively.
The embodiment of the invention also provides a kind of testing equipment, sees also Fig. 5, and Fig. 5 is the structural representation of the testing equipment of the embodiment of the invention, and is as shown in Figure 5, and the testing equipment 2 of the embodiment of the invention comprises:
Test case processing unit 201 is used to move the corresponding test case of function point to be measured with the protocol stack of portable terminal to be measured.
Mobile terminal configuration unit 202 is used for based on the required network environment of test case, and the protocol stack and the physical layer of portable terminal to be measured is configured.
Test command transmitting element 203 is used for the operation result based on test case, issues test command to portable terminal to be measured.
Test result generation unit 204 is used to monitor the process that said portable terminal to be measured is carried out said test command, obtains the test result to the protocol stack of said portable terminal to be measured.
Network side analogue unit 205 is used for the operation result based on test case, and analog network side apparatus and portable terminal to be measured communicate alternately.
Batch processing instrument 206 is used for controlling test case processing unit 201 operation test cases according to user's operation, and particularly, batch processing instrument 206 can be controlled the test case processing unit a plurality of test cases of operation continuously according to user's operation.
Testing equipment described in the present embodiment 2 comprises network side analogue unit 205, and said test case processing unit 201, mobile terminal configuration unit 202, test command transmitting element 203, test result generation unit 204 and network side analogue unit 205 can be integrated in the base station simulator.
The instrument of batch processing described in the present embodiment 206 also is used to add up the test result of said test result generation unit 204 feedbacks, and then obtains the test result to the protocol stack of portable terminal to be measured.From the above; Batch processing instrument 206 can be controlled the test case processing unit 201 a plurality of test cases of operation continuously; And test case of every operation; Said test result generation unit 204 all can be monitored the process that said portable terminal to be measured is carried out said test command, obtains the test result to the protocol stack of said portable terminal to be measured.And test result fed back to batch processing instrument 206.Particularly; Test case of every operation; Said test result generation unit 204 can generate a text (title with test case is named); Text file can write down all interactive information that said portable terminal to be measured is carried out the protocol stack and the network side analogue unit 205 of portable terminal to be measured in the process of said test command, and the information such as running time of test case.If the operation of test case does not meet expection, can the failure of mark test case in the text.If the operation accord with expectation of test case can the success of mark test case in the text.Test result with the test case operation feeds back to batch processing instrument 206 then.
Batch processing instrument 206 is after a plurality of test case operations are accomplished; Can the test result of said test result generation unit 204 feedbacks be added up; Be given in a plurality of test cases of operation; The title of the test case of the number of the number of successful test case, the test case of failure, the running time of test case, failure, percent of pass etc., said percent of pass are meant the ratio of test case number of number and operation of the test case of success.Statistics according to batch processing instrument 206 provides promptly can obtain the test result to the protocol stack of portable terminal to be measured.
In addition, after the test result that obtains the protocol stack of portable terminal to be measured, can also analyze the test case of failure, and then the protocol stack of portable terminal to be measured is made amendment, with the function of the protocol stack that improves portable terminal to be measured.
The embodiment of the invention also provides a kind of test macro that comprises above-mentioned portable terminal and testing equipment, sees also Fig. 6, and Fig. 6 is the structural representation of the test macro of the embodiment of the invention; As shown in Figure 6; Said test macro comprises that portable terminal 1 and testing equipment are by 2, wherein
Said portable terminal 1 comprises: protocol stack 101 and analog physical layer 102.
Said testing equipment 2 comprises: test case processing unit 201, mobile terminal configuration unit 202, test command transmitting element 203, test result generation unit 204, network side analogue unit 205 and batch processing instrument 206.About the portable terminal among Fig. 61 and testing equipment 2 can repeat no more referring to above-mentioned description to said portable terminal 1 and testing equipment 2 here.The practical implementation process that the testing equipment of test macro is tested the protocol stack of portable terminal in the present embodiment can be carried out with reference to above-mentioned mobile terminal test method, repeats no more at this.
In sum, the technical scheme of the embodiment of the invention has following beneficial effect at least:
Dispose accordingly through the analog physical layer of testing equipment mobile terminal protocol stack to be measured; The network environment of needed various complicacies when the behavior that had both realized the actual physical layer has also been simulated the protocol stack of portable terminal tested; Reduced testing cost, realized automatic test completely the protocol stack of portable terminal;
Because the complex network environment of simulation is not easy to be disturbed by the network environment of reality, therefore, has improved the stability of the protocol stack of testing mobile terminal;
Analog physical layer through mobile terminal protocol stack to be measured is configured with the analog network environment, because network environment is controlled, so can reach the integrity test to the protocol stack of portable terminal;
Be configured through the analog physical layer of testing equipment, realized the behavior of actual physical layer, and other layers there are not any variation the protocol stack of portable terminal to be measured, so, realized full test to the protocol stack of portable terminal to be measured.
Though the present invention with preferred embodiment openly as above; But it is not to be used for limiting the present invention; Any those skilled in the art are not breaking away from the spirit and scope of the present invention; Can utilize the method and the technology contents of above-mentioned announcement that technical scheme of the present invention is made possible change and modification, therefore, every content that does not break away from technical scheme of the present invention; To any simple modification, equivalent variations and modification that above embodiment did, all belong to the protection range of technical scheme of the present invention according to technical spirit of the present invention.