CN110069413A - Test data communication, test method, device, equipment and storage medium - Google Patents

Test data communication, test method, device, equipment and storage medium Download PDF

Info

Publication number
CN110069413A
CN110069413A CN201910325025.1A CN201910325025A CN110069413A CN 110069413 A CN110069413 A CN 110069413A CN 201910325025 A CN201910325025 A CN 201910325025A CN 110069413 A CN110069413 A CN 110069413A
Authority
CN
China
Prior art keywords
data
test
equipment
intermediate equipment
test data
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
CN201910325025.1A
Other languages
Chinese (zh)
Other versions
CN110069413B (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.)
Suzhou Yige Network Technology Co Ltd
Original Assignee
Suzhou Yige Network Technology 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 Suzhou Yige Network Technology Co Ltd filed Critical Suzhou Yige Network Technology Co Ltd
Priority to CN201910325025.1A priority Critical patent/CN110069413B/en
Publication of CN110069413A publication Critical patent/CN110069413A/en
Application granted granted Critical
Publication of CN110069413B publication Critical patent/CN110069413B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3684Test management for test design, e.g. generating new test cases
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites

Abstract

The embodiment of the invention discloses a kind of test data communication, test method, device, equipment and storage mediums.The described method includes: intermediate equipment modifies to the destinations traffic data received, test data is obtained;Intermediate equipment extract equipment directional information from the destinations traffic data, and send the test data to and the matched target device of equipment directional information;Wherein, the test data is tested for the target device, and target device includes server or client, and the communication between the server and the client is realized by the intermediate equipment.The embodiment of the present invention can distort test data automatically, simplify data tampering process, the efficiency of data tampering is improved, to improve testing efficiency.

Description

