A highly efficient data packet editing and processing method and system

Through a data packet editing and processing system that automates data processing and custom rules, the frequent and cumbersome data processing in software development and testing are solved, which improves testing efficiency and reduces operational complexity.

CN118860907BActive Publication Date: 2024-12-20CHENGDU SUGAR FREE INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411350329.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-09-26
Publication Date
2024-12-20
Estimated Expiration
2044-09-26

AI Technical Summary

Technical Problem

In software development and testing, data processing in the prior art is too frequent and cumbersome, resulting in inefficient testing.

Method used

Provide an efficient data packet editing and processing method and system, including data display and selection module, data locking module, data processing module and data transmission and reception module. By automatically positioning and processing data, it supports custom encoding, decoding, encryption, and decryption rules. , realize the composite processing of data and record data changes to support undo and redo operations.

Benefits of technology

It greatly reduces manual operation time, improves testing efficiency, reduces data processing complexity, saves time in finding third-party tools, and increases the value of data processing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118860907B_ABST
    Figure CN118860907B_ABST
Patent Text Reader

Abstract

The present invention discloses an efficient data packet editing and processing method and system, belonging to the technical field of data software development, including a data sending stage and a data receiving stage, integrating the whole process of data packet editing, processing, sending, etc. into the same operation interface, simplifying the tedious steps of frequent switching of tool environments and manual copying and pasting of data in traditional methods, and users do not need to adapt to the operating habits of multiple tools, which greatly reduces the operating burden, processes and replaces the data to be processed, completes the software test, and solves the technical problem of complex and tedious data processing in the prior art.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the technical field of software development, and in particular relates to an efficient data packet editing and processing method and system. Background Art

[0002] In software development and testing, developers and testers need to perform functional or security testing on Web APIs. They need to manually construct or capture Web API request packets, construct various test vectors (Payload) on the packets and send them, and observe whether the response data of the API interface meets expectations to determine whether there are functional or security issues.

[0003] In such a test process, it is necessary to frequently construct and modify data packets, such as inserting test vectors into data packets, encoding or decoding test vectors, sending data packets after constructing test vectors, and then observing whether the response data packets meet expectations. If the data in the response data packets is encoded, it is necessary to format or decode them before making a judgment. The inventors found in actual use that these prior arts have at least the following technical problems:

[0004] 1: Data processing is too frequent;

[0005] 2: The data processing operation process is cumbersome. Summary of the invention

[0006] In view of the problem that the data processing process in the prior art is too complicated, the present invention proposes an efficient data packet editing and processing method and system, the purpose of which is to improve the efficiency of software testing.

[0007] To achieve the above-mentioned purpose, the technical solution adopted by the present invention is:

[0008] An efficient data packet editing and processing method is provided, comprising the following stages: a data sending stage and a data receiving stage;

[0009] The data sending stage comprises the following steps:

[0010] A1: Send the data to be processed to the data editing device, and send the location information of the data to be processed to the data processing device; the data editing device processes the data to be processed according to the process, and replaces the data to be processed with the processed data;

[0011] A2: The data processing device calculates the position information of the data to be processed in step A1, calculates the length change of the processed data, relocates the position of the processed data in step A1, and automatically selects the processed data;

[0012] A3: Send the processed data in step A1 to the test target through the data processing device, and receive the response data sent back by the test target;

[0013] The data receiving stage comprises the following steps:

[0014] B1: The data processing device sends the data to be processed to the test target and receives the response data sent back by the test target; sends the data to be processed to the data editing device, and sends the location information of the data to be processed to the data processing device;

[0015] B2: The data editing device processes the data to be processed according to the process, and then replaces the data to be processed in step A1 with the processed data;

[0016] B3: The data processing device calculates the position information of the data to be processed in step A1 and the change in the data length of the data processed in step B2, and relocates the position of the data processed in step A1.

[0017] Preferably, each subsequent time request data is sent, data needs to be input in step A1; when response data is subsequently received, data within the input data range used last time is automatically selected.

[0018] Preferably, each data change is recorded in step A1 and saved in a stack to support data undo and redo; in step B3, the updated data is automatically selected after relocating the position of the data processed in step A1.

[0019] Preferably, the process of the data editing device includes a custom data processing process, which can realize the composite processing of data and complete the customization of the data process by designing and combining various data encoding, decoding, encryption and decryption rules through a visual interface.

