CN111083013A - Test method and device based on flow playback, electronic equipment and storage medium - Google Patents

Test method and device based on flow playback, electronic equipment and storage medium Download PDF

Info

Publication number
CN111083013A
CN111083013A CN201911313027.5A CN201911313027A CN111083013A CN 111083013 A CN111083013 A CN 111083013A CN 201911313027 A CN201911313027 A CN 201911313027A CN 111083013 A CN111083013 A CN 111083013A
Authority
CN
China
Prior art keywords
interface
test
flow
updating
interfaces
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
CN201911313027.5A
Other languages
Chinese (zh)
Other versions
CN111083013B (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 CN201911313027.5A priority Critical patent/CN111083013B/en
Publication of CN111083013A publication Critical patent/CN111083013A/en
Application granted granted Critical
Publication of CN111083013B publication Critical patent/CN111083013B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0876Network utilisation, e.g. volume of load or congestion level

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Environmental & Geological Engineering (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Computer And Data Communications (AREA)

Abstract

The application provides a test method, a device, electronic equipment and a storage medium based on flow playback, wherein the test method comprises the following steps: acquiring flow on lines within a preset time period, wherein each flow comprises interface information and request parameters; generating an interface relation diagram corresponding to an interface represented by interface information in flow based on preset transmission logic between first interfaces; generating a test flow set based on the interface relation graph and at least one request parameter corresponding to each interface; and testing the system to be tested based on the test flow in the test flow set to obtain a test result of the system to be tested. According to the method and the device, the flow expansion is carried out on the on-line flow, a more comprehensive test flow set capable of covering multi-dimensional layers is obtained, the test cost is reduced, the test period is shortened, the test efficiency is further improved, the test flow set covers more comprehensively on the multi-dimensional layers, and the test requirement under actual high availability can be met.

Description

Test method and device based on flow playback, electronic equipment and storage medium
Technical Field
The present application relates to the field of software testing technologies, and in particular, to a testing method and apparatus based on flow playback, an electronic device, and a storage medium.
Background
In the internet industry, internet enterprises generally face the characteristics of high business iteration speed, frequent online, high quality requirements and the like so as to guarantee the service quality of the services. For example, taking a network car booking as an example, in various complex space-time scenes of the network car booking, services of various complex scenes need to be iterated frequently, and a service system after each iteration is tested to ensure the availability of the service.
Currently, a method for testing a service system is as follows: the method comprises the steps of developing a test case corresponding to a set scene in advance, presetting an operation environment, input data, a test step and an expected result in the test case, enabling a business system to operate the input data according to the test step in the operation environment, and comparing an obtained output result with the expected result to obtain the test result of the business system.
However, the development and maintenance cost of the test case under each scene is high, the period is long, and the number of time-space scenes in the field of online booking of vehicles is huge (for example, millions of scenes are achieved only in transaction scenes), so that the test cost is high, the test period is long, the test efficiency is low, and the actual test requirements cannot be met.
Disclosure of Invention
In view of this, an object of the present application is to provide a testing method and apparatus based on flow playback, an electronic device, and a storage medium, where flow expansion is performed on the on-line flow to obtain a more comprehensive testing flow covering multidimensional levels, so as to reduce testing cost, shorten testing period, improve testing efficiency, and meet actual testing requirements.
In a first aspect, an embodiment of the present application provides a test method based on traffic playback, where the test method includes:
acquiring the flow on a line within a preset time period; each flow comprises interface information and request parameters;
generating an interface relation diagram corresponding to an interface represented by the interface information in the flow based on preset transmission logic between first interfaces;
generating a test flow set based on the interface relation graph and at least one request parameter corresponding to each interface; wherein the test flow set comprises at least one test flow;
and testing the system to be tested based on the test flow in the test flow set to obtain a test result of the system to be tested.
In a possible implementation manner, the generating an interface relationship diagram corresponding to an interface characterized by the interface information in the traffic based on preset transmission logic between first interfaces includes:
and generating an interface relation diagram corresponding to the interface represented by the interface information in the flow based on the transmission logic between the first interfaces and the first probability of data transmission between any two interfaces.
In one possible embodiment, determining the transmission logic between the first interfaces includes:
selecting a flow set corresponding to the same access event from the acquired flows;
and determining transmission logic between the first interfaces according to the calling sequence between the first interfaces represented by the first interface information in the flow set aiming at the flow set corresponding to each access event.
In a possible implementation, the generating a test traffic set based on the interface relationship diagram and at least one request parameter corresponding to each interface includes:
selecting at least one test interface link from the interface relation graph based on a first probability of data transmission between any two interfaces in the interface relation graph to obtain a test interface link set;
and aiming at each test interface link in the test interface link set, distributing a target request parameter for each interface in the test interface link to obtain a test flow set corresponding to the test interface link set.
In a possible implementation, the allocating target request parameters to each interface in the test interface link includes:
determining at least one request parameter corresponding to an interface represented by each piece of interface information based on the interface information and the request parameters included in the flow;
and aiming at each interface in the test interface link, randomly selecting a request parameter from at least one request parameter corresponding to the interface as a target request parameter corresponding to the interface.
In one possible embodiment, the testing method further includes:
acquiring the updating flow on the line within the preset time period; each updating flow comprises updating interface information and updating request parameters;
and updating the interface relation graph based on the transmission logic between the preset second interfaces and the updated interface represented by the updated interface information in the updated flow to obtain an updated interface relation graph.
In a possible implementation manner, the updating the interface relationship diagram based on the transmission logic between the preset second interfaces and the update interface represented by the update interface information in the update traffic to obtain an update interface relationship diagram includes:
and updating the interface relation graph based on the transmission logic between the second interfaces, the updating interfaces represented by the updating interface information in the updating flow and the second probability of data transmission between any two updating interfaces to obtain an updating interface relation graph.
In one possible embodiment, the testing method further includes:
responding to modification operation aiming at the interface relation graph, and updating the interface relation graph to obtain an updated interface relation graph; wherein the modifying operation comprises at least one of: delete operation, update operation, add operation.
In a possible implementation manner, the testing the system to be tested based on the test traffic in the test traffic set to obtain the test result of the system to be tested, includes:
respectively inputting the test flow in the test flow set into a system to be tested and a reference system to obtain a first operation result of the system to be tested on the test flow and a second operation result of the reference system on the test flow;
and generating a test result of the system to be tested according to the first operation result and the second operation result.
In a possible implementation manner, the testing the system to be tested based on the test traffic in the test traffic set to obtain the test result of the system to be tested, includes:
and inputting the test flow in the test flow set into a system to be tested, and generating a test result of the system to be tested according to a third operation result of the system to be tested on the test flow.
In a second aspect, an embodiment of the present application further provides a test apparatus based on flow playback, where the test apparatus includes:
the first acquisition module is used for acquiring the flow on the line within the preset time period; each flow comprises interface information and request parameters;
the first generation module is used for generating an interface relation graph corresponding to an interface represented by the interface information in the flow based on transmission logic between preset first interfaces;
the second generation module is used for generating a test flow set based on the interface relation graph and at least one request parameter corresponding to each interface; wherein the test flow set comprises at least one test flow;
and the test module is used for testing the system to be tested based on the test flow in the test flow set to obtain a test result of the system to be tested.
In a possible implementation manner, when the first generating module generates an interface relationship diagram corresponding to an interface represented by the interface information in the traffic based on a transmission logic between preset first interfaces, the generating module includes:
and generating an interface relation diagram corresponding to the interface represented by the interface information in the flow based on the transmission logic between the first interfaces and the first probability of data transmission between any two interfaces.
In one possible embodiment, the test apparatus further includes:
the second acquisition module is used for selecting a flow set corresponding to the same access event from the acquired flows;
and the determining module is used for determining the transmission logic between the first interfaces according to the calling sequence between the first interfaces represented by the first interface information in the flow set aiming at the flow set corresponding to each access event.
In a possible implementation manner, the second generating module, when generating the test flow set based on the interface relationship diagram and at least one request parameter corresponding to each interface, includes:
selecting at least one test interface link from the interface relation graph based on a first probability of data transmission between any two interfaces in the interface relation graph to obtain a test interface link set;
and aiming at each test interface link in the test interface link set, distributing a target request parameter for each interface in the test interface link to obtain a test flow set corresponding to the test interface link set.
In a possible implementation manner, the second generating module, when allocating the target request parameter to each interface in the test interface link, includes:
determining at least one request parameter corresponding to an interface represented by each piece of interface information based on the interface information and the request parameters included in the flow;
and aiming at each interface in the test interface link, randomly selecting a request parameter from at least one request parameter corresponding to the interface as a target request parameter corresponding to the interface.
In one possible embodiment, the test apparatus further includes:
the third acquisition module is used for acquiring the updating flow on the line within the preset time period; each updating flow comprises updating interface information and updating request parameters;
and the first updating module is used for updating the interface relation graph based on the transmission logic between the preset second interfaces and the updating interface represented by the updating interface information in the updating flow to obtain an updating interface relation graph.
In a possible implementation manner, the updating module, when updating the interface relationship diagram based on a transmission logic between preset second interfaces and an updated interface represented by the updated interface information in the update traffic to obtain an updated interface relationship diagram, includes:
and updating the interface relation graph based on the transmission logic between the second interfaces, the updating interfaces represented by the updating interface information in the updating flow and the second probability of data transmission between any two updating interfaces to obtain an updating interface relation graph.
In one possible embodiment, the test apparatus further includes:
the second updating module is used for responding to the modification operation aiming at the interface relation graph and updating the interface relation graph to obtain an updated interface relation graph; wherein the modifying operation comprises at least one of: delete operation, update operation, add operation.
In a possible implementation manner, when the testing module tests the system to be tested based on the testing traffic in the testing traffic set to obtain the testing result of the system to be tested, the testing module includes:
respectively inputting the test flow in the test flow set into a system to be tested and a reference system to obtain a first operation result of the system to be tested on the test flow and a second operation result of the reference system on the test flow;
and generating a test result of the system to be tested according to the first operation result and the second operation result.
In a possible implementation manner, when the testing module tests the system to be tested based on the testing traffic in the testing traffic set to obtain the testing result of the system to be tested, the testing module includes:
and inputting the test flow in the test flow set into a system to be tested, and generating a test result of the system to be tested according to a third operation result of the system to be tested on the test flow.
In a third aspect, an embodiment of the present application further provides an electronic device, including: a processor, a storage medium and a bus, wherein the storage medium stores machine-readable instructions executable by the processor, when the electronic device runs, the processor and the storage medium communicate through the bus, and the processor executes the machine-readable instructions to execute the steps of the test method based on the flow playback according to any one of the first aspect.
In a fourth aspect, the present application further provides a computer-readable storage medium, on which a computer program is stored, where the computer program is executed by a processor to perform the steps of the test method based on flow playback according to any one of the first aspect.
According to the test method, the test device, the electronic equipment and the storage medium based on flow playback, flow on lines within a preset time period is obtained, each flow comprises interface information and request parameters, an interface relation graph corresponding to an interface represented by the interface information in the flow is generated based on transmission logic between preset first interfaces, then test flow is generated based on the interface relation graph and at least one request parameter corresponding to each interface, and a system to be tested is tested based on the test flow. Therefore, a more comprehensive test flow set capable of covering multi-dimensional levels is obtained by performing flow expansion on the on-line flow, the test cost is reduced, the test period is shortened, and the test efficiency is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained from the drawings without inventive effort.
Fig. 1 is a flowchart illustrating a test method based on traffic playback according to an embodiment of the present application;
FIG. 2 is a diagram illustrating an interface relationship diagram provided by an embodiment of the present application;
FIG. 3 is a flow chart illustrating another testing method based on flow playback according to an embodiment of the present application;
FIG. 4 is a flow chart illustrating another testing method based on flow playback according to an embodiment of the present application;
FIG. 5 is a flow chart illustrating another testing method based on flow playback according to an embodiment of the present application;
FIG. 6 is a diagram illustrating an update interface relationship diagram provided by an embodiment of the present application;
FIG. 7 is a flow chart illustrating another testing method based on flow playback according to an embodiment of the present application;
fig. 8 is a schematic structural diagram illustrating a test apparatus based on flow playback according to an embodiment of the present application;
fig. 9 shows a schematic structural diagram of an electronic device provided in an embodiment of the present application.
Detailed Description
In order to make the purpose, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it should be understood that the drawings in the present application are for illustrative and descriptive purposes only and are not used to limit the scope of protection of the present application. Additionally, it should be understood that the schematic drawings are not necessarily drawn to scale. The flowcharts used in this application illustrate operations implemented according to some embodiments of the present application. It should be understood that the operations of the flow diagrams may be performed out of order, and steps without logical context may be performed in reverse order or simultaneously. One skilled in the art, under the guidance of this application, may add one or more other operations to, or remove one or more operations from, the flowchart.
In addition, the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. The components of the embodiments of the present application, generally described and illustrated in the figures herein, can be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present application, presented in the accompanying drawings, is not intended to limit the scope of the claimed application, but is merely representative of selected embodiments of the application. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present application without making any creative effort, shall fall within the protection scope of the present application.
To enable those skilled in the art to utilize the present disclosure, the following embodiments are presented in conjunction with a specific application scenario, "network appointment area". It will be apparent to those skilled in the art that the general principles defined herein may be applied to other embodiments and applications without departing from the spirit and scope of the application. Although the present application is described primarily in the context of the "network appointment area," it should be understood that this is merely an exemplary embodiment and that the present application may also be applied to the "e-commerce area," "gaming area," and the like.
It should be noted that in the embodiments of the present application, the term "comprising" is used to indicate the presence of the features stated hereinafter, but does not exclude the addition of further features.
Considering the following characteristics in the field of online booking of cars, firstly, a service scene is extremely complex, a car model, a user and a complex space-time scene are distinguished, and only a transaction scene reaches a million level; secondly, the service architecture is complex, involving hundreds of services; third, the speed of service iteration is very fast. Fourth, service availability requirements are high. Based on the above characteristics corresponding to the network appointment vehicle field, in order to guarantee the service quality of the service provided by the network appointment vehicle platform, the service after each iteration needs to be tested in each scene, the test workload is huge, and in the current method for testing the service through developing and maintaining test cases, the test cost is high, the test period is long, so that the test efficiency is low, and the actual test requirements cannot be met.
Based on this, the embodiment of the application provides a test method and device based on flow playback, an electronic device and a storage medium, and a more comprehensive test flow covering a multi-dimensional level is obtained by performing flow expansion on the on-line flow, so that the test cost is reduced, the test period is shortened, the test efficiency is improved, and the actual test requirements can be met.
The following describes in detail the test method based on traffic playback provided in the embodiment of the present application with reference to the field of car booking over the internet, where the test method may be applied to a server (i.e., a target server, which may be any server providing services in a car booking over the internet platform, and is different from the server providing services in the car booking over the internet platform), and may also be applied to a terminal device; the following description will take the above test method applied to the target server as an example.
Referring to fig. 1, a schematic flow diagram of a testing method based on traffic playback provided in an embodiment of the present application may be applied to a target server, where the testing method specifically includes the following steps:
s101, acquiring flow on a line within a preset time period; wherein, each flow comprises interface information and request parameters.
In the field of network appointment, a network appointment platform comprises a complex service architecture, for example, a plurality of servers are usually included, each server provides at least one service, and the services provided by different servers are different, and correspondingly, hundreds of services are usually provided in the network appointment platform; the servers can be mutually invoked to respond to the service request of the user.
In the embodiment of the application, when traffic is collected, the target server usually collects online traffic within a preset time period from a plurality of servers corresponding to the online car booking platform, where the online traffic refers to a service request (such as an HTTP request) of each service provided by a user to the online car booking platform; each of the traffic includes a Uniform Resource Locator (URL) address (i.e., interface information, where an interface represented by the interface information refers to a data transmission channel developed by an HTTP protocol) and a corresponding request parameter. Here, the request parameter includes a request method, an Identity Document (ID), a departure place, a destination, a default parameter, a variable range, a type, and the like.
In this embodiment of the present application, the preset time period may be set according to a limit time period of a storage system of a production environment (i.e., each server), so that the preset time period is smaller than the limit time period. For example, the storage system limits the time period (the time period required for one time of maximum collection) to 2 hours, and accordingly, the preset time period may be set to 1 hour.
S102, generating an interface relation graph corresponding to the interface represented by the interface information in the flow based on preset transmission logic between the first interfaces.
In this embodiment, some services (i.e., first services) provided by the network appointment platform have a preset transmission logic, where the preset transmission logic refers to a preset calling sequence, for example, a service for receiving an order is called after the service for sending an order, and correspondingly, the first interface corresponding to the first service also has a preset transmission logic (i.e., a preset calling sequence).
In the embodiment of the present application, first interface information used for characterizing a first interface is selected from acquired traffic, and a first candidate interface relationship diagram corresponding to the first interface characterized by the selected first interface information is generated based on a transmission logic (i.e., a call sequence) corresponding to the first interface, and then, other interfaces corresponding to other interface information except the first interface information in the acquired traffic are randomly inserted into an ordered interface (i.e., an ordered first interface) of the first candidate interface relationship diagram, so as to obtain an interface relationship diagram corresponding to an interface characterized by each interface information in the acquired traffic. The interface relation graph comprises interface relations corresponding to interfaces represented by the interface information in the acquired flow.
As shown in fig. 2, the interface relationship diagram includes an interface a, an interface B, an interface D, an interface G, an interface F, an interface C, and an interface E; the interface a, the interface B, the interface D, the interface G, and the interface F are directed interfaces (i.e., first interfaces having a preset calling order), for example, the interface B is called after the interface a, and the interface D is called after the interface B; wherein interface C and interface E represent undirected interfaces.
S103, generating a test flow set based on the interface relation graph and at least one request parameter corresponding to each interface; wherein the test flow set comprises at least one test flow.
In the embodiment of the application, after an interface relation graph is generated, a plurality of test interface links are selected from the interface relation graph to form a test interface link set; aiming at each test interface link in the test interface link set, distributing a target request parameter for each interface in the test interface links to obtain test flow corresponding to the test interface links; after the target request parameter distribution of all the test interface links in the test interface link set is completed by the method, the test flow set corresponding to the test interface link set is obtained.
And S104, testing the system to be tested based on the test flow in the test flow set to obtain a test result of the system to be tested.
In the embodiment of the application, regression testing, pressure testing or problem troubleshooting testing can be performed on the system to be tested based on the testing flow, and then the testing result is obtained. The system to be tested is also called a service to be tested.
The regression testing is to test the original functions of the system to be tested after some functions of the system to be tested are modified (for example, a new function is added, or the original functions are updated, or some original functions are deleted). The pressure test is to continuously pressurize the system to be tested (i.e. input a large amount of flow into the system to be tested), force the system to be tested to operate under the limit condition, and observe the degree to which the system to be tested can operate, so as to find out the performance defect. The problem troubleshooting test is to input a target flow rate to a system to be tested and determine a problem of the system to be tested on a certain function.
For example, in the regression test, the test traffic set obtained from the interface relationship diagram is a traffic set which is more comprehensive in coverage from three levels of request parameters, interfaces and scenes, so that the coverage comprehensiveness is ensured, and the test effect is improved. In addition, in the embodiment of the application, the online flow is acquired to generate the interface relation diagram, so that a large amount of high-frequency data acquisition of the production environment is not needed, and the engineering is hardly limited by a storage system of the production environment.
According to the test method based on flow playback, the flow on the line is expanded, a test flow set which is more comprehensive in coverage of a multi-dimensional level comprising scenes, interfaces and request parameters is obtained, the test cost is reduced, the test period is shortened, the test efficiency is further improved, the test flow set is more comprehensive in coverage of the multi-dimensional level, and the test requirement under actual high availability is met.
Further, in the test method based on traffic playback provided in the embodiment of the present application, the generating an interface relationship diagram corresponding to an interface represented by the interface information in the traffic based on a transmission logic between preset first interfaces includes:
and generating an interface relation diagram corresponding to the interface represented by the interface information in the flow based on the transmission logic between the first interfaces and the first probability of data transmission between any two interfaces.
In the embodiment of the application, a first probability of data transmission between any two interfaces (i.e. a first probability of calling between any two interfaces) is pre-configured in a target server, and after a first candidate interface relational graph is obtained, a first probability of calling between any two interfaces in the first candidate relational graph is generated; correspondingly, after the interface relation graph is obtained, a first probability of calling between any two interfaces in the interface relation graph is generated. When each interface is used as a parent interface, the sum of the first probabilities of calling at least one corresponding child interface is 1.
As shown in fig. 2, the number on the connecting line between each two interfaces represents a first weight (i.e., a first probability) between the two interfaces, wherein the sum of the first weights (i.e., the sum of the first probabilities) of at least one connecting line corresponding to each interface is 1. For example, the number 2/3 on the connection between the interface a and the interface B indicates that the first probability that the interface a calls the interface B is 2/3, the number 1/3 on the connection between the interface a and the interface C indicates that the first probability that the interface a calls the interface C is 1/3, and the sum of the first weights of the two connections of the interface a is 2/3+1/3 which is 1.
In this embodiment of the present application, the target server may be preconfigured with the transmission logic between the first interfaces, or may automatically determine the transmission logic between the first interfaces, and as shown in fig. 3, the method for automatically determining the transmission logic between the first interfaces for the target server specifically includes:
s301, selecting a flow set corresponding to the same access event from the acquired flows.
In an embodiment of the application, an access event comprises one of the following events: passenger access event, driver access event, an order event (including access events corresponding to drivers and passengers respectively corresponding to the same order). Each access event corresponds to a flow set, and the flow set at least comprises one flow.
For example, the flow set corresponding to the passenger access event includes: the passenger opens the online taxi appointment client (flow 1), pops up the advertisement (flow 2), recommends the point of getting on the bus (flow 3) and checks the historical order (flow 4).
For another example, a flow set corresponding to an order event includes: the passenger opens the online car booking client (flow 1), pops up the advertisement (flow 2), recommends the point of getting on the bus (flow 3), inputs the destination (flow 4), sends the order (flow 5), pays (flow 6), the driver opens the online car booking client (flow 7), pops up the advertisement (flow 8), receives the order (flow 9), confirms to arrive the destination (flow 10).
In the embodiment of the application, flow sets corresponding to the same access event are selected from the acquired online flows to obtain at least one flow set; each flow set corresponds to one access event, the access events corresponding to different flow sets are different, and each flow set at least comprises one flow.
S302, aiming at the flow set corresponding to each access event, determining transmission logic between first interfaces according to a calling sequence between the first interfaces represented by first interface information in the flow set.
In the embodiment of the application, for a flow set corresponding to each access event, first interface information in the flow set is acquired, and based on a calling sequence between first interfaces represented by the first interface information, transmission logic between the first interfaces corresponding to the flow set is determined; after the above processing is performed on the flow sets of all the access events, the transmission logic between the first interfaces corresponding to all the flow sets is obtained.
Further, as shown in fig. 4, in the test method based on traffic playback provided in the embodiment of the present application, the generating a test traffic set based on the interface relationship diagram and at least one request parameter corresponding to each interface includes:
s401, based on the first probability of data transmission between any two interfaces in the interface relation graph, selecting at least one test interface link from the interface relation graph to obtain a test interface link set.
In the embodiment of the application, an interface relation graph, that is, an interface tree graph, determines, for each interface in the interface tree graph, a calling sub-interface corresponding to the interface based on a first probability (that is, a first probability of calling) that the interface respectively performs data transmission with each corresponding sub-interface when the interface calls its sub-interface as a parent interface, and further obtains a test interface link; a plurality of test interface links are selected through the method to form a test interface link set. The test interface link set comprises more test interface links corresponding to the sub-interfaces with higher calling probability.
As shown in fig. 2, when the interface a is used as a parent interface, the corresponding child interfaces are the interface B and the interface C, the first probability that the interface a calls the interface B is 2/3, and the first probability that the interface a calls the interface C is 1/3, so that more links including the interface a calling the interface B are selected from the selected test interface link set.
For example, based on the randomized algorithm, the interface relationship graph is subjected to traffic expansion (i.e., traffic expansion), and the obtained test interface chain is: a- > B- > D, A- > B- > E- > G, A- > C- > E- > G, A- > C- > F.
S402, aiming at each test interface link in the test interface link set, distributing target request parameters for each interface in the test interface link set to obtain a test flow set corresponding to the test interface link set.
In the embodiment of the application, at least one request parameter corresponding to an interface represented by each piece of interface information is determined based on the interface information and the request parameters included in the acquired flow; and aiming at each interface in the test interface link, randomly selecting a request parameter from at least one request parameter corresponding to the interface as a target request parameter corresponding to the interface.
For example, the request parameters corresponding to the interface 1 are determined, for example, the interface 1 corresponds to the request parameter 1, the request parameter 2, and the request parameter 3, and accordingly, one request parameter (for example, the request parameter 2) may be randomly selected from the request parameter 1, the request parameter 2, and the request parameter 3 to serve as the target request parameter corresponding to the interface 1.
In this embodiment of the present application, the target server may update the interface relationship diagram in the following two ways:
first, as shown in fig. 5, a test method based on flow playback provided in an embodiment of the present application further includes:
s501, obtaining the updating flow on the line within the preset time period; wherein, each update flow comprises update interface information and update request parameters.
In the embodiment of the present application, the acquisition manner of the updated traffic is the same as the acquisition manner of the current traffic in step 101.
The update traffic at least includes a part of update traffic that is different from the traffic obtained in step 101, specifically, the interface information is different (that is, the interfaces represented by the interface information are different) and/or the request parameter is different. That is, at least a part of the update interfaces corresponding to the update traffic are different from the interfaces corresponding to the previous traffic, and may further include that a part of the update interfaces are the same as the interfaces corresponding to the previous traffic.
S502, updating the interface relation graph based on the transmission logic between the preset second interfaces and the updating interface represented by the updating interface information in the updating flow to obtain an updating interface relation graph.
In the embodiment of the present application, some services (i.e., second services) provided by the network appointment platform have a preset transmission logic, where the preset transmission logic refers to a preset calling sequence, for example, a payment service is called after an order receiving service, and correspondingly, the second interface corresponding to the second service also has a preset transmission logic.
In the embodiment of the application, second interface information used for representing a second interface is selected from the obtained update flow, the interface relationship diagram is updated based on the transmission logic (i.e. the calling sequence) corresponding to the second interface and the update interface represented by the update interface information in the update flow, a second candidate interface relationship diagram is obtained, and then interfaces corresponding to other interface information except the second interface information in the obtained update flow are randomly inserted into the ordered interfaces (including the first interface and the second interface) of the second candidate interface relationship diagram, so that the update interface relationship diagram is obtained; the updated interface relation graph comprises an interface relation corresponding to an interface represented by the interface information in the flow and an updated interface relation corresponding to an updated interface represented by the updated interface information in the updated flow.
Further, in the flow playback-based test method provided in this embodiment of the present application, the updating the interface relationship diagram based on the transmission logic between the preset second interfaces and the updated interface represented by the updated interface information in the updated flow to obtain an updated interface relationship diagram includes:
and updating the interface relation graph based on the transmission logic between the second interfaces, the updating interfaces represented by the updating interface information in the updating flow and the second probability of data transmission between any two updating interfaces to obtain an updating interface relation graph.
In the embodiment of the application, a second probability (that is, a second probability for calling between any two update interfaces) for data transmission between any two update interfaces is pre-configured in the target server, and after a second candidate interface relation graph is obtained, a second probability for calling between any two update interfaces in the second candidate relation graph is generated; correspondingly, after the updated interface relation graph is obtained, a second probability of calling between any two updated interfaces in the interface relation graph is generated. And when each update interface is used as a parent interface, calling the sum of the second probabilities of at least one corresponding child interface to be 1.
The second probability of data transmission between any two update interfaces may be the same as or different from the first probability.
Secondly, in this embodiment of the present application, the interface relationship diagram may be modified in the following manner, and the test method further includes:
responding to modification operation aiming at the interface relation graph, and updating the interface relation graph to obtain an updated interface relation graph; wherein the modifying operation comprises at least one of: delete operation, update operation, add operation.
In the embodiment of the present application, the modifying operation may be: the method comprises the steps of interface addition, interface deletion, interface updating and updating of the first probability corresponding to any two interfaces in an interface relation graph.
For example, as shown in the updated interface relationship diagram in fig. 6, the interface B in the interface relationship diagram in fig. 2 is taken down, and replaced with the interface X and the interface Y, so as to obtain the updated interface relationship diagram shown in fig. 6.
Further, in the embodiment of the present application, the purpose of the test is different, and the corresponding test modes are also different, specifically as follows:
first, as shown in fig. 7, in the regression test, the testing a system to be tested based on the test traffic in the test traffic set to obtain a test result of the system to be tested includes:
s701, respectively inputting the test flow in the test flow set into a system to be tested and a reference system to obtain a first operation result of the system to be tested on the test flow and a second operation result of the reference system on the test flow.
The reference system refers to a system applied in a production environment (i.e., a service applied in the production environment).
S702, generating a test result of the system to be tested according to the first operation result and the second operation result.
Secondly, in a pressure test or a problem troubleshooting test, the testing a system to be tested based on the test flow concentrated by the test flow to obtain a test result of the system to be tested, including:
and inputting the test flow in the test flow set into a system to be tested, and generating a test result of the system to be tested according to a third operation result of the system to be tested on the test flow.
In the embodiment of the application, intelligent flow playback based on a randomization algorithm is adopted, after online flow is collected, flow preprocessing is carried out to obtain an interface relation graph, randomization of three levels of request parameters, interfaces and scenes is carried out through the randomization algorithm to obtain a more comprehensive test flow set, and then the test flow is more comprehensive in the dimension coverage of the request parameters, the interfaces and the scenes.
Because the flow on the collection line is used for generating the interface relation diagram, a large amount of high-frequency collection of production environment data is not needed, and therefore, the engineering is hardly limited by a storage system of the production environment, and the usability is high.
According to the test method based on flow playback, the flow expansion is carried out on the flow on the line, a more comprehensive test flow set capable of covering multi-dimensional levels is obtained, compared with a test mode of developing and maintaining test cases, the test cost is reduced, the test period is shortened, the test efficiency is improved, the test flow set is more comprehensively covered on the multi-dimensional levels, and the test requirement under actual high availability can be met.
Based on the same inventive concept, a test device based on flow playback corresponding to the test method based on flow playback is also provided in the embodiments of the present application, and because the principle of solving the problem of the system in the embodiments of the present application is similar to the above-described test method based on flow playback in the embodiments of the present application, the implementation of the system may refer to the implementation of the method, and repeated details are not repeated.
As shown in fig. 8, an embodiment of the present application further provides a testing apparatus based on flow playback, where the testing apparatus includes:
a first obtaining module 801, configured to obtain a flow rate on a line within a preset time period; each flow comprises interface information and request parameters;
a first generating module 802, configured to generate an interface relationship diagram corresponding to an interface represented by the interface information in the traffic based on a preset transmission logic between first interfaces;
a second generating module 803, configured to generate a test flow set based on the interface relationship diagram and at least one request parameter corresponding to each interface; wherein the test flow set comprises at least one test flow;
the testing module 804 is configured to test the system to be tested based on the testing flow in the testing flow set, so as to obtain a testing result of the system to be tested.
In a possible implementation manner, when the first generating module generates an interface relationship diagram corresponding to an interface represented by the interface information in the traffic based on a transmission logic between preset first interfaces, the generating module includes:
and generating an interface relation diagram corresponding to the interface represented by the interface information in the flow based on the transmission logic between the first interfaces and the first probability of data transmission between any two interfaces.
In one possible embodiment, the test apparatus further includes:
the second acquisition module is used for selecting a flow set corresponding to the same access event from the acquired flows;
and the determining module is used for determining the transmission logic between the first interfaces according to the calling sequence between the first interfaces represented by the first interface information in the flow set aiming at the flow set corresponding to each access event.
In a possible implementation manner, the second generating module, when generating the test flow set based on the interface relationship diagram and at least one request parameter corresponding to each interface, includes:
selecting at least one test interface link from the interface relation graph based on a first probability of data transmission between any two interfaces in the interface relation graph to obtain a test interface link set;
and aiming at each test interface link in the test interface link set, distributing a target request parameter for each interface in the test interface link to obtain a test flow set corresponding to the test interface link set.
In a possible implementation manner, the second generating module, when allocating the target request parameter to each interface in the test interface link, includes:
determining at least one request parameter corresponding to an interface represented by each piece of interface information based on the interface information and the request parameters included in the flow;
and aiming at each interface in the test interface link, randomly selecting a request parameter from at least one request parameter corresponding to the interface as a target request parameter corresponding to the interface.
In one possible embodiment, the test apparatus further includes:
the third acquisition module is used for acquiring the updating flow on the line within the preset time period; each updating flow comprises updating interface information and updating request parameters;
and the first updating module is used for updating the interface relation graph based on the transmission logic between the preset second interfaces and the updating interface represented by the updating interface information in the updating flow to obtain an updating interface relation graph.
In a possible implementation manner, the updating module, when updating the interface relationship diagram based on a transmission logic between preset second interfaces and an updated interface represented by the updated interface information in the update traffic to obtain an updated interface relationship diagram, includes:
and updating the interface relation graph based on the transmission logic between the second interfaces, the updating interfaces represented by the updating interface information in the updating flow and the second probability of data transmission between any two updating interfaces to obtain an updating interface relation graph.
In one possible embodiment, the test apparatus further includes:
the second updating module is used for responding to the modification operation aiming at the interface relation graph and updating the interface relation graph to obtain an updated interface relation graph; wherein the modifying operation comprises at least one of: delete operation, update operation, add operation.
In a possible implementation manner, when the testing module tests the system to be tested based on the testing traffic in the testing traffic set to obtain the testing result of the system to be tested, the testing module includes:
respectively inputting the test flow in the test flow set into a system to be tested and a reference system to obtain a first operation result of the system to be tested on the test flow and a second operation result of the reference system on the test flow;
and generating a test result of the system to be tested according to the first operation result and the second operation result.
In a possible implementation manner, when the testing module tests the system to be tested based on the testing traffic in the testing traffic set to obtain the testing result of the system to be tested, the testing module includes:
and inputting the test flow in the test flow set into a system to be tested, and generating a test result of the system to be tested according to a third operation result of the system to be tested on the test flow.
According to the flow playback-based testing device, flow expansion is performed on the on-line flow, a more comprehensive testing flow set capable of covering multi-dimensional levels is obtained, testing cost is reduced, testing period is shortened, testing efficiency is improved, the testing flow set covers more comprehensively on the multi-dimensional levels, and testing requirements under actual high availability can be met.
As shown in fig. 9, an electronic device 900 provided in an embodiment of the present application includes: a processor 901, a memory 902 and a bus, wherein the memory 902 stores machine-readable instructions executable by the processor 901, when the electronic device runs, the processor 901 communicates with the memory 902 through the bus, and the processor 901 executes the machine-readable instructions to execute the steps of the test method based on the flow playback.
Specifically, the memory 902 and the processor 901 can be general memories and processors, which are not specifically limited herein, and when the processor 901 runs a computer program stored in the memory 902, the test method based on the traffic playback corresponding to the first server can be executed.
Corresponding to the above testing method based on flow playback, an embodiment of the present application further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program executes the steps of the above testing method based on flow playback.
It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the system and the apparatus described above may refer to corresponding processes in the method embodiments, and are not described in detail in this application. In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other ways. The above-described apparatus embodiments are merely illustrative, and for example, the division of the modules is merely a logical division, and there may be other divisions in actual implementation, and for example, a plurality of modules or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of devices or modules through some communication interfaces, and may be in an electrical, mechanical or other form.
The modules described as separate parts may or may not be physically separate, and parts displayed as modules may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a non-volatile computer-readable storage medium executable by a processor. Based on such understanding, the technical solution of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: various media capable of storing program codes, such as a U disk, a removable hard disk, a ROM, a RAM, a magnetic disk, or an optical disk.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (22)

1. A test method based on flow playback is characterized in that the test method comprises the following steps:
acquiring the flow on a line within a preset time period; each flow comprises interface information and request parameters;
generating an interface relation diagram corresponding to an interface represented by the interface information in the flow based on preset transmission logic between first interfaces;
generating a test flow set based on the interface relation graph and at least one request parameter corresponding to each interface; wherein the test flow set comprises at least one test flow;
and testing the system to be tested based on the test flow in the test flow set to obtain a test result of the system to be tested.
2. The method according to claim 1, wherein generating an interface relationship diagram corresponding to an interface represented by the interface information in the traffic based on a transmission logic between preset first interfaces includes:
and generating an interface relation diagram corresponding to the interface represented by the interface information in the flow based on the transmission logic between the first interfaces and the first probability of data transmission between any two interfaces.
3. The method for testing based on traffic playback according to claim 1, wherein determining the transmission logic between the first interfaces comprises:
selecting a flow set corresponding to the same access event from the acquired flows;
and determining transmission logic between the first interfaces according to the calling sequence between the first interfaces represented by the first interface information in the flow set aiming at the flow set corresponding to each access event.
4. The method according to claim 2, wherein generating a test traffic set based on the interface relationship diagram and at least one request parameter corresponding to each interface comprises:
selecting at least one test interface link from the interface relation graph based on a first probability of data transmission between any two interfaces in the interface relation graph to obtain a test interface link set;
and aiming at each test interface link in the test interface link set, distributing a target request parameter for each interface in the test interface link to obtain a test flow set corresponding to the test interface link set.
5. The method according to claim 4, wherein the allocating target request parameters to each interface in the test interface link comprises:
determining at least one request parameter corresponding to an interface represented by each piece of interface information based on the interface information and the request parameters included in the flow;
and aiming at each interface in the test interface link, randomly selecting a request parameter from at least one request parameter corresponding to the interface as a target request parameter corresponding to the interface.
6. The method of flow playback based testing of claim 2, further comprising:
acquiring the updating flow on the line within the preset time period; each updating flow comprises updating interface information and updating request parameters;
and updating the interface relation graph based on the transmission logic between the preset second interfaces and the updated interface represented by the updated interface information in the updated flow to obtain an updated interface relation graph.
7. The method according to claim 6, wherein the updating the interface relationship diagram based on the transmission logic between the preset second interfaces and the updated interface represented by the updated interface information in the updated traffic to obtain an updated interface relationship diagram includes:
and updating the interface relation graph based on the transmission logic between the second interfaces, the updating interfaces represented by the updating interface information in the updating flow and the second probability of data transmission between any two updating interfaces to obtain an updating interface relation graph.
8. The method of flow playback based testing of claim 1, further comprising:
responding to modification operation aiming at the interface relation graph, and updating the interface relation graph to obtain an updated interface relation graph; wherein the modifying operation comprises at least one of: delete operation, update operation, add operation.
9. The flow playback-based testing method of claim 1, wherein the step of testing the system to be tested based on the test flows in the test flow set to obtain the test result of the system to be tested comprises:
respectively inputting the test flow in the test flow set into a system to be tested and a reference system to obtain a first operation result of the system to be tested on the test flow and a second operation result of the reference system on the test flow;
and generating a test result of the system to be tested according to the first operation result and the second operation result.
10. The flow playback-based testing method of claim 1, wherein the step of testing the system to be tested based on the test flows in the test flow set to obtain the test result of the system to be tested comprises:
and inputting the test flow in the test flow set into a system to be tested, and generating a test result of the system to be tested according to a third operation result of the system to be tested on the test flow.
11. A test device based on traffic playback, the test device comprising:
the first acquisition module is used for acquiring the flow on the line within the preset time period; each flow comprises interface information and request parameters;
the first generation module is used for generating an interface relation graph corresponding to an interface represented by the interface information in the flow based on transmission logic between preset first interfaces;
the second generation module is used for generating a test flow set based on the interface relation graph and at least one request parameter corresponding to each interface; wherein the test flow set comprises at least one test flow;
and the test module is used for testing the system to be tested based on the test flow in the test flow set to obtain a test result of the system to be tested.
12. The device according to claim 11, wherein the first generating module, when generating the interface relationship diagram corresponding to the interface represented by the interface information in the traffic based on the transmission logic between the preset first interfaces, includes:
and generating an interface relation diagram corresponding to the interface represented by the interface information in the flow based on the transmission logic between the first interfaces and the first probability of data transmission between any two interfaces.
13. The flow playback based testing device of claim 11, wherein the testing device further comprises:
the second acquisition module is used for selecting a flow set corresponding to the same access event from the acquired flows;
and the determining module is used for determining the transmission logic between the first interfaces according to the calling sequence between the first interfaces represented by the first interface information in the flow set aiming at the flow set corresponding to each access event.
14. The apparatus for testing based on traffic playback according to claim 12, wherein the second generating module, when generating the test traffic set based on the interface relationship diagram and the at least one request parameter corresponding to each interface, comprises:
selecting at least one test interface link from the interface relation graph based on a first probability of data transmission between any two interfaces in the interface relation graph to obtain a test interface link set;
and aiming at each test interface link in the test interface link set, distributing a target request parameter for each interface in the test interface link to obtain a test flow set corresponding to the test interface link set.
15. The apparatus for testing based on traffic playback according to claim 14, wherein the second generating module, when allocating the target request parameter to each interface in the testing interface link, comprises:
determining at least one request parameter corresponding to an interface represented by each piece of interface information based on the interface information and the request parameters included in the flow;
and aiming at each interface in the test interface link, randomly selecting a request parameter from at least one request parameter corresponding to the interface as a target request parameter corresponding to the interface.
16. The flow playback based testing device of claim 12, wherein the testing device further comprises:
the third acquisition module is used for acquiring the updating flow on the line within the preset time period; each updating flow comprises updating interface information and updating request parameters;
and the first updating module is used for updating the interface relation graph based on the transmission logic between the preset second interfaces and the updating interface represented by the updating interface information in the updating flow to obtain an updating interface relation graph.
17. The apparatus according to claim 16, wherein the first updating module, when updating the interface relationship diagram based on the transmission logic between the preset second interfaces and the updated interface represented by the updated interface information in the updated traffic to obtain the updated interface relationship diagram, includes:
and updating the interface relation graph based on the transmission logic between the second interfaces, the updating interfaces represented by the updating interface information in the updating flow and the second probability of data transmission between any two updating interfaces to obtain an updating interface relation graph.
18. The flow playback based testing device of claim 11, wherein the testing device further comprises:
the second updating module is used for responding to the modification operation aiming at the interface relation graph and updating the interface relation graph to obtain an updated interface relation graph; wherein the modifying operation comprises at least one of: delete operation, update operation, add operation.
19. The flow playback-based testing device of claim 11, wherein the testing module, when testing the system to be tested based on the testing flow in the testing flow set to obtain the testing result of the system to be tested, comprises:
respectively inputting the test flow in the test flow set into a system to be tested and a reference system to obtain a first operation result of the system to be tested on the test flow and a second operation result of the reference system on the test flow;
and generating a test result of the system to be tested according to the first operation result and the second operation result.
20. The flow playback-based testing device of claim 11, wherein the testing module, when testing the system to be tested based on the testing flow in the testing flow set to obtain the testing result of the system to be tested, comprises:
and inputting the test flow in the test flow set into a system to be tested, and generating a test result of the system to be tested according to a third operation result of the system to be tested on the test flow.
21. An electronic device, comprising: a processor, a storage medium and a bus, the storage medium storing machine-readable instructions executable by the processor, the processor and the storage medium communicating via the bus when the electronic device is running, the processor executing the machine-readable instructions to perform the steps of the traffic playback based testing method according to any one of claims 1 to 10.
22. A computer-readable storage medium, characterized in that a computer program is stored on the computer-readable storage medium, which computer program, when being executed by a processor, performs the steps of the flow playback based testing method according to one of the claims 1 to 10.
CN201911313027.5A 2019-12-18 2019-12-18 Test method and device based on flow playback, electronic equipment and storage medium Active CN111083013B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911313027.5A CN111083013B (en) 2019-12-18 2019-12-18 Test method and device based on flow playback, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911313027.5A CN111083013B (en) 2019-12-18 2019-12-18 Test method and device based on flow playback, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN111083013A true CN111083013A (en) 2020-04-28
CN111083013B CN111083013B (en) 2020-11-13

Family

ID=70315854

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911313027.5A Active CN111083013B (en) 2019-12-18 2019-12-18 Test method and device based on flow playback, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111083013B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111708712A (en) * 2020-06-24 2020-09-25 北京自如信息科技有限公司 User behavior test case generation method, flow playback method and electronic equipment
CN112559361A (en) * 2020-12-22 2021-03-26 京东数字科技控股股份有限公司 Flow playback method, device, equipment and computer readable medium
CN112631921A (en) * 2020-12-28 2021-04-09 广州品唯软件有限公司 Method, system and storage medium for improving flow playback coverage
CN113709003A (en) * 2021-09-02 2021-11-26 上海天旦网络科技发展有限公司 System, method and medium for automatically generating test case through network flow data
CN115396346A (en) * 2022-08-30 2022-11-25 北京知道创宇信息技术股份有限公司 Simulation pressure test method, device and system and electronic equipment

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103235759A (en) * 2013-05-15 2013-08-07 百度在线网络技术(北京)有限公司 Method and device for generating test cases
US8863096B1 (en) * 2011-01-06 2014-10-14 École Polytechnique Fédérale De Lausanne (Epfl) Parallel symbolic execution on cluster of commodity hardware
CN106371999A (en) * 2016-10-20 2017-02-01 腾讯科技(深圳)有限公司 Program code testing method and device
CN107977308A (en) * 2016-10-25 2018-05-01 传化物流集团有限公司 interface test method and device
US20180137038A1 (en) * 2016-09-26 2018-05-17 International Business Machines Corporation White box testing
CN108153670A (en) * 2017-11-30 2018-06-12 北京奇艺世纪科技有限公司 A kind of interface test method, device and electronic equipment
CN110059003A (en) * 2019-03-20 2019-07-26 北京三快在线科技有限公司 Automated testing method, device, electronic equipment and readable storage medium storing program for executing
CN110232014A (en) * 2019-02-25 2019-09-13 上海蔚来汽车有限公司 Operation flow automated testing method, device, controller and medium
CN110474820A (en) * 2019-07-17 2019-11-19 阿里巴巴集团控股有限公司 Traffic playback method, device, electronic equipment

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8863096B1 (en) * 2011-01-06 2014-10-14 École Polytechnique Fédérale De Lausanne (Epfl) Parallel symbolic execution on cluster of commodity hardware
CN103235759A (en) * 2013-05-15 2013-08-07 百度在线网络技术(北京)有限公司 Method and device for generating test cases
US20180137038A1 (en) * 2016-09-26 2018-05-17 International Business Machines Corporation White box testing
CN106371999A (en) * 2016-10-20 2017-02-01 腾讯科技(深圳)有限公司 Program code testing method and device
CN107977308A (en) * 2016-10-25 2018-05-01 传化物流集团有限公司 interface test method and device
CN108153670A (en) * 2017-11-30 2018-06-12 北京奇艺世纪科技有限公司 A kind of interface test method, device and electronic equipment
CN110232014A (en) * 2019-02-25 2019-09-13 上海蔚来汽车有限公司 Operation flow automated testing method, device, controller and medium
CN110059003A (en) * 2019-03-20 2019-07-26 北京三快在线科技有限公司 Automated testing method, device, electronic equipment and readable storage medium storing program for executing
CN110474820A (en) * 2019-07-17 2019-11-19 阿里巴巴集团控股有限公司 Traffic playback method, device, electronic equipment

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111708712A (en) * 2020-06-24 2020-09-25 北京自如信息科技有限公司 User behavior test case generation method, flow playback method and electronic equipment
CN112559361A (en) * 2020-12-22 2021-03-26 京东数字科技控股股份有限公司 Flow playback method, device, equipment and computer readable medium
CN112631921A (en) * 2020-12-28 2021-04-09 广州品唯软件有限公司 Method, system and storage medium for improving flow playback coverage
CN113709003A (en) * 2021-09-02 2021-11-26 上海天旦网络科技发展有限公司 System, method and medium for automatically generating test case through network flow data
CN115396346A (en) * 2022-08-30 2022-11-25 北京知道创宇信息技术股份有限公司 Simulation pressure test method, device and system and electronic equipment

Also Published As

Publication number Publication date
CN111083013B (en) 2020-11-13

Similar Documents

Publication Publication Date Title
CN111083013B (en) Test method and device based on flow playback, electronic equipment and storage medium
CN108153670B (en) Interface testing method and device and electronic equipment
US8386848B2 (en) Root cause analysis for complex event processing
US20080263035A1 (en) Grouping business partners in e-business transaction
CN110689084B (en) Abnormal user identification method and device
CN110858172A (en) Automatic test code generation method and device
CN108933695B (en) Method and apparatus for processing information
CN111078560B (en) Test method and device based on flow pruning, electronic equipment and storage medium
CN114282011B (en) Knowledge graph construction method and device, and graph calculation method and device
CN114143000B (en) Method and device for inquiring trace based on careless transmission protocol and secret sharing
CN111612085A (en) Method and device for detecting abnormal point in peer-to-peer group
CN109740304A (en) A kind of vehicle diagnosis right management method and relevant device
US20230231900A1 (en) Webtier as a service
CN112163154A (en) Data processing method, device, equipment and storage medium
CN108170561B (en) Disaster recovery backup method, device and system
CN113869989B (en) Information processing method and device
CN112416488B (en) User portrait implementing method, device, computer equipment and computer readable storage medium
CN114841267A (en) Real-time prediction method and device, electronic equipment and computer program product
CN114118440A (en) Model iteration method, model iteration device, electronic equipment and computer readable storage medium
CN114169920A (en) Virtual resource pushing method, device, equipment and storage medium
CN115914219A (en) Task request processing method, device and system, readable storage medium and electronic equipment
CN112799797A (en) Task management method and device
CN110119337A (en) A kind of data analysing method, device and server
CN113194039B (en) Method and device for segmenting system data flow, electronic equipment and storage medium
CN113177212B (en) Joint prediction method and device

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