Test data communication, test method, device, equipment and storage medium
Technical field
The present embodiments relate to software test field more particularly to a kind of communication of test data, test method, device, Equipment and storage medium.
Background technique
Test is essential link in software development process, to judge whether software various functions reach expected effect Fruit.
In general, whether test software function reaches the more equipment cooperation realizations of target needs in the field of communications.It is tested It tries equipment when testing, needs to adjust the communication data for being devices under the equipment transmission that there is communication connection with this It is whole, the reaction of test data being devices under is received, by observing to verify whether the equipment under test has certain function. Illustratively, robustness testing (robustness test) is the processing energy for testing the abnormal data that some equipment sends other equipment Power, abnormal data refer to the data for not meeting the equipment code requirement;Penetration testing is to test some equipment to inject malice Permeate the processing capacity of code.
Current above-mentioned test needs to guarantee that the equipment receives the data after distorting according to testing requirement, usually distorts mode It is directly to forge and modify data by artificial, or utilize and act on behalf of packet catcher manual modification data.Existing data tampering Method is to modify complicated for operation and easy error, and modified data are not necessarily what user needed by being accomplished manually Altered data, or even repeatedly modification is just able to achieve and achievees the effect that desired repeatedly, causes to distort inefficiency.And it needs to distort Data be generally source data, in the case where system or framework are complicated, the difficulty of inquiry and modification source data is big, if while source Data are that third party provides, and can not directly be modified to source data.
Summary of the invention
It, can be with the embodiment of the invention provides a kind of test data communication, test method, device, equipment and storage medium Automatically test data is distorted, simplifies data tampering process, the efficiency of data tampering is improved, to improve testing efficiency.
In a first aspect, the embodiment of the invention provides a kind of test data communication means, comprising:
Intermediate equipment modifies to the destinations traffic data received, obtains test data;
Intermediate equipment extract equipment directional information from the destinations traffic data, and the test data is sent To with the matched target device of equipment directional information;
Wherein, the test data is tested for the target device, and target device includes server or client, Communication between the server and the client is realized by the intermediate equipment.
Second aspect, the embodiment of the invention provides a kind of test methods, comprising:
Client sends request data to intermediate equipment, so that the request data is transmitted to target by the intermediate equipment Server;
The client receive intermediate equipment forwarding with the matched test data of the request data, and respond;
When being abnormal response events, the problem of client acquires the exception response event information, and report.
The third aspect, the embodiment of the invention provides a kind of test methods, comprising:
Server receives the test data that intermediate equipment is sent;
The server obtains and the matched feedback data of the test data, and is sent to the intermediate equipment, so that The feedback data is transmitted to destination client by the intermediate equipment;
When being abnormal response events, information the problem of exception response event described in the collection of server, and show To test user;
When receiving the test instruction of the test user input, the server is executed and the test instructions match Test operation, obtain test result and be shown to the test user.
Fourth aspect, the embodiment of the invention also provides a kind of test data communication means devices, comprising:
Communication data modified module obtains test data for modifying to the destinations traffic data received;
Test data forwarding module, for the extract equipment directional information from the destinations traffic data, and by the survey Examination data are sent to and the matched target device of equipment directional information;Wherein, the test data is set for the target Standby to be tested, target device includes server or client, and the communication between the server and the client passes through institute State intermediate equipment realization.
5th aspect, the embodiment of the invention also provides a kind of test devices, comprising:
Request data sending module, for sending request data to intermediate equipment, so that the intermediate equipment is asked by described in Ask data forwarding to destination server;
Test data receives and respond module, for receiving the matched with the request data of the intermediate equipment forwarding Test data, and respond;
Problem information reporting module, the problem of for when being abnormal response events, acquiring the exception response event Information, and report.
6th aspect, the embodiment of the invention also provides a kind of test devices, comprising:
Test data receiving module, for receiving the test data of intermediate equipment transmission;
Feedback data sending module for acquisition and the matched feedback data of the test data, and is sent in described Between equipment so that the feedback data is transmitted to destination client by the intermediate equipment;
Problem information acquisition module, the problem of for when being abnormal response events, acquiring the exception response event Information, and it is shown to test user;
Test module, for executing and being instructed with the test when receiving the test instruction of the test user input Matched test operation obtains test result and is shown to the test user.
7th aspect the embodiment of the invention also provides a kind of equipment, including memory, processor and is stored in memory Processor described in the upper and computer program that can run on a processor is realized in such as embodiment of the present invention when executing described program Any the test data communication means or test method.
Eighth aspect, the embodiment of the invention also provides a kind of computer readable storage mediums, are stored thereon with computer Program realizes test data communication means or test as described in any in the embodiment of the present invention when program is executed by processor Method.
The embodiment of the present invention by being arranged intermediate equipment in the communication link of server and client, realize server with Communication data between client is forwarded by intermediate equipment, and is repaired by intermediate equipment to the communication equipment received Changing, obtains test data and be sent in the target device of direction, realization automatically distorts communication data in communication process, Test data is formed, carries out robustness testing to target device, solves and distorts number needed for obtaining test in the prior art According to high labor cost, difficulty is big and low efficiency the problem of, realize automatic altered data, increase the diversity of altered data, Simplify altered data process, reduces the difficulty of altered data, improve the efficiency of altered data, to improve testing efficiency and test Effect.
Detailed description of the invention
Fig. 1 a is the flow chart of one of embodiment of the present invention one test data communication means;
Fig. 1 b is the functional block diagram of one of the embodiment of the present invention one intermediate equipment;
Fig. 1 c is the schematic diagram of one of the embodiment of the present invention one concrete application scene;
Fig. 2 is the flow chart of one of the embodiment of the present invention two test method;
Fig. 3 is the flow chart of one of the embodiment of the present invention three test method;
Fig. 4 is the structural schematic diagram of one of embodiment of the present invention four test data communication device;
Fig. 5 is the structural schematic diagram of one of the embodiment of the present invention five test device;
Fig. 6 is the structural schematic diagram of one of the embodiment of the present invention six test device;
Fig. 7 is the structural schematic diagram of one of the embodiment of the present invention seven equipment.
Specific embodiment
The present invention 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 the present invention rather than limiting the invention.It also should be noted that in order to just Only the parts related to the present invention are shown in description, attached drawing rather than entire infrastructure.
Embodiment one
Fig. 1 a is the flow chart of one of the embodiment of the present invention one test data communication means, and the present embodiment is applicable to The case where generating and transmitting the communication data for robustness testing, this method can be by test provided in an embodiment of the present invention Data communication equipment executes, and the mode which can be used software and/or hardware is realized, and can generally integrate offer communication function In the electronic equipment of energy, for example, computer equipment etc..As shown in Figure 1a, the method for the present embodiment specifically includes:
S110, intermediate equipment modify to the destinations traffic data received, obtain test data.
Intermediate equipment is used for as the communication relay device between client and server, between client and server Communication data is both needed to forward by intermediate equipment.Specifically, as shown in Figure 1 b, the communication process of client 141 and server 143 Specifically: communication data is sent intermediate equipment 142 by client 141, is transmitted to server 143 by intermediate equipment 142;Service Communication data is sent intermediate equipment 142 by device 143, is transmitted to client 141 by intermediate equipment 142.Wherein, intermediate equipment can To be set in server or client, or can also be set in the computer equipment except server and client. Numerical value
Wherein, destinations traffic data can refer to the communication data of testing requirement, may include what the client was sent The feedback data for the direction client that the request data or the server for being directed toward server are sent.In addition, destinations traffic data It can be JSON data with test data.It should be noted that section communication data can not need to be distorted, directly pass through Intermediate equipment is forwarded.
Specifically, client and server can carry out robustness testing, what intermediate equipment can be sent in server Communication data is distorted before reaching client according to test, the data after distorting client, to obtain Client analyzes client to the fault-tolerant ability of abnormal data, obtains the robustness of client to the response condition of abnormal data Test result.In addition, intermediate equipment can also client send communication data before reaching server according to test need It is distorted, the data after distorting server, to obtain server to the response condition of abnormal data, Analysis Service Device obtains the robustness testing result of server to the fault-tolerant ability of abnormal data.
Optionally, the intermediate equipment modifies to the destinations traffic data received, obtains test data, can wrap Include: the destinations traffic data are input to data identification model trained in advance by the intermediate equipment, are obtained the data and are known The labeled data of the marking types label of other model output;According to the type label according to default rule of distorting to the mark Data are modified, and test data is obtained;Wherein, the data identification model is according to the communication for being labeled with data type in advance Multiple training samples of data are trained acquisition.
Data identification model determines each data element for analyzing each data element that destinations traffic data include The data type of element.Marking types label is used to determine in type and the analyzing communication data of the communication data of labeled data Including each data element type and mark (such as labeling position).Wherein, the type of communication data can specifically include client The feedback data for holding the request data sent or server to send;The type of data element can specifically include object, numerical value, cloth At least one of in value of, array, character, biography ginseng and list etc..It can be according to the type of communication data and the class of data element Type generates the type label of the communication data.It modifies for different type labels according to matched rule of distorting.
For example, the type label of communication data is the feedback data that server is sent;Then according to default rule of distorting to institute It states labeled data to modify, obtains test data, specifically: the position of each data element is determined from communication data, and The data type of each data element;It modifies respectively according to the matched rule of distorting of data type selection to each data element, Using modified communication data as with the matched abnormal data of the communication data;Illustratively, distort rule include it is following extremely One item missing: data object is deleted, data object is assigned a value of to null, increases and decreases numerical value, numerical value is set to positive number or negative, in character Increase and decrease character in string, Boolean negates and increase and decrease in array array element.
In a specific example, destinations traffic data include character string, the character string " abcdef ", corresponding test The character string that data include can be revised as " af ".
Illustratively, the type label of communication data is the request data that client is sent;Then rule is distorted according to default Modify to the feedback data, obtain with the matched abnormal data of the communication data, specifically: extract communication data in wrap The restricted information for the server that biography ginseng, list and the request data included is directed toward, as target modification information;Believed based on target modification The matched rule of distorting of breath selection modifies respectively to each data element.Illustratively, distorting rule includes following at least one : modification passes ginseng, injects infiltration code in list and data and/or file format is revised as to the format class of front end limitation Type.
Data type analysis is carried out to destinations traffic data by data identification model trained in advance, obtains mark number According to, and rules modification data are distorted according to according to type label and the default of matching degree, test data is generated, may be implemented certainly It is dynamic that all data element that communication data includes accordingly is modified respectively, the cost of labor of data tampering is saved, number is improved According to the efficiency distorted.
Optionally, it modifies in the intermediate equipment to the destinations traffic data received, obtains the same of test data When, further includes: the intermediate equipment using the destinations traffic data and the test data as test data to storage, and root The identification information of the test data pair is generated according to the attribute information of the test data pair;The identification information is added to institute State the message header in test data;Wherein, the identification information is for searching the test data pair.
Wherein, identification information can be directed to the information of measured data pair, find the test data for intermediate equipment It is right.Message header is used to notify the effect of the test data of target device, can specifically refer to message header or head response.It is exemplary , user end to server sends a request, and request header includes the method for request, uniform resource locator (UniformResource Locator, URI), protocol version, the request information such as modifier and customer information.
Specifically, identification information is added to the head response in test data, test data is sent to client as a result, When being tested, test user can extract the identification information from the head response for the test data that client receives, and lead to It crosses intermediate equipment and test data pair, i.e., the former data and altered data that do not distorted, to compare is obtained according to identification information Difference between two data, thus positions and solves the problems, such as.
It by for destinations traffic data and Test data generation identification information, and is added in message header, to be sent to visitor Family end, so that client user obtains the identification information, so that it is logical to inquire target in intermediate equipment based on identification information Letter data and test data help the quick assignment test problem of tester to obtain destinations traffic data and test data, It improves test problem discovery and solves speed.
S120, intermediate equipment extract equipment directional information from the destinations traffic data, and by the test number According to being sent to and the matched target device of equipment directional information;Wherein, the test data for the target device into Row test, target device include server or client, and the communication between the server and the client passes through in described Between equipment realize.
Equipment directional information can refer to the identification information for receiving the equipment of destinations traffic data, can refer to that the target is set Standby destination address information.Target device can refer to the equipment for receiving destinations traffic data.
In a specific example, as illustrated in figure 1 c, destinations traffic data are the communication that server is sent to client Data, target device are client.Destinations traffic data carry out each data element by data identification model as initial data Data type identification, and each data element in data is distorted automatically according to default rule of distorting, is formed after distorting Data, and be sent in client as test data.
The embodiment of the present invention by being arranged intermediate equipment in the communication link of server and client, realize server with Communication data between client is forwarded by intermediate equipment, and is repaired by intermediate equipment to the communication equipment received Changing, obtains test data and be sent in the target device of direction, realization automatically distorts communication data in communication process, Test data is formed, carries out robustness testing to target device, solves and distorts number needed for obtaining test in the prior art According to high labor cost, difficulty is big and low efficiency the problem of, realize automatic altered data, increase the diversity of altered data, Simplify altered data process, reduces the difficulty of altered data, improve the efficiency of altered data, to improve testing efficiency and test Effect.
Embodiment two
Fig. 2 is the flow chart of one of the embodiment of the present invention two test method, and the present embodiment is applicable to be based on connecing The communication data received carries out the case where software test, and this method can be held by test device provided in an embodiment of the present invention Row, the mode which can be used software and/or hardware is realized, and can be generally integrated in the client of electronic equipment, for example, The client etc. of mobile terminal.As shown in Fig. 2, the method for the present embodiment specifically includes:
S210, client sends request data to intermediate equipment, so that the intermediate equipment forwards the request data To destination server.
Wherein, the intermediate equipment in the present embodiment and test data can refer to the description of above-described embodiment.Request data It can refer to the data for the acquisition service that user end to server is sent.
S220, the client receive the destination server and send and being forwarded by the intermediate equipment with the request The test data of Data Matching, and respond.
Client receives the communication data after distorting, and responds, according to response after result judge whether logic mistake occur Accidentally, the problems such as interface display exception or client sudden strain of a muscle are moved back does not pass through with the associated test of the test data, needs if going wrong Client is improved, to improve the serious forgiveness of client.
Illustratively, when communication data is the page data for needing to show, corresponding response mode be can be according to page Face data generates displayed page, judges whether displayed page displaying abnormal problem occurs.
S230, when being abnormal response events, the problem of client acquires the exception response event information, and It reports.
Exception response event can refer to that when responding to test data client occurred does not meet desired effect Event.Problem information can refer to the information of exception response event correlation, determine exception response event for tester Reason and position.Wherein, problem information may include the mark for the test data pair that destinations traffic data and test data are formed Information, the identification information are quickly positioned and are solved different to test user for searching the test data pair in intermediate equipment Normal response events.It reports for the exception response event and problem information to be shown to test user, so that test user's positioning Exception response event location, and the exception response event is solved based on exception response business reasons.
Specifically, can be by calling acquisition service interface by information reporting the problem of exception response event to testing user Electronic equipment so that the electronic equipment be shown to test user.
The embodiment of the present invention by receiving the test data distorted in the normal course of communications of client and server, And the problem of acquiring the exception response event occurred in response information, and it is reported to test user, realize automatic execution software Test, improves the efficiency of software test.
Embodiment three
Fig. 3 is the flow chart of one of the embodiment of the present invention three test method, and the present embodiment is applicable to be based on connecing The communication data received carries out the case where software test, and this method can be held by test device provided in an embodiment of the present invention Row, the mode which can be used software and/or hardware is realized, and can generally be integrated in server etc..As shown in figure 3, this reality The method for applying example specifically includes:
S310, server receive the test data that intermediate equipment is sent.
Intermediate equipment and test data in the present embodiment can refer to the description of above-described embodiment.
S320, the server obtains and the matched feedback data of the test data, and is sent to the intermediate equipment, So that the feedback data is transmitted to test data described in server described in destination client by the intermediate equipment.
Feedback data can refer to the data that server is responded based on test data.Illustratively, number is tested According to the request for displayed page, then feedback data can be the data that displayed page is generated for client.
S330, when being abnormal response events, information the problem of exception response event described in the collection of server, and It is shown to test user.
Exception response event can refer to the thing for not meeting desired effect that visitor occurs when responding to test data Part.The reason of problem information can refer to the information of exception response event correlation, determine exception response event for tester The position and.Wherein, problem information may include the identification information for the test data pair that destinations traffic data and test data are formed, The identification information is quickly positioned to test user and solves exception response for searching the test data pair in intermediate equipment Event.The exception response event and problem information are shown to test user, so that test user positions exception response event position It sets, and solves the exception response event based on exception response business reasons.
Specifically, can be by calling acquisition service interface by information reporting the problem of exception response event to testing user Electronic equipment so that the electronic equipment be shown to test user.
Illustratively, when server, which receives front end, can not identify the test data of data type, server can occur The event of request error, at this point, the problem of acquiring event information is shown to test user, for example, the mark of test data is believed The data type etc. of breath and test data.
S340, when receiving the test instruction of the test user input, the server is executed to be referred to the test Matched test operation is enabled, test result is obtained and is shown to the test user.
Wherein, test instruction tests server for executing test operation.Specifically, test instruction and test Data correlation, for example, test data is the data that injection infiltration code is formed in list, test instruction be can be for executing With the instruction of the specific penetration testing of the infiltration associated codes.Test operation may include test program, or test is called to connect Mouthful, while test result can be directly acquired after the completion of test.
The embodiment of the present invention by receiving the test data distorted in the normal course of communications of client and server, And the problem of acquiring the exception response event occurred in response information, and it is shown to test user, it realizes and executes stalwartness automatically Property test, improve the efficiency of robustness testing, while when receiving test instruction, testing server, and surveyed Test result may be implemented specific aim test, increase the flexibility of server test.
Example IV
Fig. 4 is the schematic diagram of one of embodiment of the present invention four test data communication device.Example IV is to realize this Invent the related device of test data communication means provided by the above embodiment.The side of software and/or hardware can be used in the device Formula is realized, and can generally be integrated in the electronic equipment for providing communication function, for example, computer equipment etc..Correspondingly, the present embodiment Device may include:
Communication data modified module 410 obtains test data for modifying to the destinations traffic data received;
Test data forwarding module 420, for the extract equipment directional information from the destinations traffic data, and will be described Test data is sent to and the matched target device of equipment directional information;Wherein, the test data is used for the target Equipment is tested, and target device includes server or client, and the communication between the server and the client passes through The intermediate equipment is realized.
The embodiment of the present invention by being arranged intermediate equipment in the communication link of server and client, realize server with Communication data between client is forwarded by intermediate equipment, and is repaired by intermediate equipment to the communication equipment received Changing, obtains test data and be sent in the target device of direction, realization automatically distorts communication data in communication process, Test data is formed, carries out robustness testing to target device, solves and distorts number needed for obtaining test in the prior art According to high labor cost, difficulty is big and low efficiency the problem of, realize automatic altered data, increase the diversity of altered data, Simplify altered data process, reduces the difficulty of altered data, improve the efficiency of altered data, to improve testing efficiency and test Effect.
Further, the communication data modified module 410, is specifically used for: institute's intermediate equipment leads to the target Letter data is input to data identification model trained in advance, obtains the mark of the marking types label of the data identification model output Infuse data;It is modified according to default rule of distorting to the labeled data according to the type label, obtains test data;Its In, the data identification model is to be trained to obtain according to the multiple training samples for the communication data for being labeled with data type in advance ?.
Further, the communication data modified module 410, is specifically used for: in the intermediate equipment to the mesh received Mark communication data is modified, and while obtaining test data, the intermediate equipment is by the destinations traffic data and the survey Data are tried as test data to storage, and generate the mark of the test data pair according to the attribute information of the test data pair Know information;The identification information is added to the message header in the test data;Wherein, the identification information is for searching institute State test data pair.
Test data communication means provided by any embodiment of the invention can be performed in above-mentioned test data communication device, tool The standby corresponding functional module of test data communication means and beneficial effect executed.
Embodiment five
Fig. 5 is the schematic diagram of one of embodiment of the present invention five test data communication device.Embodiment is fifth is that realize this Invent the related device of test data communication means provided by the above embodiment.The side of software and/or hardware can be used in the device Formula is realized, and can be generally integrated in the client of electronic equipment, for example, the client etc. of mobile terminal.Correspondingly, this implementation Example device may include:
Request data sending module 510, for sending request data to intermediate equipment, so that the intermediate equipment will be described Request data is transmitted to destination server;
Test data receives and respond module, for receiving the matched with the request data of the intermediate equipment forwarding Test data, and respond;
Problem information reporting module 520, for when being abnormal response events, acquiring asking for the exception response event Information is inscribed, and is reported.
The embodiment of the present invention by receiving the test data distorted in the normal course of communications of client and server, And the problem of acquiring the exception response event occurred in response information, and it is reported to test user, realize automatic execution software Test, improves the efficiency of software test.
Test method provided by any embodiment of the invention can be performed in above-mentioned test device, has the test method of execution Corresponding functional module and beneficial effect.
Embodiment six
Fig. 6 is the schematic diagram of one of embodiment of the present invention six test data communication device.Embodiment is sixth is that realize this Invent the related device of test data communication means provided by the above embodiment.The side of software and/or hardware can be used in the device Formula is realized, and can generally be integrated in server etc..Correspondingly, the device of the present embodiment may include:
Test data receiving module 610, for receiving the test data of intermediate equipment transmission;
Feedback data sending module 620 for acquisition and the matched feedback data of the test data, and is sent to described Intermediate equipment, so that the feedback data is transmitted to destination client by the intermediate equipment;
Problem information acquisition module 630, for when being abnormal response events, acquiring asking for the exception response event Information is inscribed, and is shown to test user;
Test module 640, for executing and referring to the test when receiving the test instruction of the test user input Matched test operation is enabled, test result is obtained and is shown to the test user.
The embodiment of the present invention by receiving the test data distorted in the normal course of communications of client and server, And the problem of acquiring the exception response event occurred in response information, and it is shown to test user, it realizes and executes stalwartness automatically Property test, improve the efficiency of robustness testing, while when receiving test instruction, testing server, and surveyed Test result may be implemented specific aim test, increase the flexibility of server test.
Test method provided by any embodiment of the invention can be performed in above-mentioned test device, has the test method of execution Corresponding functional module and beneficial effect.
Embodiment seven
Fig. 7 is a kind of structural schematic diagram for equipment that the embodiment of the present invention seven provides.Fig. 7, which is shown, to be suitable for being used to realizing this The block diagram of the example devices 701 of invention embodiment.The equipment 701 that Fig. 7 is shown is only an example, should not be to the present invention The function and use scope of embodiment bring any restrictions.Illustratively, equipment 701 is client, server or other electricity Sub- equipment.
As shown in fig. 7, equipment 701 is showed in the form of universal computing device.The component of equipment 701 may include but unlimited In one or more processor or processing unit 702, system storage 703, different system components (including system is connected Memory 703 and processing unit 702) bus 704.
Bus 704 indicates one of a few class bus structures or a variety of, including memory bus or Memory Controller, Peripheral bus, graphics acceleration port, processor or the local bus using any bus structures in a variety of bus structures.It lifts For example, these architectures include but is not limited to industry standard architecture (Industry Standard Architecture, ISA) bus, microchannel architecture (Micro Channel Architecture, MCA) bus, enhancing Type isa bus, Video Electronics Standards Association (Video Electronics Standards Association, VESA) local Bus and peripheral component interconnection (Peripheral Component Interconnect, PCI) bus.
Equipment 701 typically comprises a variety of computer system readable media.These media can be it is any can be by equipment The usable medium of 701 access, including volatile and non-volatile media, moveable and immovable medium.
System storage 703 may include the computer system readable media of form of volatile memory, such as deposit at random Access to memory (Random Access Memory, RAM) 705 and/or cache memory 706.Equipment 701 can be further Including other removable/nonremovable, volatile/non-volatile computer system storage mediums.Only as an example, storage system System 707 can be used for reading and writing immovable, non-volatile magnetic media (Fig. 7 do not show, commonly referred to as " hard disk drive ").To the greatest extent It is not shown in pipe Fig. 7, the disc driver for reading and writing to removable non-volatile magnetic disk (such as " floppy disk ") can be provided, with And to removable anonvolatile optical disk (such as compact disc read-only memory (Compact Disc Read-Only Memory, CD-ROM), digital video disk (Digital Video Disc-Read Only Memory, DVD-ROM) or other optical mediums) The CD drive of read-write.In these cases, each driver can be by one or more data media interfaces and total Line 704 is connected.System storage 703 may include at least one program product, which has one group (for example, at least one It is a) program module, these program modules are configured to perform the function of various embodiments of the present invention.
Program/utility 709 with one group of (at least one) program module 708, can store and deposit in such as system In reservoir 703, such program module 708 include --- but being not limited to --- operating system, one or more application program, It may include the reality of network environment in other program modules and program data, each of these examples or certain combination It is existing.Program module 708 usually executes function and/or method in embodiment described in the invention.
Equipment 701 can also be communicated with one or more external equipments 710 (such as keyboard, sensing equipment etc.), can also be with One or more enables a user to the equipment interacted with the equipment 701 communication, and/or with enable the equipment 701 and one Or a number of other any equipment (such as network interface card, modem etc.) communications for calculating equipment and being communicated.This communication can To be carried out by input/output (Input/Output, I/O) interface 712.Also, equipment 701 can also pass through network adapter 713 with one or more network (such as local area network (Local Area Network, LAN), wide area network (Wide Area Network, WAN) and/or public network, such as internet) communication.As shown, network adapter 713 by bus 704 with Other modules of equipment 701 communicate.It should be understood that although being not shown in Fig. 7, can with bonding apparatus 701 using other hardware and/ Or software module, including but not limited to: microcode, device driver, redundant processing unit, external disk drive array, disk Array (Redundant Arrays of Inexpensive Disks, RAID) system, tape drive and data backup is deposited Storage system etc..
Processing unit 702 by the program that is stored in system storage 703 of operation, thereby executing various function application with And data processing, such as realize a kind of test data communication means provided by the embodiment of the present invention or test method.
Implement eight
The embodiment of the present invention eight provides a kind of computer readable storage medium, is stored thereon with computer program, the journey The test data communication means provided such as all inventive embodiments of the application is provided when sequence is executed by processor:
That is, realization when the program is executed by processor: intermediate equipment modifies to the destinations traffic data received, Obtain test data;Intermediate equipment extract equipment directional information from the destinations traffic data, and by the test number According to being sent to and the matched target device of equipment directional information;Wherein, the test data for the target device into Row test, target device include server or client, and the communication between the server and the client passes through in described Between equipment realize.
Alternatively, inventive embodiments provide when the program is executed by processor test method namely the program are by processor Realize when execution: client sends request data to intermediate equipment, so that the request data is transmitted to by the intermediate equipment Destination server;The client receive intermediate equipment forwarding with the matched test data of the request data, and ring It answers;When being abnormal response events, the problem of client acquires the exception response event information, and report.
Alternatively, inventive embodiments provide when the program is executed by processor test method namely the program are by processor Realize when execution: server receives the test data that intermediate equipment is sent;The server acquisition is matched with the test data Feedback data, and the intermediate equipment is sent to, so that the feedback data is transmitted to target customer by the intermediate equipment End;When being abnormal response events, information the problem of exception response event described in the collection of server, and it is shown to test User;When receiving the test instruction of the test user input, the server is executed and the test instructions match Test operation obtains test result and is shown to the test user.
The computer storage medium of the embodiment of the present invention, can be using any of one or more computer-readable media Combination.Computer-readable medium can be computer-readable signal media or computer readable storage medium.It is computer-readable Storage medium for example may be-but not limited to-the system of electricity, magnetic, optical, electromagnetic, infrared ray or semiconductor, device or Device, or any above combination.The more specific example (non exhaustive list) of computer readable storage medium includes: tool There are electrical connection, the portable computer diskette, hard disk, RAM, read-only memory (Read Only of one or more conducting wires Memory, ROM), erasable programmable read only memory (Erasable Programmable Read Only Memory, EPROM), flash memory, optical fiber, portable CD-ROM, light storage device, magnetic memory device or above-mentioned any appropriate combination. In this document, it includes or the tangible medium of storage program that the program can be by that computer readable storage medium, which can be any, Instruction execution system, device or device use or in connection.
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 It is not limited to --- electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media can also be Any computer-readable medium other than computer readable storage medium, which can send, propagate or Transmission is for by the use of instruction execution system, device or device or program in connection.
The program code for including on computer-readable medium can transmit with any suitable medium, including --- but it is unlimited In --- wireless, electric wire, optical cable, radio frequency (RadioFrequency, RF) etc. or above-mentioned any appropriate group It closes.
The computer for executing operation of the present invention can be write with one or more programming languages or combinations thereof Program code, described program design language include object oriented program language-such as Java, Smalltalk, C++, It further include conventional procedural programming language-such as " C " language or similar programming language.Program code can be with It fully executes, partly execute on the user computer on the user computer, being executed as an independent software package, portion Divide and partially executes or executed on a remote computer or server completely on the remote computer on the user computer.? It is related in the situation of remote computer, remote computer can pass through the network of any kind --- including LAN or WAN --- even It is connected to subscriber computer, or, it may be connected to outer computer (such as pass through internet using ISP Connection).
Note that the above is only a better embodiment of the present invention and the applied technical principle.It will be appreciated by those skilled in the art that The invention is not limited to the specific embodiments described herein, be able to carry out for a person skilled in the art it is various it is apparent variation, It readjusts and substitutes without departing from protection scope of the present invention.Therefore, although being carried out by above embodiments to the present invention It is described in further detail, but the present invention is not limited to the above embodiments only, without departing from the inventive concept, also It may include more other equivalent embodiments, and the scope of the invention is determined by the scope of the appended claims.

