Invention content
This specification embodiment provides mock test methods, device and equipment, as follows for solving the problems, such as:To provide more just
The mock testing schemes of profit.
Based on this, this specification embodiment provides a kind of mock test methods, including:
Client is initiated to call the request of container joint;
It intercepts the request Concurrency to send to server-side, so that server-side responds the request, returns to corresponding mock responses
As a result or the request is returned to the container joint;
Returning the result for server-side is received, business processing is carried out.
Meanwhile this specification embodiment also provides another kind mock test methods, including:
Server-side receives the request of client call container joint, and the request is intercepted to obtain by mock scripts;
The request is responded, determines that returning to corresponding mock response results or the return request to the container connects
Mouthful;
Send the request returns the result to the client.
Meanwhile the embodiment of this specification also provides a kind of mock test devices, including:
Initiation module, client is asked to initiate to call the request of container joint;
Blocking module intercepts the request Concurrency and send to server-side, so that server-side responds the request, returns corresponding
Mock response results return to the request to the container joint;
Receiving module receives returning the result for server-side, carries out business processing.
Meanwhile the embodiment of this specification also provides another kind mock test devices, including:
Receiving module, server-side receive the request of client call container joint, and the request is intercepted by mock scripts
It arrives;
Determining module responds the request, determines and returns to corresponding mock response results or return to the request to institute
State container joint;
Sending module, send the request returns the result to the client.
Corresponding, this specification embodiment also provides a kind of mock test equipments, including:
Memory stores mock test programs;
Processor calls the mock test programs in memory, and executes:
Client is initiated to call the request of container joint;
It intercepts the request Concurrency to send to server-side, so that server-side responds the request, returns to corresponding mock responses
As a result or the request is returned to the container joint;
Returning the result for server-side is received, business processing is carried out.
Corresponding, this specification embodiment also provides another kind mock test equipments, including:
Memory stores mock test programs;
Processor calls the mock test programs in memory, and executes:
Server-side receives the request of client call container joint, and the request is intercepted to obtain by mock scripts;
The request is responded, determines that returning to corresponding mock response results or the return request to the container connects
Mouthful;
Send the request returns the result to the client.
Corresponding, the embodiment of this specification also provides a kind of nonvolatile computer storage media, is stored with computer
Executable instruction, the computer executable instructions are set as:
Client is initiated to call the request of container joint;
It intercepts the request Concurrency to send to server-side, so that server-side responds the request, returns to corresponding mock responses
As a result or the request is returned to the container joint;
Returning the result for server-side is received, business processing is carried out.
Corresponding, the embodiment of this specification also provides another nonvolatile computer storage media, is stored with calculating
Machine executable instruction, the computer executable instructions are set as:
Server-side receives the request of client call container joint, and the request is intercepted to obtain by mock scripts;
The request is responded, determines that returning to corresponding mock response results or the return request to the container connects
Mouthful;
Send the request returns the result to the client.
Above-mentioned at least one technical solution that this specification embodiment uses can reach following advantageous effect:
In this specification embodiment, it is automatically injected into client mock scripts by server-side and (such as receives visitor
It is directly injected into when the access request that family end is sent), the request of application call container joint to be tested is then intercepted by script,
And forward server-side, by the mock configuration files in server-side come determine this return the result is that legitimate reading or mock
Response results, to carry out various businesses test.During the test, local exploitation server can be directly accessed by user terminal
The page of offer facilitates other people to carry out test verification without carrying out any configuration;It is flexibly controlled by configuration file
What is returned is that true return or mock are returned, and flexibility is strong, to realize that dynamic is changed, convenient voluntarily maintenance and expansion.
Product is reached the standard grade again in addition, being successfully tested, there is no being modified to service code, phase need not be also changed in service code
The configuration file answered, therefore fundamentally solve when product is reached the standard grade and forget failure on line caused by switch code;By using
Local server also can effectively avoid remote service unavailable the case where leading to not work.
Specific implementation mode
To keep the purpose, technical scheme and advantage of the application clearer, below in conjunction with the application specific embodiment and
Technical scheme is clearly and completely described in corresponding attached drawing.Obviously, described embodiment is only the application one
Section Example, instead of all the embodiments.The embodiment of base in this manual, those of ordinary skill in the art are not having
The every other embodiment obtained under the premise of creative work is made, shall fall in the protection scope of this application.
HTML5 (the 5th generation standard of hypertext markup language, HyperText Markup Language, HTML5) is applied
(can be also simply referred to as H5 applications) is the embedded web page used or web applications in mobile phone native applications (Native App),
HTML5 applies the function to the primary offer of calling mobile phone, needs to provide by its host's native applications, and host is primary answers
With all HTML5 applications can be loaded by HTML5 application containers, to monitor asking for HTML5 applications by HTML5 application containers
It asks, completes specific function, return to the result of needs.
Therefore, in HTML5 application and developments, test, exploitation and tester is needed to simulate the return of HTML5 application containers
As a result, this process is referred to as mock.The method for carrying out mock in the prior art has following a variety of:By directly changing business
The method of code carrys out mock, invades business big;Carry out mock by way of network agent, when verification needs to carry out network generation
Reason configuration, it is very cumbersome;The content that remote service returns is called to be used as mock data, underaction can not be changed quickly and be returned
Content is returned, remote service once hangs can also influence exploitation, the test job of itself.In addition, the return knot of HTML5 application containers
Fruit can be influenced by software, hardware, system environments etc. are various, and develop, test when may need it is normal, abnormal etc. various
The return of various kinds.
Based on this, this specification embodiment provides mock testing schemes, is noted automatically into client in exploitation server
Enter mock scripts, for intercepting using the call request to container joint, then forwards server-side.Then pass through server-side local
Mock configuration files determine to return the result, to realize more easily test job.
Fig. 1 is the configuration diagram involved by this specification embodiment.In the embodiment of this specification, the mock
Framework as shown in Figure 1 can be used in test method, in the architecture, client can be mounted to include such as smart mobile phone,
On the user terminals such as tablet computer, server-side can provide an address (for example, a uniform resource locator (Uniform
Resource Locator, URL)) for user terminal connection.Since this programme is commonly used in exploitation and test, on
The server-side stated is typically testing service end.In other words, online service end when it should reach the standard grade from product is different service
End.
Below by based on framework as shown in Figure 1, the mock test methods that the embodiment of this specification provides are described in detail,
This method specifically includes two aspects of client and server-side, for the execution flow in terms of client, specifically includes following step
Suddenly, as shown in Fig. 2, the flow diagram of the mock test methods in terms of Fig. 2 is the client that this specification embodiment provides, packet
It includes:
S201, client are initiated to call the request of container joint.
As previously mentioned, application to be tested is by the primary function of container joint calling mobile phone, container joint here according to
Can be one or more for the business tine of application to be tested.It, may be often in the implementation procedure of non-protogenous applications
This call request occurs.For example, some web application can not calling mobile phone terminal hardware device (voice, camera, gravity
Induction etc.), to enable these hardware devices by the application container interface for calling user terminal primary.In other words, it calls and holds
The request of device interface can be functional request, can also be accessing page request.
S203 intercepts the request Concurrency and send to server-side, so that server-side responds the request, returns to corresponding mock
Response results return to the request to the container joint.
The interception of interface call request can be accomplished in several ways, for example, being used when interface is called
Spring blockers are intercepted.After intercepting the call request, request is directly to issue server-side (alternatively referred to as to test
Server-side), server-side decision is returned using mock response results, still passes through container real interface to return.
In practical applications, the program file (i.e. mock objects) for mock can be created according to preset test content,
And respective request generates corresponding mock response results.Mock objects, which are primarily used to simulate those, to be not easy to construct in the application
Or more complicated object, to be tested.
By pre-entering mock objects in server-side, tested.Then (it can pass through and configure by being determined in advance
File is realized, can also be realized by logical code) what is returned in this test is legitimate reading (that is, transparent transmission is asked
Ask to container joint, container joint calling performs the primary function of mobile phone, the truthful data of return) or mock response results
(that is, sending the request to the mock data obtained after mock objects), if to change the content of test, to carry out different surveys
Examination, then only needing corresponding modification mock objects or configured to script can.
For example, some webpage provides panic buying function at daily 9 points, according to true object, then daily 9 must be waited until
Point can just be tested, and then simulated time only be needed to can be carried out testing to 9 points using mock test objects.If changed
Testing time is 20 points, is also easy to modify in mock objects, keeps entire test process more flexible.
In another example the function of mock objects A returns to the details of commodity according to the trade name received;Mock pairs
As the function of B is the system time in setting, pop up suggestive page info (for example, daily 20 points 55 minutes, pop-up prompt,
Certain part commodity will enter at 21 points to be snapped.), it, can be by advance by mock objects A and B if then user tests
It is previously implanted into local service end, this test A function and/or test b function are determined by pre-determined configuration file.When
After client sends out page request, by interception request, this object called is then determined according to configuration file, obtains knot
Fruit.Here result, which includes returning the result for mock objects, will either ask the container joint for being pass-through to client, to hold
Device interface locally executes calling function according to request in user terminal.For the same container joint call request, the two (mock
Response results or transparent transmission are asked to container joint) in only can return to one.
S205 receives returning the result for server-side, carries out business processing.
As previously mentioned, returning the result for server-side can be the mock response results responded to request, can also be described
Server-side returns to the request to the container joint.In the case where server-side transparent transmission is asked to container joint, container joint
Corresponding business processing is further executed according to request, for example, some hardware capabilities of local handset are called, alternatively, server-side
Request page access etc., obtains true accordingly result.
Result during application request is influenced by software, hardware, system environments etc. are various, this is also carry out business
The purpose of test.In conjunction with mock accordingly results and/or true response results, the final industry of this client request can be obtained
Business handling result shows this service code normal operation if final service processing result is consistent with expected results.If returning
Result with expection do not meet, i.e., this test result is abnormal, needs to be debugged again.
In the above scheme, by intercepting the request of application call container joint to be tested, and server-side is forwarded, passed through
Mock configuration files in server-side are that this is returned the result is that legitimate reading or mock response results to determine, to carry out respectively
Kind operational trials.During the test, can directly be accessed by user terminal exploitation server offer the page, without into
Row configuration, facilitates other people to carry out test verification;It is successfully tested and product is reached the standard grade again, service code is not modified,
Also corresponding configuration file need not be changed in service code, forget to switch generation when product is reached the standard grade to fundamentally solve
Failure on line caused by code.
Under a kind of specific embodiment, during carrying out application and development and test, for intercepting the request
Following method may be used in mode:By the mock scripts being previously implanted, intercepts the request Concurrency and send to server-side.
The mode being previously implanted can be injected into client manually by user;But can also be more easily, to pass through
Server-side is automatically injected to client, for example, when client accesses the address that server-side is provided for the first time, into client
The mock scripts finished writing in advance are injected, for intercepting the call request of container joint.
In this manner, the mock scripts of injection make the ability of script container Processing Interface fail, although request
Still it is issued in container, but because the injection of mock scripts, container, which loses, directly controls request, request will be by
Server-side is intercepted and captured and directly issues, server-side decision is returned using mock response results, still passes through container real interface
True response results are returned to, so as to realize that dynamic is changed so that test is more convenient.
As a kind of specific embodiment, request above-mentioned includes HTML5 page requests, and the container joint includes
HTML5 application container interfaces.In other words, for the native applications in system by HTML5 containers come load web page or
The function of web applications is tested, this is also the most common content that needs to be tested in developing HTML5 application processes.
In this case, mock objects include the simulation to HTML5 application containers.
In practical applications, HTML5 applications need the interface for calling HTML5 containers to provide, and it is primary to carry out calling mobile phone system
The function of offer.Mock test objects are also to describe this object using an interface, during the test by interface come
Reference object.In other words, in test process, client is not aware that the object that this is accessed is real test object, still
Mock test objects.
Above description is mainly the description to executing flow in terms of client, for the execution flow in terms of server-side, tool
Body includes the following steps, as shown in figure 3, the mock test methods in terms of Fig. 3 is the server-side that this specification embodiment provides
Flow diagram, including:
S301, server-side receive the request of client call container joint, and the request is intercepted to obtain by mock scripts;
S303 responds the request, determines and returns to corresponding mock response results or return to the request to the appearance
Device interface;
S305, send the request returns the result to the client.
As a kind of specific embodiment, in implementation process, server-side can also be injected from trend client for blocking
The mock scripts cut, including:Mock scripts are injected into client, the mock scripts are used to intercept the tune transmitted by client
With the request of container joint, and it is forwarded to server-side.It is automatically injected script to client by server-side, can facilitate and test
When tested by a variety of different terminal devices, without carrying out additional setting.
Server-side can be realized in respective request when determination returns the result based on pre-defined logical code.Into one
Step ground, can also be shown logical code in the form of configuration file, and the response knot of this request is determined by configuration file
Fruit (including access mock objects and obtain mock response results, alternatively, transparent transmission is asked to the container joint of client, with Bedpan
Interface further executes business processing and obtains legitimate reading).Generation corresponding to the usual part logical code or configuration file
What code was mutually isolated with service code.
In practical applications, for once asking, it may be desirable to multiple containers interface is called, in test process
In, it can determine which content tested according to the actual needs, if need to carry out request the degree of transparent transmission and transparent transmission.
In other words, by being configured in configuration file in advance to determine that this is returned as a result, being returned so as to flexible configuration
Be mock data or truthful data.Specifically, it may include following three kinds of modes:
Determine that returning the result for this request is asked described in all transparent transmissions to the container joint, in this manner,
The request of client is whole transparent transmissions;Alternatively,
Determine this request returns the result all mock response results;Alternatively,
Determine that the middle part that returns the result of this request is divided into the mock response results, remaining part is to be asked described in transparent transmission
It asks to the container joint, in this manner, the request of client is part transparent transmission.
In practical applications, the big part that mostly uses that returns the result when test is the mock response results, remaining portion
Being divided into request described in transparent transmission, (in a test request, it is multiple right to access to call multiple interfaces to the container joint
As, it is often necessary to carry out the true test in part).That is, by configuration file, server-side to request carried out part transparent transmission with into
The corresponding test of row, under this embodiment, the part interface call request of non-transparent transmission will jump on mock objects,
It is partly returning the result for true HTML5 container joints in result to return to client, is partly the return of mock objects
As a result.
Certainly, in practical applications, if being successfully tested, there is no problem after product reaches the standard grade, and server-side should be realized completely thoroughly
It passes.After product is reached the standard grade, it will be deployed in aol server (that is, not being the testing service end tested), client accesses at this time
Be aol server, or access be offline roadblock face.Since entrance is different, client can not access above-mentioned
Testing service end, therefore also interception process is less had just without the process above-mentioned for being automatically injected script, it is clear that be also impossible to
There is the above-mentioned process for jumping to mock test objects, all requests are all directly to pass through true container joint, return to knot
Fruit is also all the return of true HTML5 containers.As shown in figure 4, the product that Fig. 4 is provided by this specification embodiment reach the standard grade with
The schematic diagram actually called on line afterwards.
In aforementioned schemes, what server-side flexibly controlled return by configuration file is that true return or mock are returned
It returns, flexibility is strong, to realize that dynamic is changed, convenient voluntarily maintenance and expansion.In addition, server-side is automatically injected into client
Mock scripts, user terminal directly accesses the page that local exploitation server provides and can be tested, without carrying out any match
It sets, other people is facilitated to carry out test verification;It is successfully tested and product is reached the standard grade again, there is no being modified to service code, also not
It needs to change corresponding configuration file in service code, therefore fundamentally solves when product is reached the standard grade and forget that switch code is led
Failure on the line of cause
Due to the process in aforementioned test, need to modify is all mock scripts or its configuration file, not
Service code is modified, corresponding configuration file need not be also changed in service code, flexibility is strong, convenient voluntarily to tie up
Shield and extension.
For different test contents, can be realized by different mock scripts.For same application to be tested, use
Family can also determine to return using the interface return of true HTML5 containers or mock objects by changing configuration file, make
It is more flexible and convenient when must test, following method specifically can be used:The instruction for receiving user, to change the configuration file;
According to the modified configuration file and the request, this object accessed is determined.
As a kind of specific embodiment, the client and the server-side are respectively positioned on local, using local service
End and client are tested, it may be convenient to be modified and be configured, also can effectively avoid remote service is unavailable from leading to nothing
The case where method works.
In this specification embodiment, whether various ways may be used to realize in server-side or mock scripts.
It can be developed to obtain by Node.js as one kind preferably embodiment, server-side, the mock scripts pass through
JavaScript language is developed to obtain, in the process of development, code and service code and the mock of the configuration file of mock scripts
The code of object is mutually isolated.
As a kind of specific embodiment, the request includes HTML5 page requests, and the container joint includes
HTML5 application container interfaces.
Based on same thinking, the present invention also provides a kind of mock test devices, as shown in figure 5, Fig. 5 is that this specification is real
The structural schematic diagram of mock test devices in terms of the provided client of example is provided, including:
Initiation module 501, client is asked to initiate to call the request of container joint;
Blocking module 503 intercepts the request Concurrency and send to server-side, so that server-side responds the request, return pair
The mock response results answered return to the request to the container joint;
Receiving module 505 receives returning the result for server-side, carries out business processing.
Further, if the server-side returns to the request to the container joint, the receiving module 505 obtains
The true response results that the request that the server-side returns is handled by the container joint;According to described true
Response results carry out business processing.
Further, the blocking module 503, by the mock scripts being previously implanted, intercept the request Concurrency send to
Server-side.
Further, the request includes HTML5 page requests, and the container joint includes HTML5 application container interfaces.
Based on same thinking, the present invention also provides another mock test devices, as shown in fig. 6, Fig. 6 is this specification
The structural schematic diagram of mock test devices in terms of the server-side that embodiment is provided, including:
Receiving module 601, server-side receive the request of client call container joint, and the request is intercepted by mock scripts
It obtains;
Determining module 603 responds the request, determines and returns to corresponding mock response results or return to the request extremely
The container joint;
Sending module 605, send the request returns the result to the client.
Further, described device further includes injection module 607, and mock scripts, the mock feet are injected into client
This calls the request of container joint for intercepting transmitted by client, and is forwarded to server-side.
Further, the determining module 603 is based on pre-set configuration file, responds the request, determines and returns
Corresponding mock response results return to the request to the container joint
Further, the determining module 603, determine this request returns the result all mock responses knots
Fruit;Alternatively, this determining request returns the result all returns request to the container joint;Alternatively, determining this
The middle part that returns the result of request is divided into the mock response results, remaining part is to return to the request to the container to connect
Mouthful.
Further, the receiving module 601 is additionally operable to receive the instruction of user, to change the configuration file;It is described
Determining module 603 responds the request according to the modified configuration file, determines returning the result for the request
Further, the server-side and the mock scripts are based on JavaScript.
Further, the client and the server-side are respectively positioned on local
Further, the request includes HTML5 page requests, and the container joint includes HTML5 application container interfaces.
Corresponding, the embodiment of the present application also provides a kind of mock test equipments, and the equipment includes:
Memory stores mock test programs;
Processor calls the mock test programs in memory, and executes:
Client is initiated to call the request of container joint;
It intercepts the request Concurrency to send to server-side, so that server-side responds the request, returns to corresponding mock responses
As a result or the request is returned to the container joint;
Returning the result for server-side is received, business processing is carried out.
Corresponding, the embodiment of the present application also provides another kind mock test equipments, and the equipment includes:
Memory stores mock test programs;
Processor calls the mock test programs in memory, and executes:
Server-side receives the request of client call container joint, and the request is intercepted to obtain by mock scripts;
The request is responded, determines that returning to corresponding mock response results or the return request to the container connects
Mouthful;
Send the request returns the result to the client.
Based on same invention thinking, the embodiment of this specification also provides a kind of nonvolatile computer storage media,
Computer executable instructions are stored with, the computer executable instructions are set as:
Client is initiated to call the request of container joint;
It intercepts the request Concurrency to send to server-side, so that server-side responds the request, returns to corresponding mock responses
As a result or the request is returned to the container joint;
Returning the result for server-side is received, business processing is carried out.
Based on same invention thinking, the embodiment of this specification also provides another non-volatile computer storage and is situated between
Matter, is stored with computer executable instructions, and the computer executable instructions are set as:
Server-side receives the request of client call container joint, and the request is intercepted to obtain by mock scripts;
The request is responded, determines that returning to corresponding mock response results or the return request to the container connects
Mouthful;
Send the request returns the result to the client.
Each embodiment in this specification is described in a progressive manner, identical similar portion between each embodiment
Point just to refer each other, and each embodiment focuses on the differences from other embodiments.Especially for device,
For equipment and medium class embodiment, since it is substantially similar to the method embodiment, so description is fairly simple, related place
Illustrate referring to the part of embodiment of the method, just no longer repeats one by one here.
It is above-mentioned that this specification specific embodiment is described.Other embodiments are in the scope of the appended claims
It is interior.In some cases, the action recorded in detail in the claims or step or module can be according to different from embodiments
Sequence executes and desired result still may be implemented.In addition, the process described in the accompanying drawings is not necessarily required and is shown
Particular order or consecutive order could realize desired result.In some embodiments, multitasking and parallel processing
It is also possible or it may be advantageous.
In the 1990s, the improvement of a technology can be distinguished clearly be on hardware improvement (for example,
Improvement to circuit structures such as diode, transistor, switches) or software on improvement (improvement for method flow).So
And with the development of technology, the improvement of current many method flows can be considered as directly improving for hardware circuit.
Designer nearly all obtains corresponding hardware circuit by the way that improved method flow to be programmed into hardware circuit.Cause
This, it cannot be said that the improvement of a method flow cannot be realized with hardware entities module.For example, programmable logic device
(Programmable Logic Device, PLD) (such as field programmable gate array (Field Programmable Gate
Array, FPGA)) it is exactly such a integrated circuit, logic function determines device programming by user.By designer
Voluntarily programming comes a digital display circuit " integrated " on a piece of PLD, designs and makes without asking chip maker
Dedicated IC chip.Moreover, nowadays, substitution manually makes IC chip, this programming is also used instead mostly " patrols
Volume compiler (logic compiler) " software realizes that software compiler used is similar when it writes with program development,
And the source code before compiling also write by handy specific programming language, this is referred to as hardware description language
(Hardware Description Language, HDL), and HDL is also not only a kind of, but there are many kind, such as ABEL
(Advanced Boolean Expression Language)、AHDL(Altera Hardware Description
Language)、Confluence、CUPL(Cornell University Programming Language)、HDCal、JHDL
(Java Hardware Description Language)、Lava、Lola、MyHDL、PALASM、RHDL(Ruby
Hardware Description Language) etc., VHDL (Very-High-Speed are most generally used at present
Integrated Circuit Hardware Description Language) and Verilog.Those skilled in the art also answer
This understands, it is only necessary to method flow slightly programming in logic and is programmed into integrated circuit with above-mentioned several hardware description languages,
The hardware circuit for realizing the logical method flow can be readily available.
Controller can be implemented in any suitable manner, for example, controller can take such as microprocessor or processing
The computer for the computer readable program code (such as software or firmware) that device and storage can be executed by (micro-) processor can
Read medium, logic gate, switch, application-specific integrated circuit (Application Specific Integrated Circuit,
ASIC), the form of programmable logic controller (PLC) and embedded microcontroller, the example of controller includes but not limited to following microcontroller
Device:ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20 and Silicone Labs C8051F320, are deposited
Memory controller is also implemented as a part for the control logic of memory.It is also known in the art that in addition to
Pure computer readable program code mode is realized other than controller, can be made completely by the way that method and step is carried out programming in logic
Controller is obtained in the form of logic gate, switch, application-specific integrated circuit, programmable logic controller (PLC) and embedded microcontroller etc. to come in fact
Existing identical function.Therefore this controller is considered a kind of hardware component, and to including for realizing various in it
The device of function can also be considered as the structure in hardware component.Or even, it can will be regarded for realizing the device of various functions
For either the software module of implementation method can be the structure in hardware component again.
System, device, module or the unit that above-described embodiment illustrates can specifically realize by computer chip or entity,
Or it is realized by the product with certain function.It is a kind of typically to realize that equipment is computer.Specifically, computer for example may be used
Think personal computer, laptop computer, cellular phone, camera phone, smart phone, personal digital assistant, media play
It is any in device, navigation equipment, electronic mail equipment, game console, tablet computer, wearable device or these equipment
The combination of equipment.
For convenience of description, it is divided into various units when description apparatus above with function to describe respectively.Certainly, implementing this
The function of each unit is realized can in the same or multiple software and or hardware when the embodiment of specification.
It should be understood by those skilled in the art that, the embodiment of the present invention can be provided as method, system or computer program
Product.Therefore, complete hardware embodiment, complete software embodiment or reality combining software and hardware aspects can be used in the present invention
Apply the form of example.Moreover, the present invention can be used in one or more wherein include computer usable program code computer
The computer program production implemented in usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.)
The form of product.
The present invention be with reference to according to the method for the embodiment of the present invention, the flow of equipment (system) and computer program product
Figure and/or block diagram describe.It should be understood that can be realized by computer program instructions every first-class in flowchart and/or the block diagram
The combination of flow and/or box in journey and/or box and flowchart and/or the block diagram.These computer programs can be provided
Instruct the processor of all-purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce
A raw machine so that the instruction executed by computer or the processor of other programmable data processing devices is generated for real
The device for the function of being specified in present one flow of flow chart or one box of multiple flows and/or block diagram or multiple boxes.
These computer program instructions, which may also be stored in, can guide computer or other programmable data processing devices with spy
Determine in the computer-readable memory that mode works so that instruction generation stored in the computer readable memory includes referring to
Enable the manufacture of device, the command device realize in one flow of flow chart or multiple flows and/or one box of block diagram or
The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device so that count
Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, in computer or
The instruction executed on other programmable devices is provided for realizing in one flow of flow chart or multiple flows and/or block diagram one
The step of function of being specified in a box or multiple boxes.
In a typical configuration, computing device includes one or more processors (CPU), input/output interface, net
Network interface and memory.
Memory may include computer-readable medium in volatile memory, random access memory (RAM) and/or
The forms such as Nonvolatile memory, such as read-only memory (ROM) or flash memory (flash RAM).Memory is computer-readable medium
Example.
Computer-readable medium includes permanent and non-permanent, removable and non-removable media can be by any method
Or technology realizes information storage.Information can be computer-readable instruction, data structure, the module of program or other data.
The example of the storage medium of computer includes, but are not limited to phase transition internal memory (PRAM), static RAM (SRAM), moves
State random access memory (DRAM), other kinds of random access memory (RAM), read-only memory (ROM), electric erasable
Programmable read only memory (EEPROM), fast flash memory bank or other memory techniques, read-only disc read only memory (CD-ROM) (CD-ROM),
Digital versatile disc (DVD) or other optical storages, magnetic tape cassette, tape magnetic disk storage or other magnetic storage apparatus
Or any other non-transmission medium, it can be used for storage and can be accessed by a computing device information.As defined in this article, it calculates
Machine readable medium does not include temporary computer readable media (transitory media), the data letter number and carrier wave of such as modulation.
It should also be noted that, the terms "include", "comprise" or its any other variant are intended to nonexcludability
Including so that process, method, commodity or equipment including a series of elements include not only those elements, but also wrap
Include other elements that are not explicitly listed, or further include for this process, method, commodity or equipment intrinsic want
Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that wanted including described
There is also other identical elements in the process of element, method, commodity or equipment.
It will be understood by those skilled in the art that embodiment one or more in this specification can be provided as method, system or
Computer program product.Therefore, complete hardware embodiment, complete software embodiment or combination can be used in the embodiment of this specification
Form in terms of software and hardware.Moreover, it wherein includes computer that the embodiment of this specification, which can be used in one or more,
The computer-usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) of usable program code
The form of the computer program product of upper implementation.
The embodiment of this specification can retouch in the general context of computer-executable instructions executed by a computer
It states, such as program module.Usually, program module include execute particular transaction or realize particular abstract data type routine,
Program, object, component, data structure etc..The embodiment that this specification can also be put into practice in a distributed computing environment, at this
In a little distributed computing environment, by executing affairs by the connected remote processing devices of communication network.It is counted in distribution
It calculates in environment, program module can be located in the local and remote computer storage media including storage device.
Each embodiment in this specification is described in a progressive manner, identical similar portion between each embodiment
Point just to refer each other, and each embodiment focuses on the differences from other embodiments.Especially for system reality
For applying example, since it is substantially similar to the method embodiment, so description is fairly simple, related place is referring to embodiment of the method
Part explanation.
The foregoing is merely the embodiments of this specification, are not intended to limit this application.For people in the art
For member, the embodiment of this specification can have various modifications and variations.The spirit and principle of all embodiments in this specification
Within any modification, equivalent replacement, improvement and so on, should be included among the interest field of the application.