[0020] Provided is an efficient data packet editing and processing system, comprising the following modules:

[0021] Data display and selection module: sends the data to be processed selected by the user and the location information of the data to be processed to the data locking module, and sends the selected data to be processed to the data processing module;

[0022] Data processing module: processes and replaces the data to be processed sent by the data display and selection module;

[0023] Data locking module: locks the position of the data to be processed sent by the data display and selection module, and keeps the data to be processed in the selected state;

[0024] Data sending and receiving module: sends the processed data packets in the data editor in the data display and selection module to the test target, and receives and displays the response data sent back by the test target, ending the process.

[0025] Preferably, the main body of the data display and selection module is a data editor, which is used to display, select and edit data; the data editor supports data search, data modification, data deletion, data selection, data copying, data pasting, data undoing and data redoing.

[0026] Preferably, the data locking module will change the locking state of the original data to be processed only when the user selects new data to be processed again; the custom data processing flow designed and combined by the user through the visual interface in the data processing module can be saved and reused; the data editor of the data display and selection module records each change of the data to be processed and saves it in the stack, supporting the undo and redo operations of the data to be processed.

[0027] Preferably, the data processing module includes a data editor, and the input content in the data editor of the data processing module serves as a replacement source for the data editor in the data display and selection module. The user does not need to edit the data in the selected area in the data editor in the data display and selection module, and the user only needs to edit the data in the data editor in the data processing module.

[0028] Preferably, the data processing module integrates the data encoding and decoding module and the data encryption and decryption module, processes the data by writing custom scripts, and calls third-party tools to process the data to be processed.

[0029] Preferably, the data processing module supports custom data processing procedures. Users can design and combine various data encoding, decoding, encryption, and decryption rules through a visual interface to achieve composite data processing and complete custom data processing procedures. The data locking module calculates the location information of the data to be processed and the length change of the processed data recorded by it, relocates the position of the processed new data in the data editor of the data display and selection module, and automatically selects the updated data.

[0030] Preferably, the communication between the modules is achieved through an internal data transfer mechanism.

[0031] Compared with the prior art, the technical solution of the present invention has the following advantages / benefits:

[0032] 1. Users do not need to frequently manually select the location to add the test vector in the data packet, and do not need to reposition, select, modify, or replace the previous test vector every time the test vector is modified, saving a lot of operation time.

[0033] 2. The data processing module integrates commonly used data encoding and decoding, encryption and decryption modules, supports data processing by writing custom scripts, and supports calling third-party tools to process data. There is no need to frequently search for third-party tools for data flow, which improves test efficiency.

[0034] 3. The data processing module also supports customized data processing processes. Users can design and combine various data encoding, decoding, encryption, and decryption rules through a visual interface to achieve composite data processing and improve the data processing value. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present invention and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[0036] Figure 1 It is a flow chart of an efficient data packet editing and processing system of the present invention.

[0037] Figure 2 It is a schematic diagram of a flow chart of an embodiment of the present invention.

[0038] Figure 3 It is a schematic diagram of an efficient data packet editing and processing method of the present invention. DETAILED DESCRIPTION

[0039] In order to make the purpose, technical solutions and advantages of the present invention clearer, the technical solutions in the embodiments of the present invention are clearly and completely described below. Obviously, the described embodiments are part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in the field without creative work are within the scope of protection of the present invention. Therefore, the detailed description of the embodiments of the present invention provided below is not intended to limit the scope of the claimed invention, but merely represents the selected embodiments of the present invention.

[0040] It should be noted that similar reference numerals and letters denote similar items in the following drawings, and thus, once an item is defined in one drawing, it may not be further defined or explained in the subsequent drawings.

[0041] Embodiment 1:

[0042] like Figure 1As shown, an efficient data packet editing and processing system includes the following modules: a data display and selection module, a data locking module, a data processing module, and a data transceiver module;

[0043] Data display and selection module: sends the data to be processed selected by the user and the location information of the data to be processed to the data locking module, and sends the selected data to be processed to the data processing module;

[0044] Data locking module: locks the position of the data to be processed sent by the data display and selection module, and keeps the data to be processed in the selected state;

[0045] Data processing module: processes and replaces the data to be processed sent by the data display and selection module.

[0046] Data sending and receiving module: sends the processed data packets in the data editor in the data display and selection module to the test target, and receives and displays the response data sent back by the test target, ending the process.

