CN103455413A - Method, device and system for interaction scenario test data processing of communication terminals - Google Patents

Method, device and system for interaction scenario test data processing of communication terminals Download PDF

Info

Publication number
CN103455413A
CN103455413A CN2012101774104A CN201210177410A CN103455413A CN 103455413 A CN103455413 A CN 103455413A CN 2012101774104 A CN2012101774104 A CN 2012101774104A CN 201210177410 A CN201210177410 A CN 201210177410A CN 103455413 A CN103455413 A CN 103455413A
Authority
CN
China
Prior art keywords
communicating terminal
measured
test
script
configuration file
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
CN2012101774104A
Other languages
Chinese (zh)
Other versions
CN103455413B (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.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing 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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201210177410.4A priority Critical patent/CN103455413B/en
Publication of CN103455413A publication Critical patent/CN103455413A/en
Application granted granted Critical
Publication of CN103455413B publication Critical patent/CN103455413B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

An embodiment of the invention discloses a method, device and system for interaction scenario test data processing of communication terminals. The method comprises the steps of establishing test relations of to-be-tested virtual communication terminals according to a received test request; intercepting identifications of the to-be-tested virtual communication terminals, enabling the to-be-tested virtual communication terminals to have mapping relations with a to-be-tested communication terminal, and enabling the mapping relations to comprise device identification mapping and test movement data mapping; setting interaction scenarios according to the test request and calling script files of automated scripts under the interaction scenarios; analyzing script configuration files corresponding to the script files, controlling the to-be-tested virtual communication terminals to perform test movements according to the script configuration files, enabling the script configuration files to be relevant with the identifications, enabling the script files and the script configuration files to be respectively stored in different storage modules, and enabling the script files to comprise packaged operation keywords corresponding to the interaction scenarios; monitoring the test movements of the to-be-tested virtual communication terminals, and outputting monitoring results.

Description

A kind of communicating terminal interaction scenarios test data disposal route, device and system
Technical field
The present invention relates to communicating terminal communication test technical field, more particularly, relate to a kind of communicating terminal interaction scenarios test data disposal route, device and system.
Background technology
Along with scientific and technological development, communicating terminal enters people's sight line more and more, and for example mobile terminal progressively becomes the common tool of people's communication.Android system, as nowadays application platform and the development platform of main flow, is promoted and application in mobile terminal and panel computer.Application software based on Android system is constantly weeded out the old and bring forth the new, meet the multifunctional application demand that people increase day by day, the operation stability of Android system in communicating terminal directly affects user's use impression, thereby need to Android system robustness and stability in communicating terminal, be tested by means of testing tool.
The existing testing software for Android system, as in monkeyrunner certain communicating terminal for the embedding Android system, carried out the pressure communication test, described pressure communication test comprises conversation, SMS communication, Bluetooth transmission etc., described monkeyrunner provides an application programming interface, and the program of using DLL (dynamic link library) to write out can be controlled the operation of this communication apparatus outside the Android code.
Yet; carry out the test of every simulated operation of communication control equipment by monkeyrunner and need to when each test, write the coupling driver for this communication apparatus; as the Python program; for instance; during the speaking test of two communication apparatus under carrying out interaction scenarios; test code editor in this Python program; be structure and the editor of target communication apparatus code and conversation pressure test scene code, and final postrun test result will be directly to export the normal or fault of operation.Such test mode, when facing different communication apparatus and different test scene testing requirement, exists the testing efficiency that repeats to edit test code and cause low, and the poor problem of tracing property of system test result under the communication apparatus interaction scenarios.
Summary of the invention
In view of this, the invention provides a kind of communicating terminal interaction scenarios test data disposal route, device and system, to realize directly calling script file and the configuration file thereof that is packaged with key word, the low problem of testing efficiency of avoiding repeating to edit test code and causing, and move by snoopy test the poor situation of system test result tracing property under the communication apparatus interaction scenarios of improving.
A kind of communicating terminal interaction scenarios test data disposal route comprises:
Set up the test relation between virtual communicating terminal to be measured according to the test request received;
Intercept and capture the sign of virtual communicating terminal to be measured, described virtual communicating terminal to be measured and communicating terminal to be measured possess mapping relations, and described mapping relations comprise the mapping of device identification mapping and test action data;
The described test request of foundation is set interaction scenarios and is called the script file of the automatized script under this interaction scenarios;
Resolve the script configuration file corresponding with described script file, control virtual communicating terminal to be measured according to this script configuration file and carry out test action, described script configuration file is associated with described sign, described script file is stored in respectively in different memory modules from described script configuration file, and described script file comprises the operation key word corresponding with described interaction scenarios of encapsulation;
Monitor the test action of described virtual communicating terminal to be measured, and the output snoop results.
Preferably: described automatized script comprises described script file, and the script configuration file corresponding with described script file;
Resolve the script configuration file that described script file is corresponding while calling described operation key word, described script configuration file comprises the test action code.
Preferably: the described test relation of setting up virtual communicating terminal to be measured comprises:
Search is connected to the communicating terminal to be measured of test port, and receives the test request for described communicating terminal to be measured;
Build the communication interface of communicating terminal to be measured and virtual communicating terminal to be measured;
According to described test request, build the test connecting link between described communicating terminal to be measured.
Preferably: described sign is specially the equipment Serial Number of described communicating terminal to be measured.
In order to improve such scheme, also comprise: generate the mapping relations of virtual communicating terminal to be measured and communicating terminal to be measured, comprising:
Open respectively the test port that described communicating terminal to be measured is corresponding with described virtual communicating terminal to be measured;
The script configuration file code input port of the test port of described virtual communicating terminal to be measured is connected with the test port of described communicating terminal to be measured.
Preferably, controlling virtual communicating terminal execution test action to be measured according to this script configuration file comprises:
Identify the test action code in described script configuration file under current interaction scenarios;
Described test action code comprises the code that carries out the communication blocked operation between virtual communicating terminal to be measured;
Receive described virtual communicating terminal to be measured according to described test action code respective action response message.
Preferably, the test action of the described virtual communicating terminal to be measured of described monitoring comprises:
Receive the test action feedback information of described virtual communicating terminal to be measured, and store and export with the daily record form.
Preferably, described mapping relations comprise: local mapping relations and/or long-range mapping relations.
Preferably, the generation of described local mapping relations is specially:
The local communicating terminal to be measured that is connected to communicating terminal interaction scenarios test data treating apparatus of search, and receive the test request for communicating terminal to be measured;
The proxy module of the test action code in described script configuration file under the current interaction scenarios of identification is compiled in the system source code of described communicating terminal to be measured.
Preferably, the generation of described long-range mapping relations is specially:
Search is connected to the communicating terminal to be measured of communicating terminal interaction scenarios test data treating apparatus by remote protocol, and receives the test request for communicating terminal to be measured;
The proxy module that possesses telecommunications functions of the test action code in described script configuration file under the current interaction scenarios of identification is compiled in the system source code of described communicating terminal to be measured.
A kind of communicating terminal interaction scenarios test data treating apparatus comprises:
The test relation is set up module, for the test request according to receiving, sets up the test relation between virtual communicating terminal to be measured;
Identifier acquisition module, for intercepting and capturing the sign of virtual communicating terminal to be measured, described virtual communicating terminal to be measured and communicating terminal to be measured possess mapping relations, and described mapping relations comprise the mapping of device identification mapping and test action data;
The script file calling module, for setting interaction scenarios and calling the script file of the automatized script under this interaction scenarios according to described test request;
Testing execution module, for resolving the script configuration file corresponding with described script file, control virtual communicating terminal to be measured according to this script configuration file and carry out test action, and described script configuration file is associated with described sign;
Described script file is stored in respectively in different memory modules from described script configuration file, and described script file comprises the operation key word corresponding with described interaction scenarios of encapsulation;
Monitor module, for monitoring the test action of described virtual communicating terminal to be measured, and the output snoop results.
In order to improve such scheme, also comprise:
The first memory module and the second memory module, wherein:
Described script file is stored in described the first memory module, and described script configuration file stores is in described the second memory module;
Described automatized script comprises described script file, and the script configuration file corresponding with described script file;
Resolve the script configuration file that described script file is corresponding while calling described operation key word, described script configuration file comprises the test action code.
Preferably, test relation is set up module and is comprised:
The test request receiver module, be connected to the communicating terminal to be measured of test port for search, and receive the test request for described communicating terminal to be measured;
Communication interface builds module, for building the communication interface of communicating terminal to be measured and virtual communicating terminal to be measured;
Connecting link is built module, for according to described test request, builds the test connecting link between described communicating terminal to be measured.
In order to improve such scheme, also comprise: the mapping relations generation module, for opening respectively the test port that described communicating terminal to be measured is corresponding with described virtual communicating terminal to be measured;
The script configuration file code input port of the test port of described virtual communicating terminal to be measured is connected with the test port of described communicating terminal to be measured.
Preferably, described testing execution module comprises:
The code identification module, for identifying the test action code of described script configuration file under current interaction scenarios;
Change-over switch, for carrying out the code of communication blocked operation;
Script configuration file code input port, in the described virtual communicating terminal to be measured of the test action code injection by the script configuration file.
Preferably, described monitoring module comprises:
The feedback information receiver module, in the described virtual communicating terminal to be measured of the test action code injection by the script configuration file;
The storage output module, for storing and export described test action feedback information with the daily record form.
Preferably, the mapping relations generation module comprises:
Local mapping relations generation module and/or long-range mapping relations generation module, wherein:
Described local mapping relations generation module, for:
The local communicating terminal to be measured that is connected to communicating terminal interaction scenarios test data treating apparatus of search, and receive the test request for communicating terminal to be measured;
The proxy module of the test action code in described script configuration file under the current interaction scenarios of identification is compiled in the system source code of described communicating terminal to be measured;
Described long-range mapping relations generation module, for:
Search is connected to the communicating terminal to be measured of communicating terminal interaction scenarios test data treating apparatus by remote protocol, and receives the test request for communicating terminal to be measured;
The proxy module that possesses telecommunications functions of the test action code in described script configuration file under the current interaction scenarios of identification is compiled in the system source code of described communicating terminal to be measured.
A kind of communicating terminal interaction scenarios test data processing system, comprise described communicating terminal interaction scenarios test data treating apparatus.
From above-mentioned technical scheme, can find out, the embodiment of the present invention is set up the mapping relations of the communicating terminal and the virtual communicating terminal that carry out the interaction scenarios test, comprise the mapping of test action mapping and sign, include the script file of testing key word and resolve the script configuration file corresponding with described script file by calling, carry out the test action of virtual communicating terminal, realized separating of script file and script configuration file, described script file includes the key word of encapsulation, and when being called, only need the script configuration file associated with described sign, can carry out the test for communicating terminal, thereby overcome the low problem of testing efficiency that repeats to edit test code for different Devices to tests in the prior art and cause, and monitor the test action of described virtual communicating terminal to be measured, export detailed test record, be convenient to the tester and obtain detecting information, overcome in prior art the poor problem of the tracing property of system test result under the communication apparatus interaction scenarios.
The accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, below will the accompanying drawing of required use in embodiment or description of the Prior Art be briefly described, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skills, under the prerequisite of not paying creative work, can also obtain according to these accompanying drawings other accompanying drawing.
Fig. 1 is the disclosed a kind of communicating terminal interaction scenarios test data process flow figure of the embodiment of the present invention;
Fig. 2 is the disclosed a kind of method flow diagram of setting up the test relation of virtual communicating terminal to be measured of further embodiment of this invention;
Fig. 3 is the disclosed a kind of method flow diagram that generates the mapping relations of virtual communicating terminal to be measured and communicating terminal to be measured of further embodiment of this invention;
Fig. 4 is the disclosed a kind of method flow diagram that generates the mapping relations of virtual communicating terminal to be measured and communicating terminal to be measured of further embodiment of this invention;
Fig. 5 is the disclosed a kind of method flow diagram that generates the mapping relations of virtual communicating terminal to be measured and communicating terminal to be measured of further embodiment of this invention;
Fig. 6 a is the disclosed a kind of communicating terminal interaction scenarios test data treating apparatus structural representation of further embodiment of this invention;
Fig. 6 b is the disclosed a kind of communicating terminal interaction scenarios test data treating apparatus testing execution module structural representation of further embodiment of this invention;
Fig. 7 is the disclosed a kind of communicating terminal interaction scenarios test data treating apparatus structural representation of further embodiment of this invention;
Fig. 8 is the disclosed a kind of communicating terminal interaction scenarios test data treating apparatus structural representation of further embodiment of this invention;
Fig. 9 is the disclosed a kind of communicating terminal interaction scenarios test data processing system structural representation of further embodiment of this invention.
Embodiment
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, obviously, described embodiment is only the present invention's part embodiment, rather than whole embodiment.Embodiment based in the present invention, those of ordinary skills, not making under the creative work prerequisite the every other embodiment obtained, belong to the scope of protection of the invention.
The embodiment of the invention discloses a kind of communicating terminal interaction scenarios test data disposal route, to realize directly calling script file and the configuration file thereof that is packaged with key word, the low problem of testing efficiency of avoiding repeating to edit test code and causing, and move by snoopy test the poor situation of system test result tracing property under the communication apparatus interaction scenarios of improving.
Fig. 1 shows a kind of communicating terminal interaction scenarios test data disposal route, comprising:
Step 11: according to the test request received, set up the test relation between virtual communicating terminal to be measured;
Described test request refers to for the request of being conversed between virtual communicating terminal A to be measured and virtual communication B to be measured or the note transmission pressure is tested; and under the method for Fig. 2 diagram and corresponding explanation thereof; set up conversation or communication pressure test relation between virtual communicating terminal A to be measured and virtual communication B to be measured; show as virtual communicating terminal A to be measured and virtual communicating terminal B to be measured enters the test readiness on the PC of being responsible for test or proving installation, and can be by following field groups realization;
<caselist>
...
<device > PhoneA equipment Serial Number</device
<device > PhoneB equipment Serial Number</device
</caselist>
Above-mentioned field groups is for illustrate clear and the automatized script of the interaction scenarios of enumerating is controlled the operation of virtual communicating terminal A to be measured and virtual communicating terminal B to be measured.If the script configuration file only has a pair of field<device ></device >, be exactly the automatized script that a pair of terminal drops into test; Contain multipair<device ></device >, be exactly the automatized script that multipair terminal drops into test.
Step 12: intercept and capture the sign of virtual communicating terminal to be measured, described virtual communicating terminal to be measured and communicating terminal to be measured possess mapping relations, and described mapping relations comprise the mapping of device identification mapping and test action data;
In the present embodiment, described sign is specially the equipment Serial Number of described communicating terminal to be measured, before carrying out pressure test with regard to the capture device sequence number, make all test actions all associated with this equipment Serial Number, be convenient to distinguish the action of controlling virtual communicating terminal to be measured, while also is convenient to nested as this equipment Serial Number and the script file that calls the key word encapsulation, has overcome the low problem of testing efficiency that need to again write test code for different middle-ends in the prior art and cause.
About the construction method of mapping relations, referring to Fig. 3 diagram and explanation thereof.
Step 13: the described test request of foundation is set interaction scenarios and is called the script file of the automatized script under this interaction scenarios;
May need to carry out miscellaneous interaction scenarios pressure test for certain test request, and specifically select which kind of or which class to set according to practical application, and call automatized script under selected interaction scenarios.
Step 14: resolve the script configuration file corresponding with described script file, control virtual communicating terminal to be measured according to this script configuration file and carry out test action, described script configuration file is associated with described sign;
More specifically, described control virtual communicating terminal execution test action to be measured comprises:
Identify the test action code in described script configuration file under current interaction scenarios;
Described test action code comprises the code that carries out the communication blocked operation between virtual communicating terminal to be measured, describedly switches to unidirectional switching, and synchronization can only be by test action code injection to a virtual communicating terminal to be measured.
By in the described virtual communicating terminal to be measured of the test action code injection in the script configuration file, described implant operation can the queue form be realized.
Described automatized script comprises described script file, and the script configuration file corresponding with described script file;
Described script file is stored in respectively in different memory modules from described script configuration file, and described script file comprises the operation key word corresponding with described interaction scenarios of encapsulation;
Resolve the script configuration file that described script file is corresponding while calling described operation key word, described script configuration file comprises the test action code.
Described script file forms with key word encapsulation, and the convenient separation of script configuration file and script file the writing and calling of user.
Step 15: monitor the test action of described virtual communicating terminal to be measured, and the output snoop results.
Receive the test action feedback information of described virtual communicating terminal to be measured, and store and export with the daily record form.
It should be noted that, the embodiment of the present invention is specially adapted to communicating terminal (mobile phone, the panel computer etc.) interactive text based on Android system, but does not limit to;
Mapping relations based on virtual communicating terminal to be measured and communicating terminal to be measured, the test action feedback information of virtual communicating terminal to be measured can accurately and timely be known the test result of communicating terminal to be measured.
Fig. 2 shows a kind of method of setting up the test relation of virtual communicating terminal to be measured, comprising:
Step 21: search is connected to the communicating terminal to be measured of test port, and receives the test request for described communicating terminal to be measured;
On test PC or testing apparatus, test port is installed, this port can be hardware port and test client combines, but do not limit to, detecting under communicating terminal to be measured and the test request for this test communication apparatus, then be built into the annexation between communicating terminal to be measured.
Step 22: the communication interface that builds communicating terminal to be measured and virtual communicating terminal to be measured;
This step has facilitated action mapping and the foundation of identification code mapping relations between communicating terminal to be measured and virtual communicating terminal to be measured.
Step 23: according to described test request, build the test connecting link between described communicating terminal to be measured.
The foundation of the connecting link between described communicating terminal A to be measured and described communicating terminal B to be measured, in fact show on described test PC or testing apparatus the namely connecting link between virtual communicating terminal to be measured.
Fig. 3 shows a kind of method that generates the mapping relations of virtual communicating terminal to be measured and communicating terminal to be measured, comprising:
Step 31: open respectively the test port that described communicating terminal to be measured is corresponding with described virtual communicating terminal to be measured;
Step 32: the script configuration file code input port of the test port of described virtual communicating terminal to be measured is connected with the test port of described communicating terminal to be measured.
The present embodiment is convenient to the action when being tested and the consistance of feedback information between communicating terminal to be measured and virtual communicating terminal to be measured, by the operation to virtual communicating terminal to be measured, just can know the operation of communicating terminal to be measured, described script configuration file code input port flows in virtual communicating terminal in the mode of queue.
More specifically, described mapping relations comprise: local mapping relations and/or long-range mapping relations.
Fig. 4 shows a kind of generation method of described local mapping relations, is specially:
Step 41: the local communicating terminal to be measured that is connected to communicating terminal interaction scenarios test data treating apparatus of search, and receive the test request for communicating terminal to be measured;
Step 42: the proxy module that will identify the test action code in described script configuration file under current interaction scenarios compiles in the system source code of described communicating terminal to be measured.
Fig. 5 shows a kind of generation method of long-range mapping relations, is specially:
Step 51: search is connected to the communicating terminal to be measured of communicating terminal interaction scenarios test data treating apparatus by remote protocol, and receives the test request for communicating terminal to be measured;
Step 52: the proxy module that possesses telecommunications functions that will identify the test action code in described script configuration file under current interaction scenarios compiles in the system source code of described communicating terminal to be measured.
Above-mentioned two kinds of mapping generating methods, test port place at described communicating terminal to be measured all has been described, be equipped with and possess by the test action code of Recognition test and the proxy module of communicating by letter with described virtual communicating terminal to be measured, this module can compile in system source code.
Fig. 6 a shows a kind of communicating terminal interaction scenarios test data treating apparatus, comprising:
The test relation is set up module 61, for the test request according to receiving, sets up the test relation between virtual communicating terminal to be measured;
Identifier acquisition module 62, for intercepting and capturing the sign of virtual communicating terminal to be measured, described virtual communicating terminal to be measured and communicating terminal to be measured possess mapping relations, and described mapping relations comprise the mapping of device identification mapping and test action data;
Script file calling module 63, for setting interaction scenarios and calling the script file of the automatized script under this interaction scenarios according to described test request;
Testing execution module 64, for resolving the script configuration file corresponding with described script file, control virtual communicating terminal to be measured according to this script configuration file and carry out test action, and described script configuration file is associated with described sign;
More specifically, the described virtual communicating terminal to be measured of described testing execution module driving is identified the test action code in described script configuration file under current interaction scenarios;
And drive the described test action code of change-over switch to comprise the code that carries out the communication blocked operation between virtual communicating terminal to be measured.
As shown in Figure 6 b, testing execution module comprises:
Code identification module 641, for identifying the test action code of described script configuration file under current interaction scenarios;
Change-over switch 642, for carrying out the communication blocked operation;
Described blocked operation is unidirectional switching, and synchronization can only be by test action code injection to a virtual communicating terminal to be measured.
Script configuration file code input port 643, in the described virtual communicating terminal to be measured of the test action code injection by the script configuration file.
Described script file is stored in respectively in different memory modules from described script configuration file, and described script file comprises the operation key word corresponding with described interaction scenarios of encapsulation;
Monitor module 65, for monitoring the test action of described virtual communicating terminal to be measured, and the output snoop results.
Can see in the drawings, also comprise:
The first memory module 631 and the second memory module 632, wherein:
Described script file is stored in described the first memory module 631, and described script configuration file stores is in described the second memory module 632;
Described automatized script comprises described script file, and the script configuration file corresponding with described script file;
Resolve the script configuration file that described script file is corresponding while calling described operation key word, described script configuration file comprises the test action code.
Fig. 7 shows the structure that a kind of relation of testing is set up module, comprising:
Test request receiver module 611, be connected to the communicating terminal to be measured of test port for search, and receive the test request for described communicating terminal to be measured;
Communication interface builds module 612, for building the communication interface of communicating terminal to be measured and virtual communicating terminal to be measured;
Connecting link is built module 613, for according to described test request, builds the test connecting link between described communicating terminal to be measured.
On the diagram basis of described Fig. 6, Fig. 8 shows a kind of mapping relations generation module 66, for opening respectively the test port that described communicating terminal to be measured is corresponding with described virtual communicating terminal to be measured;
The script configuration file code input port of the test port of described virtual communicating terminal to be measured is connected with the test port of described communicating terminal to be measured.
More specifically, described mapping relations generation module comprises:
Local mapping relations generation module and/or long-range mapping relations generation module, wherein:
Described local mapping relations generation module, for:
The local communicating terminal to be measured that is connected to communicating terminal interaction scenarios test data treating apparatus of search, and receive the test request for communicating terminal to be measured;
The proxy module of the test action code in described script configuration file under the current interaction scenarios of identification is compiled in the system source code of described communicating terminal to be measured;
Described long-range mapping relations generation module, for:
Search is connected to the communicating terminal to be measured of communicating terminal interaction scenarios test data treating apparatus by remote protocol, and receives the test request for communicating terminal to be measured;
The proxy module that possesses telecommunications functions of the test action code in described script configuration file under the current interaction scenarios of identification is compiled in the system source code of described communicating terminal to be measured.
And, also show the concrete structure of monitoring module in Fig. 8, comprising:
Feedback information receiver module 651, for receiving the test action feedback information of described virtual communicating terminal to be measured;
Storage output module 652, for storing and export described test action feedback information with the daily record form.
Described daily record form can be and comprises framebuffer sectional drawing, logcat, dmsg etc.
Fig. 9 shows a kind of communicating terminal interaction scenarios test data processing system, comprises Fig. 6-8 diagram and corresponding communicating terminal interaction scenarios test data treating apparatus is described, this device can embed or be integrated on PC.Can carry out the test under the interaction scenarios of at least one pair of communicating terminal in described disposal system.
For system embodiment, due to it, substantially corresponding to embodiment of the method, so describe fairly simplely, relevant part gets final product referring to the part explanation of embodiment of the method.Device embodiment described above is only schematic, the wherein said unit as the separating component explanation can or can not be also physically to separate, the parts that show as unit can be or can not be also physical locations, can be positioned at a place, or also can be distributed on a plurality of network element.Can select according to the actual needs some or all of module wherein to realize the purpose of the present embodiment scheme.Those of ordinary skills in the situation that do not pay creative work, can understand and implement.
In sum:
The embodiment of the present invention is set up the mapping relations of the communicating terminal and the virtual communicating terminal that carry out the interaction scenarios test, comprise the mapping of test action mapping and sign, include the script file of testing key word and resolve the script configuration file corresponding with described script file by calling, carry out the test action of virtual communicating terminal, realized separating of script file and script configuration file, described script file includes the key word of encapsulation, and when being called, only need the script configuration file associated with described sign, can carry out the test for communicating terminal, thereby overcome the low problem of testing efficiency that repeats to edit test code for different Devices to tests in the prior art and cause, and monitor the test action of described virtual communicating terminal to be measured, export detailed test record, be convenient to the tester and obtain detecting information, overcome in prior art the poor problem of the tracing property of system test result under the communication apparatus interaction scenarios.
In this instructions, each embodiment adopts the mode of going forward one by one to describe, and what each embodiment stressed is and the difference of other embodiment that between each embodiment, identical similar part is mutually referring to getting final product.For the disclosed device of embodiment, because it corresponds to the method disclosed in Example, so description is fairly simple, relevant part partly illustrates and gets final product referring to method.
The professional can also further recognize, unit and the algorithm steps of each example of describing in conjunction with embodiment disclosed herein, can realize with electronic hardware, computer software or the combination of the two, for the interchangeability of hardware and software clearly is described, composition and the step of each example described according to function in the above description in general manner.These functions are carried out with hardware or software mode actually, depend on application-specific and the design constraint of technical scheme.The professional and technical personnel can specifically should be used for realizing described function with distinct methods to each, but this realization should not thought and exceeds scope of the present invention.
To the above-mentioned explanation of the disclosed embodiments, make professional and technical personnel in the field can realize or use the present invention.Multiple modification to these embodiment will be apparent for those skilled in the art, and General Principle as defined herein can be in the situation that do not break away from the spirit or scope of the embodiment of the present invention, realization in other embodiments.Therefore, the embodiment of the present invention will can not be restricted to these embodiment shown in this article, but will meet the widest scope consistent with principle disclosed herein and features of novelty.

Claims (18)

1. a communicating terminal interaction scenarios test data disposal route, is characterized in that, comprising:
Set up the test relation between virtual communicating terminal to be measured according to the test request received;
Intercept and capture the sign of virtual communicating terminal to be measured, described virtual communicating terminal to be measured and communicating terminal to be measured possess mapping relations, and described mapping relations comprise the mapping of device identification mapping and test action data;
The described test request of foundation is set interaction scenarios and is called the script file of the automatized script under this interaction scenarios;
Resolve the script configuration file corresponding with described script file, control virtual communicating terminal to be measured according to this script configuration file and carry out test action, described script configuration file is associated with described sign, described script file is stored in respectively in different memory modules from described script configuration file, and described script file comprises the operation key word corresponding with described interaction scenarios of encapsulation;
Monitor the test action of described virtual communicating terminal to be measured, and the output snoop results.
2. disposal route as claimed in claim 1, is characterized in that,
Described automatized script comprises described script file, and the script configuration file corresponding with described script file;
Resolve the script configuration file that described script file is corresponding while calling described operation key word, described script configuration file comprises the test action code.
3. disposal route as claimed in claim 1, is characterized in that, the described test relation of setting up virtual communicating terminal to be measured comprises:
Search is connected to the communicating terminal to be measured of test port, and receives the test request for described communicating terminal to be measured;
Build the communication interface of communicating terminal to be measured and virtual communicating terminal to be measured;
According to described test request, build the test connecting link between described communicating terminal to be measured.
4. disposal route as claimed in claim 1, is characterized in that, described sign is specially the equipment Serial Number of described communicating terminal to be measured.
5. disposal route as claimed in claim 1, is characterized in that, also comprises: generate the mapping relations of virtual communicating terminal to be measured and communicating terminal to be measured, comprising:
Open respectively the test port that described communicating terminal to be measured is corresponding with described virtual communicating terminal to be measured;
The script configuration file code input port of the test port of described virtual communicating terminal to be measured is connected with the test port of described communicating terminal to be measured.
6. disposal route as claimed in claim 1, is characterized in that, controls virtual communicating terminal execution test action to be measured according to this script configuration file and comprise:
Identify the test action code in described script configuration file under current interaction scenarios;
Described test action code comprises the code that carries out the communication blocked operation between virtual communicating terminal to be measured;
By in the described virtual communicating terminal to be measured of the test action code injection in the script configuration file.
7. disposal route as claimed in claim 1, is characterized in that, the test action of the described virtual communicating terminal to be measured of described monitoring comprises:
Receive the test action feedback information of described virtual communicating terminal to be measured, and store and export with the daily record form.
8. disposal route as described as claim 2 or 4, is characterized in that, comprising: described mapping relations comprise: local mapping relations and/or long-range mapping relations.
9. disposal route as claimed in claim 8, is characterized in that, the generation of described local mapping relations is specially:
The local communicating terminal to be measured that is connected to communicating terminal interaction scenarios test data treating apparatus of search, and receive the test request for communicating terminal to be measured;
The proxy module of the test action code in described script configuration file under the current interaction scenarios of identification is compiled in the system source code of described communicating terminal to be measured.
10. disposal route as claimed in claim 8, is characterized in that, the generation of described long-range mapping relations is specially:
Search is connected to the communicating terminal to be measured of communicating terminal interaction scenarios test data treating apparatus by remote protocol, and receives the test request for communicating terminal to be measured;
The proxy module that possesses telecommunications functions of the test action code in described script configuration file under the current interaction scenarios of identification is compiled in the system source code of described communicating terminal to be measured.
11. a communicating terminal interaction scenarios test data treating apparatus, is characterized in that, comprising:
The test relation is set up module, for the test request according to receiving, sets up the test relation between virtual communicating terminal to be measured;
Identifier acquisition module, for intercepting and capturing the sign of virtual communicating terminal to be measured, described virtual communicating terminal to be measured and communicating terminal to be measured possess mapping relations, and described mapping relations comprise the mapping of device identification mapping and test action data;
The script file calling module, for setting interaction scenarios and calling the script file of the automatized script under this interaction scenarios according to described test request;
Testing execution module, for resolving the script configuration file corresponding with described script file, control virtual communicating terminal to be measured according to this script configuration file and carry out test action, and described script configuration file is associated with described sign;
Described script file is stored in respectively in different memory modules from described script configuration file, and described script file comprises the operation key word corresponding with described interaction scenarios of encapsulation;
Monitor module, for monitoring the test action of described virtual communicating terminal to be measured, and the output snoop results.
12. treating apparatus as claimed in claim 11, is characterized in that, also comprises:
The first memory module and the second memory module, wherein:
Described script file is stored in described the first memory module, and described script configuration file stores is in described the second memory module;
Described automatized script comprises described script file, and the script configuration file corresponding with described script file;
Resolve the script configuration file that described script file is corresponding while calling described operation key word, described script configuration file comprises the test action code.
13. treating apparatus as claimed in claim 11, is characterized in that, the test relation is set up module and is comprised:
The test request receiver module, be connected to the communicating terminal to be measured of test port for search, and receive the test request for described communicating terminal to be measured;
Communication interface builds module, for building the communication interface of communicating terminal to be measured and virtual communicating terminal to be measured;
Connecting link is built module, for according to described test request, builds the test connecting link between described communicating terminal to be measured.
14. treating apparatus as claimed in claim 11, is characterized in that, also comprises: the mapping relations generation module, for opening respectively the test port that described communicating terminal to be measured is corresponding with described virtual communicating terminal to be measured;
The script configuration file code input port of the test port of described virtual communicating terminal to be measured is connected with the test port of described communicating terminal to be measured.
15. treating apparatus as claimed in claim 11, is characterized in that, described testing execution module comprises:
The code identification module, for identifying the test action code of described script configuration file under current interaction scenarios;
Change-over switch, for carrying out the code of communication blocked operation;
Script configuration file code input port, in the described virtual communicating terminal to be measured of the test action code injection by the script configuration file.
16. treating apparatus as claimed in claim 11, is characterized in that, described monitoring module comprises:
The feedback information receiver module, for receiving the test action feedback information of described virtual communicating terminal to be measured;
The storage output module, for storing and export described test action feedback information with the daily record form.
17. treating apparatus as claimed in claim 11, is characterized in that, the mapping relations generation module comprises:
Local mapping relations generation module and/or long-range mapping relations generation module, wherein:
Described local mapping relations generation module, for:
The local communicating terminal to be measured that is connected to communicating terminal interaction scenarios test data treating apparatus of search, and receive the test request for communicating terminal to be measured;
The proxy module of the test action code in described script configuration file under the current interaction scenarios of identification is compiled in the system source code of described communicating terminal to be measured;
Described long-range mapping relations generation module, for:
Search is connected to the communicating terminal to be measured of communicating terminal interaction scenarios test data treating apparatus by remote protocol, and receives the test request for communicating terminal to be measured;
The proxy module that possesses telecommunications functions of the test action code in described script configuration file under the current interaction scenarios of identification is compiled in the system source code of described communicating terminal to be measured.
18. a communicating terminal interaction scenarios test data processing system, is characterized in that, comprises the communicating terminal interaction scenarios test data treating apparatus in claim 11-claim 17 any one claim.
CN201210177410.4A 2012-05-31 2012-05-31 A kind of communicating terminal interaction scenarios test data processing method, device and system Active CN103455413B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210177410.4A CN103455413B (en) 2012-05-31 2012-05-31 A kind of communicating terminal interaction scenarios test data processing method, device and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210177410.4A CN103455413B (en) 2012-05-31 2012-05-31 A kind of communicating terminal interaction scenarios test data processing method, device and system

Publications (2)

Publication Number Publication Date
CN103455413A true CN103455413A (en) 2013-12-18
CN103455413B CN103455413B (en) 2016-12-28

Family

ID=49737813

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210177410.4A Active CN103455413B (en) 2012-05-31 2012-05-31 A kind of communicating terminal interaction scenarios test data processing method, device and system

Country Status (1)

Country Link
CN (1) CN103455413B (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104881342A (en) * 2015-06-24 2015-09-02 小米科技有限责任公司 Terminal testing method and device
CN106126422A (en) * 2016-06-24 2016-11-16 南京南瑞集团公司 A kind of hydroenergy storage station controls software automatic debugging system and method
WO2017092391A1 (en) * 2015-12-01 2017-06-08 福建联迪商用设备有限公司 Middle-tier database virtual control and testing method and system utilizing same
CN108153633A (en) * 2017-12-26 2018-06-12 深圳豪客互联网有限公司 A kind of apparatus testing method and device
CN108574947A (en) * 2017-03-10 2018-09-25 中兴通讯股份有限公司 A kind of Internet of Things test method and device
CN109783152A (en) * 2017-11-13 2019-05-21 深圳市创客工场科技有限公司 Control method, device and the computer readable storage medium of physical hardware
CN109041023B (en) * 2018-08-14 2021-04-02 福建联迪商用设备有限公司 Bluetooth device testing method and system

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6772083B2 (en) * 2002-09-03 2004-08-03 Sap Aktiengesellschaft Computer program test configurations with data containers and test scripts
CN102023861A (en) * 2010-12-08 2011-04-20 中兴通讯股份有限公司 Method and system for generating test script and test suite

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6772083B2 (en) * 2002-09-03 2004-08-03 Sap Aktiengesellschaft Computer program test configurations with data containers and test scripts
CN102023861A (en) * 2010-12-08 2011-04-20 中兴通讯股份有限公司 Method and system for generating test script and test suite

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
常远: "中国优秀硕士学位论文全文数据库信息科技辑", 《中国优秀硕士学位论文全文数据库信息科技辑》, no. 3, 15 March 2011 (2011-03-15) *

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104881342A (en) * 2015-06-24 2015-09-02 小米科技有限责任公司 Terminal testing method and device
CN104881342B (en) * 2015-06-24 2018-10-12 小米科技有限责任公司 terminal test method and device
WO2017092391A1 (en) * 2015-12-01 2017-06-08 福建联迪商用设备有限公司 Middle-tier database virtual control and testing method and system utilizing same
CN106126422A (en) * 2016-06-24 2016-11-16 南京南瑞集团公司 A kind of hydroenergy storage station controls software automatic debugging system and method
CN106126422B (en) * 2016-06-24 2019-01-04 南京南瑞集团公司 A kind of hydroenergy storage station control software automatic debugging system and method
CN108574947A (en) * 2017-03-10 2018-09-25 中兴通讯股份有限公司 A kind of Internet of Things test method and device
CN109783152B (en) * 2017-11-13 2021-08-13 深圳市创客工场科技有限公司 Physical hardware control method, device and computer readable storage medium
CN109783152A (en) * 2017-11-13 2019-05-21 深圳市创客工场科技有限公司 Control method, device and the computer readable storage medium of physical hardware
CN108153633A (en) * 2017-12-26 2018-06-12 深圳豪客互联网有限公司 A kind of apparatus testing method and device
CN109041023B (en) * 2018-08-14 2021-04-02 福建联迪商用设备有限公司 Bluetooth device testing method and system

Also Published As

Publication number Publication date
CN103455413B (en) 2016-12-28

Similar Documents

Publication Publication Date Title
CN103455413A (en) Method, device and system for interaction scenario test data processing of communication terminals
CN101930400B (en) SDK (Software Development Kit) automatic test system and method
CN104778121A (en) Game program test method, device and system
CN105260315A (en) Method for debugging log in embedded system process
CN101287266B (en) Test system and method for mobile phone
CN102495802B (en) Method and device for testing software system, and computer system
CN103973858B (en) The Auto-Test System of mobile terminal
CN101299862A (en) Telecommunication service generation environmental system
CN107592238B (en) Automatic test method and system of interface, service terminal and memory
CN103698686A (en) Signal testing method and signal testing equipment
CN104426990A (en) Control method and control device
CN104683386A (en) Pile service implementation method and device capable of customizing response
CN103678100B (en) The application automated testing method of terminal and system thereof
CN105677561A (en) Mobile product multi-platform testing method and system
CN102968371A (en) Method and device for testing JAVA API unit component
CN103873322A (en) Information processing method and communication terminal
CN102999419B (en) A kind of Android test incident record back method and device
CN102707712B (en) Electronic equipment fault diagnosis method and system
KR20080052341A (en) Automatic-testing system and method for embedded system software and test scenario composing method
CN103812982B (en) A kind of cross operating system realizes the method and system of computer monitoring testing mobile phone client
CN107302476A (en) A kind of automated testing method and system for testing asynchronous interactive system
CN104142882A (en) Test method, test device and test system based on data processing
CN104572443A (en) Mobile terminal testing method and device
CN103914377A (en) Interface testing method and device
CN110941563A (en) Automatic script testing method and device

Legal Events

Date Code Title Description
PB01 Publication
C06 Publication
SE01 Entry into force of request for substantive examination
C10 Entry into substantive examination
GR01 Patent grant
C14 Grant of patent or utility model