CN109818994A - Information processing method and device for agent side - Google Patents
Information processing method and device for agent side Download PDFInfo
- Publication number
- CN109818994A CN109818994A CN201711156059.XA CN201711156059A CN109818994A CN 109818994 A CN109818994 A CN 109818994A CN 201711156059 A CN201711156059 A CN 201711156059A CN 109818994 A CN109818994 A CN 109818994A
- Authority
- CN
- China
- Prior art keywords
- service end
- information
- response
- mentioned
- acquisition request
- 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
Links
Landscapes
- Computer And Data Communications (AREA)
Abstract
The embodiment of the present application discloses the information processing method and device for agent side.One specific embodiment of this method includes: the information acquisition request sent in response to receiving connected test lead, it is determined that whether the first service end connected is currently in running order;In response to determining that the first service end is currently at working condition, then the information acquisition request is forwarded to the first service end;In response to receiving the feedback information of first service end return, it is determined that whether the feedback information is exception information;In response to determining that the feedback information is exception information, then the information acquisition request is forwarded to connected second service end, wherein the second service end is for providing preset data;In response to receiving the preset data corresponding with the information acquisition request of second service end return, then the preset data received is sent to the test lead.This embodiment improves the stability of information processing.
Description
Technical field
The invention relates to field of computer technology, and in particular to Internet technical field, more particularly, to generation
Manage the information processing method and device at end.
Background technique
Currently, in the development phase of system, it usually needs carry out the joint debugging test between each system.Existing test method
It is usually to build the joint debugging that true test environment carries out between each system to test.But when any one system is untapped complete
When at or there are problem, joint debugging test relevant to the system would generally be obstructed.
Summary of the invention
The embodiment of the present application proposes the information processing method and device for agent side.
In a first aspect, the embodiment of the present application provides a kind of information processing method for agent side, this method comprises: ringing
Whether Ying Yu receives the information acquisition request that connected test lead is sent, it is determined that currently locate at the first service end connected
In working condition;It is currently at working condition in response to the above-mentioned first service end of determination, then is forwarded above- mentioned information acquisition request
To above-mentioned first service end;The feedback information returned in response to receiving above-mentioned first service end, it is determined that above-mentioned feedback information
It whether is exception information;It is exception information in response to the above-mentioned feedback information of determination, then above- mentioned information acquisition request is forwarded to institute
The second service end of connection, wherein above-mentioned second service end is for providing preset data;In response to receiving above-mentioned second service
The preset data corresponding with above- mentioned information acquisition request returned is held, then the preset data received is sent to above-mentioned test
End.
In some embodiments, the above method further include: in response to do not receive that above-mentioned second service end returns with it is upper
The corresponding preset data of information acquisition request is stated, then above-mentioned feedback information is sent to above-mentioned test lead.
In some embodiments, the above method further include: in response to the above-mentioned feedback information of determination be not exception information, then will
Above-mentioned feedback information is sent to above-mentioned test lead.
In some embodiments, the above method further include: be not presently within work in response to the above-mentioned first service end of determination
Above- mentioned information acquisition request is then forwarded to above-mentioned second service end by state;It is returned in response to receiving above-mentioned second service end
Preset data corresponding with above- mentioned information acquisition request, then the preset data received is sent to above-mentioned test lead.
In some embodiments, the above method further include: be not presently within work in response to the above-mentioned first service end of determination
State, and do not receive the preset data corresponding with above- mentioned information acquisition request that above-mentioned second service end returns, then upwards
It states test lead and sends prompt information, wherein above-mentioned prompt information is used to indicate time-out or data acquisition failure.
In some embodiments, above-mentioned agent side is using hypertext transfer protocol agency or transmission control protocol proxy.
Second aspect, the embodiment of the present application provide a kind of information processing unit for agent side, which includes:
One determination unit is configured to the information acquisition request sent in response to receiving connected test lead, it is determined that connected
First service end it is currently whether in running order;First transmission unit is configured in response to the above-mentioned first service of determination
End is currently at working condition, then above- mentioned information acquisition request is forwarded to above-mentioned first service end;Second determination unit, configuration
Feedback information for being returned in response to receiving above-mentioned first service end, it is determined that whether above-mentioned feedback information is abnormal letter
Breath;Second transmission unit is configured in response to the above-mentioned feedback information of determination be exception information, then by above- mentioned information acquisition request
It is forwarded to connected second service end, wherein above-mentioned second service end is for providing preset data;Third transmission unit, matches
The preset data corresponding with above- mentioned information acquisition request for returning in response to receiving above-mentioned second service end is set, then will be connect
The preset data received is sent to above-mentioned test lead.
In some embodiments, above-mentioned apparatus further include: the 4th transmission unit is configured to above-mentioned in response to not receiving
The preset data corresponding with above- mentioned information acquisition request that second service end returns, then be sent to above-mentioned survey for above-mentioned feedback information
Try end.
In some embodiments, above-mentioned apparatus further include: the 5th transmission unit is configured in response to the above-mentioned feedback of determination
Information is not exception information, then above-mentioned feedback information is sent to above-mentioned test lead.
In some embodiments, above-mentioned apparatus further include: the 6th transmission unit is configured in response to determination above-mentioned first
Server-side is not presently within working condition, then above- mentioned information acquisition request is forwarded to above-mentioned second service end;7th sends list
Member is configured to the preset data corresponding with above- mentioned information acquisition request returned in response to receiving above-mentioned second service end,
The preset data received is then sent to above-mentioned test lead.
In some embodiments, above-mentioned apparatus further include: the 8th transmission unit is configured in response to determination above-mentioned first
Server-side is not presently within working condition, and do not receive that above-mentioned second service end returns with above- mentioned information acquisition request phase
The preset data answered then sends prompt information to above-mentioned test lead, wherein above-mentioned prompt information is used to indicate time-out or data obtain
Take failure.
In some embodiments, above-mentioned agent side is using hypertext transfer protocol agency or transmission control protocol proxy.
The third aspect, the embodiment of the present application provide a kind of electronic equipment, which includes: one or more processing
Device;Storage device, for storing one or more programs;When said one or multiple programs are by said one or multiple processors
It executes, so that said one or multiple processors realize the method as described in implementation any in first aspect.
Fourth aspect, the embodiment of the present application provide a kind of computer readable storage medium, are stored thereon with computer journey
Sequence realizes the method as described in implementation any in first aspect when above procedure is executed by processor.
Information processing method and device provided by the embodiments of the present application for agent side, by being connected receiving
After the information acquisition request that test lead is sent, determine whether connected first service end currently in running order, so as to
It determines and the information acquisition request is forwarded to the first service end when first service end is currently at working condition.Then connecing
After the feedback information for receiving first service end return, determine whether the feedback information is exception information, to determine that this is anti-
The information acquisition request is forwarded to connected second service end when feedforward information is exception information.Finally, receive this
When the preset data corresponding with the information acquisition request that two server-sides return, the preset data received is sent to the test
End.To be effectively utilized second service end, the stability of information processing is improved.
Detailed description of the invention
By reading a detailed description of non-restrictive embodiments in the light of the attached drawings below, the application's is other
Feature, objects and advantages will become more apparent upon:
Fig. 1 is that this application can be applied to exemplary system architecture figures therein;
Fig. 2 is the flow chart according to one embodiment of the information processing method for agent side of the application;
Fig. 3 is the schematic diagram according to an application scenarios of the information processing method for agent side of the application;
Fig. 4 is the flow chart according to another embodiment of the information processing method for agent side of the application;
Fig. 5 is the structural schematic diagram according to one embodiment of the information processing unit for agent side of the application;
Fig. 6 is adapted for the structural schematic diagram for the computer system for realizing the electronic equipment of the embodiment of the present application.
Specific embodiment
The application is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched
The specific embodiment stated is used only for explaining related invention, rather than the restriction to the invention.It also should be noted that in order to
Convenient for description, part relevant to related invention is illustrated only in attached drawing.
It should be noted that in the absence of conflict, the features in the embodiments and the embodiments of the present application can phase
Mutually combination.The application is described in detail below with reference to the accompanying drawings and in conjunction with the embodiments.
Fig. 1, which is shown, to be applied at the information processing method for agent side or the information for agent side of the application
Manage the exemplary system architecture 100 of the embodiment of device.
As shown in Figure 1, system architecture 100 may include test lead 101, and network 102,104,105, agent side 103, first
Server-side 106 and second service end 107.Network 102 between test lead 101 and agent side 103 to provide communication link
Medium.Network 104 between agent side 103 and first service end 106 to provide the medium of communication link.Network 105 to
The medium of communication link is provided between agent side 103 and second service end 107.Network 102,104,105 may include various
Connection type, such as wired, wireless communication link or fiber optic cables etc..
User can be used test lead 101 and be interacted by network 102 with agent side 103, to receive or send message etc..It surveys
Examination can be equipped with application to be tested etc. on end 101.
Test lead 101 can be terminal device, be also possible to server.When test lead is terminal device, which is set
It is standby to can be various electronic equipments, including but not limited to smart phone, tablet computer, pocket computer on knee and desk-top calculating
Machine etc..
Agent side 103 can be to provide the terminal device or server of various services.For example, agent side 103 can receive
The information acquisition request that test lead 101 is sent, and the information acquisition request is forwarded to corresponding server-side (such as first service
End 106 etc.).Agent side 103 can also receive data corresponding with the information acquisition request from server-side, and the data are sent
To test lead 101.It should be noted that test lead 101 and agent side 103 can be same equipment, it is also possible to different
Equipment.
First service end 106 can be to provide the server of various services.For example, receiving the forwarding of agent side 103
Feedback information is returned when information acquisition request.
Second service end 107 can be to provide the server of various services.For example, receiving the forwarding of agent side 103
Preset data corresponding with the information acquisition request is returned when information acquisition request.
It should be noted that the information processing method provided by the embodiment of the present application for agent side is generally by agent side
103 execute, and correspondingly, the information processing unit for agent side is generally positioned in agent side 103.
It should be understood that the number of test lead, network, agent side, first service end and second service end in Fig. 1 is only
Schematically.According to needs are realized, it can have any number of test lead, network, agent side, first service end and the second clothes
Business end.
With continued reference to Fig. 2, one embodiment of the information processing method for agent side according to the application is shown
Process 200.This is used for the process 200 of the information processing method of agent side, comprising the following steps:
Step 201, the information acquisition request sent in response to receiving connected test lead, it is determined that the connected
Whether one server-side is currently in running order.
In the present embodiment, for the information processing method operation of agent side electronic equipment thereon (such as shown in Fig. 1
Agent side 103) connected test lead (such as Fig. 1 institute can be received by wired connection mode or radio connection
The test lead 101 shown) send information acquisition request, and can when receiving the information acquisition request, determination connected
First service end (such as first service end 106 shown in FIG. 1) it is current whether in running order.
As an example, the first service end can have corresponding IP (Internet Protocol Address, interconnection
FidonetFido) address, above-mentioned electronic equipment can by it is preset for detect order that whether network is connected to the IP address into
Row detection of connectivity.If the IP address is connection, above-mentioned electronic equipment can determine that the first service end is currently at work
Make state.
It should be noted that true test environment, above-mentioned first service end can have been built on above-mentioned first service end
Truthful data corresponding with request (such as above-mentioned data acquisition request) for receiving can be provided.
Optionally, above-mentioned electronic equipment available preset working condition table may include this in the working condition table
The work state information at first service end.The work state information may include being in work shape for characterizing the first service end
The mark (such as number 1 etc.) of state or mark (such as the number 0 that working condition is not presently within for characterizing the first service end
Deng).Above-mentioned electronic equipment can determine whether the first service end is currently in running order according to the work state information.
It should be noted that the information in the working condition table can be with real-time update.
Step 202, in response to determining that first service end is currently at working condition, then information acquisition request is forwarded to the
One server-side.
In the present embodiment, determine that above-mentioned first service end is currently at working condition in response to above-mentioned electronic equipment, then
Above- mentioned information acquisition request can be forwarded to above-mentioned by above-mentioned electronic equipment by wired connection mode or radio connection
First service end.
It should be noted that first will when above-mentioned electronic equipment determines that above-mentioned first service end is currently at working condition
Above- mentioned information acquisition request is forwarded to above-mentioned first service end, can receive from above-mentioned first service end and ask with above- mentioned information acquisition
Corresponding truthful data is sought, so that above-mentioned test lead is carried out accordingly using true test environment and true test data
Test.
Step 203, the feedback information returned in response to receiving first service end, it is determined that whether feedback information is abnormal
Information.
In the present embodiment, the feedback information that above-mentioned first service end returns is received in response to above-mentioned electronic equipment, then
Above-mentioned electronic equipment can determine whether the feedback information is exception information.As an example, exception information can have it is corresponding
Abnormal mark, it is abnormal information that exception mark, which can be used for characterization information,.Above-mentioned electronic equipment can be by determining that this is anti-
Whether feedforward information has associated abnormal mark, to determine whether the feedback information is exception information.
It is pointed out that when server-side Network status is poor, or load is bigger, abnormal letter may be returned
Breath, such as the abnormal page, network timeout prompt information etc..Above-mentioned electronic equipment, which passes through, judges what above-mentioned first service end returned
Whether feedback information is exception information, in that case it can be decided that other message processing flows (such as step 204-205) whether are transformed into,
To ensure the stability of information processing.
Step 204, in response to determining that feedback information is exception information, then information acquisition request is forwarded to connected the
Two server-sides.
In the present embodiment, determine that above-mentioned feedback information is exception information in response to above-mentioned electronic equipment, then above-mentioned electronics
Above- mentioned information acquisition request can be forwarded to connected second by wired connection mode or radio connection by equipment
Server-side (such as second service end 107 shown in FIG. 1).
It should be noted that above-mentioned second service end can be the substitute at above-mentioned first service end.I.e. when above-mentioned first
When server-side unstable or unavailable (such as being not in working condition), above-mentioned first clothes of above-mentioned second service end substitution can be made
Business end.Here, preset data has been can store on above-mentioned second service end, i.e., pre-set data.In addition, every present count
According to solicited message can be associated with.When above-mentioned second service termination receives above- mentioned information acquisition request, above-mentioned second service end
It can be matched by the content for being included by above- mentioned information acquisition request with the solicited message stored, to determine whether to deposit
Contain preset data associated with above- mentioned information acquisition request.If above-mentioned second service end determines to have stored and obtain with above- mentioned information
The associated preset data of request is taken, which can be returned to above-mentioned electronic equipment by above-mentioned second service end.
It should be pointed out that service provided by above-mentioned second service end can be and be configured using Mock technology.
In general, the purpose of Mock technology and effect are that simulation is some is not easy construction or more complicated object in the application, thus
Test and the object other than test boundary are kept apart.Since Mock technology is the well-known technique studied and applied extensively at present,
Details are not described herein.
Step 205, the preset data corresponding with information acquisition request returned in response to receiving second service end, then will
The preset data received is sent to test lead.
In the present embodiment, obtaining with above- mentioned information for above-mentioned second service end return is received in response to above-mentioned electronic equipment
The corresponding preset data of request is taken, then above-mentioned electronic equipment can be pre- by this by wired connection mode or radio connection
If data are sent to above-mentioned test lead.
In this way, above-mentioned test lead after receiving the preset data, can detecte the correctness of test, but also can be after
Continue subsequent testing process.In addition, above-mentioned electronic equipment is by returning to above-mentioned test lead for the preset data, it may also be ensured that
The real-time and stability of the test of test lead.
In some optional implementations of the present embodiment, above-mentioned electronic equipment can use HTTP (HyperText
Transfer Protocol, hypertext transfer protocol) agency or TCP (Transmission Control Protocol, transmission
Control protocol) agency.Certainly, above-mentioned electronic equipment can also be according to actual needs using in addition to HTTP Proxy, TCP agent
Agent way, the present embodiment do not do any restriction to content in this respect.
In some optional implementations of the present embodiment, if the feedback information that above-mentioned first service end returns is abnormal
Information, and above-mentioned electronic equipment does not receive the presetting corresponding with above- mentioned information acquisition request of above-mentioned second service end return
Data, then the feedback information can be sent to above-mentioned test lead by above-mentioned electronic equipment.
In some optional implementations of the present embodiment, if above-mentioned feedback information is not exception information, above-mentioned electricity
Above-mentioned feedback information can be sent to above-mentioned test lead by sub- equipment.
In some optional implementations of the present embodiment, if above-mentioned first service end is not presently within working condition,
Then above- mentioned information acquisition request can be forwarded to above-mentioned second service end by above-mentioned electronic equipment;If above-mentioned second service end is not returned
Preset data corresponding with above- mentioned information acquisition request is returned, then above-mentioned electronic equipment can send prompt letter to above-mentioned test lead
Breath.Wherein, which can be used for prompt timeout or data acquisition failure.Optionally, if above-mentioned second service end is not returned
Preset data corresponding with above- mentioned information acquisition request is returned, above-mentioned electronic equipment can not also return to any letter to above-mentioned test lead
Breath.
With continued reference to one that Fig. 3, Fig. 3 are according to the application scenarios of the information processing method for agent side of the present embodiment
A schematic diagram.In the application scenarios of Fig. 3, user can be used test lead and send information acquisition request (such as label to agent side
Shown in 301).Then, above-mentioned agent side can first determine whether first service end is currently in running order (such as 302 institute of label
Show).Later, determine that above-mentioned first service end is currently at working condition in response to above-mentioned agent side, above-mentioned agent side can incite somebody to action
Above- mentioned information acquisition request is forwarded to above-mentioned first service end (as shown in label 303).Then, it is received in response to above-mentioned agent side
The abnormal interface (as shown in label 304) returned to above-mentioned first service end, above-mentioned agent side can again obtain above- mentioned information
It takes request to be forwarded, that is, is forwarded to second service end (as shown in label 305).Finally, being received in response to above-mentioned agent side
The preset data corresponding with above- mentioned information acquisition request (as shown in label 306) that above-mentioned second service end returns, above-mentioned agency
Above-mentioned preset data can be sent to above-mentioned test lead (as shown in label 307) by end.
The method provided by the above embodiment of the application, by the acquisition of information for receiving connected test lead transmission
After request, determine whether connected first service end is currently in running order, to determine that the first service end is in
The information acquisition request is forwarded to the first service end when working condition.Then receiving the anti-of first service end return
After feedforward information, determine whether the feedback information is exception information, so as to when determining that the feedback information is exception information by the letter
Breath acquisition request is forwarded to connected second service end.Finally, receiving obtaining with the information for second service end return
When taking the corresponding preset data of request, the preset data received is sent to the test lead.To be effectively utilized the second clothes
It is engaged in end, improving the stability of information processing.
With further reference to Fig. 4, it illustrates the processes of another embodiment of the information processing method for agent side
400.This is used for the process 400 of the information processing method of agent side, comprising the following steps:
Step 401, the information acquisition request sent in response to receiving connected test lead, it is determined that the connected
Whether one server-side is currently in running order.
In the present embodiment, for the information processing method operation of agent side electronic equipment thereon (such as shown in Fig. 1
Agent side 103) connected test lead (such as Fig. 1 institute can be received by wired connection mode or radio connection
The test lead 101 shown) send information acquisition request, and can when receiving the information acquisition request, determination connected
First service end (such as first service end 106 shown in FIG. 1) it is current whether in running order.Here, determine this first
Server-side currently whether in running order method can be referring to the related description of the step 201 in embodiment illustrated in fig. 2, herein
It repeats no more.
Step 402, in response to determining that first service end is not presently within working condition, then information acquisition request is forwarded to
Second service end.
In the present embodiment, determine that above-mentioned first service end is not presently within working condition in response to above-mentioned electronic equipment,
Then above- mentioned information acquisition request can be forwarded to second service end (such as second service end shown in FIG. 1 by above-mentioned electronic equipment
107).Here, the explanation for second service end can be referring to the related description of step 204 in embodiment illustrated in fig. 2, herein
It repeats no more.
Step 403, the preset data corresponding with information acquisition request returned in response to receiving second service end, then will
The preset data received is sent to test lead.
In the present embodiment, obtaining with above- mentioned information for above-mentioned second service end return is received in response to above-mentioned electronic equipment
The corresponding preset data of request is taken, then above-mentioned electronic equipment can be pre- by this by wired connection mode or radio connection
If data are sent to above-mentioned test lead.
Figure 4, it is seen that compared with the corresponding embodiment of Fig. 2, at the information for agent side in the present embodiment
The process 400 of reason method highlights the message processing flow (step when above-mentioned first service end is not presently within working condition
402- step 403).The scheme of the present embodiment description can be further improved the stability of information processing as a result, and ensure to survey
Try the real-time and stability of the test at end.
With further reference to Fig. 5, as the realization to method shown in above-mentioned each figure, this application provides one kind to be used for agent side
Information processing unit one embodiment, the Installation practice is corresponding with embodiment of the method shown in Fig. 2, and the device is specific
It can be applied in various electronic equipments.
As shown in figure 5, the information processing unit 500 shown in the present embodiment for agent side includes: the first determination unit
501, the first transmission unit 502, the second determination unit 503, the second transmission unit 504 and third transmission unit 505.Wherein,
One determination unit 501 is configured to the information acquisition request sent in response to receiving connected test lead, it is determined that company, institute
Whether the first service end connect is currently in running order;First transmission unit 502 is configured in response to determination above-mentioned first
Server-side is currently at working condition, then above- mentioned information acquisition request is forwarded to above-mentioned first service end;Second determination unit
503 are configured to the feedback information returned in response to receiving above-mentioned first service end, it is determined that above-mentioned feedback information whether be
Exception information;Second transmission unit 504 is configured in response to the above-mentioned feedback information of determination be exception information, then by above- mentioned information
Acquisition request is forwarded to connected second service end, wherein above-mentioned second service end may be used to provide preset data;And the
Three transmission units 505 are configured in response to receiving the corresponding with above- mentioned information acquisition request of above-mentioned second service end return
The preset data received is then sent to above-mentioned test lead by preset data.
In the present embodiment, in the information processing unit of agent side 500: the first determination unit 501, first sends single
First 502, second determination unit 503, the specific of the second transmission unit 504 and third transmission unit 505 are handled and its brought
Technical effect can be respectively with reference to step 201, step 202, step 203, step 204 and the step 205 in Fig. 2 corresponding embodiment
Related description, details are not described herein.
In some optional implementations of the present embodiment, above-mentioned apparatus 500 can also include: the 4th transmission unit
(not shown) is configured in response to not receiving the corresponding to above- mentioned information acquisition request of above-mentioned second service end return
Preset data, then above-mentioned feedback information is sent to above-mentioned test lead.
In some optional implementations of the present embodiment, above-mentioned apparatus 500 can also include: the 5th transmission unit
(not shown) is configured in response to the above-mentioned feedback information of determination not be exception information, then sends above-mentioned feedback information
To above-mentioned test lead.
In some optional implementations of the present embodiment, above-mentioned apparatus 500 can also include: the 6th transmission unit
(not shown) is configured to be not presently within working condition in response to the above-mentioned first service end of determination, then by above- mentioned information
Acquisition request is forwarded to above-mentioned second service end;7th transmission unit (not shown) is configured in response to receiving
The preset data received, then be sent to by the preset data corresponding with above- mentioned information acquisition request for stating the return of second service end
Above-mentioned test lead.
In some optional implementations of the present embodiment, above-mentioned apparatus 500 can also include: the 8th transmission unit
(not shown) is configured to be not presently within working condition in response to the above-mentioned first service end of determination, and does not receive
The preset data corresponding with above- mentioned information acquisition request that above-mentioned second service end returns then sends prompt letter to above-mentioned test lead
Breath, wherein above-mentioned prompt information can serve to indicate that time-out or data acquisition failure.
In some optional implementations of the present embodiment, above-mentioned agent side can be acted on behalf of using hypertext transfer protocol
Or transmission control protocol proxy.
The device provided by the above embodiment of the application, by the acquisition of information for receiving connected test lead transmission
After request, determine whether connected first service end is currently in running order, to determine that the first service end is in
The information acquisition request is forwarded to the first service end when working condition.Then receiving the anti-of first service end return
After feedforward information, determine whether the feedback information is exception information, so as to when determining that the feedback information is exception information by the letter
Breath acquisition request is forwarded to connected second service end.Finally, receiving obtaining with the information for second service end return
When taking the corresponding preset data of request, the preset data received is sent to the test lead.To be effectively utilized the second clothes
It is engaged in end, improving the stability of information processing.
Below with reference to Fig. 6, it illustrates the computer systems 600 for the electronic equipment for being suitable for being used to realize the embodiment of the present application
Structural schematic diagram.Electronic equipment shown in Fig. 6 is only an example, function to the embodiment of the present application and should not use model
Shroud carrys out any restrictions.
As shown in fig. 6, computer system 600 includes central processing unit (CPU) 601, it can be read-only according to being stored in
Program in memory (ROM) 602 or be loaded into the program in random access storage device (RAM) 603 from storage section 608 and
Execute various movements appropriate and processing.In RAM 603, also it is stored with system 600 and operates required various programs and data.
CPU 601, ROM 602 and RAM 603 are connected with each other by bus 604.Input/output (I/O) interface 605 is also connected to always
Line 604.
I/O interface 605 is connected to lower component: the importation 606 including keyboard, mouse etc.;It is penetrated including such as cathode
The output par, c 607 of spool (CRT), liquid crystal display (LCD) etc. and loudspeaker etc.;Storage section 608 including hard disk etc.;
And the communications portion 609 of the network interface card including LAN card, modem etc..Communications portion 609 via such as because
The network of spy's net executes communication process.Driver 610 is also connected to I/O interface 605 as needed.Detachable media 611, such as
Disk, CD, magneto-optic disk, semiconductor memory etc. are mounted on as needed on driver 610, in order to read from thereon
Computer program be mounted into storage section 608 as needed.
Particularly, in accordance with an embodiment of the present disclosure, it may be implemented as computer above with reference to the process of flow chart description
Software program.For example, embodiment of the disclosure includes a kind of computer program product comprising be carried on computer-readable medium
On computer program, which includes the program code for method shown in execution flow chart.In such reality
It applies in example, which can be downloaded and installed from network by communications portion 609, and/or from detachable media
611 are mounted.When the computer program is executed by central processing unit (CPU) 601, executes and limited in the system of the application
Above-mentioned function.
It should be noted that computer-readable medium shown in the application can be computer-readable signal media or meter
Calculation machine readable storage medium storing program for executing either the two any combination.Computer readable storage medium for example can be --- but not
Be limited to --- electricity, magnetic, optical, electromagnetic, infrared ray or semiconductor system, device or device, or any above combination.Meter
The more specific example of calculation machine readable storage medium storing program for executing can include but is not limited to: have the electrical connection, just of one or more conducting wires
Taking formula computer disk, hard disk, random access storage device (RAM), read-only memory (ROM), erasable type may be programmed read-only storage
Device (EPROM or flash memory), optical fiber, portable compact disc read-only memory (CD-ROM), light storage device, magnetic memory device,
Or above-mentioned any appropriate combination.In this application, computer readable storage medium can be it is any include or storage journey
The tangible medium of sequence, the program can be commanded execution system, device or device use or in connection.And at this
In application, computer-readable signal media may include in a base band or as carrier wave a part propagate data-signal,
Wherein carry computer-readable program code.The data-signal of this propagation can take various forms, including but unlimited
In electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media can also be that computer can
Any computer-readable medium other than storage medium is read, which can send, propagates or transmit and be used for
By the use of instruction execution system, device or device or program in connection.Include on computer-readable medium
Program code can transmit with any suitable medium, including but not limited to: wireless, electric wire, optical cable, RF etc. are above-mentioned
Any appropriate combination.
Flow chart and block diagram in attached drawing are illustrated according to the system of the various embodiments of the application, method and computer journey
The architecture, function and operation in the cards of sequence product.In this regard, each box in flowchart or block diagram can generation
A part of one module, program segment or code of table, a part of above-mentioned module, program segment or code include one or more
Executable instruction for implementing the specified logical function.It should also be noted that in some implementations as replacements, institute in box
The function of mark can also occur in a different order than that indicated in the drawings.For example, two boxes succeedingly indicated are practical
On can be basically executed in parallel, they can also be executed in the opposite order sometimes, and this depends on the function involved.Also it wants
It is noted that the combination of each box in block diagram or flow chart and the box in block diagram or flow chart, can use and execute rule
The dedicated hardware based systems of fixed functions or operations is realized, or can use the group of specialized hardware and computer instruction
It closes to realize.
Being described in unit involved in the embodiment of the present application can be realized by way of software, can also be by hard
The mode of part is realized.Described unit also can be set in the processor, for example, can be described as: a kind of processor packet
Include the first determination unit, the first transmission unit, the second determination unit, the second transmission unit and third transmission unit.Wherein, these
The title of unit does not constitute the restriction to the unit itself under certain conditions, for example, the first determination unit can also be retouched
It states as " determine connected first service end currently whether in running order unit ".
As on the other hand, present invention also provides a kind of computer-readable medium, which be can be
Included in electronic equipment described in above-described embodiment;It is also possible to individualism, and without in the supplying electronic equipment.
Above-mentioned computer-readable medium carries one or more program, when the electronics is set by one for said one or multiple programs
When standby execution, so that the electronic equipment includes: the information acquisition request sent in response to receiving connected test lead, then really
Whether fixed connected first service end is currently in running order;Work is currently in response to the above-mentioned first service end of determination
Above- mentioned information acquisition request is then forwarded to above-mentioned first service end by state;It is returned in response to receiving above-mentioned first service end
Feedback information, it is determined that whether above-mentioned feedback information is exception information;It is exception information in response to the above-mentioned feedback information of determination,
Above- mentioned information acquisition request is then forwarded to connected second service end, wherein above-mentioned second service end is default for providing
Data;The preset data corresponding with above- mentioned information acquisition request returned in response to receiving above-mentioned second service end, then will connect
The preset data received is sent to above-mentioned test lead.
Above description is only the preferred embodiment of the application and the explanation to institute's application technology principle.Those skilled in the art
Member is it should be appreciated that invention scope involved in the application, however it is not limited to technology made of the specific combination of above-mentioned technical characteristic
Scheme, while should also cover in the case where not departing from foregoing invention design, it is carried out by above-mentioned technical characteristic or its equivalent feature
Any combination and the other technical solutions formed.Such as features described above has similar function with (but being not limited to) disclosed herein
Can technical characteristic replaced mutually and the technical solution that is formed.
Claims (13)
1. a kind of information processing method for agent side, comprising:
The information acquisition request sent in response to receiving connected test lead, it is determined that the first service end connected is current
It is whether in running order;
It is currently at working condition in response to the determination first service end, then the information acquisition request is forwarded to described
One server-side;
The feedback information returned in response to receiving the first service end, it is determined that whether the feedback information is abnormal letter
Breath;
It is exception information in response to the determination feedback information, then the information acquisition request is forwarded to the second connected clothes
Business end, wherein the second service end is for providing preset data;
The preset data corresponding with the information acquisition request returned in response to receiving the second service end will then receive
To preset data be sent to the test lead.
2. according to the method described in claim 1, wherein, the method also includes:
The preset data corresponding with the information acquisition request returned in response to not receiving the second service end, then by institute
It states feedback information and is sent to the test lead.
3. according to the method described in claim 1, wherein, the method also includes:
It is not exception information in response to the determination feedback information, then the feedback information is sent to the test lead.
4. according to the method described in claim 1, wherein, the method also includes:
It is not presently within working condition in response to the determination first service end, then is forwarded to the information acquisition request described
Second service end;
The preset data corresponding with the information acquisition request returned in response to receiving the second service end will then receive
To preset data be sent to the test lead.
5. according to the method described in claim 4, wherein, the method also includes:
It is not presently within working condition in response to the determination first service end, and does not receive the second service end and returns
Preset data corresponding with the information acquisition request, then send prompt information to the test lead, wherein the prompt is believed
Breath is used to indicate time-out or data acquisition failure.
6. method described in one of -5 according to claim 1, wherein the agent side is acted on behalf of or passed using hypertext transfer protocol
Transport control protocol view agency.
7. a kind of information processing unit for agent side, comprising:
First determination unit is configured to the information acquisition request sent in response to receiving connected test lead, it is determined that
Whether the first service end connected is currently in running order;
First transmission unit is configured to be currently at working condition in response to the determination first service end, then by the letter
Breath acquisition request is forwarded to the first service end;
Second determination unit is configured to the feedback information returned in response to receiving the first service end, it is determined that described
Whether feedback information is exception information;
Second transmission unit is configured in response to the determination feedback information be exception information, then asks the acquisition of information
It asks and is forwarded to connected second service end, wherein the second service end is for providing preset data;
Third transmission unit is configured to returning with the information acquisition request phase in response to receiving the second service end
The preset data received is then sent to the test lead by the preset data answered.
8. device according to claim 7, wherein described device further include:
4th transmission unit is configured to returning with the information acquisition request in response to not receiving the second service end
The feedback information is then sent to the test lead by corresponding preset data.
9. device according to claim 7, wherein described device further include:
5th transmission unit is configured in response to the determination feedback information not be exception information, then by the feedback information
It is sent to the test lead.
10. device according to claim 7, wherein described device further include:
6th transmission unit is configured to be not presently within working condition in response to the determination first service end, then will be described
Information acquisition request is forwarded to the second service end;
7th transmission unit is configured to returning with the information acquisition request phase in response to receiving the second service end
The preset data received is then sent to the test lead by the preset data answered.
11. device according to claim 10, wherein described device further include:
8th transmission unit is configured to be not presently within working condition in response to the determination first service end, and does not connect
The preset data corresponding with the information acquisition request that the second service end returns is received, then is mentioned to test lead transmission
Show information, wherein the prompt information is used to indicate time-out or data acquisition failure.
12. a kind of electronic equipment, comprising:
One or more processors;
Storage device, for storing one or more programs,
When one or more of programs are executed by one or more of processors, so that one or more of processors are real
Now such as method as claimed in any one of claims 1 to 6.
13. a kind of computer readable storage medium, is stored thereon with computer program, wherein described program is executed by processor
Shi Shixian method for example as claimed in any one of claims 1 to 6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711156059.XA CN109818994A (en) | 2017-11-20 | 2017-11-20 | Information processing method and device for agent side |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711156059.XA CN109818994A (en) | 2017-11-20 | 2017-11-20 | Information processing method and device for agent side |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109818994A true CN109818994A (en) | 2019-05-28 |
Family
ID=66598578
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711156059.XA Pending CN109818994A (en) | 2017-11-20 | 2017-11-20 | Information processing method and device for agent side |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109818994A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111988387A (en) * | 2020-08-11 | 2020-11-24 | 北京达佳互联信息技术有限公司 | Interface request processing method, device, server, equipment and storage medium |
CN112291316A (en) * | 2020-10-19 | 2021-01-29 | 北京字节跳动网络技术有限公司 | Connection processing method and device, electronic equipment and computer readable storage medium |
CN112816623A (en) * | 2020-12-31 | 2021-05-18 | 深圳市福森环境科技有限公司 | Information collection method and environment-friendly informatization management system |
CN114513548A (en) * | 2022-01-27 | 2022-05-17 | 中信百信银行股份有限公司 | Directional call information processing method and device |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102222042A (en) * | 2011-06-28 | 2011-10-19 | 北京新媒传信科技有限公司 | Automatic software testing method based on cloud computing |
CN102394797A (en) * | 2011-11-16 | 2012-03-28 | 深圳市赛格导航科技股份有限公司 | Embedded automatic network communication device test method and system |
CN104158701A (en) * | 2014-08-18 | 2014-11-19 | 中国联合网络通信集团有限公司 | Gateway function testing method and device |
CN104702459A (en) * | 2013-12-06 | 2015-06-10 | 无锡韩光电器有限公司 | Network communication product operation test method |
US9606900B1 (en) * | 2016-03-24 | 2017-03-28 | Fmr Llc | Intelligent automation of computer software test scripts and code requirements |
-
2017
- 2017-11-20 CN CN201711156059.XA patent/CN109818994A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102222042A (en) * | 2011-06-28 | 2011-10-19 | 北京新媒传信科技有限公司 | Automatic software testing method based on cloud computing |
CN102394797A (en) * | 2011-11-16 | 2012-03-28 | 深圳市赛格导航科技股份有限公司 | Embedded automatic network communication device test method and system |
CN104702459A (en) * | 2013-12-06 | 2015-06-10 | 无锡韩光电器有限公司 | Network communication product operation test method |
CN104158701A (en) * | 2014-08-18 | 2014-11-19 | 中国联合网络通信集团有限公司 | Gateway function testing method and device |
US9606900B1 (en) * | 2016-03-24 | 2017-03-28 | Fmr Llc | Intelligent automation of computer software test scripts and code requirements |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111988387A (en) * | 2020-08-11 | 2020-11-24 | 北京达佳互联信息技术有限公司 | Interface request processing method, device, server, equipment and storage medium |
CN112291316A (en) * | 2020-10-19 | 2021-01-29 | 北京字节跳动网络技术有限公司 | Connection processing method and device, electronic equipment and computer readable storage medium |
CN112291316B (en) * | 2020-10-19 | 2022-03-15 | 北京字节跳动网络技术有限公司 | Connection processing method and device, electronic equipment and computer readable storage medium |
CN112816623A (en) * | 2020-12-31 | 2021-05-18 | 深圳市福森环境科技有限公司 | Information collection method and environment-friendly informatization management system |
CN114513548A (en) * | 2022-01-27 | 2022-05-17 | 中信百信银行股份有限公司 | Directional call information processing method and device |
CN114513548B (en) * | 2022-01-27 | 2024-05-10 | 中信百信银行股份有限公司 | Directional call information processing method and device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109446071A (en) | Interface test method, interface test device, electronic equipment and storage medium | |
CN108520454A (en) | The method and system of readjustment order in real time | |
CN109818994A (en) | Information processing method and device for agent side | |
CN108958992A (en) | test method and device | |
CN108574604A (en) | test method and device | |
CN108900388A (en) | Method and apparatus for monitor network quality | |
CN108768730A (en) | Method and apparatus for operating intelligent network adapter | |
CN109684188A (en) | Test method and device | |
CN109359194A (en) | Method and apparatus for predictive information classification | |
CN109815105A (en) | Applied program testing method and device based on Btrace | |
CN110471848A (en) | A kind of method and apparatus of dynamic returned packet | |
CN109582317A (en) | Method and apparatus for debugging boarding application | |
CN107329834A (en) | Method and apparatus for performing calculating task | |
CN109873732A (en) | Test method and device for proxy server | |
CN109218041A (en) | Request processing method and device for server system | |
CN109656799A (en) | Test method and device | |
CN109828830A (en) | Method and apparatus for managing container | |
CN109299124A (en) | Method and apparatus for more new model | |
CN108536479A (en) | Method and apparatus for restarting Android device | |
CN108920309B (en) | Method and apparatus for handling information | |
CN109218338A (en) | Information processing system, method and apparatus | |
CN108985673A (en) | It makes an inventory single generation method and device | |
CN107181644B (en) | Method and apparatus for monitoring the network performance of network application | |
CN109698774A (en) | Method and device for monitoring device working condition | |
CN108833517A (en) | Data processing system, method, electronic equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190528 |