CN115114132A - Performance test method and system for auditing program - Google Patents

Performance test method and system for auditing program Download PDF

Info

Publication number
CN115114132A
CN115114132A CN202210881226.1A CN202210881226A CN115114132A CN 115114132 A CN115114132 A CN 115114132A CN 202210881226 A CN202210881226 A CN 202210881226A CN 115114132 A CN115114132 A CN 115114132A
Authority
CN
China
Prior art keywords
data packet
testing
test
database
data information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210881226.1A
Other languages
Chinese (zh)
Inventor
刘晓韬
李彦君
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Dbsec Technology Co ltd
Original Assignee
Beijing Dbsec 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 Beijing Dbsec Technology Co ltd filed Critical Beijing Dbsec Technology Co ltd
Priority to CN202210881226.1A priority Critical patent/CN115114132A/en
Publication of CN115114132A publication Critical patent/CN115114132A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
    • G06F11/3457Performance evaluation by simulation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/302Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a software system
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3089Monitoring arrangements determined by the means or processing involved in sensing the monitored data, e.g. interfaces, connectors, sensors, probes, agents
    • G06F11/3093Configuration details thereof, e.g. installation, enabling, spatial arrangement of the probes
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2201/00Indexing scheme relating to error detection, to error correction, and to monitoring
    • G06F2201/865Monitoring of software

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Quality & Reliability (AREA)
  • General Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • Computer Hardware Design (AREA)
  • Mathematical Physics (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The application discloses a performance test method and a system of an audit program, wherein the method comprises the following steps: acquiring a data packet for interaction between a database client and a database, and storing the acquired data packet as a sample data packet; acquiring a test case, wherein the test case carries requirements for testing an audit program; generating data information for testing according to the requirement, wherein the data information for testing is carried in a data packet; searching the position of the data information for testing in the sample data packet, and replacing the original data information in the sample data packet by using the data information for testing according to the position; and sending the replaced sample data packet serving as a test data packet to an auditing program so as to test the auditing program. By the method and the device, the problem that statements and audit elements are single when the audit program is tested through the playback data packet is solved, and therefore comprehensiveness of the audit program is improved.

Description

Performance test method and system for auditing program
Technical Field
The application relates to the field of database auditing, in particular to a performance test method and system of an auditing program.
Background
The database audit takes a security event as a center, takes comprehensive audit and accurate audit as a basis, records database activities on a network in real time, performs compliance management of fine-grained audit on database operation, and performs real-time warning on risk behaviors suffered by the database. The method helps the user generate a compliance report and accident tracing and tracing sources afterwards by recording, analyzing and reporting the database access behaviors of the user, provides an efficient inquiry and audit report by a big data search technology, positions the reasons of the events, so that the users can inquire, analyze and filter the events in the future, monitor and audit of the network behaviors of the internal and external databases are enhanced, and the data asset safety is improved.
Database auditing is generally performed through an auditing program, and the auditing program needs to be tested in the development process of the auditing program. The performance test is used for testing whether the auditing program can audit the database flow packets under various conditions, when the performance test is carried out, a tester can generally send a real access request to the database through a database client, then a probe arranged on the database is used for capturing the data packet corresponding to the access request, and the captured data packet is sent to the auditing program for auditing. This way of manually sending a real access request is time and labor consuming.
Considering that the probe arranged on the database can capture the data packet, the captured data packet can be stored, and when the test is performed next time, a tester does not need to send a true access request through the database client, but directly sends the captured data packet to an auditing program, so that the test mode can save labor.
In this way, when the performance of the database auditing system is tested, some real database access traffic (the database access traffic includes a plurality of database access data packets) needs to be captured and played back (that is, the data packets are sent to the auditing program) for testing. However, the captured database access flow is limited in a time slice, and when the performance test is performed, the problem of single statement and other audit elements exists, the field pressure cannot be really restored, and the test on the audit program is not comprehensive enough.
Disclosure of Invention
The embodiment of the application provides a performance test method and a system of an auditing program, which at least solve the problem of single statement and auditing element when the auditing program is tested by replaying a data packet.
According to one aspect of the application, a performance testing method of an auditing program is provided, which comprises the following steps: acquiring a data packet for interaction between a database client and a database, and storing the acquired data packet as a sample data packet; acquiring a test case, wherein the test case carries a requirement for testing an auditing program; generating data information for testing according to the requirement, wherein the data information for testing is carried in a data packet; searching the position of the data information for testing in the sample data packet, and replacing the original data information in the sample data packet by using the data information for testing according to the position; and sending the replaced sample data packet serving as a test data packet to an auditing program so as to test the auditing program.
Further, sending the replaced sample data packet as a test data packet to the auditing program includes: acquiring the length of a sample data packet after original data information in the sample data packet is replaced by the data information for testing; updating the length to a length field of the sample data packet; calculating a check value according to the updated sample data packet after the length field; updating the check value to a check value field of the sample data packet to generate the data packet for testing; and sending the data packet for testing to the auditing program.
Further, replacing the original data information in the sample data packet with the data information for testing according to the position includes: under the condition that the number of the data information for testing is multiple, copying the sample data packet to obtain sample data packet copies corresponding to the number of the data information for testing; and replacing the original data information in one sample data packet copy with each data information in the plurality of data information respectively to obtain a plurality of data packets for testing.
Further, after obtaining the plurality of test packets, the method further includes: establishing a corresponding relation between the plurality of test data packets and the test cases; and storing the corresponding relation between the plurality of test data packets and the corresponding relation.
Further, obtaining a data packet for interaction between the database client and the database includes: acquiring a data packet sent to the database by the database client; and acquiring a data packet sent by the database to the database client.
According to another aspect of the present application, there is also provided a performance testing system of an auditing program, including: the first acquisition module is used for acquiring a data packet for interaction between the database client and the database and storing the acquired data packet as a sample data packet; the second obtaining module is used for obtaining a test case, wherein the test case carries a requirement for testing an auditing program; the generating module is used for generating data information for testing according to the requirement, wherein the data information for testing is carried in a data packet; the replacing module is used for searching the position of the data information for testing in the sample data packet and replacing the original data information in the sample data packet by using the data information for testing according to the position; and the sending module is used for sending the replaced sample data packet serving as a test data packet to an auditing program so as to test the auditing program.
Further, the sending module is configured to: acquiring the length of the sample data packet after the original data information in the sample data packet is replaced by the data information for testing; updating the length to a length field of the sample data packet; calculating a check value according to the updated sample data packet after the length field; updating the check value to a check value field of the sample data packet to generate the data packet for testing; and sending the data packet for testing to the auditing program.
Further, the replacement module is to: under the condition that the number of the data information for testing is multiple, copying the sample data packet to obtain sample data packet copies corresponding to the number of the data information for testing; and replacing the original data information in one sample data packet copy with each data information in the plurality of data information respectively to obtain a plurality of data packets for testing.
Further, after obtaining the plurality of test packets, the method further includes: and the storage module is used for establishing the corresponding relation between the plurality of data packets for testing and the test case and storing the corresponding relation between the plurality of data packets for testing and the test case.
Further, the first obtaining module is configured to: acquiring a data packet sent to the database by the database client; and acquiring a data packet sent by the database to the database client.
In the embodiment of the application, a data packet for interaction between a database client and a database is acquired, and the acquired data packet is stored as a sample data packet; obtaining a test case, wherein the test case carries requirements for testing an auditing program; generating data information for testing according to the requirement, wherein the data information for testing is carried in a data packet; searching the position of the data information for testing in the sample data packet, and replacing the original data information in the sample data packet by using the data information for testing according to the position; and sending the replaced sample data packet serving as a test data packet to an auditing program so as to test the auditing program. By the method and the device, the problem that statements and audit elements are single when the audit program is tested through the playback data packet is solved, and therefore comprehensiveness of the audit program is improved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this application, illustrate embodiments of the application and, together with the description, serve to explain the application and are not intended to limit the application. In the drawings:
fig. 1 is a flowchart of a performance testing method of an auditing program according to an embodiment of the present application.
Detailed Description
It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict. The present application will be described in detail below with reference to the embodiments with reference to the attached drawings.
It should be noted that the steps illustrated in the flowcharts of the figures may be performed in a computer system such as a set of computer-executable instructions and that, although a logical order is illustrated in the flowcharts, in some cases, the steps illustrated or described may be performed in an order different than presented herein.
The database is generally divided into a server and a client, when a user needs to acquire data stored in the database, the user accesses the server through the client, the server sends data requested by the user to the client, and the user can acquire the data from the database through the process. For convenience of description, the server is referred to as a database and the client is referred to as a database client in this embodiment. When the packet grabbing is performed, the grabbing of the data packet can be performed through a probe, and the probe can be arranged on a database. The probe is a program or a plug-in capable of monitoring a network data packet, and the probe can acquire all network data traffic accessing a predetermined network address by monitoring the predetermined network address, and then can further process the network data traffic.
The captured data packets may include two data packets, one is a data packet sent by the database client to the database, and the other is a data packet returned by the database to the database client. The data packet sent by the database client to the database may carry SQL statements (simply referred to as statements) and also may carry session information (including network address information of the database client, where the network address information may include an IP address and a port number). The data packet sent by the database to the database end may carry a result set, where the result set is a result returned after an operation is performed in the database according to the SQL statement. The data packet sent by the database to the database end may further include information about the execution failure of the SQL statement, and these information may also be used to test the auditing effect of the auditing program on the execution failure.
In the present embodiment, a performance testing method of an auditing program is provided, and fig. 1 is a flowchart of the performance testing method of the auditing program according to an embodiment of the present application, as shown in fig. 1, and the steps included in fig. 1 are explained below.
Step S102, acquiring a data packet for interaction between a database client and a database, and saving the acquired data packet as a sample data packet;
step S104, obtaining a test case, wherein the test case carries a requirement for testing an audit program;
step S106, generating data information for testing according to the requirement, wherein the data information for testing is carried in a data packet;
for example, the requirement is used to indicate an audit situation of an audit program when a plurality of database clients access a database at the same time, at this time, IP addresses and port numbers of N database clients are generated according to the number N of the plurality of database clients, and the sample data packet is copied into N groups of data packets, where the IP addresses and port numbers of each group of data packets in the N groups of data packets are the same, and the IP addresses and port numbers of the N database clients correspond to the N groups of data packets one to one; and sending the generated N groups of data packets to the auditing program. Optionally, the requirement obtains the number of data packets required for performing the stress test from the requirement in the case that the requirement indicates that the requirement is used for performing the stress test, and determines the number of each group of data packets in the N groups of data packets according to the number of the required data packets; sending N groups of data packets to the auditing program simultaneously for the stress test.
For example, an SQL statement template is configured in advance, wherein a plurality of SQL statements used between a database client and a database are stored in the SQL statement template; and the requirement is used for indicating the test auditing program to acquire all SQL sentences from the SQL sentence template under the condition of processing different SQL sentences, calculating the number M of all SQL sentences, generating copies of M sample data packets according to the number M of all SQL sentences, replacing the SQL sentence in the copy of one sample data packet by each SQL sentence in the SQL sentence template, and generating M test data packets.
Step S108, searching the position of the data information for testing in the sample data packet, and replacing the original data information in the sample data packet by using the data information for testing according to the position;
and step S110, sending the replaced sample data packet as a test data packet to an auditing program so as to test the auditing program.
Through the steps, the problem that statements and audit elements are single when the audit program is tested through the playback data packet is solved, and therefore the comprehensiveness of the audit program is improved.
In order to prevent the data packet for testing from being considered as an abnormal data packet by the auditing program, in an optional implementation manner, the length of a sample data packet after original data information in the sample data packet is replaced by the data information for testing may be obtained; updating the length to a length field of the sample data packet; calculating a check value according to the updated sample data packet after the length field; updating the check value to a check value field of the sample data packet to generate the data packet for testing; and sending the data packet for testing to the auditing program.
In an optional embodiment, the number of the test data packets may be multiple, that is, when the number of the test data information is multiple, the sample data packet is copied to obtain sample data packet duplicates corresponding to the number of the test data information; and replacing the original data information in one sample data packet copy with each data information in the data information to obtain a plurality of data packets for testing.
Optionally, after obtaining the plurality of test packets, the method further includes: establishing a corresponding relation between the plurality of test data packets and the test cases; and storing the corresponding relation between the plurality of test data packets and the corresponding relation. The test data packet thus stored can be used directly for regression testing next time.
When the regression test is carried out, a test plan can be obtained, wherein the test plan comprises a plurality of test cases; acquiring SQL sentences in each test case in the plurality of test cases; acquiring a test data packet corresponding to the SQL statement of each test case, wherein the test data packet is obtained by replacing the SQL statement of the sample data packet with the SQL statement of each test case; sending the test data packet corresponding to each test case to an auditing program, wherein the auditing program is used for analyzing the test data packet and obtaining an SQL statement in the test data packet; acquiring an SQL statement obtained by analyzing the test data packet by the audit program, and comparing the SQL statement obtained by analyzing with the SQL statement in the test case; and the comparison result is used for determining whether the test case passes the test.
This is described below in connection with an alternative embodiment. In this optional embodiment, the data packet captured by the database client may be a data packet interacted with the database, and the captured data packet is stored as a sample packet.
And changing the packet based on the grabbed sample packet, replacing the statement, the session information and the result set information in the packet with the regenerated statement, session, result set and other information, and playing back to perform performance testing (for example, performing stress testing). The regenerated sentences can be generated by adopting a random algorithm, so that the diversity of data can be ensured. When modifying based on the sample packet captured now, for example, if the information such as the IP address or the port number, or the SQL statement is modified, the length of the modified packet may change, and if the length changes, the field in the packet for recording the length of the packet needs to be modified together.
The following describes specific steps of performing the performance test in this alternative embodiment.
Step 1, accessing a communication packet (referred to as a data packet for short) of the captured sample database, wherein the data packet can be divided into a data packet which is sent to the database by the database client and a data packet which is returned to the database client by the database. And storing the captured data packet (or simply called a communication packet).
And 2, analyzing the communication packet, acquiring key information to be modified, positioning the position and the length of the information to be modified in the communication packet, and recording.
And 3, generating information to be replaced according to the scene model to be simulated.
In this step, the information that may be replaced includes at least one of:
(1) and modifying the IP address, Port number (Port), MAC address and the like of the client and the server for simulating a high concurrency session scene. For example, a plurality of captured data packets may be used as one group, and then the group of data packets may be copied to obtain a plurality of groups of data packets, where IP addresses and port numbers of database clients related to each group of data packets are different, or IP addresses and port numbers of databases accessed to the groups of data packets are different, and then the plurality of groups of data packets may be sent to the auditing device, so that access between different clients and databases may be simulated, and a pressure test may be performed on an auditing program.
(2) The data packets are based on the TCP protocol, so the data packets carry the content of the TCP session, and each data packet in the TCP session has a sequence (sequence) and an acknowledgement (acknowledge) to the data packet with the sequence, so that the sequence and/or acknowledge values of the TCP session in the sample data packet can be modified to obtain a test data packet, and the test data packet is used for simulating scenarios such as retransmission, disorder, packet loss, and the like.
That is, when the test request indicates that the program requiring the audit processes the relevant content to the TCP packet sequentially, the sequence number and/or the acknowledgement of the TCP session in the sample packet may be modified to obtain the test packet.
(3) And modifying the session information of the database, such as a user name used for logging in the database, a client tool name used by the database, a user name of a database client operating system and the like, and using the modified session information to simulate scenes of various access modes and test the statistical aggregation performance of an auditing program (or called an auditing system).
When the request instruction tests the processing of the auditing program under various access scenes, acquiring different user names used for logging in the database, client tool names used by the database and user names of the database client operating system, and replacing corresponding data information in the sample data packet by the acquired user names used for logging in the database, the acquired client tool names used by the database and the acquired user names of the database client operating system to generate a test data packet.
(4) And modifying SQL statements carried in the data packet for testing the diversity of the audit program.
(5) And modifying the content of the result set, the line number of the result set and the length of the result set, and testing the processing performance of the auditing system when the large result set is returned. I.e. modify the result returned by the database SQL.
(6) Modifying the data packet sent to the database by the database client, so that the data packet is failed to be executed by the database, saving the data packet failed to be executed as a sample data packet, constructing various execution result error numbers and error information through the data packet failed to be executed, namely, respectively replacing the various execution result error numbers and the error information with corresponding data information in the sample data packet to obtain test data packets carrying the various execution result error numbers and the error information, wherein the test data packets are used for testing the statistical analysis capability of the auditing system on the failure request. And the data packet sent to the database by the database client can be modified, so that the modified data packet can simulate various abnormal attack accesses. By modifying the execution failure information, the influence of the execution failure of the database on the auditing system can be tested.
(7) The timestamp of the captured packet is modified to simulate a high response access. The captured data packet can be a data packet in a Pcap format, the Pcap packet can record a timestamp, so that the timestamp of the interval between a request packet and a response packet in the Pcap packet can be modified, a playback tool can play back according to the original speed, access of high response time is simulated, and the playback tool is used for testing the auditing and analyzing capabilities of an auditing program (or an auditing system) on high time-consuming requests.
Acquiring the time interval of the request and the response indicated in the request, acquiring a request packet and a response packet in a sample data packet, and modifying the time stamps in the request packet and the response packet according to the time interval to obtain a data packet for testing, wherein the time interval is obtained by subtracting the time stamp of the request packet from the time stamp of the packet after modification; and sending a request packet and a response packet which are used as the data packets for testing to the auditing program.
And 4, replacing the generated replacement information into the packet by using the position recorded in the step 2, and correcting the length information into newly generated data.
And 5, aiming at part of database protocols, recalculating a check value (checksum) value by using the modified packet, and updating the recalculated check value into the data packet to ensure the correctness of the communication packet.
Through the steps, multiple interactions can be simulated by replacing different contents each time by utilizing the interaction sample packet. When multiple interactions are simulated, a correct numerical value can be generated according to the sequence/acknowledge generation rule of the TCP, and the condition that the database auditing system considers an abnormal packet and does not process the abnormal packet is avoided. In addition, in the steps, a new communication packet generated can be replied by using packet playback tools such as TCPreplay and the like, so that the diversity of database audit performance tests can be achieved.
In this embodiment, an electronic device is provided, comprising a memory in which a computer program is stored and a processor configured to run the computer program to perform the method in the above embodiments.
The programs described above may be run on a processor or may also be stored in memory (or referred to as computer-readable media), which includes both non-transitory and non-transitory, removable and non-removable media, that implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
These computer programs may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks, and corresponding steps may be implemented by different modules.
Such an apparatus or system is provided in this embodiment. The system is called a performance testing system of an auditing program, and comprises: the first acquisition module is used for acquiring a data packet for interaction between the database client and the database and storing the acquired data packet as a sample data packet; the second obtaining module is used for obtaining a test case, wherein the test case carries a requirement for testing an auditing program; the generating module is used for generating data information for testing according to the requirement, wherein the data information for testing is carried in a data packet; the replacing module is used for searching the position of the data information for testing in the sample data packet and replacing the original data information in the sample data packet by using the data information for testing according to the position; and the sending module is used for sending the replaced sample data packet serving as a test data packet to an auditing program so as to test the auditing program.
The system or the apparatus is used for implementing the functions of the method in the foregoing embodiments, and each module in the system or the apparatus corresponds to each step in the method, which has been described in the method and is not described herein again.
For example, the sending module is configured to: acquiring the length of the sample data packet after the original data information in the sample data packet is replaced by the data information for testing; updating the length to a length field of the sample data packet; calculating a check value according to the updated sample data packet after the length field; updating the check value to a check value field of the sample data packet to generate the data packet for testing; and sending the data packet for testing to the auditing program.
For another example, the replacement module is to: under the condition that the number of the data information for testing is multiple, copying the sample data packet to obtain sample data packet copies corresponding to the number of the data information for testing; and replacing the original data information in one sample data packet copy with each data information in the plurality of data information respectively to obtain a plurality of data packets for testing.
For example, after obtaining a plurality of test packets, the method further includes: and the storage module is used for establishing the corresponding relation between the plurality of data packets for testing and the test case and storing the corresponding relation between the plurality of data packets for testing and the test case.
For another example, the first obtaining module is configured to: acquiring a data packet sent to the database by the database client; and acquiring a data packet sent by the database to the database client.
By the embodiment, the problem that statements and audit elements are single when the audit program is tested by replaying the data packet is solved, so that the comprehensiveness of the audit program is improved.
The above are merely examples of the present application and are not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims (10)

1. A performance test method of an auditing program is characterized by comprising the following steps:
acquiring a data packet for interaction between a database client and a database, and storing the acquired data packet as a sample data packet;
obtaining a test case, wherein the test case carries requirements for testing an auditing program;
generating data information for testing according to the requirement, wherein the data information for testing is carried in a data packet;
searching the position of the data information for testing in the sample data packet, and replacing the original data information in the sample data packet by using the data information for testing according to the position;
and sending the replaced sample data packet serving as a test data packet to an auditing program so as to test the auditing program.
2. The method of claim 1, wherein sending the replaced sample data packet to the auditing program as a test data packet comprises:
acquiring the length of the sample data packet after the original data information in the sample data packet is replaced by the data information for testing;
updating the length to a length field of the sample data packet;
calculating a check value according to the updated sample data packet after the length field;
updating the check value to a check value field of the sample data packet to generate the data packet for testing;
and sending the data packet for testing to the auditing program.
3. The method of claim 1, wherein replacing original data information in the sample data packet with the data information for testing according to the location comprises:
under the condition that the number of the data information for testing is multiple, copying the sample data packet to obtain a sample data packet duplicate corresponding to the number of the data information for testing;
and replacing the original data information in one sample data packet copy with each data information in the plurality of data information respectively to obtain a plurality of data packets for testing.
4. The method of claim 3, wherein after obtaining the plurality of test packets, the method further comprises:
establishing a corresponding relation between the plurality of test data packets and the test cases;
and storing the corresponding relation between the plurality of test data packets and the corresponding relation.
5. The method of any one of claims 1 to 4, wherein obtaining the data packet of the database client interacting with the database comprises:
acquiring a data packet sent to the database by the database client;
and acquiring a data packet sent by the database to the database client.
6. A performance testing system for an auditing program, comprising:
the first acquisition module is used for acquiring a data packet for interaction between the database client and the database and storing the acquired data packet as a sample data packet;
the second obtaining module is used for obtaining a test case, wherein the test case carries a requirement for testing an auditing program;
the generating module is used for generating data information for testing according to the requirement, wherein the data information for testing is carried in a data packet;
the replacing module is used for searching the position of the data information for testing in the sample data packet and replacing the original data information in the sample data packet by using the data information for testing according to the position;
and the sending module is used for sending the replaced sample data packet serving as a test data packet to an auditing program so as to test the auditing program.
7. The system of claim 6, wherein the sending module is configured to:
acquiring the length of the sample data packet after the original data information in the sample data packet is replaced by the data information for testing;
updating the length to a length field of the sample data packet;
calculating a check value according to the updated sample data packet after the length field;
updating the check value to a check value field of the sample data packet to generate the data packet for testing;
and sending the data packet for testing to the auditing program.
8. The system of claim 6, wherein the replacement module is to:
under the condition that the number of the data information for testing is multiple, copying the sample data packet to obtain a sample data packet duplicate corresponding to the number of the data information for testing;
and replacing the original data information in one sample data packet copy with each data information in the plurality of data information respectively to obtain a plurality of data packets for testing.
9. The system of claim 7, further comprising, after obtaining the plurality of test packets:
and the storage module is used for establishing the corresponding relation between the plurality of data packets for testing and the test case and storing the corresponding relation between the plurality of data packets for testing and the test case.
10. The system of any one of claims 6 to 9, wherein the first obtaining module is configured to:
acquiring a data packet sent to the database by the database client;
and acquiring a data packet sent by the database to the database client.
CN202210881226.1A 2022-07-26 2022-07-26 Performance test method and system for auditing program Pending CN115114132A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210881226.1A CN115114132A (en) 2022-07-26 2022-07-26 Performance test method and system for auditing program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210881226.1A CN115114132A (en) 2022-07-26 2022-07-26 Performance test method and system for auditing program

Publications (1)

Publication Number Publication Date
CN115114132A true CN115114132A (en) 2022-09-27

Family

ID=83334908

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210881226.1A Pending CN115114132A (en) 2022-07-26 2022-07-26 Performance test method and system for auditing program

Country Status (1)

Country Link
CN (1) CN115114132A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20240129219A1 (en) * 2022-10-14 2024-04-18 Keysight Technologies, Inc. Methods, systems, and computer readable media for using a programmable processing pipeline device to execute scalable connections per second (cps) generation test and an application replay sequence test

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111159000A (en) * 2019-12-30 2020-05-15 北京明朝万达科技股份有限公司 Server performance test method, device, equipment and storage medium
CN112463605A (en) * 2020-11-26 2021-03-09 杭州网易云音乐科技有限公司 Automatic testing method and device, storage medium and electronic equipment
CN113709003A (en) * 2021-09-02 2021-11-26 上海天旦网络科技发展有限公司 System, method and medium for automatically generating test case through network flow data
CN113742200A (en) * 2020-05-28 2021-12-03 阿里巴巴集团控股有限公司 Test method, device and computer readable medium for database version upgrade

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111159000A (en) * 2019-12-30 2020-05-15 北京明朝万达科技股份有限公司 Server performance test method, device, equipment and storage medium
CN113742200A (en) * 2020-05-28 2021-12-03 阿里巴巴集团控股有限公司 Test method, device and computer readable medium for database version upgrade
CN112463605A (en) * 2020-11-26 2021-03-09 杭州网易云音乐科技有限公司 Automatic testing method and device, storage medium and electronic equipment
CN113709003A (en) * 2021-09-02 2021-11-26 上海天旦网络科技发展有限公司 System, method and medium for automatically generating test case through network flow data

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20240129219A1 (en) * 2022-10-14 2024-04-18 Keysight Technologies, Inc. Methods, systems, and computer readable media for using a programmable processing pipeline device to execute scalable connections per second (cps) generation test and an application replay sequence test

Similar Documents

Publication Publication Date Title
Marty Cloud application logging for forensics
US10958548B2 (en) Generating production server load activity for a test server
WO2020238066A1 (en) Software pressure test method and apparatus, and storage medium and server
US8578017B2 (en) Automatic correlation of service level agreement and operating level agreement
CN107122296B (en) Method and apparatus for data assertion for test interface
US11362912B2 (en) Support ticket platform for improving network infrastructures
CN111666205B (en) Data auditing method, system, computer equipment and storage medium
CN117155832A (en) Multi-terminal non-invasive recording playback test method and system for UDP transmission protocol
CN114531304B (en) Session processing method and system based on data packet
CN115114132A (en) Performance test method and system for auditing program
CN113742200A (en) Test method, device and computer readable medium for database version upgrade
CN116881145B (en) Interface testing method, device, equipment and storage medium based on flow playback
CN116719750B (en) Software testing method and device, server equipment and storage medium
CN114860619B (en) Database audit program regression testing method and device
CN111435327B (en) Log record processing method, device and system
CN116841645A (en) Database flow processing method and system for database audit
WO2016127483A1 (en) Processing method and device for collection agent management subsystem
CN112256984A (en) Method and device for acquiring interface background screenshot corresponding to webpage
CN110147313B (en) Log output method and device
CN116527553A (en) Processing method, system and storage medium for automatic test report of switch
US8825843B2 (en) System and methods for monitoring a geographic information system
CN112214800A (en) Log data sorting evidence-storing method, system, equipment and medium based on block chain
WO2016101532A1 (en) Network operation management method and apparatus
CN114880662B (en) Database audit processing method and device based on process
CN115118640B (en) Database auditing processing method and system in presence of proxy equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20220927