CN104639379A - Proxy testing method and device - Google Patents

Proxy testing method and device Download PDF

Info

Publication number
CN104639379A
CN104639379A CN201310547138.9A CN201310547138A CN104639379A CN 104639379 A CN104639379 A CN 104639379A CN 201310547138 A CN201310547138 A CN 201310547138A CN 104639379 A CN104639379 A CN 104639379A
Authority
CN
China
Prior art keywords
measurand
test
testing tool
tie point
mapping relations
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.)
Pending
Application number
CN201310547138.9A
Other languages
Chinese (zh)
Inventor
刘宗昌
樊志强
郇昌波
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
ZTE Corp
Original Assignee
ZTE Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by ZTE Corp filed Critical ZTE Corp
Priority to CN201310547138.9A priority Critical patent/CN104639379A/en
Priority to PCT/CN2014/080140 priority patent/WO2015067051A1/en
Publication of CN104639379A publication Critical patent/CN104639379A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The present invention discloses a proxy testing method and device. The method includes: establishing, by a testing proxy, a mapping relation between a testing tool and a tested object; according to the mapping relation, forwarding a testing command of the testing tool to the tested object, and/or, forwarding a tested result of the tested object in response to the testing command to the testing tool, wherein the testing command is used for testing the tested object. The method and device solve a problem that establishment, executed by the testing tool, of communication connection between the testing tool and the tested object causes high load of the testing tool in correlative technology, and improve testing stability.

Description

