CN103455413B - A kind of communicating terminal interaction scenarios test data processing method, device and system - Google Patents
A kind of communicating terminal interaction scenarios test data processing method, device and system Download PDFInfo
- Publication number
- CN103455413B CN103455413B CN201210177410.4A CN201210177410A CN103455413B CN 103455413 B CN103455413 B CN 103455413B CN 201210177410 A CN201210177410 A CN 201210177410A CN 103455413 B CN103455413 B CN 103455413B
- Authority
- CN
- China
- Prior art keywords
- measured
- test
- script
- communicating terminal
- 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.)
- Active
Links
- 238000012360 testing method Methods 0.000 title claims abstract description 272
- 230000003993 interaction Effects 0.000 title claims abstract description 84
- 238000003672 processing method Methods 0.000 title claims abstract description 18
- 230000009471 action Effects 0.000 claims abstract description 84
- 238000013507 mapping Methods 0.000 claims abstract description 70
- 238000005538 encapsulation Methods 0.000 claims abstract description 11
- 238000004891 communication Methods 0.000 claims description 37
- 238000012545 processing Methods 0.000 claims description 29
- 238000012544 monitoring process Methods 0.000 claims description 9
- 238000002347 injection Methods 0.000 claims description 8
- 239000007924 injection Substances 0.000 claims description 8
- 230000006870 function Effects 0.000 claims description 6
- 239000011800 void material Substances 0.000 claims 1
- 238000000034 method Methods 0.000 description 15
- 238000010586 diagram Methods 0.000 description 8
- 239000000203 mixture Substances 0.000 description 6
- 238000005516 engineering process Methods 0.000 description 4
- 230000005540 biological transmission Effects 0.000 description 3
- 238000011161 development Methods 0.000 description 2
- 238000000926 separation method Methods 0.000 description 2
- 210000004556 brain Anatomy 0.000 description 1
- 238000004422 calculation algorithm Methods 0.000 description 1
- 238000010276 construction Methods 0.000 description 1
- 230000008878 coupling Effects 0.000 description 1
- 238000010168 coupling process Methods 0.000 description 1
- 238000005859 coupling reaction Methods 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 230000005611 electricity Effects 0.000 description 1
- 239000007943 implant Substances 0.000 description 1
- 230000002452 interceptive effect Effects 0.000 description 1
- 230000004044 response Effects 0.000 description 1
Landscapes
- Debugging And Monitoring (AREA)
Abstract
The embodiment of the invention discloses communicating terminal interaction scenarios test data processing method, device and system, the test request according to receiving sets up the test relation between virtual communication terminal to be measured;Intercepting and capturing the mark of virtual communication terminal to be measured, described virtual communication terminal to be measured and communicating terminal to be measured possess mapping relations, and described mapping relations include device identification mapping and the mapping of test action data;Set interaction scenarios according to described test request and call the script file of automatized script under this interaction scenarios;Resolve the script configuration file corresponding with described script file, control virtual communication terminal to be measured according to this script configuration file and perform test action, described script configuration file associates with described mark, described script file is stored respectively in different memory modules from described script configuration file, and described script file includes the operation keyword corresponding with described interaction scenarios of encapsulation;Monitor the test action output snoop results of described virtual communication terminal to be measured.
Description
Technical field
The present invention relates to communicating terminal communication test technical field, more particularly, it relates to a kind of mutual field of communicating terminal
Scape test data processing method, device and system.
Background technology
Along with the development of science and technology, communicating terminal is increasingly entering the sight line of people, such as mobile terminal progressively to be become
The common tool of people's communication.Android system is as the application platform of nowadays main flow and development platform, at mobile terminal and flat board
Computer is promoted and applies.Application software based on Android system is constantly weeded out the old and bring forth the new, and meet that people increase day by day is multi-functional
Application demand, Android system operation stability in communicating terminal directly affects the use impression of user, so that borrow
Help testing tool the Android system vigorousness in communicating terminal and stability are tested.
The existing test software for Android system, if monkeyrunner is for embedding certain communicating terminal of Android system
In carry out pressure communication test, the test of described pressure communication includes call, SMS communication, Bluetooth transmission etc., described
Monkeyrunner provides an application programming interface, use program that DLL writes out can Android code it
The operation of this communication apparatus of outer control.
But, the test of the every simulated operation being controlled communication apparatus by monkeyrunner needs surveying every time
The coupling driver for this communication apparatus is write, such as Python program, for example, under interacting scene during examination
During the speaking test of two communication apparatus, this Python program tests Code Edit, i.e. target communication devices code and logical
The words structure of stress test scene code and editor, and final postrun test result by run with directly output normal or
Fault.Such test mode, when facing different communication apparatus and different test scene testing requirement, also exists and repeats to compile
The testing efficiency collecting test code and cause is low, and the tracing property difference of system test result under communication apparatus interaction scenarios
Problem.
Summary of the invention
In view of this, the present invention provides a kind of communicating terminal interaction scenarios test data processing method, device and system, with
Realize directly invoking script file and the configuration file thereof being packaged with keyword, it is to avoid repeat to edit the survey testing code and cause
Examination inefficiency problem, and the system test result tracing property improved under communication apparatus interaction scenarios by snoopy test action is poor
Situation.
A kind of communicating terminal interaction scenarios test data processing method, including:
Test request according to receiving sets up the test relation between virtual communication terminal to be measured;
Intercepting and capturing the mark of virtual communication terminal to be measured, described virtual communication terminal to be measured and communicating terminal to be measured possess mapping
Relation, described mapping relations include device identification mapping and the mapping of test action data;
Set interaction scenarios according to described test request and call the script file of automatized script under this interaction scenarios;
Resolve the script configuration file corresponding with described script file, control according to this script configuration file to be measured virtual logical
News terminal performs test action, and described script configuration file associates with described mark, and described script file configures with described script
File is stored respectively in different memory modules, and described script file includes the operation corresponding with described interaction scenarios of encapsulation
Keyword;
Monitor the test action of described virtual communication terminal to be measured, and export snoop results.
Preferably: described automatized script includes described script file, and the script corresponding with described script file is joined
Put file;
The script configuration file that described script file is corresponding, described script configuration literary composition is resolved when calling described operation keyword
Part includes test action code.
Preferably: the described test relation setting up virtual communication terminal to be measured includes:
Search be connected to test port communicating terminal to be measured, and receive for described communicating terminal to be measured test please
Ask;
Build the communication interface of communicating terminal to be measured and virtual communication terminal to be measured;
According to described test request, build the test connecting link between described communicating terminal to be measured.
Preferably: described mark is specially the equipment Serial Number of described communicating terminal to be measured.
In order to improve such scheme, also include: generate the mapping relations of virtual communication terminal to be measured and communicating terminal to be measured,
Including:
Open the test port that described communicating terminal to be measured is corresponding with described virtual communication terminal to be measured respectively;
By to be measured with described for the script configuration file code inputs mouth of the test port of described virtual communication terminal to be measured
The test port of communicating terminal connects.
Preferably, control virtual communication terminal to be measured execution test action according to this script configuration file to include:
Identify the test action code in described script configuration file under current interaction scenarios;
Described test action code includes the code carrying out communication handover operation between virtual communication terminal to be measured;
Receive described virtual communication terminal to be measured according to described test action code respective action response message.
Preferably, the test action of the described virtual communication terminal to be measured of described monitoring, including:
Receive the test action feedback information of described virtual communication terminal to be measured, and store with daily record form and export.
Preferably, described mapping relations include: local mapping relations and/or remotely mapping relations.
Preferably, described local mapping relations generation particularly as follows:
Search this locality is connected to the communicating terminal to be measured of communicating terminal interaction scenarios test data processing equipment, and receives pin
Test request to communicating terminal to be measured;
By the proxy module of the test action code in described script configuration file under the current interaction scenarios of identification described
The system source code of communicating terminal to be measured compiles.
Preferably, described long-range mapping relations generation particularly as follows:
It is searched through remote protocol and is connected to the communicating terminal to be measured of communicating terminal interaction scenarios test data processing equipment,
And receive the test request for communicating terminal to be measured;
The test action code identified under current interaction scenarios in described script configuration file possessed telecommunication merit
The proxy module of energy compiles in the system source code of described communicating terminal to be measured.
A kind of communicating terminal interaction scenarios test data processing equipment, including:
Test relation sets up module, for setting up the test between virtual communication terminal to be measured according to the test request received
Relation;
Identifier acquisition module, for intercepting and capturing the mark of virtual communication terminal to be measured, described virtual communication terminal to be measured with treat
Surveying communicating terminal and possess mapping relations, described mapping relations include device identification mapping and the mapping of test action data;
Script file calling module, for setting interaction scenarios according to described test request and calling under this interaction scenarios
The script file of automatized script;
Testing execution module, for resolving the script configuration file corresponding with described script file, configures according to this script
Document control virtual communication to be measured terminal performs test action, and described script configuration file associates with described mark;
Described script file is stored respectively in different memory modules from described script configuration file, described script file
The operation keyword corresponding with described interaction scenarios including encapsulation;
Monitor module, for monitoring the test action of described virtual communication terminal to be measured, and export snoop results.
In order to improve such scheme, also include:
First memory module and the second memory module, wherein:
Described script file is stored in described first memory module, and described script configuration file is stored in described second storage
Module;
Described automatized script includes described script file, and the script configuration file corresponding with described script file;
The script configuration file that described script file is corresponding, described script configuration literary composition is resolved when calling described operation keyword
Part includes test action code.
Preferably, test relation is set up module and is included:
Test request receiver module, is connected to test the communicating terminal to be measured of port, and receives for described for search
The test request of communicating terminal to be measured;
Communication interface builds module, for building the communication interface of communicating terminal to be measured and virtual communication terminal to be measured;
Connecting link builds module, for according to described test request, builds the test between described communicating terminal to be measured
Connecting link.
In order to improve such scheme, also include: mapping relations generation module, for opening described communicating terminal to be measured respectively
The test port corresponding with described virtual communication terminal to be measured;
By to be measured with described for the script configuration file code inputs mouth of the test port of described virtual communication terminal to be measured
The test port of communicating terminal connects.
Preferably, described testing execution module includes:
Code identification module, for the test action code identified under current interaction scenarios in described script configuration file;
Switching switch, for carrying out the code of communication handover operation;
Script configuration file code inputs mouth, for treating described in the test action code injection in script configuration file
Survey in virtual communication terminal.
Preferably, described monitoring module includes:
Feedback information receiver module, for by be measured virtual logical described in the test action code injection in script configuration file
In news terminal;
Storage output module, for storing and export described test action feedback information with daily record form.
Preferably, mapping relations generation module includes:
Local mapping relations generation module and/or remotely mapping relations generation module, wherein:
Described local mapping relations generation module, is used for:
Search this locality is connected to the communicating terminal to be measured of communicating terminal interaction scenarios test data processing equipment, and receives pin
Test request to communicating terminal to be measured;
By the proxy module of the test action code in described script configuration file under the current interaction scenarios of identification described
The system source code of communicating terminal to be measured compiles;
Described long-range mapping relations generation module, is used for:
It is searched through remote protocol and is connected to the communicating terminal to be measured of communicating terminal interaction scenarios test data processing equipment,
And receive the test request for communicating terminal to be measured;
The test action code identified under current interaction scenarios in described script configuration file possessed telecommunication merit
The proxy module of energy compiles in the system source code of described communicating terminal to be measured.
A kind of communicating terminal interaction scenarios test data handling system, tests data including described communicating terminal interaction scenarios
Processing means.
From above-mentioned technical scheme it can be seen that the embodiment of the present invention set up interact the communicating terminal of scrnario testing with
The mapping relations of virtual communication terminal, map including test action and the mapping of mark, include test keyword by calling
Script file and resolve the script configuration file corresponding with described script file, the test action of execution virtual communication terminal,
Achieving script file to separate with script configuration file, described script file includes the keyword of encapsulation, and is adjusting
Used time only needs to associate script configuration file with described mark, can carry out the test for communicating terminal, thus overcome existing
There is the problem that the testing efficiency repeating editor's test code for different Devices to tests in technology and cause is low;And monitor institute
State the test action of virtual communication terminal to be measured, export detailed test record, it is simple to tester obtains test information, overcomes
The problem of the tracing property difference of system test result under communication apparatus interaction scenarios in prior art.
Accompanying drawing explanation
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing
In having technology to describe, the required accompanying drawing used is briefly described, it should be apparent that, the accompanying drawing in describing below is only this
Some embodiments of invention, for those of ordinary skill in the art, on the premise of not paying creative work, it is also possible to
Other accompanying drawing is obtained according to these accompanying drawings.
Fig. 1 is a kind of communicating terminal interaction scenarios test data processing method flow chart disclosed in the embodiment of the present invention;
Fig. 2 is the side of a kind of test relation setting up virtual communication terminal to be measured disclosed in further embodiment of this invention
Method flow chart;
Fig. 3 is a kind of disclosed in further embodiment of this invention to generate reflecting of virtual communication terminal to be measured and communicating terminal to be measured
Penetrate the method flow diagram of relation;
Fig. 4 is a kind of disclosed in further embodiment of this invention to generate reflecting of virtual communication terminal to be measured and communicating terminal to be measured
Penetrate the method flow diagram of relation;
Fig. 5 is a kind of disclosed in further embodiment of this invention to generate reflecting of virtual communication terminal to be measured and communicating terminal to be measured
Penetrate the method flow diagram of relation;
Fig. 6 a is a kind of communicating terminal interaction scenarios test data processing equipment structure disclosed in further embodiment of this invention
Schematic diagram;
Fig. 6 b is a kind of communicating terminal interaction scenarios test data processing equipment test disclosed in further embodiment of this invention
Perform modular structure schematic diagram;
Fig. 7 is that disclosed in further embodiment of this invention, a kind of communicating terminal interaction scenarios test data processing equipment structure is shown
It is intended to;
Fig. 8 is that disclosed in further embodiment of this invention, a kind of communicating terminal interaction scenarios test data processing equipment structure is shown
It is intended to;
Fig. 9 is that disclosed in further embodiment of this invention, a kind of communicating terminal interaction scenarios test data handling system structure is shown
It is intended to.
Detailed description of the invention
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Describe, it is clear that described embodiment is only a part of embodiment of the present invention rather than whole embodiments wholely.Based on
Embodiment in the present invention, it is every other that those of ordinary skill in the art are obtained under not making creative work premise
Embodiment, broadly falls into the scope of protection of the invention.
The embodiment of the invention discloses a kind of communicating terminal interaction scenarios test data processing method, to realize directly invoking
It is packaged with script file and the configuration file thereof of keyword, it is to avoid repeat to edit the testing efficiency testing code and cause and lowly ask
Topic, and improve, by snoopy test action, the situation that the system test result tracing property under communication apparatus interaction scenarios is poor.
Fig. 1 shows a kind of communicating terminal interaction scenarios test data processing method, including:
Step 11: the test request according to receiving sets up the test relation between virtual communication terminal to be measured;
Described test request refers to carry out conversing or short between virtual communication terminal A to be measured and virtual communication B to be measured
The request of letter transmission stress test, and under the method for Fig. 2 diagram and corresponding explanation thereof, set up virtual communication terminal A to be measured and
Call or information transmission stress test relation between virtual communication B to be measured, show as on the PC or test device of responsible test
Virtual communication terminal A to be measured and virtual communication terminal B to be measured enter test readiness, and can be realized by following field groups;
<caselist>
<device>the equipment Serial Number of PhoneA</device>
<device>the equipment Serial Number of PhoneB</device>
</caselist>
Above-mentioned field groups, for the clearly automatized script of the interaction scenarios enumerated illustrated, controls virtual communication to be measured
Terminal A and the operation of virtual communication terminal B to be measured.If script configuration file only has a pair field<device></device>,
It is exactly that a pair terminal puts into the automatized script tested;Containing multipair<device></device>, it is simply that multipair terminal puts into be surveyed
The automatized script of examination.
Step 12: intercept and capture the mark of virtual communication terminal to be measured, described virtual communication terminal to be measured and communicating terminal to be measured
Possessing mapping relations, described mapping relations include device identification mapping and the mapping of test action data;
In the present embodiment, described mark is specially the equipment Serial Number of described communicating terminal to be measured, is carrying out pressure survey
With regard to capture device serial number before examination so that all test actions all associate with this equipment Serial Number, it is simple to distinguish control to be measured
The action of virtual communication terminal, also allows for nesting such as this equipment Serial Number simultaneously and calls the script file of keyword encapsulation, gram
Take the problem that the testing efficiency needing again to write test code for different middle-ends in prior art and cause is low.
About the construction method of mapping relations, see Fig. 3 diagram and explanation thereof.
Step 13: set interaction scenarios according to described test request and call the foot of automatized script under this interaction scenarios
Presents;
May need to carry out miscellaneous interaction scenarios stress test for certain test request, and specifically chosen which
Class or which class are according to actual application settings, and call automatized script under selected interaction scenarios.
Step 14: resolve the script configuration file corresponding with described script file, controls to treat according to this script configuration file
Surveying virtual communication terminal and perform test action, described script configuration file associates with described mark;
More specifically, described control virtual communication to be measured terminal execution test action includes:
Identify the test action code in described script configuration file under current interaction scenarios;
Described test action code includes the code carrying out communication handover operation between virtual communication terminal to be measured, described in cut
Be changed to unidirectional handover, i.e. synchronization can only be by virtual communication terminal to be measured for test action code injection to.
By in virtual communication terminal to be measured described in the test action code injection in script configuration file, described implant operation
Can realize with queue form.
Described automatized script includes described script file, and the script configuration file corresponding with described script file;
Described script file is stored respectively in different memory modules from described script configuration file, described script file
The operation keyword corresponding with described interaction scenarios including encapsulation;
The script configuration file that described script file is corresponding, described script configuration literary composition is resolved when calling described operation keyword
Part includes test action code.
Described script file forms with keyword encapsulation, and the convenient separation of script configuration file and script file is used
The writing and calling of family.
Step 15: monitor the test action of described virtual communication terminal to be measured, and export snoop results.
Receive the test action feedback information of described virtual communication terminal to be measured, and store with daily record form and export.
It should be noted that the embodiment of the present invention is particularly well-suited to communicating terminal based on Android system (mobile phone, flat board electricity
Brain etc.) interactive text, but do not limit to;
Mapping relations based on virtual communication terminal to be measured Yu communicating terminal to be measured, the test of virtual communication terminal to be measured is moved
Make feedback information and can accurately and timely know the test result of communicating terminal to be measured.
Fig. 2 shows a kind of method of test relation setting up virtual communication terminal to be measured, including:
Step 21: search is connected to test the communicating terminal to be measured of port, and receives for described communicating terminal to be measured
Test request;
Being provided with test port on test PC or test equipment, this port can be hardware port and test client group
Conjunction forms, but does not limit to, under communicating terminal to be measured and the test request for this test communication apparatus being detected, then structure
Build up the annexation between communicating terminal to be measured.
Step 22: build the communication interface of communicating terminal to be measured and virtual communication terminal to be measured;
This step facilitates action mapping and identification code between communicating terminal to be measured and virtual communication terminal to be measured and maps pass
System sets up.
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, actually shows
Connecting link between virtual communication terminal the most to be measured on described test PC or test equipment.
Fig. 3 shows a kind of method generating virtual communication terminal to be measured and the mapping relations of communicating terminal to be measured, including:
Step 31: open the test port that described communicating terminal to be measured is corresponding with described virtual communication terminal to be measured respectively;
Step 32: by script configuration file code inputs mouth and the institute of the test port of described virtual communication terminal to be measured
The test port stating communicating terminal to be measured connects.
The present embodiment is easy to the action when testing of communicating terminal to be measured and virtual communication terminal room to be measured and feedback
The concordance of information, by the operation to virtual communication terminal to be measured, it is possible to know the operation of communicating terminal to be measured, described foot
This configuration file code inputs mouth flows in virtual communication terminal in the way of queue.
More specifically, described mapping relations include: local mapping relations and/or remotely mapping relations.
Fig. 4 shows a kind of generation method of described local mapping relations, particularly as follows:
Step 41: search this locality is connected to the communicating terminal to be measured of communicating terminal interaction scenarios test data processing equipment,
And receive the test request for communicating terminal to be measured;
Step 42: by the proxy module of the test action code in described script configuration file under the current interaction scenarios of identification
The system source code of described communicating terminal to be measured compiles.
Fig. 5 shows a kind of generation method of long-range mapping relations, particularly as follows:
Step 51: be searched through remote protocol and be connected to the to be measured logical of communicating terminal interaction scenarios test data processing equipment
News terminal, and receive the test request for communicating terminal to be measured;
Step 52: possessing the test action code identified under current interaction scenarios in described script configuration file remotely
The proxy module of communication function compiles in the system source code of described communicating terminal to be measured.
Above two mapping generating method, all illustrates, in the test port of described communicating terminal to be measured, to be provided with tool
The standby test action code tested by identification and the proxy module with described virtual communication terminal communication to be measured, this module can be
System source code compiles.
Fig. 6 a shows a kind of communicating terminal interaction scenarios test data processing equipment, including:
Test relation sets up module 61, for setting up the survey between virtual communication terminal to be measured according to the test request received
Examination relation;
Identifier acquisition module 62, for intercepting and capturing the mark of virtual communication terminal to be measured, described virtual communication terminal to be measured with
Communicating terminal to be measured possesses mapping relations, and described mapping relations include device identification mapping and the mapping of test action data;
Script file calling module 63, for setting interaction scenarios according to described test request and calling under this interaction scenarios
The script file of automatized script;
Testing execution module 64, for resolving the script configuration file corresponding with described script file, joins according to this script
Putting document control virtual communication to be measured terminal and perform test action, described script configuration file associates with described mark;
More specifically, under described testing execution module drives the described current interaction scenarios of virtual communication terminal recognition to be measured
Test action code in described script configuration file;
And drive the switching described test action code of switch to include carrying out communication switching between virtual communication terminal to be measured
The code of operation.
As shown in Figure 6 b, testing execution module includes:
Code identification module 641, for the test action generation identified under current interaction scenarios in described script configuration file
Code;
Switching switch 642, is used for carrying out communication handover operation;
Described handover operation is that unidirectional handover, i.e. synchronization can only be by be measured for test action code injection to virtual
In communicating terminal.
Script configuration file code inputs mouth 643, for by the test action code injection institute in script configuration file
State in virtual communication terminal to be measured.
Described script file is stored respectively in different memory modules from described script configuration file, described script file
The operation keyword corresponding with described interaction scenarios including encapsulation;
Monitor module 65, for monitoring the test action of described virtual communication terminal to be measured, and export snoop results.
In the drawings it will be seen that also include:
First memory module 631 and the second memory module 632, wherein:
Described script file is stored in described first memory module 631, and described script configuration file is stored in described second
Memory module 632;
Described automatized script includes described script file, and the script configuration file corresponding with described script file;
The script configuration file that described script file is corresponding, described script configuration literary composition is resolved when calling described operation keyword
Part includes test action code.
Fig. 7 shows that a kind of relation of testing sets up the structure of module, including:
Test request receiver module 611, is connected to test the communicating terminal to be measured of port, and receives for institute for search
State the test request of communicating terminal to be measured;
Communication interface builds module 612, for building the communication interface of communicating terminal to be measured and virtual communication terminal to be measured;
Connecting link builds module 613, for according to described test request, builds the survey between described communicating terminal to be measured
Examination connecting link.
On the basis of the diagram of described Fig. 6, Fig. 8 shows a kind of mapping relations generation module 66, for opening institute respectively
State the test port that communicating terminal to be measured is corresponding with described virtual communication terminal to be measured;
By to be measured with described for the script configuration file code inputs mouth of the test port of described virtual communication terminal to be measured
The test port of communicating terminal connects.
More specifically, described mapping relations generation module includes:
Local mapping relations generation module and/or remotely mapping relations generation module, wherein:
Described local mapping relations generation module, is used for:
Search this locality is connected to the communicating terminal to be measured of communicating terminal interaction scenarios test data processing equipment, and receives pin
Test request to communicating terminal to be measured;
By the proxy module of the test action code in described script configuration file under the current interaction scenarios of identification described
The system source code of communicating terminal to be measured compiles;
Described long-range mapping relations generation module, is used for:
It is searched through remote protocol and is connected to the communicating terminal to be measured of communicating terminal interaction scenarios test data processing equipment,
And receive the test request for communicating terminal to be measured;
The test action code identified under current interaction scenarios in described script configuration file possessed telecommunication merit
The proxy module of energy compiles in the system source code of described communicating terminal to be measured.
And, Fig. 8 also show the concrete structure monitoring module, including:
Feedback information receiver module 651, for receiving the test action feedback information of described virtual communication terminal to be measured;
Storage output module 652, for storing and export described test action feedback information with daily record form.
Described daily record form can be to include framebuffer sectional drawing, logcat, dmsg etc..
Fig. 9 shows a kind of communicating terminal interaction scenarios test data handling system, and it is right to illustrate including Fig. 6-8 and illustrate
The communicating terminal interaction scenarios test data processing equipment answered, this device can embed or integrated on PC.Described processing system
In may proceed to the test under the interaction scenarios of few a pair communicating terminal.
For system embodiment, owing to it essentially corresponds to embodiment of the method, so describing fairly simple, relevant
Part sees the part of embodiment of the method and illustrates.Device embodiment described above is only schematically, Qi Zhongsuo
Stating the unit illustrated as separating component can be or may not be physically separate, the parts shown as unit can
To be or to may not be physical location, i.e. may be located at a place, or can also be distributed on multiple NE.
Some or all of module therein can be selected according to the actual needs to realize the purpose of the present embodiment scheme.This area is general
Logical technical staff, in the case of not paying creative work, is i.e. appreciated that and implements.
In sum:
The embodiment of the present invention is set up and is interacted the communicating terminal of scrnario testing and the mapping relations of virtual communication terminal, bag
Include test action to map and the mapping of mark, by calling the script file including test keyword and resolving and described script
The script configuration file that file is corresponding, performs the test action of virtual communication terminal, it is achieved that script file and script configuration literary composition
The separation of part, described script file includes the keyword of encapsulation, and only needs script configuration file and institute when calling
State mark association, the test for communicating terminal can be carried out, thus overcome in prior art for different Devices to test weights
The problem that the multiple testing efficiency editing test code and cause is low;And the test monitoring described virtual communication terminal to be measured is moved
Make, export detailed test record, it is simple to tester obtains test information, overcome communication apparatus interaction scenarios in prior art
The problem of the tracing property difference of lower system test result.
In this specification, each embodiment uses the mode gone forward one by one to describe, and what each embodiment stressed is and other
The difference of embodiment, between each embodiment, identical similar portion sees mutually.For device disclosed in embodiment
For, owing to it corresponds to the method disclosed in Example, so describe is fairly simple, relevant part sees method part and says
Bright.
Professional further appreciates that, in conjunction with the unit of each example that the embodiments described herein describes
And algorithm steps, it is possible to electronic hardware, computer software or the two be implemented in combination in, in order to clearly demonstrate hardware and
The interchangeability of software, the most generally describes composition and the step of each example according to function.These
Function performs with hardware or software mode actually, depends on application-specific and the design constraint of technical scheme.Specialty
Technical staff specifically should can be used for using different methods to realize described function to each, but this realization should not
Think beyond the scope of this invention.
Described above to the disclosed embodiments, makes professional and technical personnel in the field be capable of or uses the present invention.
Multiple amendment to these embodiments will be apparent from for those skilled in the art, as defined herein
General Principle can realize in the case of without departing from the spirit or scope of the embodiment of the present invention in other embodiments.Therefore,
The embodiment of the present invention is not intended to be limited to the embodiments shown herein, and be to fit to principles disclosed herein and
The widest scope that features of novelty is consistent.
Claims (17)
1. a communicating terminal interaction scenarios test data processing method, it is characterised in that including:
Test request according to receiving sets up the test relation between virtual communication terminal to be measured;
Intercepting and capturing the mark of virtual communication terminal to be measured, described mark is specially the equipment Serial Number of communicating terminal to be measured, described in treat
Surveying virtual communication terminal and possess mapping relations with communicating terminal to be measured, described mapping relations include that device identification maps and test is dynamic
Make the mapping of data;
Set interaction scenarios according to described test request and call the script file of automatized script under this interaction scenarios;
Resolve the script configuration file corresponding with described script file, control virtual communication to be measured eventually according to this script configuration file
End performs test action, and described script configuration file associates with described mark, described script file and described script configuration file
Being stored respectively in different memory modules, described script file includes that the operation corresponding with described interaction scenarios of encapsulation is crucial
Word;
Monitor the test action of described virtual communication terminal to be measured, and export snoop results.
2. processing method as claimed in claim 1, it is characterised in that
Described automatized script includes described script file, and the script configuration file corresponding with described script file;
The script configuration file that described script file is corresponding is resolved, in described script configuration file when calling described operation keyword
Including test action code.
3. processing method as claimed in claim 1, it is characterised in that the described test set up between virtual communication terminal to be measured
Relation includes:
Search is connected to test the communicating terminal to be measured of 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 communication terminal to be measured;
According to described test request, build the test connecting link between described communicating terminal to be measured.
4. processing method as claimed in claim 1, it is characterised in that also include: generate virtual communication terminal to be measured with to be measured
The mapping relations of communicating terminal, including:
Open the test port that described communicating terminal to be measured is corresponding with described virtual communication terminal to be measured respectively;
By script configuration file code inputs mouth and the described communication to be measured of the test port of described virtual communication terminal to be measured
The test port of terminal connects.
5. processing method as claimed in claim 1, it is characterised in that control virtual communication to be measured according to this script configuration file
Terminal performs test action and includes:
Identify the test action code in described script configuration file under current interaction scenarios;
Described test action code includes the code carrying out communication handover operation between virtual communication terminal to be measured;
By in virtual communication terminal to be measured described in the test action code injection in script configuration file.
6. processing method as claimed in claim 1, it is characterised in that the test of the described virtual communication terminal to be measured of described monitoring
Action, including:
Receive the test action feedback information of described virtual communication terminal to be measured, and store with daily record form and export.
7. processing method as claimed in claim 1 or 2, it is characterised in that described mapping relations include: local mapping relations
And/or long-range mapping relations.
8. processing method as claimed in claim 7, it is characterised in that the generation of described local mapping relations particularly as follows:
Search this locality is connected to the communicating terminal to be measured of communicating terminal interaction scenarios test data processing equipment, and receives for treating
Survey the test request of communicating terminal;
By the proxy module of the test action code in described script configuration file under the current interaction scenarios of identification described to be measured
The system source code of communicating terminal compiles.
9. processing method as claimed in claim 7, it is characterised in that the generation of described long-range mapping relations particularly as follows:
It is searched through remote protocol and is connected to the communicating terminal to be measured of communicating terminal interaction scenarios test data processing equipment, and connect
The narrowing test request to communicating terminal to be measured;
By the telecommunications functions that possesses of the test action code that identifies under current interaction scenarios in described script configuration file
Proxy module compiles in the system source code of described communicating terminal to be measured.
10. a communicating terminal interaction scenarios test data processing equipment, it is characterised in that including:
Test relation sets up module, closes for setting up the test between virtual communication terminal to be measured according to the test request received
System;
Identifier acquisition module, for intercepting and capturing the mark of virtual communication terminal to be measured, described mark is specially communicating terminal to be measured
Equipment Serial Number, described virtual communication terminal to be measured and communicating terminal to be measured possess mapping relations, and described mapping relations include setting
Standby identity map and the mapping of test action data;
Script file calling module, for according to described test request set interaction scenarios and call under this interaction scenarios automatic
Change the script file of script;
Testing execution module, for resolving the script configuration file corresponding with described script file, according to this script configuration file
Controlling virtual communication terminal to be measured and perform test action, described script configuration file associates with described mark;
Described script file is stored respectively in different memory modules from described script configuration file, and described script file includes
The operation keyword corresponding with described interaction scenarios of encapsulation;
Monitor module, for monitoring the test action of described virtual communication terminal to be measured, and export snoop results.
11. processing meanss as claimed in claim 10, it is characterised in that also include:
First memory module and the second memory module, wherein:
Described script file is stored in described first memory module, and described script configuration file is stored in described second storage mould
Block;
Described automatized script includes described script file, and the script configuration file corresponding with described script file;
The script configuration file that described script file is corresponding is resolved, in described script configuration file when calling described operation keyword
Including test action code.
12. processing meanss as claimed in claim 10, it is characterised in that test relation is set up module and included:
Test request receiver module, is connected to test the communicating terminal to be measured of port, and receives for described to be measured for search
The test request of communicating terminal;
Communication interface builds module, for building the communication interface of communicating terminal to be measured and virtual communication terminal to be measured;
Connecting link builds module, for according to described test request, builds the test between described communicating terminal to be measured and connects
Link.
13. processing meanss as claimed in claim 10, it is characterised in that also include: mapping relations generation module, for respectively
Open the test port that described communicating terminal to be measured is corresponding with described virtual communication terminal to be measured;
By script configuration file code inputs mouth and the described communication to be measured of the test port of described virtual communication terminal to be measured
The test port of terminal connects.
14. processing meanss as claimed in claim 10, it is characterised in that described testing execution module includes:
Code identification module, for the test action code identified under current interaction scenarios in described script configuration file;
Switching switch, is used for carrying out communication handover operation;
Script configuration file code inputs mouth, for by void to be measured described in the test action code injection in script configuration file
Intend in communicating terminal.
15. processing meanss as claimed in claim 10, it is characterised in that described monitoring module includes:
Feedback information receiver module, for receiving the test action feedback information of described virtual communication terminal to be measured;
Storage output module, for storing and export described test action feedback information with daily record form.
16. processing meanss as claimed in claim 13, it is characterised in that mapping relations generation module includes:
Local mapping relations generation module and/or remotely mapping relations generation module, wherein:
Described local mapping relations generation module, is used for:
Search this locality is connected to the communicating terminal to be measured of communicating terminal interaction scenarios test data processing equipment, and receives for treating
Survey the test request of communicating terminal;
By the proxy module of the test action code in described script configuration file under the current interaction scenarios of identification described to be measured
The system source code of communicating terminal compiles;
Described long-range mapping relations generation module, is used for:
It is searched through remote protocol and is connected to the communicating terminal to be measured of communicating terminal interaction scenarios test data processing equipment, and connect
The narrowing test request to communicating terminal to be measured;
By the telecommunications functions that possesses of the test action code that identifies under current interaction scenarios in described script configuration file
Proxy module compiles in the system source code of described communicating terminal to be measured.
17. 1 kinds of communicating terminal interaction scenarios test data handling systems, it is characterised in that include that claim 10-right is wanted
Seek the communicating terminal interaction scenarios test data processing equipment in 16 any one.
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 CN103455413A (en) | 2013-12-18 |
CN103455413B true 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) |
Families Citing this family (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104881342B (en) * | 2015-06-24 | 2018-10-12 | 小米科技有限责任公司 | terminal test method and device |
CN105512032B (en) * | 2015-12-01 | 2019-01-04 | 福建联迪商用设备有限公司 | A kind of middle database virtual controlling test method and its system |
CN106126422B (en) * | 2016-06-24 | 2019-01-04 | 南京南瑞集团公司 | A kind of hydroenergy storage station control software automatic debugging system and method |
CN108574947B (en) * | 2017-03-10 | 2022-08-02 | 中兴通讯股份有限公司 | Internet of things testing method and device |
CN109783152B (en) * | 2017-11-13 | 2021-08-13 | 深圳市创客工场科技有限公司 | Physical hardware control method, device and computer readable storage medium |
CN108153633B (en) * | 2017-12-26 | 2021-04-20 | 深圳Tcl新技术有限公司 | Equipment testing method and device |
CN109041023B (en) * | 2018-08-14 | 2021-04-02 | 福建联迪商用设备有限公司 | Bluetooth device testing method and system |
CN112463580B (en) * | 2019-09-09 | 2024-07-12 | 英业达科技有限公司 | Test system based on virtualization device and method thereof |
CN111274157B (en) * | 2020-02-27 | 2022-08-12 | 深圳平安医疗健康科技服务有限公司 | Test data simulation method and device, computer equipment and storage medium |
CN111858375B (en) * | 2020-07-28 | 2023-09-05 | 中国工商银行股份有限公司 | Software testing method, device, electronic equipment and medium |
CN114489780A (en) * | 2022-01-14 | 2022-05-13 | 合肥力动软件开发有限公司 | A Method of Realizing Universal Inspection Based on Automated Test Virtual Machine Technology |
CN114817067B (en) * | 2022-05-25 | 2022-09-02 | 云账户技术(天津)有限公司 | Automatic mock testing method and device |
Citations (2)
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 |
-
2012
- 2012-05-31 CN CN201210177410.4A patent/CN103455413B/en active Active
Patent Citations (2)
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)
Title |
---|
中国优秀硕士学位论文全文数据库信息科技辑;常远;《中国优秀硕士学位论文全文数据库信息科技辑》;20110315(第3期);第23-25,33-44页 * |
Also Published As
Publication number | Publication date |
---|---|
CN103455413A (en) | 2013-12-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103455413B (en) | A kind of communicating terminal interaction scenarios test data processing method, device and system | |
CN106383786B (en) | Interface pressure performance testing method and device and electronic equipment | |
CN103970559B (en) | A kind of equipment loading method and device based on android system | |
CN109101381A (en) | Configuration file update method, system, electronic equipment and storage medium | |
CN105117233A (en) | API calling method and device | |
CN110941563A (en) | Automatic script testing method and device | |
US20090036115A1 (en) | System and method for testing gsm modules | |
CN103973858B (en) | The Auto-Test System of mobile terminal | |
CN106209515A (en) | Automatic test system for access network equipment | |
CN101309178B (en) | Parsing method and apparatus for automatic exchanging optical network systematic log information | |
CN110134795A (en) | Generate method, apparatus, computer equipment and the storage medium of validation problem group | |
CN104731566A (en) | Testing device, method and system for IDE (Integrated Development Environment) | |
CN109525509A (en) | Network interface card mirror image packet snapping method, terminal and readable storage medium storing program for executing | |
CN104391244A (en) | Closed loop test method of relay protection apparatus and system thereof | |
CN103559114B (en) | Flush bonding module drives function test system and method | |
CN108628729A (en) | A kind of method for testing software and software test client | |
CN107885683A (en) | A kind of current test method of terminal and terminal | |
CN102074103B (en) | Universal remote control front end | |
CN104834586A (en) | Automatic test method, device and system of Android interface | |
CN109176601A (en) | Enabling test method and device for robot | |
CN110489347A (en) | Method for edition management, device, equipment and readable storage medium storing program for executing based on GIT | |
CN104077252A (en) | USB (universal serial bus) device communication method and device and electronic device | |
CN105320604A (en) | Automated testing system and method | |
CN109947402A (en) | A kind of item development system | |
CN108009093A (en) | A kind of method for testing software, apparatus and system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |