CN110401576A - Network interaction test method and device - Google Patents

Network interaction test method and device Download PDF

Info

Publication number
CN110401576A
CN110401576A CN201810375387.7A CN201810375387A CN110401576A CN 110401576 A CN110401576 A CN 110401576A CN 201810375387 A CN201810375387 A CN 201810375387A CN 110401576 A CN110401576 A CN 110401576A
Authority
CN
China
Prior art keywords
data packet
test
client
application server
communication channel
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201810375387.7A
Other languages
Chinese (zh)
Other versions
CN110401576B (en
Inventor
崔海玉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Didi Infinity Technology and Development Co Ltd
Original Assignee
Beijing Didi Infinity Technology and Development Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Didi Infinity Technology and Development Co Ltd filed Critical Beijing Didi Infinity Technology and Development Co Ltd
Priority to CN201810375387.7A priority Critical patent/CN110401576B/en
Publication of CN110401576A publication Critical patent/CN110401576A/en
Application granted granted Critical
Publication of CN110401576B publication Critical patent/CN110401576B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0677Localisation of faults
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements

Abstract

The present invention provides a kind of network interaction test method and device, and this method receives the first data packet that client is sent by establishing the first communication channel with client;First data packet is parsed, whether is determined in the first data packet comprising test field;If comprising returning to test corresponding with test field and instructing;According to after client executing test instruction in response to determining that test result to client.This method can targetedly test the data packet transmitted by client, and the response after test instruction is run by client, accurate to determine that client whether there is problem, method is simple and convenient, facilitate tester to modify test instruction and reach test purpose, improves testing efficiency;Meanwhile the test instruction according to corresponding to test field, where can relatively accurately determining program exception, be conducive to improve test accuracy.

Description

Network interaction test method and device
Technical field
The present invention relates to measuring technology more particularly to a kind of network interaction test method and devices.
Background technique
With the development of internet technology, the reliability of network interaction is always the mesh of the unremitting pursuit of network developer Mark.
To be equipped with the mobile terminal of application software (Application, referred to as " APP ") and the application of the APP operator Network interaction between server (referred to as " Server ") for example, to the network interaction between test APP and Server is No client delay machine that is smooth, whether can leading to APP because of abnormal conditions, whether because update or have modified software function and Cause original code to generate the occurrence of mistake etc. is various, need to be monitored interaction between the two, discovery is asked in time Where topic.But monitor mode in the prior art is usually to install this respectively in mobile terminal side and application server side The packet catcher on ground to obtain the data packet that two sides are transmitted, then by obtaining journal file caused by data packet operation, is looked into It sees where problem.
In above process, there is a problem of it is many, it is mobile for example, the compatibility issue as present in packet capturing software The crawl of the data packet of terminal side is needed by installing packet catcher at the end PC, then for mobile terminal and PC machine wired connection Obtain the work log of mobile terminal side.Work log is generally used for logging program operation information, so that developer be made conveniently to open Hair debugging, understands program executive condition.However, log recording itself is only capable of displaying there are the incomplete problem of data record The partial information of the data packet that interaction both sides are transmitted in the process of running;Meanwhile log is text file, needs tester Log content is checked one by one according to time sequencing where to determine problem, process is cumbersome and accuracy is difficult to hold.
Summary of the invention
In order to solve cumbersome network interaction test process in the prior art, efficiency and the not high technical problem of reliability, this Invention provides a kind of network interaction test method and device, to improve the efficiency of network interaction test, and can be accurately positioned different Chang Wenti.
The present invention provides a kind of network interaction test method, comprising:
The first communication channel is established with client, receives the first data packet that client is sent;
First data packet is parsed, whether is determined in first data packet comprising test field;
If comprising returning to the corresponding test instruction of the test field;
After the test instruction according to the client executing in response to determining that test result to the client.
Optionally, after first data packet for receiving client transmission, further includes:
Establish the second communication channel between application server;
It is described that first data packet is parsed, it whether determines in first data packet comprising test mark Afterwards, further includes:
If not including, the application server is sent by first data packet;
Second communication channel is monitored, the second data packet that the application server returns is received;
If second data packet is corresponding with first data packet, by first data packet and second data Packet is put into the queue to be detected that personnel to be tested check;And second data packet is sent to corresponding with first data packet Client.
Optionally, after first data packet for receiving client transmission, further includes:
First data packet is stored in buffer area;
Correspondingly, described parse first data packet, comprising:
In the buffer area, first data packet is parsed.
Optionally, after the corresponding test instruction of the return test field, further includes:
First data packet and the test instruction are put into the queue to be detected that personnel to be tested check.
Optionally, the method also includes:
The application server alteration command of tester's input is received, the between application server before changing is disconnected Two communication channels, the second communication channel between application server after establishing and changing.
The present invention also provides a kind of network interaction test devices, comprising:
Receiving module receives the first data packet that client is sent for establishing the first communication channel with client;
Whether parsing module determines in first data packet for parsing to first data packet comprising surveying Try field;
Sending module, for returning when the parsing module parses to obtain in first data packet comprising test field Return the corresponding test instruction of the test field;
Determining module, for according to the client executing test instruction after in response to determining that the client Test result.
Optionally, the receiving module is also used to the second communication channel established between application server;
The sending module is also used to not include test word in first data packet when the parsing module parses to obtain First data packet is sent the application server by Duan Shi;
The receiving module is also used to monitor second communication channel, receives the application server returns second Data packet;
The sending module, be also used to when second data packet and first data packet to it is corresponding when by described first Data packet and second data packet are put into the queue to be detected that personnel to be tested check;By second data packet be sent to The corresponding client of first data packet.
Optionally, further includes:
Memory module, for first data packet to be stored in buffer area;
The parsing module is also used in the buffer area, is parsed to first data packet.
Optionally, the sending module is also used to first data packet and test instruction being put into people to be tested The queue to be detected that member checks.
Optionally, the receiving module is also used to receive the application server alteration command of tester's input;
The receiving module, be also used to disconnect and application server before changing between the second communication channel, establish with The second communication channel between application server after change.
Network interaction test method of the invention and device receive client by establishing the first communication channel with client Hold the first data packet sent;First data packet is parsed, whether is determined in the first data packet comprising test field;If packet Contain, returns to test corresponding with test field and instruct;According to client executing test instruction after in response to determining that client Test result.This method can targetedly test the data packet transmitted by client, and run and surveyed by client Response after examination instruction, accurate to determine that client whether there is problem, method is simple and convenient, facilitates tester to modify test and refers to Order reaches test purpose, improves testing efficiency;Meanwhile the test instruction according to corresponding to test field, it can be relatively accurately Where determining program exception, be conducive to improve test accuracy.
Detailed description of the invention
Fig. 1 is the application scenarios schematic diagram of inventive network interactive testing method;
Fig. 2 is the flow chart of the inventive network interactive testing method shown in an exemplary embodiment;
Fig. 3 is the flow chart of the inventive network interactive testing method shown in another exemplary embodiment;
Fig. 4 is the structural schematic diagram of the inventive network interactive testing device shown in an exemplary embodiment;
Fig. 5 is the structural schematic diagram of the inventive network interactive testing device shown in another exemplary embodiment.
Specific embodiment
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention In attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is A part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art Every other embodiment obtained without creative efforts, shall fall within the protection scope of the present invention.
Fig. 1 is the application scenarios schematic diagram of inventive network interactive testing method, and Fig. 2 is shown in an exemplary embodiment The flow chart of inventive network interactive testing method, as shown in Figure 1, the executing subject of the network interaction test method can be net Network interactive testing device 101 is connected with any tested network element in network, can be with according to the difference of test purpose It connect, can also be connect simultaneously with the two in end-to-end network element simultaneously with one of the end-to-end network element of network interaction.Such as Fig. 1 Shown, which connect with client device 102 and application server 103;The connection can be wired or wireless company It connects.Client device can be mobile device, such as mobile phone, PAD, wearable device mobile terminal, be also possible to PC, The non-mobile devices such as household electrical appliance are equipped with application APP in these equipment, pass through the application of executing application and backstage Server 103 carries out information exchange.As shown in Fig. 2, the network interaction test method of the present embodiment, comprising:
Step 201 establishes the first communication channel with client, receives the first data packet that client is sent.
In this step, network interaction test device 101 can distribute to one address of each tester and its correspondence Port numbers, the client device 102 of the client end AP P tested filled by the address and port numbers and the test 101 are set to be connected.Wherein, the per thread (Thread) in test device 101 can manage the port of N number of client simultaneously, That is a thread can handle the first packet information of the N number of client sent by N number of port simultaneously.Therefore, Test device 101 can be attached with N number of client device 102, and carry out network friendship to N number of client device 102 simultaneously Mutually test.Certainly, before receiving first data packet, test device 101 needs to establish communication channel with client device 102 (the first communication channel), first communication channel are to be connected to the channel interacted between client device 102 and test device 101. Due to test device 101 be to client end AP P carry out test Shi Caiyu client device 102 be attached, non- Under test case, client device 102 is the backstage directly with client end AP P, i.e., application server 103 is directly established communication and connected It connects, therefore, test device 101 is in addition to establishing communication channel between client device 102, acceptable and application server Communication channel is established between 103.Typically for the network data transmission channel manager of management per thread (Thread) (Selector) for, 2N communication channel, the corresponding client end AP P of every a pair of channels are managed, a pair of channels includes: Between communication channel and test device 101 and application server 103 between client device 102 and test device 101 Communication channel.
Whether step 202 parses the first data packet, determine in the first data packet comprising test field.
If step 203 includes the corresponding test instruction of return test field.
In step 202 and step 203, the data content for being included in the first data packet is read out, to determine It whether include test field in the data content read.According to the test field find it corresponding to test instruction.Its In, so-called test field is the code or refer to that tester selectes in a program in advance for the function of test client APP It enables, when occurring these test fields in the first data packet, can search in the mapping table what tester write in advance for it Return value, the return value are exactly test instruction, so that client end AP P is received and executed test instruction.For example, word is tested Section is " URL " field, it is assumed that parsing obtains the address URL of the website A in the first data packet, predetermined according to tester Mapping table, finding test instruction corresponding with the field is " URL of the website A is revised as to the URL of the website B ", then returns to The response message of client end AP P is the address URL of the website B, can be in client device 102 if client end AP P response is normal The URL for the website B that middle basis receives shows the Webpage of the website B;For another example, test field is " A field ", and test refers to Enabling is " returning to a null character to the client for A field occur ", this, which tests instruction, can be used to test client APP reception Whether will appear the abnormal phenomenon of delay machine after to the null character, if client end AP P receives the response message of " null character ", and does not have Delay machine is occurred, then illustrates that client end AP P has the abnormal ability for returning to message of processing, test passes through;For another example, word is tested Section is " B field ", and test instruction is " returning to an overlength character string to the client for B field occur ", this tests instruction can Be used to test client APP receive the overlength character string after whether can be in the user interface (User of client device 102 Interface, referred to as " UI ") in show messy code, if not having, illustrate that client end AP P is functional, if there is messy code etc. Abnormal conditions then illustrate tested client end AP P there are abnormal problem, and tester can carry out journey for the test field Sequence investigation, or checked for the associated program of test field.
Step 204, according to after client executing test instruction in response to determining that test result to client.
In this step, as described in abovementioned steps, after tester can execute test instruction according to client end AP P Response results judge whether the result is expected test result, if there is situations such as messy code or delay machine as previously described, illustrate There is exception in client, then can be checked according to test result program associated by test field, determine problem place. If test result is consistent with expected results, it is believed that test passes through, client end AP P normal operation.
The network interaction test method of the present embodiment receives client hair by establishing the first communication channel with client The first data packet sent;First data packet is parsed, whether is determined in the first data packet comprising test field;If comprising, Return to the corresponding test instruction of test field;According to after client executing test instruction in response to determining that test knot to client Fruit.This method can targetedly test the data packet transmitted by client, and run test instruction by client Response afterwards, accurate to determine that client whether there is problem, method is simple and convenient, facilitates tester to modify test instruction and reaches Test purpose improves testing efficiency;Meanwhile the test instruction according to corresponding to test field, it can relatively accurately determine journey Where sequence is abnormal, be conducive to improve test accuracy.
Fig. 3 is the flow chart of the inventive network interactive testing method shown in another exemplary embodiment, as shown in figure 3, Based on the above embodiment, the network interaction test method of the present embodiment, comprising:
Step 301 establishes the first communication channel with client, receives the first data packet that client is sent.
The realization of the step and the realization principle of step 201 are identical, and details are not described herein.
The second communication channel between step 302, foundation and application server.
In this step, after test device 101 receives the first data packet of client transmission, execution thread (Thread) the network data transmission channel manager (Selector) managed is just waken up from suspended state, and the Selector is negative Duty establishes the communication channel (the second communication channel) between test device 101 and application server 103.Application server 103 can With as shown in fig. 1 to be multiple, second communication channel connection be test device 101 and default application server 103 it Between communication channel.The application server 103 of so-called default is the reception that tester presets in test device 101 in advance End application server 103.Certainly, tester can also in test device 101 to receive client end AP P data packet application Server 103 is modified, if having modified application server 103, which is also required to be switched accordingly. That is, a communication channel between a test device 101 and application server 103 only corresponding application server 103, is answered It is changed with server 103, then communication channel accordingly changes.
First data packet is stored in buffer area by step 303.
It in this step, as an example, can be by the header packet information of the first data packet of reading, according to header packet information It determines the data length of the first data packet, obtains the first data packet for meeting the data length, then deposit first data packet Enter buffer area.It wherein, include header part and packet content part in the first data packet, usual header part may include Several bytes, for example, 8 bytes;8 bytes indicate the data length information of first data packet, test device 101 After reading the data length information, the packet content for meeting the data length is read in buffer area.Wherein, the buffering Area can be bytebuffer array, deposit and the consistent data information of data length in bytebuffer array.For example, if First data packet is then to be believed the binary system in PB packet with the PB packet of binary representation (Protocol Buffer, referred to as " PB ") Breath is read in ByteBuffer array, and the data length indicated in the binary message length of reading and packet header is consistent.
It should be noted that step 302 and step 303 are not carried out the successive limitation of sequence, step can be first carried out 302, then execute step 303;Step 303 can also be first carried out, then executes step 302;It can be same with step 302 and step 303 Shi Zhihang.
Whether step 304, in the buffer, parses the first data packet, determine in the first data packet comprising test Field;If comprising thening follow the steps 305~step 307;If not including, 308~step 311 is thened follow the steps.
If step 305 includes the corresponding test instruction of return test field.
Step 306, according to after client executing test instruction in response to determining that test result to client.
First data packet and test instruction are put into the queue to be detected that personnel to be tested check by step 307, so that test Personnel check the first data packet with the content of test instruction to analyze test result.
There is test field for being determined in the first data packet after parsing, then it can be in the mapping of 101 local of test device It is found in strategy with the test field there are the test of corresponding relationship instruction, also by taking PB data packet as an example, then it may be corresponded to One mock returns to value information, and it is exactly test instruction which, which returns to value information, will build in the mock return value write step 301 In the first communication channel between vertical test device 101 and client device 102, so that client end AP P executes the mock and returns Value is returned, the response results after executing can show test result.Meanwhile no matter the test result that client end AP P is presented Be by or do not pass through, mock return value can be stored in together with the first data packet that client end AP P is originally sent to be checked It looks into queue, so-called queue (Queue) to be detected is queue corresponding with each client end AP P.Each client end AP P can The first data packet of more than one can be sent, it therefore, can be according to time sequencing by each first data packet and its corresponding test Instruction according to chronological order or other by tester set sequence be put into queue (Queue) so that tester Conveniently check that test corresponding to each of the client end AP P transmission content of the first data packet and first data packet refers to Enable, so that it is determined that client end AP P program itself and its to test instruction responder whether there is problem.First data packet is Client device 102 is transmitted directly to the test device 101 according to the address of test device 101, therefore, test device 101 It can parse the total data content to the first data packet, this program analysis subsequent for tester is very important letter Breath, compared to the prior art in the work log information that is run based on program it is more comprehensive.
If step 308 does not include, application server is sent by the first data packet.
In this step, the test field in the local mapping policy of test device 101 if it does not exist in the first data packet, then The first data packet directly can be passed through into the between the test device 101 established in step 302 and application server 103 Two communication channels are sent to application server 103.
Step 309 monitors the second communication channel, receives the second data packet that application server returns.
Step 310 receives the second data packet, determines whether the second data packet is corresponding with the first data packet, if corresponding, Execute step 311;If not corresponding to, 309 are returned to step.
In this step, as an example, the method as described in preceding step 303 can be executed, that is, reads the second number According to the header packet information of packet, the data length of the second data packet is determined according to header packet information;Acquisition meets the second of the data length Data packet, and the second data packet is stored in buffer area.In addition, via second between test device 101 and application server 103 Communication channel can receive many response data packets, at this time it needs to be determined that transmitted by which response data packet and client end AP P The first data packet between there are corresponding relationship, correspondence can be carried out by packet identification information and determined, if number of responses Mark according to the mark and the first data packet of packet matches, then can determine that the second data packet is sound corresponding with the first data packet Answer data packet.
Second data packet is sent to client corresponding with the first data packet by step 311, so that the client is to second Data packet is responded;And the first data packet and the second data packet are put into the queue to be detected that personnel to be tested check, so that Tester checks the first data packet with the content of the second data packet to analyze test result.
In this step, test device 101 reads the data content of the second data packet, and it is logical with client end AP P that it is written First communication channel of news so that client receives second data packet, and carries out accordingly according to the second packet content Response;Meanwhile first data packet and the second data packet are all deposited in simultaneously in the queue to be checked of test device 101, with Check the network interaction process of the two with the presence or absence of problem for tester.If the knot that client responds the second data packet There is exception in fruit, then tester can find second data packet and the first data packet in queue to be checked, check problem Place.
Optionally, which can also include: the application server alteration command for receiving tester's input, disconnect The second communication channel between application server before changing, second between application server after establishing and changing communicate Channel.
For example, the client of Di Di company is divided into driver's client and passenger's client, then for driver's client The first data packet sent receives the application server A that end application server can be special disposal driver client traffic, For the first data packet that passenger's client is sent, receiving end application server can be special disposal passenger client traffic Application server B, tester can select passenger's client or driver's client to test, then before the test begins Its corresponding application server A or application server B is set accordingly, it during the test, can also be according to test purpose, survey The demands application servers such as examination function change, then every time after change application server, original application server needs Test device is changed to be attached with the application server after change by the connection that the second communication channel is disconnected with test device. It is, of course, also possible to which including includes client identification in the first data packet, test device is according to client identification determination and its Corresponding purpose application server establishes the connection with the communication channel of the purpose application server.
Fig. 4 is the structural schematic diagram of the inventive network interactive testing device shown in an exemplary embodiment, such as Fig. 4 institute Show, the network interaction test device of the present embodiment includes:
Receiving module 41 receives the first data packet that client is sent for establishing the first communication channel with client.
Whether parsing module 42 determines in the first data packet for parsing to the first data packet comprising test field.
Sending module 43, for returning and surveying when the parsing of parsing module 42 obtains in the first data packet comprising test field Try the corresponding test instruction of field.
Determining module 44, for according to after client executing test instruction in response to determining that test result to client.
The present embodiment can be used for realizing embodiment of the method shown in Fig. 2, and realization principle is similar, and details are not described herein.
The network interaction test device of the present embodiment receives client hair by establishing the first communication channel with client The first data packet sent;First data packet is parsed, whether is determined in the first data packet comprising test field;If comprising, Return to the corresponding test instruction of test field;According to after client executing test instruction in response to determining that test knot to client Fruit.This method can targetedly test the data packet transmitted by client, and run test instruction by client Response afterwards, accurate to determine that client whether there is problem, method is simple and convenient, facilitates tester to modify test instruction and reaches Test purpose improves testing efficiency;Meanwhile the test instruction according to corresponding to test field, it can relatively accurately determine journey Where sequence is abnormal, be conducive to improve test accuracy.
Fig. 5 is the structural schematic diagram of the inventive network interactive testing device shown in another exemplary embodiment, such as Fig. 5 institute Show, on the basis of a upper embodiment, the network interaction test device of the present embodiment further include:
Receiving module 41 is also used to the second communication channel established between application server.
Sending module 43 is also used to when the parsing of parsing module 42 obtains not including test field in the first data packet, will First data packet is sent to application server.
Receiving module 41 is also used to monitor the second communication channel, receives the second data packet that application server returns.
Sending module 43, be also used to when the second data packet and the first data packet to it is corresponding when by the first data packet and the second number The queue to be detected that personnel to be tested check is put into according to packet;Second data packet is sent to client corresponding with the first data packet End.
It optionally, further include memory module 45, for the first data packet to be stored in buffer area;
Parsing module 42 is also used in the buffer, parse the first data packet.
Optionally, sending module 43, be also used to for the first data packet and test instruction being put into personnel to be tested check to Detect queue.
Optionally, receiving module 41 are also used to receive the application server alteration command of tester's input.
Receiving module 41 is also used to disconnect the second communication channel between application server before changing, establishes and becomes The second communication channel between application server after more.
The present embodiment can be used for realizing embodiment of the method shown in Fig. 3, and realization principle is similar, and details are not described herein.
Those of ordinary skill in the art will appreciate that: realize that all or part of the steps of above-mentioned each method embodiment can lead to The relevant hardware of program instruction is crossed to complete.Program above-mentioned can be stored in a computer readable storage medium.The journey When being executed, execution includes the steps that above-mentioned each method embodiment to sequence;And storage medium above-mentioned include: ROM, RAM, magnetic disk or The various media that can store program code such as person's CD.
Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention., rather than its limitations;To the greatest extent Pipe present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that: its according to So be possible to modify the technical solutions described in the foregoing embodiments, or to some or all of the technical features into Row equivalent replacement;And these are modified or replaceed, various embodiments of the present invention technology that it does not separate the essence of the corresponding technical solution The range of scheme.

Claims (10)

1. a kind of network interaction test method characterized by comprising
The first communication channel is established with client, receives the first data packet that client is sent;
First data packet is parsed, whether is determined in first data packet comprising test field;
If comprising returning to the corresponding test instruction of the test field;
After the test instruction according to the client executing in response to determining that test result to the client.
2. the method according to claim 1, wherein it is described receive client send the first data packet after, Further include:
Establish the second communication channel between application server;
It is described that first data packet is parsed, it determines after whether being identified comprising test in first data packet, also Include:
If not including, the application server is sent by first data packet;
Second communication channel is monitored, the second data packet that the application server returns is received;
If second data packet is corresponding with first data packet, first data packet and second data packet are put Enter the queue to be detected that personnel to be tested check;And second data packet is sent to visitor corresponding with first data packet Family end.
3. the method according to claim 1, wherein it is described receive client send the first data packet after, Further include:
First data packet is stored in buffer area;
Correspondingly, described parse first data packet, comprising:
In the buffer area, first data packet is parsed.
4. the method according to claim 1, wherein described return to the test field corresponding test instruction Afterwards, further includes:
First data packet and the test instruction are put into the queue to be detected that personnel to be tested check.
5. according to the method described in claim 2, it is characterized in that, the method also includes:
The application server alteration command of tester's input is received, disconnects and leading to second between application server before changing Channel is interrogated, the second communication channel between application server after establishing and changing.
6. a kind of network interaction test device characterized by comprising
Receiving module receives the first data packet that client is sent for establishing the first communication channel with client;
Whether parsing module determines in first data packet for parsing to first data packet comprising test word Section;
Sending module, for returning to institute when the parsing module parses to obtain in first data packet comprising test field State the corresponding test instruction of test field;
Determining module, for after the test instruction according to the client executing in response to determining that test to the client As a result.
7. device according to claim 6, it is characterised in that:
The receiving module is also used to the second communication channel established between application server;
The sending module is also used to not include test field in first data packet when the parsing module parses to obtain When, the application server is sent by first data packet;
The receiving module is also used to monitor second communication channel, receives the second data that the application server returns Packet;
The sending module, be also used to when second data packet and first data packet to it is corresponding when by first data Packet is put into the queue to be detected that personnel to be tested check with second data packet;By second data packet be sent to it is described The corresponding client of first data packet.
8. device according to claim 6, it is characterised in that: further include:
Memory module, for first data packet to be stored in buffer area;
The parsing module is also used in the buffer area, is parsed to first data packet.
9. device according to claim 6, it is characterised in that:
The sending module, be also used to for first data packet and the test instruction being put into personnel to be tested check it is to be checked Survey queue.
10. device according to claim 7, it is characterised in that:
The receiving module is also used to receive the application server alteration command of tester's input;
The receiving module is also used to disconnect and the second communication channel between application server before changing, foundation and change The second communication channel between application server afterwards.
CN201810375387.7A 2018-04-24 2018-04-24 Network interaction testing method and device Active CN110401576B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810375387.7A CN110401576B (en) 2018-04-24 2018-04-24 Network interaction testing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810375387.7A CN110401576B (en) 2018-04-24 2018-04-24 Network interaction testing method and device

Publications (2)

Publication Number Publication Date
CN110401576A true CN110401576A (en) 2019-11-01
CN110401576B CN110401576B (en) 2021-03-09

Family

ID=68322504

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810375387.7A Active CN110401576B (en) 2018-04-24 2018-04-24 Network interaction testing method and device

Country Status (1)

Country Link
CN (1) CN110401576B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112491659A (en) * 2020-12-02 2021-03-12 广州品唯软件有限公司 Flow playback test method and device, computer equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104881342A (en) * 2015-06-24 2015-09-02 小米科技有限责任公司 Terminal testing method and device
US20170031805A1 (en) * 2014-09-22 2017-02-02 International Business Machines Corporation Auto-deployment and testing of system application test cases in remote server environments
CN106874174A (en) * 2015-12-11 2017-06-20 阿里巴巴集团控股有限公司 Interface testing and the implementation method and device of functional test
CN107465572A (en) * 2017-08-02 2017-12-12 华数传媒网络有限公司 Intelligent terminal method of testing, apparatus and system
WO2018066932A1 (en) * 2016-10-06 2018-04-12 세종대학교 산학협력단 M2m application test device and method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170031805A1 (en) * 2014-09-22 2017-02-02 International Business Machines Corporation Auto-deployment and testing of system application test cases in remote server environments
CN104881342A (en) * 2015-06-24 2015-09-02 小米科技有限责任公司 Terminal testing method and device
CN106874174A (en) * 2015-12-11 2017-06-20 阿里巴巴集团控股有限公司 Interface testing and the implementation method and device of functional test
WO2018066932A1 (en) * 2016-10-06 2018-04-12 세종대학교 산학협력단 M2m application test device and method
CN107465572A (en) * 2017-08-02 2017-12-12 华数传媒网络有限公司 Intelligent terminal method of testing, apparatus and system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112491659A (en) * 2020-12-02 2021-03-12 广州品唯软件有限公司 Flow playback test method and device, computer equipment and storage medium
CN112491659B (en) * 2020-12-02 2022-07-01 广州品唯软件有限公司 Flow playback test method and device, computer equipment and storage medium

Also Published As

Publication number Publication date
CN110401576B (en) 2021-03-09

Similar Documents

Publication Publication Date Title
US10243820B2 (en) Filtering network health information based on customer impact
US8667147B2 (en) Monitoring related content requests
KR102076862B1 (en) Network performance indicator visualization method and apparatus, and system
US8051163B2 (en) Synthetic transactions based on system history and load
CN108363662A (en) A kind of applied program testing method, storage medium and terminal device
CN112714047B (en) Industrial control protocol flow based test method, device, equipment and storage medium
WO2017074472A1 (en) Network aware distributed business transaction anomaly detection
Mistry et al. Network traffic measurement and analysis
CN108519933A (en) Board test method, device, readable storage medium storing program for executing and computer equipment
CN110750458A (en) Big data platform testing method and device, readable storage medium and electronic equipment
CN105579976B (en) Webpage automated testing method and device
CN109039787A (en) log processing method, device and big data cluster
CN106776346B (en) Test method and device of CCMTS (China center testing System) equipment
CN109117341A (en) A kind of monitoring method of virtual machine, device, equipment and medium
EP4196896A1 (en) Opentelemetry security extensions
CN113760641A (en) Service monitoring method, device, computer system and computer readable storage medium
US20230020480A1 (en) Unified query tool for network function virtualization architecture
CN107040429A (en) A kind of method of testing and system of port forwarding performance
CN106330483A (en) Information acquiring method, client device and server device
US10775751B2 (en) Automatic generation of regular expression based on log line data
CN105530137B (en) Data on flows analysis method and data on flows analysis system
CN105515909A (en) Data collection test method and device
CN110401576A (en) Network interaction test method and device
CN102684925A (en) Method and device for acquiring internet access source information
US20180314765A1 (en) Field name recommendation

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
GR01 Patent grant
GR01 Patent grant