Test agent method and device thereof
Technical field
The present invention relates to the communications field, in particular to a kind of test agent method and device thereof.
Background technology
In testing, test subscriber generally implements test by test terminal instrument (i.e. testing tool, be also called Test Application).Such as, user's manually input test order, then checks returning results of measurand, continues to implement next step test based on result.In this process, test terminal instrument, has played important effect, has comprised order and be sent to measurand, obtains measurand return data to user etc.
In addition, automatic test is also a kind of method implementing test, and completes by automated test tool.Perform the similar above-mentioned manual test method by tool terminal of flow process, its difference is, test command is not be issued to measurand by manual input, but by explaining that test script (order of script bearing test) issues test command to measurand.In this process, automated test tool, plays an important role, and except order is sent to measurand, obtains measurand return data to outside automation tools, also comprises the functions such as script exploitation, debugging, management.
Also may comprise the mode that other implement test, aggregate analysis, concrete module of implementing can be described by Fig. 1.Implementation model includes two-layer: test implementation layer and measurand layer.Inventor finds that correlation technique exists following defect:
1, measurand lacks unified management, allotment.In this model, towards test implementation used, there is access conflict, use the problems such as chaotic in measurand.Such as, any test implementation object can access control to measurand, may there is much potential problem in this, cause insufficient, the object of test difficultly to define, problem investigation is difficult.
2, Test Application side, to the management of measurand, adopts the management mode departed from outside this model, such as uses other management tool, by standard system agreement etc.This contributes to management, the allotment of macroscopically measurand, but is difficult on microcosmic from service layer, and functional plane analyzes measurand.
3, implementation tool lacks mutual channel, between there is barrier.On test implementation instrument, comprise terminal test instrument, automated test tool etc., there is much similar function, these functions are distributed on different testing tools, give exploitation, safeguard and bring a lot of inconvenience.
4, the communication connection of equipment is responsible for by testing tool, and operation can reduce performance frequently, often creates a new connection when needed, and so the resource use of application program can produce very large waste and exception under may causing high capacity occurs.
For the problem being caused testing tool high capacity in correlation technique by the testing tool communication connection created between measurand, at present effective solution is not yet proposed.
Summary of the invention
The invention provides a kind of test agent method and device thereof, at least to solve the problem being caused testing tool high capacity in correlation technique by the testing tool communication connection created between measurand.
According to an aspect of the present invention, provide a kind of test agent method, comprising: test agent sets up the mapping relations of testing tool and measurand; According to described mapping relations, forward the test command of described testing tool to described measurand, and/or, forward the test result of described measurand in response to described test command to described testing tool, wherein, described test command is used for testing described measurand.
Preferably, forward described test command to described measurand to comprise: the described test command receiving described testing tool; According to described mapping relations, described test command is sent to described measurand.
Preferably, forward described test result to described testing tool to comprise: receive the described test result of described measurand in response to described test command; According to described mapping relations, described test result is sent to described testing tool.
Preferably, after described test result is sent to described testing tool, described method also comprises: receive the releasing request being used to indicate test end that described testing tool sends; According to described releasing request, remove the described mapping relations of described testing tool and described measurand.
Preferably, the mapping relations setting up described testing tool and described measurand comprise: the test request receiving described testing tool; According to the descriptor of the described measurand that described test request is carried, set up the mapping relations of described testing tool and described measurand.
Preferably, before the mapping relations setting up described testing tool and described measurand, described method also comprises: determine that described testing tool has the mandate testing described measurand.
Preferably, according to described descriptor, the mapping relations setting up described testing tool and described measurand comprise: according to described descriptor, and the tie point in the connection pool of described test agent is distributed to described measurand; Access point in the access pond of described test agent is distributed to described testing tool; Set up the corresponding relation of described tie point and described access point, wherein, described corresponding relation is used to indicate the described mapping relations of described testing tool and described measurand.
Preferably, described tie point is distributed to described measurand to comprise: judge in described connection pool, whether to there is idle tie point; When judged result is the tie point that there is the free time, the tie point in the tie point of described free time is distributed to described measurand.
Preferably, after the described tie point in the connection pool of described test agent is distributed to described measurand, described method also comprises: the heartbeat data fed back in the given time according to described measurand, tie point described in keep-alive.
Preferably, described tie point is distributed to described measurand to comprise: judge in described connection pool, whether to there is idle tie point; When judged result is the tie point that there is not the free time, creates and add new tie point to described connection pool; Described new tie point is distributed to described measurand.
According to another aspect of the present invention, additionally provide a kind of test agent device, comprising: set up module, for setting up the mapping relations of testing tool and measurand; Forwarding module, for according to described mapping relations, forward the test command of described testing tool to described measurand, and/or, forward the test result of described measurand in response to described test command to described testing tool, wherein, described test command is used for testing described measurand.
By the present invention, test agent is adopted to set up the mapping relations of testing tool and measurand; According to these mapping relations, the test command of transmitted test instrument is to measurand, and/or forward the test result of measurand in response to test command to testing tool, wherein, test command is used for the mode of testing measurand.Solve the problem being caused testing tool high capacity in correlation technique by the testing tool communication connection created between measurand, improve the stability of test.
Accompanying drawing explanation
Accompanying drawing described herein is used to provide a further understanding of the present invention, and form a application's part, schematic description and description of the present invention, for explaining the present invention, does not form inappropriate limitation of the present invention.In the accompanying drawings:
Fig. 1 is the schematic diagram of the two-layer model of testing tool+tested object according to correlation technique;
Fig. 2 is the schematic flow sheet of the test agent method according to the embodiment of the present invention;
Fig. 3 is the structural representation of the test agent device according to the embodiment of the present invention;
Fig. 4 is the preferred structure schematic diagram one of the test agent device according to the embodiment of the present invention;
Fig. 5 is the preferred structure schematic diagram two of the test agent device according to the embodiment of the present invention;
Fig. 6 is the preferred structure schematic diagram three of the test agent device according to the embodiment of the present invention;
Fig. 7 is the preferred structure schematic diagram four of the test agent device according to the embodiment of the present invention;
Fig. 8 is the preferred structure schematic diagram five of the test agent device according to the embodiment of the present invention;
Fig. 9 is the schematic diagram of the three layer model of tested object+test agent+Test Application according to the preferred embodiment of the invention;
Figure 10 is the structural representation of test agent according to the preferred embodiment of the invention;
Figure 11 is a kind of logical construction schematic diagram of three layer model according to the preferred embodiment of the invention;
Figure 12 is according to the preferred embodiment of the invention based on the schematic flow sheet of the method for testing of test agent.
Embodiment
It should be noted that, when not conflicting, the embodiment in the application and the feature in embodiment can combine mutually.Below with reference to the accompanying drawings and describe the present invention in detail in conjunction with the embodiments.
Can perform in the computer system of such as one group of computer executable instructions in the step shown in the flow chart of accompanying drawing, and, although show logical order in flow charts, in some cases, can be different from the step shown or described by order execution herein.
In the present embodiment, provide a kind of test agent method, Fig. 2 is the schematic flow sheet of the test agent method according to the embodiment of the present invention, and as shown in Figure 2, the step of this flow process comprises:
Step S202: test agent sets up the mapping relations of testing tool and measurand;
Step S204: according to mapping relations, the test command of transmitted test instrument is to measurand, and/or forward the test result of measurand in response to test command to testing tool, wherein, test command is used for testing measurand.
In above-mentioned steps, mapping relations between the testing tool set up according to test agent by test agent and measurand, test command between testing tool and measurand and test result are forwarded, testing tool can not need consumes resources to set up the communication connection between measurand, thus reduce the load of testing tool, solve the problem being caused testing tool high capacity in existing correlation technique by the testing tool communication connection created between measurand, improve the stability of test, and, by the management to the mapping relations set up, can in different test events, realize the unified management between different testing tool from different measurand and scheduling, break the barrier existed between implementation tool.
Preferably, test agent is connected with multiple testing tool and measurand respectively.
Preferably, in step S204, transmitted test order comprises to measurand: receive the test command for testing measurand that testing tool sends, and according to the mapping relations set up, test command is sent to measurand process.
Preferably, in step S204, transmitted test result comprises to testing tool: receive the test result sent by measurand, and this test result is the response that measurand returns after performing test command; After receiving test result, test result is sent to the testing tool corresponding with measurand according to indicating in mapping relations.
Preferably, for a testing tool, may test multiple tested object simultaneously; And same measurand is also likely tested by multiple testing tool.In order to distinguishing tests order be send in multiple measurand which, and the test result distinguishing measurand response corresponds to the test of which testing tool initiation, can carry the identification information for identifying testing tool and/or measurand in test command and test result, test agent is determined to forward test command and test result with mapping relations by identification information.
Preferably, additionally provide a kind of resource processing mode after test terminates in the present embodiment, after test result is sent to testing tool, if also have other test command, then continue transmitted test order and test result; If test completes, testing tool can send to test agent the releasing request being used to indicate test and terminating, after test agent receives the releasing request of testing tool transmission, remove the mapping relations of testing tool and measurand, and discharge all resources distributing to this testing tool.
The mode setting up mapping relations has multiple, such as: according to the input of user, set up mapping relations.Preferably, adopt in the present embodiment and set up mapping relations by the mode of testing tool initiation test request, such as: test agent receives the test request of testing tool, wherein, the descriptor for describing measurand is carried, the mark of such as measurand, the time limit of engaged test resource in test request; The descriptor of the measurand that test agent is carried according to test request, sets up the mapping relations of testing tool and measurand.
Preferably, the authorization message that testing tool is authorized to the measurand that can test is preserved in test agent, before the mapping relations setting up described testing tool and described measurand, test agent can according to the authorization message of preserving, judge whether this test agent has the mandate of test measurand, and when determining that testing tool has the mandate of test measurand, set up the mapping relations of testing tool and measurand.Otherwise test agent can send to testing tool the response message that refusal sets up mapping relations or this measurand of refusal test.
In a preferred embodiment, create in test agent and have connection pool and access pond, wherein, access point in access pond is used for being assigned to one or more testing tool, tie point in connection pool is used for being assigned to one or more measurand, in the mapping relations that test agent is set up, the tie point that the access point adopting testing tool to distribute and measurand are distributed represents the mapping relations of testing tool and measurand.Such as, the mapping relations setting up testing tool and measurand comprise: according to descriptor, and the tie point in the connection pool of test agent is distributed to measurand; Access point in the access pond of test agent is distributed to testing tool; Connect a little and the corresponding relation of access point, wherein, corresponding relation is used to indicate the mapping relations of testing tool and measurand.
Preferably, in the above-described embodiments, tie point is distributed to measurand to comprise: judge in connection pool, whether to there is idle tie point; When judged result is the tie point that there is the free time, the tie point in the tie point of free time is distributed to measurand.
Preferably, in order to Appropriate application tie point resource, the mode of heartbeat keep-alive can be adopted to keep with the resource of mode to tie point or access point of ageing time of making an appointment or reclaim.Such as, when adopting the mode of heartbeat keep-alive, after the tie point in the connection pool of test agent is distributed to measurand, measurand periodically or sporadically sends heartbeat data to test agent, test agent according to continuous reception to heartbeat data determine the tie point resource keeping distributing to this measurand; When test agent does not receive the heartbeat data of measurand transmission in the given time, test agent according to circumstances can discharge the tie point resource that this measurand is distributed.
Preferably, determining in connection pool the tie point that there is not the free time, when namely tie point is taken by other measurands, can create and add new tie point to connection pool, and new tie point being distributed to measurand use.
The present embodiment additionally provides a kind of test agent device, and this device is used for realizing above-mentioned test agent method, and the functional realiey in this device embodiment carried out detailed description in said method embodiment, will repeat no more at this.
Fig. 3 is the structural representation of the test agent device according to the embodiment of the present invention, and as shown in Figure 3, this device comprises: set up module 32 and forwarding module 34, wherein, sets up module 32, for setting up the mapping relations of testing tool and measurand; Forwarding module 34 is coupled to sets up module 32, and for according to mapping relations, the test command of transmitted test instrument is to measurand, and/or, forward the test result of measurand in response to test command to testing tool, wherein, test command is used for testing measurand.
In the present embodiment, forwarding module is by the testing tool setting up module and set up and the mapping relations of measurand, forward the test command between testing tool and measurand and test result, therefore, the communication connection that testing tool can not need consumes resources to come between resume and measurand, thus reduce the load of testing tool, solve the problem being caused testing tool high capacity in existing correlation technique by the testing tool communication connection be created between measurand, improve the stability of test, and, by the management of the mapping relations to resume, can in different test events, realize the unified management between different testing tool from different measurand and scheduling, break the barrier existed between implementation tool.
Module involved in embodiments of the invention, unit can be realized by the mode of software, also can be realized by the mode of hardware.Described module in the present embodiment, unit also can be arranged within a processor, such as, can be described as: a kind of processor comprises sets up module 32 and forwarding module 34.Wherein, the title of these modules does not form the restriction to this module itself under certain conditions, such as, sets up module and can also be described to " for setting up the module of the mapping relations of testing tool and measurand ".
Fig. 4 is the preferred structure schematic diagram one of the test agent device according to the embodiment of the present invention, and as shown in Figure 4, preferably, forwarding module 34 comprises: the first receiving element 342, for receiving the test command of testing tool; First transmitting element 344 is coupled to the first receiving element 342, for according to mapping relations, test command is sent to measurand.
Fig. 5 is the preferred structure schematic diagram two of the test agent device according to the embodiment of the present invention, and as shown in Figure 5, preferably, forwarding module 34 comprises: the second receiving element 346, for receiving the test result of measurand in response to test command; Second transmitting element 348 is coupled to the second receiving element 346, for according to mapping relations, test result is sent to testing tool.
Fig. 6 is the preferred structure schematic diagram three of the test agent device according to the embodiment of the present invention, and as shown in Figure 6, preferably, this device also comprises: receiver module 62, for receiving the releasing request being used to indicate test end that testing tool sends; Remove module 64 be coupled to receiver module 62 and set up module 32, for removing by the mapping relations setting up testing tool that module 32 sets up and measurand.
Fig. 7 is the preferred structure schematic diagram four of the test agent device according to the embodiment of the present invention, as shown in Figure 7, preferably, sets up module 32 and comprises: the 3rd receiving element 322, for receiving the test request of testing tool; Set up unit 324 and be coupled to the 3rd receiving element 322, for the descriptor of measurand of carrying according to test request, set up the mapping relations of testing tool and measurand.
Preferably, this device also comprises determination module, is coupled to the 3rd receiving element 322 and sets up unit 324, for determining that described testing tool has the mandate testing described measurand.
Fig. 8 is the preferred structure schematic diagram five of the test agent device according to the embodiment of the present invention, as shown in Figure 8, preferably, set up unit 324 to comprise: first distributes subelement 3242, for according to descriptor, the tie point in the connection pool of test agent is distributed to measurand; Second distributes subelement 3244, for the access point in the access pond of test agent is distributed to testing tool; Set up subelement 3246, be coupled respectively to above-mentioned first and distribute subelement 3242 and second and distribute subelement 3244, for connecting a little and the corresponding relation of access point, wherein, corresponding relation is used to indicate the mapping relations of test agent instrument and measurand.
Preferably, first distribute subelement 3242 also for: judge whether to exist in connection pool idle tie point, when judged result is the tie point that there is the free time, sets up module and distribute tie point to measurand by idle tie point.
Preferably, first distribute subelement 3244 also for: be, when there is not idle tie point, create and add new tie point to connection pool, new tie point is distributed to measurand in judged result.
Preferably, this device also comprises: keep-alive module, and for the heartbeat data fed back in the given time according to measurand, the tie point of this measurand is distributed in keep-alive.
Be described below in conjunction with preferred embodiment and illustrate.
This preferred embodiment provides a kind of test agent and method of testing thereof, relates to field tests, particularly relates to the test carried out based on terminal mode.
Fig. 9 is the schematic diagram of the three layer model of tested object+test agent+Test Application according to the preferred embodiment of the invention, and as shown in Figure 9, this three layer model optimizes the two-layer model of tested object+Test Application.
Figure 10 is the structural representation of test agent according to the preferred embodiment of the invention, and as shown in Figure 10, the test agent provided in this preferred embodiment comprises following functional module:
Connection pool module, is responsible for test agent to the connection management of measurand, comprises the establishment of tie point, tracking, heartbeat, release etc.Connection pool creates and a management Buffer Pool be connected, and these connections can be used by their user of any needs.Tie point mark test agent is to a communication connection of measurand, and communicating pair is mutual by tie point, and communication protocol can according to the support type selecting of measurand.
Access pond administration module, responsible testing tool is linked into the management of measurand, testing tool to tested object by access point to tie point Mapping implementation.Tie point is the physical connection of test agent to measurand, and access point is testing tool uses the logical mappings (i.e. the management of mapping table) of these tie points.Realize the transparent access of testing tool to measurand by logical mappings, also can ensure that the application of tie point and measurand maximizes.
Configuration Manager, the i.e. various allocation list management of test agent.By configuration management information, testing tool application can well recognize the dispatching distribution situation having which available resources and resource.Distribution management table comprises Object table: the measurand under test agent; Authorization list: measurand can be used by which terminal use, the exclusive and Compliance control etc. of object; Dispatch list: which terminal use is measurand distribute to uses, and when can discharge; Mapping table: namely access point is to the logical mappings of tie point, mapping table isolation terminal use to measurand, make resource selection, distribution more efficient.
The preferred embodiment of the present invention also provides a kind of method of testing based on this test agent, comprises the steps:
Step one, startup test agent, configuration Object table and authorization list, initialization dispatch list and mapping table, what build test agent acts on behalf of tested resource and application resource;
The testing tool of step 2, application side initiates measurand application (access application) to test agent, and the descriptor of submit applications resource, such as resource characteristic, useful life etc.;
Step 3, test agent search available objects resource according to authorization list to Object table, if there is object to use, more whether there is idle tie point to connection pool inquiry, do not exist, create tie point, and add connection pool to; Creating access point is application side instrument, and creates the mapping table of access point to tie point, generates schedule entries, adds access point to access pond; Return access point to application side testing tool.If there is no available objects resource or linking point, return failure to application side.
Step 4, testing tool obtain the success of application access point, then proceed the dependence test based on this instrument; Otherwise hang up based on the test of this instrument;
Step 5, testing tool send test command to access point, and test agent searches mapping table, and transmitted test order, to tie point, namely send test command to arrive measurand; Test agent obtains test command execution result, and continues to be forwarded to access point, thus testing tool gets the execution result of test command; Proceed test; In this process, test agent is track record test command simultaneously;
Step 6, testing tool are completed, and send the request of release access point; Test agent query processing mapping table (such as, the corresponding entry in release mapping table) and dispatch list (such as, upgrading the corresponding entry in dispatch list), be set to idle condition this tie point of connection pool, from access pond release access point simultaneously.
The monitoring of step 7, connection pool connects idle tie point, the heartbeat of the measurand of line correlation of going forward side by side, keep-alive tie point; If exceed the maximum idling cycle of tie point, connection pool discharges this tie point.
By the test agent of the preferred embodiment of the present invention, optimize the two-layer model of tested object+test implementation, provide a kind of three layer model of tested object+test agent+test implementation, the unified management of tested object can be realized, break silo, simplify exploitation and the maintenance of Test Application instrument, make transparent to Test Application of tested object; And by the resource pool of test agent, tested resource can be made full use of, improve resource utilization.
Below in conjunction with accompanying drawing and example, the embodiment of the present invention is described.
Figure 11 is a kind of logical construction schematic diagram of three layer model according to the preferred embodiment of the invention, as shown in figure 11, shows a kind of implementation of the test macro of the three layer model of this preferred embodiment.Figure 12 is according to the preferred embodiment of the invention based on the schematic flow sheet of the method for testing of test agent, as shown in figure 12, comprises the steps:
Step S1, starts test agent, configuration Object table and authorization list, initialization dispatch list and mapping table, and what build test agent acts on behalf of tested resource and application resource;
Step S2, connection pool monitoring connects idle tie point, and exceed the maximum idling cycle of tie point, connection pool discharges this tie point
Step S3, the testing tool of application side initiates measurand application (access application) to test agent, and the descriptor of submit applications resource, such as resource characteristic, useful life etc.;
Step S4, test agent searches available objects resource according to authorization list to Object table, if can use without measurand, directly jumps to step S8, and returns to testing tool, and instrument is hung up;
Step S5, has available measurand, and whether connection pool inquiry exists idle tie point, there is idle tie point, then create access point, and access point+tie point is created to mapping table, increases schedule entries, jumps to step S8, and testing tool continues to perform;
Step S6, if there is not tie point, if can create tie point, then creates tie point and join connection pool, and access point+tie point is created to mapping table, increase schedule entries, jump to step S8, and testing tool continues to perform;
Step S7, if can not create tie point again, then analyzes other measurands, until there is available point of attachment; If do not have available point of attachment, then jump to step S8, testing tool continues to perform;
Step S8, testing tool obtains the success of application access point, then proceed the dependence test based on this instrument;
Step S9, testing tool sends test command to access point, and test agent searches mapping table, and transmitted test order, to tie point, namely send test command to arrive measurand; Test agent obtains test command execution result, and continues to be forwarded to access point, thus testing tool gets the execution result of test command; Proceed test; In this process, test agent is track record test command simultaneously;
Step S10, testing tool is completed, and sends the request of release access point; Test agent query processing mapping table (release map entry) and dispatch list (renewal schedule entries), be set to idle condition this tie point of connection pool simultaneously, from access pond release access point.
Step S11, connection pool monitoring connects idle tie point, the heartbeat of line correlation to measurand of going forward side by side, keep-alive tie point; If exceed the maximum idling cycle of tie point, connection pool discharges this tie point.
In sum, by the above embodiment of the present invention, preferred embodiment and preferred implementation, solve the problem being caused testing tool high capacity in correlation technique by the testing tool communication connection created between measurand, improve the stability of test.
Obviously, those skilled in the art should be understood that, above-mentioned of the present invention each module or each step can realize with general calculation element, they can concentrate on single calculation element, or be distributed on network that multiple calculation element forms, alternatively, they can realize with the executable program code of calculation element, thus, they can be stored and be performed by calculation element in the storage device, or they are made into each integrated circuit modules respectively, or the multiple module in them or step are made into single integrated circuit module to realize.Like this, the present invention is not restricted to any specific hardware and software combination.
More than above are only the preferred embodiments of the present invention, be not limited to the present invention, for a person skilled in the art, the present invention can have various modifications and variations.Within the spirit and principles in the present invention all, any amendment done, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (11)

1. a test agent method, is characterized in that comprising:
Test agent sets up the mapping relations of testing tool and measurand;
According to described mapping relations, forward the test command of described testing tool to described measurand, and/or, forward the test result of described measurand in response to described test command to described testing tool, wherein, described test command is used for testing described measurand.
2. method according to claim 1, is characterized in that, forwards described test command to described measurand and comprises:
Receive the described test command of described testing tool;
According to described mapping relations, described test command is sent to described measurand.
3. method according to claim 1, is characterized in that, forwards described test result to described testing tool and comprises:
Receive the described test result of described measurand in response to described test command;
According to described mapping relations, described test result is sent to described testing tool.
4. method according to claim 3, is characterized in that, after described test result is sent to described testing tool, described method also comprises:
Receive the releasing request being used to indicate test end that described testing tool sends;
According to described releasing request, remove the described mapping relations of described testing tool and described measurand.
5. method according to any one of claim 1 to 4, is characterized in that, the mapping relations setting up described testing tool and described measurand comprise:
Receive the test request of described testing tool;
According to the descriptor of the described measurand that described test request is carried, set up the mapping relations of described testing tool and described measurand.
6. method according to claim 5, is characterized in that, before the mapping relations setting up described testing tool and described measurand, described method also comprises:
Determine that described testing tool has the mandate testing described measurand.
7. method according to claim 5, is characterized in that, according to described descriptor, the mapping relations setting up described testing tool and described measurand comprise:
According to described descriptor, the tie point in the connection pool of described test agent is distributed to described measurand;
Access point in the access pond of described test agent is distributed to described testing tool;
Set up the corresponding relation of described tie point and described access point, wherein, described corresponding relation is used to indicate the described mapping relations of described testing tool and described measurand.
8. method according to claim 7, is characterized in that, described tie point is distributed to described measurand and comprises:
Judge in described connection pool, whether to there is idle tie point;
When judged result is the tie point that there is the free time, the tie point in the tie point of described free time is distributed to described measurand.
9. method according to claim 8, is characterized in that, after the described tie point in the connection pool of described test agent is distributed to described measurand, described method also comprises:
According to the heartbeat data that described measurand is fed back in the given time, tie point described in keep-alive.
10. method according to claim 7, is characterized in that, described tie point is distributed to described measurand and comprises:
Judge in described connection pool, whether to there is idle tie point;
When judged result is the tie point that there is not the free time, creates and add new tie point to described connection pool;
Described new tie point is distributed to described measurand.
11. 1 kinds of test agent devices, is characterized in that comprising:
Set up module, for setting up the mapping relations of testing tool and measurand;
Forwarding module, for according to described mapping relations, forward the test command of described testing tool to described measurand, and/or, forward the test result of described measurand in response to described test command to described testing tool, wherein, described test command is used for testing described measurand.
CN201310547138.9A 2013-11-06 2013-11-06 Proxy testing method and device Pending CN104639379A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201310547138.9A CN104639379A (en) 2013-11-06 2013-11-06 Proxy testing method and device
PCT/CN2014/080140 WO2015067051A1 (en) 2013-11-06 2014-06-17 Test agent method and device thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310547138.9A CN104639379A (en) 2013-11-06 2013-11-06 Proxy testing method and device

Publications (1)

Publication Number Publication Date
CN104639379A true CN104639379A (en) 2015-05-20

Family

ID=53040856

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310547138.9A Pending CN104639379A (en) 2013-11-06 2013-11-06 Proxy testing method and device

Country Status (2)

Country Link
CN (1) CN104639379A (en)
WO (1) WO2015067051A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107678897A (en) * 2017-09-18 2018-02-09 杭州迪普科技股份有限公司 A kind of method and device of automatic test
CN107995024A (en) * 2017-10-30 2018-05-04 北京奇虎科技有限公司 A kind of device management method, device, server and storage medium
CN109088779A (en) * 2018-10-18 2018-12-25 国家无线电监测中心成都监测站 Device service test method and radio testing systems

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10297750B1 (en) * 2017-11-16 2019-05-21 International Business Machines Corporation Wraparound top electrode line for crossbar array resistive switching device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1983990A (en) * 2006-05-11 2007-06-20 华为技术有限公司 Parallel testing method and system
CN101800680A (en) * 2010-03-05 2010-08-11 中兴通讯股份有限公司 Test device and test method of telecommunication system
US20130215768A1 (en) * 2012-02-21 2013-08-22 Avaya Inc. System and method for automatic dscp tracing for xoip elements
CN103298016A (en) * 2012-02-27 2013-09-11 展讯通信(上海)有限公司 Test system for mobile terminals

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7900089B2 (en) * 2006-06-12 2011-03-01 International Business Machines Corporation Method for creating error tolerant and adaptive graphical user interface test automation
CN102841846B (en) * 2012-08-27 2015-08-19 北京邮电大学 A kind of method for testing software based on Hadoop, device and system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1983990A (en) * 2006-05-11 2007-06-20 华为技术有限公司 Parallel testing method and system
CN101800680A (en) * 2010-03-05 2010-08-11 中兴通讯股份有限公司 Test device and test method of telecommunication system
US20130215768A1 (en) * 2012-02-21 2013-08-22 Avaya Inc. System and method for automatic dscp tracing for xoip elements
CN103298016A (en) * 2012-02-27 2013-09-11 展讯通信(上海)有限公司 Test system for mobile terminals

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107678897A (en) * 2017-09-18 2018-02-09 杭州迪普科技股份有限公司 A kind of method and device of automatic test
CN107995024A (en) * 2017-10-30 2018-05-04 北京奇虎科技有限公司 A kind of device management method, device, server and storage medium
CN109088779A (en) * 2018-10-18 2018-12-25 国家无线电监测中心成都监测站 Device service test method and radio testing systems
CN109088779B (en) * 2018-10-18 2021-10-12 国家无线电监测中心成都监测站 Equipment service test method and radio test system

Also Published As

Publication number Publication date
WO2015067051A1 (en) 2015-05-14

Similar Documents

Publication Publication Date Title
CN112788074B (en) Data transmitting method, processing method, receiving method, apparatus thereof, and storage medium
CN103139157B (en) A kind of based on the network communication method of socket, Apparatus and system
CN101594376B (en) Method and corresponding device for registering CIM provider to CIMOM
CN103780679A (en) Long time delay remote invocation method based on HTTP protocol
CN110109766B (en) Data interaction method and device based on cross-department and cross-platform data sharing exchange
CN110049503B (en) Method and equipment for acquiring data
RU2008138577A (en) NETWORK SYSTEM
CN101222374A (en) System, device and method for implementing service upgrade
CN103812838A (en) Service calling method and device and system
CN104639379A (en) Proxy testing method and device
CN103164262B (en) A kind of task management method and device
US10715628B2 (en) Attribute operating method and device
CN107682460A (en) A kind of distributed storage trunked data communication method and system
CN106559236B (en) Equipment resource management method and device of service board, main control board and frame type equipment
CN104955153A (en) Method, device and appliances for discovering resources
CN108089968A (en) A kind of method of host's machine monitoring virtual-machine data storehouse state
WO2017045454A1 (en) Method, device and system for realizing terminal access
CN114125024B (en) Audio transmission method, electronic device and readable storage medium
CN103227723B (en) A kind of service issuing method, service publication server and service register machine
CN102681969A (en) Long frame data transmission card and long frame data transmission method based on CAN (Controller Area Network) bus
CN103944875A (en) Data exchanging method and data exchanging system
CN108924237A (en) A kind of information transferring method, server, system and computer storage medium
CN113727138A (en) HLS intranet source returning method
CN101388925B (en) Telecommunication network failure enquiry method, apparatus and telecommunication network collaboration monitoring system
CN111010286A (en) Intelligent registration method and device based on serial bus, electronic equipment and medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20150520