[0047] The main body of the data display and selection module is the data editor, which is used to display, select and edit data; the data editor supports data search, data modification, data deletion, data selection, data copying, data pasting, data undoing and data redoing.

[0048] The data locking module will change the locking status of the original data to be processed only when the user selects new data to be processed again.

[0049] The data processing module includes a data editor. The input content in the data editor of the data processing module serves as the replacement source of the data editor in the data display and selection module. Users do not need to edit the data in the selected area in the data editor in the data display and selection module. Users only need to edit the data in the data editor in the data processing module.

[0050] The data processing module integrates the data encoding and decoding module and the data encryption and decryption module. It processes data by writing custom scripts and calling third-party tools to process the data to be processed.

[0051] The data processing module supports custom data processing processes. Users can design and combine various data encoding, decoding, encryption, and decryption rules through a visual interface to achieve composite data processing.

[0052] In the data processing module, the custom data processing processes designed and combined by users through a visual interface can be saved and reused.

[0053] The data editor of the data display and selection module records each change of the data to be processed and saves it in a stack, supporting undo and redo operations on the data to be processed.

[0054] The data locking module calculates the position information of the data to be processed and the length change of the processed data, repositions the position of the processed new data in the data editor of the data display and selection module, and automatically selects the updated data.

[0055] The communication between modules is realized through the internal data transmission mechanism.

[0056] Example 2: In software development and testing, developers and testers need to perform functional or security testing on Web APIs. They need to manually construct or capture Web API request packets, construct various test vectors (Payload) on the packets and send them, and observe whether the response data of the API interface meets expectations to determine whether there are functional or security issues.

[0057] This traditional testing method requires manually selecting the location to add the test vector in the data packet. Every time the test vector is modified, the previous test vector needs to be repositioned, selected, modified, and replaced. A lot of time is wasted on operations such as positioning, selecting, copying, and pasting.

[0058] If the test vector needs to be encoded or encrypted before it can be sent, it needs to be processed by an encoding or encryption tool before being inserted into the test position. Each time a test vector is changed, encoding or encryption needs to be performed frequently, which is an extremely cumbersome process.

[0059] If the response data received after the test data packet is sent is encoded or encrypted, we also need to decode or decrypt the response data to determine whether the decoded or decrypted data meets expectations. It can be seen that frequently processing test vectors or response data will greatly increase operating costs and reduce work efficiency.

[0060] During the test process, in addition to the need to frequently encode, decode, encrypt, and decrypt test vectors and other data, the data processing process also becomes extremely complicated when multiple data processing is required. For example, some interfaces require data to be encrypted and then converted into a certain code before it can be sent. Testers need to use multiple encoding or encryption tools to process the data in sequence before sending it. Each time the test vector is modified, multiple data processing processes need to be repeated.

[0061] If the encoding and decoding functions of the test tool are not comprehensive, or if a self-developed encoding or encryption algorithm is used, third-party tools or some self-developed tools will be needed to process the data, and the data will need to be transferred back and forth between various tools. The data processing process cannot be orchestrated and automated, and manual testing is costly and inefficient.

[0062] like Figure 2 As shown, in order to solve the above problems, this patent provides an efficient data packet editing and processing system, including an efficient data transmission processing flow and an efficient data reception processing flow. It can help testers lock the editing area of ​​the data packet without repeatedly selecting the data location that needs to be modified, support custom arrangement of data processing flow, automatically complete data processing operations, greatly reduce operation complexity, and improve work efficiency.

[0063] It includes the following modules: data display and selection module, data locking module, data processing module, and data sending and receiving module;

[0064] Among them, the data display and selection module provides data display, data editing and data selection functions, and contains a data editor.

[0065] The functions provided by the data locking module include locking the relative position of the data to be processed and keeping the selected state of the data to be processed.

[0066] The data processing module provides processing and replacement functions for the data to be processed and contains a data editor.

[0067] The data transceiver module is used to send data packets and receive corresponding data.

[0068] In the data display and selection module, add or edit a group of data to be tested and name it as pending data. Select a part of the data to be processed, and send the pending data and the location information of the pending data in the data editor to the data locking module.

[0069] The data display and selection module sends the selected data to be processed to the data processing module, enters the content to be modified in the data editor of the data processing module, selects the built-in or customized data processing flow, and clicks execute. The data in the data editor of the module for processing data will be processed in the order of the processing flow, and then replace the data to be processed selected by the data editor in the data display and selection module.

[0070] After arranging the custom processing flow, the data processing module compiles the processing flow into the processing flow library. The processing flow in the processing flow library can be called by the data processing module.

[0071] The operation data in the efficient data sending process is the request data. The specific operations are as follows:

[0072] In the data editor of the data display and selection module, the user uses the mouse to select the data to be added or edited, that is, the data to be processed. After the user completes the selection, the selected data to be processed is sent to the data processing module, and the location information of the data to be processed in the editor is sent to the data locking module.

[0073] The user enters the content to be modified in the editor of the data processing module, selects the built-in data processing flow as needed, or composes and designs a custom data processing flow. The data in the editor will be processed in the order of the processing flow, and then replace the data to be processed selected by the editor in the data display and selection module.

[0074] The data locking module calculates the position information of the data to be processed and the length change of the processed data, and repositions the position of the new data processed by the data editor in the data display and selection module, and automatically selects the updated data.

[0075] The user sends the data in the data editor in the data transceiver module to the test target through the data transceiver module, and receives the response data sent back by the test target.

[0076] The next time you send request data, you only need to enter it in the editor in the data processing module. You do not need to select the data again or reselect the data processing method.

[0077] The data editor in the data display and selection module records every data change and saves it in a stack, supporting data undo and redo operations.

[0078] The operation data in the efficient data receiving process is the response data received after the request data is sent. The specific operations are as follows:

[0079] The user sends the data in the data editor in the data display and selection module to the test target through the data transceiver module, and receives the response data sent back by the test target. The response data will be displayed in the data editor in the data display and selection module.

[0080] The user uses the mouse to select the data to be processed, decoded or decrypted, i.e., the data to be processed, in the data editor in the data display and selection module. After the user completes the selection, the selected data to be processed will be sent to the data processing module, and the location information of the data to be processed in the editor of the data display and selection module will be sent to the data locking module.

[0081] The editor in the data processing module will display the data to be processed. Users can select built-in data processing flows as needed, or compile and design custom data processing flows. The data in the editor will be processed in the order of the processing flow, and then replace the data to be processed selected by the editor in the data display and selection module.

[0082] The data locking module calculates the recorded location information of the data to be processed and the change in the length of the processed data, repositions the position of the processed new data in the data editor in the data display and selection module, and automatically selects the updated data.

[0083] The next time you receive response data, the data in this coordinate range will be automatically selected. You do not need to select the data again or reselect the data processing method.

[0084] The present invention can help testers lock the editing area of ​​a data packet without repeatedly selecting the data location that needs to be modified, supports custom arrangement of data processing flows, automatically completes data processing operations, greatly reduces operation complexity, and improves work efficiency.

[0085] Example 3: Figure 3 As shown, the present invention provides an efficient data packet editing and processing method, so that the user does not need to frequently manually select the position to add the test vector in the data packet, and does not need to reposition and select, modify, and replace the previous test vector every time the test vector is modified. There is no need to waste a lot of time on operations such as positioning, selecting, copying, and pasting.

[0086] It includes the following stages: data sending stage and data receiving stage;

[0087] The data sending phase includes the following steps:

[0088] A1: Send the data to be processed to the data editing device, and send the location information of the data to be processed to the data processing device; the data editing device processes the data to be processed according to the process, and replaces the data to be processed with the processed data;

[0089] A2: The data processing device calculates the position information of the data to be processed in step A1 and the length change of the processed data, relocates the position of the processed data in step A1, and automatically selects the processed data;

[0090] A3: Send the processed data in step A1 to the test target through the data processing device, and receive the response data sent back by the test target;

[0091] The data receiving stage comprises the following steps:

[0092] B1: The data processing device sends the data to be processed to the test target and receives the response data sent back by the test target; sends the data to be processed to the data editing device, and sends the location information of the data to be processed to the data processing device;

[0093] B2: The data editing device processes the data to be processed according to the process, and then replaces the data to be processed in step A1 with the processed data;

[0094] B3: The data processing device calculates the position information of the data to be processed in step A1 and the change in the data length of the data processed in step B2, and relocates the position of the data processed in step A1.

[0095] Each subsequent time you send request data, you need to enter data in step A1; when you receive response data, the data within the input data range used last time will be automatically selected.