Claims (10)

1. a kind of test data communication means characterized by comprising
Intermediate equipment modifies to the destinations traffic data received, obtains test data;
Intermediate equipment extract equipment directional information from the destinations traffic data, and by the test data be sent to The matched target device of equipment directional information;
Wherein, the test data is tested for the target device, and target device includes server or client, described Communication between server and the client is realized by the intermediate equipment.
2. the method according to claim 1, wherein the intermediate equipment to the destinations traffic data received into Row modification, obtains test data, comprising:
The destinations traffic data are input to data identification model trained in advance by the intermediate equipment, are obtained the data and are known The labeled data of the marking types label of other model output;
It is modified according to default rule of distorting to the labeled data according to the type label, obtains test data;
Wherein, the data identification model is carried out according to the multiple training samples for the communication data for being labeled with data type in advance What training obtained.
3. the method according to claim 1, wherein in the intermediate equipment to the destinations traffic data received It modifies, while obtaining test data, further includes:
The intermediate equipment using the destinations traffic data and the test data as test data to storage, and according to described The attribute information of test data pair generates the identification information of the test data pair;
The identification information is added to the message header in the test data;Wherein, the identification information is described for searching Test data pair.
4. a kind of test method characterized by comprising
Client sends request data to intermediate equipment, so that the request data is transmitted to destination service by the intermediate equipment Device;
The client receive intermediate equipment forwarding with the matched test data of the request data, and respond;
When being abnormal response events, the problem of client acquires the exception response event information, and report.
5. a kind of test method characterized by comprising
Server receives the test data that intermediate equipment is sent;
The server obtains and the matched feedback data of the test data, and is sent to the intermediate equipment, so that described The feedback data is transmitted to destination client by intermediate equipment;
When being abnormal response events, information the problem of exception response event described in the collection of server, and it is shown to survey Family on probation;
When receiving the test instruction of the test user input, the server executes the survey with the test instructions match Examination operation, obtains test result and is shown to the test user.
6. a kind of test data communication device characterized by comprising
Communication data modified module obtains test data for modifying to the destinations traffic data received;
Test data forwarding module, for the extract equipment directional information from the destinations traffic data, and by the test number According to being sent to and the matched target device of equipment directional information;Wherein, the test data for the target device into Row test, target device include server or client, and the communication between the server and the client passes through in described Between equipment realize.
7. a kind of test device, which is characterized in that be set in client, comprising:
Request data sending module, for sending request data to intermediate equipment, so that the intermediate equipment is by the number of request According to being transmitted to destination server;
Test data receives and respond module, for receiving intermediate equipment forwarding and the matched test of the request data Data, and respond;
Problem information reporting module, information the problem of for when being abnormal response events, acquiring the exception response event, And it reports.
8. a kind of test device, which is characterized in that be set in server, comprising:
Test data receiving module, for receiving the test data of intermediate equipment transmission;
Feedback data sending module for acquisition and the matched feedback data of the test data, and is sent to the centre and sets It is standby, so that the feedback data is transmitted to destination client by the intermediate equipment;
Problem information acquisition module, information the problem of for when being abnormal response events, acquiring the exception response event, And it is shown to test user;
Test module, for executing and the test instructions match when receiving the test instruction of the test user input Test operation, obtain test result and be shown to the test user.
9. a kind of equipment including memory, processor and stores the computer journey that can be run on a memory and on a processor Sequence, which is characterized in that the processor is realized when executing described program as test data as claimed in any one of claims 1-3 is logical The test method of letter method or realization as described in any in claim 4 or 5.
10. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the program is by processor Such as test data communication means as claimed in any one of claims 1-3 is realized when execution or is realized as appointed in claim 4 or 5 Test method described in one.
CN201910325025.1A 2019-04-22 2019-04-22 Test data communication, test method, device, equipment and storage medium Active CN110069413B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910325025.1A CN110069413B (en) 2019-04-22 2019-04-22 Test data communication, test method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910325025.1A CN110069413B (en) 2019-04-22 2019-04-22 Test data communication, test method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN110069413A true CN110069413A (en) 2019-07-30
CN110069413B CN110069413B (en) 2020-11-24

Family

ID=67368490

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910325025.1A Active CN110069413B (en) 2019-04-22 2019-04-22 Test data communication, test method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110069413B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112115062A (en) * 2020-09-28 2020-12-22 海尔优家智能科技(北京)有限公司 Method and device for detecting attribute information, storage medium and electronic device
WO2021042914A1 (en) * 2019-09-02 2021-03-11 深圳壹账通智能科技有限公司 Test data generation method and apparatus, computer device and storage medium
CN113419968A (en) * 2021-08-20 2021-09-21 北京达佳互联信息技术有限公司 Application testing method and device, electronic equipment and storage medium
CN114726577A (en) * 2022-03-02 2022-07-08 武汉天喻信息产业股份有限公司 Communication system for testing and data tampering method
US20220269789A1 (en) * 2021-02-23 2022-08-25 Infocyte, Inc. Computer system security scan and response

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105608381A (en) * 2015-12-18 2016-05-25 北京奇虎科技有限公司 Application test method and system
CN108268375A (en) * 2018-01-12 2018-07-10 深圳壹账通智能科技有限公司 Applied program testing method, device, computer equipment and storage medium
US20190042400A1 (en) * 2017-08-07 2019-02-07 Appvance Inc. Systems, methods and devices for ai-driven automatic test generation
CN109542781A (en) * 2018-11-14 2019-03-29 联动优势科技有限公司 Block chain common recognition test of heuristics method, apparatus, computing device and storage medium
CN109634861A (en) * 2018-12-11 2019-04-16 网易(杭州)网络有限公司 Test method, device, processor and the terminal of network game protocols

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105608381A (en) * 2015-12-18 2016-05-25 北京奇虎科技有限公司 Application test method and system
US20190042400A1 (en) * 2017-08-07 2019-02-07 Appvance Inc. Systems, methods and devices for ai-driven automatic test generation
CN108268375A (en) * 2018-01-12 2018-07-10 深圳壹账通智能科技有限公司 Applied program testing method, device, computer equipment and storage medium
CN109542781A (en) * 2018-11-14 2019-03-29 联动优势科技有限公司 Block chain common recognition test of heuristics method, apparatus, computing device and storage medium
CN109634861A (en) * 2018-12-11 2019-04-16 网易(杭州)网络有限公司 Test method, device, processor and the terminal of network game protocols

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021042914A1 (en) * 2019-09-02 2021-03-11 深圳壹账通智能科技有限公司 Test data generation method and apparatus, computer device and storage medium
CN112115062A (en) * 2020-09-28 2020-12-22 海尔优家智能科技(北京)有限公司 Method and device for detecting attribute information, storage medium and electronic device
US20220269789A1 (en) * 2021-02-23 2022-08-25 Infocyte, Inc. Computer system security scan and response
US11610001B2 (en) * 2021-02-23 2023-03-21 Infocyte, Inc. Computer system security scan and response
CN113419968A (en) * 2021-08-20 2021-09-21 北京达佳互联信息技术有限公司 Application testing method and device, electronic equipment and storage medium
CN114726577A (en) * 2022-03-02 2022-07-08 武汉天喻信息产业股份有限公司 Communication system for testing and data tampering method

Also Published As

Publication number Publication date
CN110069413B (en) 2020-11-24

Similar Documents

Publication Publication Date Title
CN110069413A (en) Test data communication, test method, device, equipment and storage medium
CN110730246A (en) Distributed link tracking method under micro-service architecture
CN106095673A (en) Automated testing method based on WEB interface and system
CN108446221A (en) System detection method, device, computer equipment and storage medium
CN103856361A (en) Method and system for realizing remote debugging
CN106851513B (en) Method and system for testing electronic product
CN112187558B (en) Data verification method and device and electronic equipment
CN110941563B (en) Automatic script testing method and device
CN111061696B (en) Method and device for analyzing transaction message log
CN112367680B (en) External communication test method and device based on intelligent ammeter and computer equipment
CN108683704A (en) A kind of Socket network communications test method and its system, storage medium
CN110532191A (en) A kind of method for testing pressure, system and cluster
CN106776323A (en) Application testing method and device
CN109587351A (en) A kind of call test method, device, equipment and storage medium
CN109547430A (en) A kind of exploitation service gateway system and exploitation gateway
CN109902777A (en) Method based on handheld terminal real time inspection intelligent apparatus on-line testing result
CN110708216B (en) Switch LLDP protocol test method and test system
CN113760730A (en) Automatic testing method and device
CN117252149A (en) Chip verification method and device, chip verification system and readable storage medium
CN109446686B (en) Method for analyzing logical connection relation between devices in equipment
CN116436540A (en) LED display screen receiving card testing method and device, testing card and storage medium
CN107483294B (en) Method and device for monitoring network request
CN105282007B (en) A kind of method, server and its system that social group is added
CN114416597A (en) Test case record generation method and device
CN107659949A (en) A kind of wireless router cloud service functional interface method of testing and system

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
CP02 Change in the address of a patent holder

Address after: 215000 17F, friendship time building, No. 68, Qitai Road, Suzhou Industrial Park, Suzhou area, China (Jiangsu) pilot Free Trade Zone, Suzhou, Jiangsu

Patentee after: SUZHOU YIGE NETWORK TECHNOLOGY Co.,Ltd.

Address before: Room 101, Building 22, No. 208, Tongyuan Road, Suzhou Industrial Park, Jiangsu Province 215006

Patentee before: SUZHOU YIGE NETWORK TECHNOLOGY Co.,Ltd.

CP02 Change in the address of a patent holder