[0096] In step A1, every data change is recorded and saved in a stack to support data undo and redo.

[0097] In step B3, the updated data is automatically selected after repositioning the data processed in step A1.

[0098] The process of the data editing device includes a customized data processing process, which realizes compound processing of data and completes customization of data process by designing and combining various data encoding, decoding, encryption and decryption rules through a visual interface.

[0099] The above are only preferred embodiments of the present invention. It should be noted that the above preferred embodiments should not be regarded as limiting the present invention, and the protection scope of the present invention should be based on the scope defined by the claims. For ordinary technicians in this technical field, several improvements and modifications can be made without departing from the spirit and scope of the present invention, and these improvements and modifications should also be regarded as the protection scope of the present invention.

Claims

1. An efficient data packet editing and processing system, characterized in that: Includes the following modules: Data display and selection module: sends the data to be processed selected by the user and the location information of the data to be processed to the data locking module, and sends the selected data to be processed to the data processing module; Data processing module: processes and replaces the data to be processed sent by the data display and selection module; Data locking module: locks the position of the data to be processed sent by the data display and selection module, and keeps the data to be processed selected; Data transceiver module: sends the processed data packets in the data editor in the data display and selection module to the test target, and receives and displays the response data sent back by the test target, ending the process; The data locking module changes the locking state of the original data to be processed only when the user selects new data to be processed again; The custom data processing flow designed and combined by the user through the visual interface in the data processing module can be saved and reused; the data editor of the data display and selection module records each change of the data to be processed and saves it in the stack, supporting the undo and redo operations of the data to be processed; The data processing module includes a data editor. The input content in the data editor of the data processing module is used as a replacement source for the data editor in the data display and selection module. The user does not need to edit the data in the selected area in the data editor in the data display and selection module. The user only needs to edit the data in the data editor in the data processing module. The data processing module integrates a data encoding and decoding module and a data encryption and decryption module, processes data by writing custom scripts, and calls third-party tools to process the data to be processed; The data processing module supports custom data processing procedures. Users can design and combine various data encoding, decoding, encryption, and decryption rules through a visual interface to achieve composite processing of data and complete custom data processing procedures. The data locking module calculates the position information of the data to be processed and the length change of the processed data recorded by it, repositions the position of the processed new data in the data editor of the data display and selection module, and automatically selects the updated data.

2. The efficient data packet editing and processing system according to claim 1, characterized in that: The main body of the data display and selection module is a data editor, which is used to display, select and edit data; the data editor supports data search, data modification, data deletion, data selection, data copying, data pasting, data undoing and data redoing.

3. A processing method of an efficient data packet editing and processing system as claimed in any one of claims 1 to 2, characterized in that: It includes the following stages: data sending stage and data receiving stage; The data sending phase The following steps are involved: A1: Send the data to be processed to the data editing device, and send the location information of the data to be processed to the data processing device; The data editing device processes the data to be processed according to the process and replaces the data to be processed with the processed data; A2: The data processing device calculates the position information of the data to be processed in step A1, calculates the length change of the processed data, relocates the position of the processed data in step A1, and automatically selects the processed data; A3: Send the processed data in step A1 to the test target through the data processing device, and receive the response data sent back by the test target; The data receiving stage The following steps are involved: B1: The data processing device sends the data to be processed to the test target and receives the response data sent back by the test target; Sending the data to be processed to the data editing device, and sending the location information of the data to be processed to the data processing device; B2: The data editing device processes the data to be processed according to the process, and then replaces the data to be processed in step A1 with the processed data; B3: The data processing device calculates the position information of the data to be processed in step A1 and the change in the data length of the data processed in step B2, and relocates the position of the data processed in step A1.

4. The processing method of an efficient data packet editing and processing system according to claim 3, characterized in that: Each subsequent time you send request data, you need to enter data in step A1; when you receive response data, the data within the input data range used last time will be automatically selected.

5. The processing method of an efficient data packet editing and processing system according to claim 4, characterized in that: In step A1, each data change is recorded and saved in a stack to support data undo and redo; in step B3, the updated data is automatically selected after relocating the position of the data processed in step A1.

6. The processing method of an efficient data packet editing and processing system according to claim 5, characterized in that: The process of the data editing device includes a customized data processing process, which realizes compound processing of data and completes customization of data process by designing and combining various data encoding, decoding, encryption and decryption rules through a visual interface.