Mobile Internet application protocol testing method and device

Through automated network packet type identification and analysis, the problem of traditional testing methods relying on manual operations is solved, efficient automated testing of mobile Internet application protocols is realized, and the efficiency of network security audit is improved.

CN113760760BActive Publication Date: 2024-12-20WUHAN HONGXU INFORMATION TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111032085.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-09-03
Publication Date
2024-12-20
Estimated Expiration
2041-09-03

AI Technical Summary

Technical Problem

The traditional mobile Internet application protocol testing method relies on manual operation, is cumbersome and inefficient, and cannot meet the needs of network security audit for automated testing.

Method used

By obtaining the network data packets to be tested from the mobile Internet, determining their type according to preset rules, analyzing and generating feature data, obtaining test results, and realizing automated application protocol testing.

Benefits of technology

It improves the parsing ability and testing efficiency of mobile Internet application protocols, realizes automated testing, reduces the cumbersomeness of manual operations, and improves the efficiency of network security audits.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113760760B_ABST
    Figure CN113760760B_ABST
Patent Text Reader

Abstract

The present invention provides a method and device for testing a mobile Internet application protocol, the method comprising: obtaining a network data packet to be tested from the mobile Internet, and determining the type of the network data packet to be tested according to a preset rule; parsing the network data packet to be tested, generating several groups of feature data, and determining the type of each group of the feature data; parsing the feature data of the target type to obtain a test result. The method and device for testing a mobile Internet application protocol provided by the present invention are based on obtaining a network data packet from the mobile Internet, and determining the target type according to the test requirements, classifying the feature data generated by parsing the network data packet, parsing the test results for the feature data of the target type, and being able to automatically extract feature data under a specified information type from the network data packet, generate corresponding test results, and improve the parsing capability and test efficiency of the mobile Internet application protocol.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of mobile communication technology, and in particular to a mobile Internet application protocol testing method and device. Background Art

[0002] Mobile software (Application, APP) is an application service developed for mobile terminals to connect to the Internet.

[0003] Application protocol analysis technology is a deep analysis based on data packets. It mainly analyzes different network application layer loads (for example, HTTP, DNS, SIP, etc.). It reorganizes the application layer information of the TCP / IP protocol by deeply analyzing the payload content of the message, thereby identifying various applications on the network and extracting valid content.

[0004] The traditional network application protocol testing method is mainly based on manual operation. By manually starting each main program module of the network security audit system, after each subsystem is connected, the network data packet is sent to the network security audit system collection port. After the system has processed it, a directory is generated in the interface machine network feature data file, and the compressed files are opened one by one and decompressed to obtain BCP files and XML files. The BCP file is opened with a text editor and converted into hexadecimal, and all 09 tab characters are replaced with 0a line feed characters, and then switched back to decimal. In addition, the XML file is opened and all field information is copied to the transcoded BCP file content in column mode for recognition.

[0005] Faced with the need for network security audits under the growing mobile Internet traffic, traditional testing methods rely on manual work and are cumbersome to operate. Summary of the invention

[0006] The present invention provides a mobile Internet application protocol testing method and device, which are used to solve the defects of the testing method in the prior art that it relies on manual work and is cumbersome to operate, and realize automatic parsing and testing efficiency of the mobile Internet application protocol.

[0007] The present invention provides a mobile Internet application protocol testing method, comprising:

[0008] Acquire a network data packet to be tested from the mobile Internet, and determine the type of the network data packet to be tested according to a preset rule;

[0009] Parsing the network data packet to be tested, generating several groups of characteristic data, and determining the type of each group of characteristic data;

[0010] Parsing the characteristic data of the target type to obtain test results;

[0011] The type of the network data packet to be tested includes the target type.

[0012] According to a mobile Internet application protocol testing method provided by the present invention, the characteristic data includes a first target file and a second target file.

[0013] According to a mobile Internet application protocol testing method provided by the present invention, the determining the type of each group of characteristic data includes:

[0014] For each set of the characteristic data, obtaining first target information corresponding to the characteristic data;

[0015] Based on the first target information, determining the type of the feature data;

[0016] The first target information includes file name information of the first target file.

[0017] According to a mobile Internet application protocol testing method provided by the present invention, the target feature data is parsed to obtain the test result, including:

[0018] Based on the target feature data, obtaining second target information and third target information;

[0019] Based on the second target information and the third target information, obtaining the test result;

[0020] The target characteristic data includes characteristic data of a target type, the second target information includes content information in the first target file, and the third target information includes field information in the second target file.

[0021] According to a mobile Internet application protocol testing method provided by the present invention, obtaining the test result based on the second target information and the third target information includes:

[0022] The second target information and the third target information are merged in columns to obtain the test result.

[0023] According to a mobile Internet application protocol testing method provided by the present invention, after obtaining the network data packet to be tested from the mobile Internet and identifying the type of the network data packet to be tested according to preset rules, it also includes: storing the type of the network data packet to be tested in a directory corresponding to the target type.

[0024] The present invention also provides a mobile Internet application protocol testing device, comprising:

[0025] A first determination module is used to obtain a network data packet to be tested from the mobile Internet, and determine the type of the network data packet to be tested according to a preset rule;

[0026] A second determination module is used to parse the network data packet to be tested, generate several groups of characteristic data, and determine the type of each group of characteristic data;

[0027] A parsing module, used to parse the characteristic data of the target type and obtain test results;

[0028] The type of the network data packet to be tested includes the target type.

[0029] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the steps of any one of the above-mentioned mobile Internet application protocol testing methods are implemented.

[0030] The present invention also provides a non-transitory computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps of any of the above-mentioned mobile Internet application protocol testing methods are implemented.

[0031] The present invention also provides a computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the steps of any one of the mobile Internet application protocol testing methods described above are implemented.

[0032] The mobile Internet application protocol testing method and device provided by the present invention are based on obtaining network data packets from the mobile Internet, determining the target type according to the test requirements, classifying the feature data generated by parsing the network data packets, parsing the feature data with the target type to obtain the test results, and can automatically extract the feature data under the specified information type from the network data packets, generate corresponding test results, and improve the mobile Internet application protocol parsing capability and testing efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0034] Figure 1 It is a flow chart of the mobile Internet application protocol testing method provided by the present invention;

[0035] Figure 2This is one of the structural schematic diagrams of the mobile Internet application protocol testing device provided by the present invention;

[0036] Figure 3 This is the second structural diagram of the mobile Internet application protocol testing device provided by the present invention;

[0037] Figure 4 It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION

[0038] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0039] The terms "first", "second", etc. in the specification and claims of this application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the terms used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described herein, and the objects distinguished by "first", "second", etc. are generally of the same type, and the number of objects is not limited. For example, the first object can be one or more.

[0040] It should be understood that the terms used in the present specification are only for the purpose of describing specific embodiments and are not intended to limit the present invention. As used in the present specification and the appended claims, unless the context clearly indicates otherwise, the singular forms "a", "an" and "the" are intended to include plural forms.

[0041] The terms “include” and “comprising” indicate the presence of described features, integers, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or combinations thereof.

[0042] Figure 1 FIG. 1 is a flow chart of the mobile Internet application protocol testing method provided by the present invention. Figure 1 As shown, the mobile Internet application protocol testing method provided by the embodiment of the present invention includes: Step 101, obtaining a network data packet to be tested from the mobile Internet, and determining the type of the network data packet to be tested according to a preset rule.

[0043] The type of the network data packet to be tested includes the target type.

[0044] It should be noted that the execution subject of the mobile Internet application protocol testing method provided in the embodiment of the present invention is a mobile Internet application protocol testing device.

[0045] The test requirement of the mobile Internet application protocol test method provided by the embodiment of the present invention is to perform in-depth analysis on the network data packet, identify the information type corresponding to the network data packet, and extract the valid content inside, but it is not limited to this test requirement.

[0046] Correspondingly, the mobile Internet application protocol test device is used to extract effective content from the action features parsed by the network security audit system from the network data packet to be tested. The network security audit system runs on a physical electronic device. The network security audit system is used to parse and restore the network data packet captured by the mobile Internet application protocol test device, and parse out the action features in the network data packet.

[0047] The test object of the mobile Internet application protocol test device is the network data packets corresponding to the actions executed in various applications in a certain period of time in the mobile Internet.

[0048] A network data packet refers to a data packet transmitted in the mobile Internet when any terminal uses any application to perform any action at any time.

[0049] The type of network data packet refers to the type of information corresponding to the data in the network data packet. According to industry standards, information types may include instant messaging (IM), express delivery, email, and news.

[0050] The embodiment of the present invention does not specifically limit the storage format of the network data packet.

[0051] For example, network data packets can be stored in a file with the suffix ".pcap", and the name of the file can indicate the type, time and application of the action that occurred.

[0052] Specifically, the mobile Internet application protocol test device obtains a number of network data packets from the mobile Internet, and based on the known industry-specified category classification, judges the network data packets according to pre-set rules, determines the type of the network data packets, and automatically sends all network data packets to the network security audit system. The embodiment of the present invention does not specifically limit the technology of automatic packet sending, for example, all network data packets can be sent at preset time intervals using the except instruction.

[0053] The number of types of network data packets may be one or more, and the number of test results of the network data packet is consistent with the number of information types contained therein.

[0054] The target type refers to one or more information types set by the user of the mobile Internet application protocol test device for a network data packet. The target type is used to indicate that the user of the mobile Internet application protocol test device wishes to obtain test results under one or several information types in the network data packet.

[0055] For example, a terminal user uses instant messaging on a terminal device to send a picture to a friend at a certain moment, and the types of network data packets corresponding to this action include at least instant messaging and picture information. If the user of the mobile Internet application protocol test device only needs the test results of the instant messaging category, the two types of information involved in the network data packet are obtained according to the preset rules, and the instant messaging category is used as the target type.

[0056] The embodiments of the present invention do not impose any specific restrictions on the preset rules for determining the type of data packet. For example, the type of the network data packet may be determined based on the action type and the application program to which it belongs indicated in the naming information of the network data packet, and the target type may be specified.

[0057] Step 102: parse the network data packet to be tested, generate several groups of characteristic data, and determine the type of each group of characteristic data.

[0058] The execution subject of determining the type of each set of characteristic data in step 102 is the mobile Internet application protocol testing device.

[0059] Specifically, after the mobile Internet application protocol testing device captures a network data packet of a determined target type, it obtains several groups of characteristic data through parsing and restoration, and classifies them to obtain the information type corresponding to each group of characteristic data.

[0060] Each set of characteristic data is used to indicate the characteristics of the action corresponding to the tested network data packet, for example, the type of application that executes the action or the specific content of the action.

[0061] The types of characteristic data are consistent with the types of network data packets, and are divided according to industry standards.

[0062] Step 103: parse the characteristic data of the target type to obtain the test result.

[0063] Specifically, the mobile Internet application protocol testing device screens the characteristic data of the groups with determined types in step 102 according to the target type, extracts each group of characteristic data with the target type, and analyzes the characteristic data to obtain the test result.

[0064] Test results refer to mobile Internet application protocol test

[0065] The device obtains the result after testing according to the test requirements. The embodiment of the present invention does not specifically limit this. For example, the action corresponding to the network data packet to be tested may include relevant information of the action initiator and the receiver, or the action may include text, images or audio content.

[0066] It is understandable that before the mobile Internet application protocol testing device obtains the network data packet to be tested from the mobile Internet in step 101, the connection status inside the mobile Internet application protocol testing device can be monitored.

[0067] The embodiment of the present invention is based on obtaining network data packets from the mobile Internet, determining the target type according to the test requirements, classifying the feature data generated by parsing the network data packets, parsing the feature data with the target type to obtain the test results, and being able to automatically extract the feature data under the specified information type from the network data packets, generate the corresponding test results, and improve the mobile Internet application protocol parsing capability and test efficiency.

[0068] Based on any of the above embodiments, the characteristic data includes a first target file and a second target file.

[0069] Specifically, the characteristic data acquired by the mobile Internet application protocol testing device in step 102 is composed of a first target file and a second target file. The embodiment of the present invention does not specifically limit the first target file, the second target file and their composition.

[0070] Preferably, the characteristic data acquired by the mobile Internet application protocol testing device in step 102 may be a file compression package including the first target file and the second target file.

[0071] Optionally, the compressed package may be a combination of several digital numbers according to a certain naming rule, wherein the data codes corresponding to different digital segments indicate certain inherent attributes of the data packet (such as time, region, etc.).

[0072] The first target file in the compressed package is used to store the bulk copy data created by the bulk copy utility or synchronization. Exemplarily, the first target file may be a BCP file.

[0073] The second target file in the compressed package is used to mark data and define data types. Exemplarily, the second target file may be an XML file.

[0074] The embodiment of the present invention forms feature data based on the first target file and the second target file, and can store different feature information through different files, thereby improving the scalability of the mobile Internet application protocol.

[0075] On the basis of any of the above embodiments, determining the type of each set of characteristic data includes: for each set of characteristic data, acquiring first target information corresponding to the characteristic data.

[0076] The first target information includes file name information of the first target file.

[0077] It should be noted that the first target information refers to the file name information of the first target file, which is used to indicate the type of characteristic data to which it belongs.

[0078] Specifically, the mobile Internet application protocol testing device can obtain the file name information of the first target file in each set of feature data parsed by pre-decompression as the first target information of the set of feature data. The embodiment of the present invention does not specifically limit the method for obtaining the first target information.

[0079] For example, the mobile Internet application protocol testing device can obtain the file name information of the internal file without downloading the internal file by pre-decompressing the compressed package of the characteristic data, and can also intercept the valid character segment of the file name information.

[0080] Based on the first target information, a type of the feature data is determined.

[0081] It should be noted that there is a corresponding relationship between the file name information of the first target file and the type of the characteristic data.

[0082] Specifically, the mobile Internet application protocol testing device can determine the type of characteristic data corresponding to the first target information through the first target information according to the corresponding relationship.

[0083] The embodiment of the present invention obtains the first target information based on each feature data, and determines the type of the feature data according to the first target information. It can automatically know the type of the parsed feature data, and generate corresponding test results according to the feature file of the target type, thereby improving the mobile Internet application protocol parsing capability and testing efficiency.

[0084] On the basis of any of the above embodiments, the target characteristic data is parsed to obtain the test result, including: obtaining the second target information and the third target information based on the target characteristic data.

[0085] The target characteristic data includes characteristic data of a target type, the second target information includes content information in the first target file, and the third target information includes field information in the second target file.

[0086] It should be noted that target feature data refers to feature data of a target type, and the number of target feature data may be one group or multiple groups, and the number is consistent with the number of target types.

[0087] Specifically, the mobile Internet application protocol testing device itself pre-decompresses the characteristic data of the target type, directly opens the first target file and the second target file without downloading the first target file and the second target file in the characteristic data compression package, and extracts the second target information and the third target information accordingly.

[0088] The second target information refers to content information corresponding to certain fields stored in the BCP file in the compressed package.

[0089] The third target information refers to certain field information stored in the XML file in the compressed package.

[0090] Based on the second target information and the third target information, obtaining a test result;

[0091] Specifically, the mobile Internet application protocol testing device itself combines the second target information and the third target information to obtain the test result. The embodiment of the present invention does not specifically limit the storage method of the test result.

[0092] For example, the second target information and the third target information may be associated with each other by a certain identifier and stored in one file.

[0093] The second target information and the third target information may also be directly stored in one file in sequence.

[0094] The embodiment of the present invention is based on extracting the second target information and the third target information from the target feature data, and generating the test results based on the second target information and the third target information. It can automatically extract the feature data of the specified information type from the network data packet, generate the corresponding test results, and improve the mobile Internet application protocol parsing capability and testing efficiency.

[0095] On the basis of any of the above embodiments, based on the second target information and the third target information, obtaining the test result includes: merging the second target information and the third target information by column to obtain the test result.

[0096] Specifically, the mobile Internet application protocol testing device stores the extracted second target information and third target information in a corresponding order as rows, and stores the information in the corresponding rows in columns into a file as a test result.

[0097] Preferably, the mobile Internet application protocol testing device itself transcodes the BCP file content, and cyclically reads the field content and saves it as a file. At the same time, the XML file field information is extracted by node matching and saved as another file. The above two files are merged in a column mode to generate a final file, which is the final result generated by the automated test.

[0098] The embodiment of the present invention generates test results based on the second target information and the third target information by merging columns, and can automatically extract feature data under a specified information type from a network data packet, generate corresponding test results, and improve the mobile Internet application protocol parsing capability and test efficiency.

[0099] Based on any of the above embodiments, after obtaining the network data packet to be tested from the mobile Internet and identifying the type of the network data packet to be tested according to preset rules, it also includes: storing the type of the network data packet to be tested in a directory corresponding to the target type.

[0100] Specifically, in step 101, the mobile Internet application protocol testing device itself obtains a number of network data packets from the mobile Internet. After the user of the device determines the information type of the network data packet to be tested according to the category classification stipulated by the industry, the data packet is stored in a file directory corresponding to the target type, and all network data packets in the file directory are automatically distributed to the network security audit system using the except technology.

[0101] Preferably, the mobile Internet application protocol testing device itself stores all application network data packets in designated directories according to category classification rules, obtains all network data packets in the current path, and uses expect technology to send them to the acquisition server packet capture port in sequence, with the packet sending interval set to 300 seconds.

[0102] Figure 2 This is one of the structural diagrams of the mobile Internet application protocol testing device provided by the present invention. Figure 2 As shown, the mobile Internet application protocol testing device provided by the embodiment of the present invention includes: a first determination module 210, a second determination module 220 and a parsing module 230, wherein:

[0103] The first determination module 210 is used to obtain a network data packet to be tested from the mobile Internet, and determine the type of the network data packet to be tested according to a preset rule.

[0104] The second determination module 220 is used to parse the network data packet to be tested, generate several groups of characteristic data, and determine the type of each group of characteristic data.

[0105] The parsing module 230 is used to parse the characteristic data of the target type and obtain the test result.

[0106] The type of the network data packet to be tested includes the target type.

[0107] Specifically, the first determination module 210 , the second determination module 220 , and the analysis module 230 are electrically connected in sequence.

[0108] The first determination module 210 obtains a number of network data packets from the mobile Internet, and based on the known industry-specified category classification, judges the network data packets according to pre-set rules, determines the type of the network data packets, and automatically sends all network data packets to the network security audit system.

[0109] After capturing the network data packet of the determined target type, the second determination module 220 obtains several groups of characteristic data after parsing, restoring and transferring, and classifies them to obtain the information type corresponding to each group of characteristic data.

[0110] The analysis module 230 selects several groups of characteristic data of determined types according to the target type, extracts characteristic data of the target type, and analyzes the characteristic data to obtain the test results.

[0111] Optionally, the characteristic data in the device includes a first target file and a second target file.

[0112] Optionally, the second determination module 220 includes a first acquisition unit and a feature type acquisition unit, wherein:

[0113] A first acquisition unit, configured to acquire, for each set of characteristic data, first target information corresponding to the characteristic data;

[0114] A feature type acquisition unit, used to determine the type of feature data based on the first target information;

[0115] The first target information includes file name information of the first target file.

[0116] Optionally, the parsing module 230 includes a second acquisition unit and a result acquisition unit, wherein:

[0117] A second acquisition unit, used for acquiring second target information and third target information based on the target feature data;

[0118] A result acquisition unit, used for acquiring a test result based on the second target information and the third target information;

[0119] The target characteristic data includes characteristic data of a target type, the second target information includes content information in the first target file, and the third target information includes field information in the second target file.

[0120] Optionally, the result acquisition unit is specifically used to merge the second target information and the third target information by column to obtain the test result.

[0121] Optionally, a storage unit is further included after the first determining module 210, wherein:

[0122] The storage unit is used to store the type of the network data packet to be tested in a directory corresponding to the target type.

[0123] Figure 3 This is the second structural diagram of the mobile Internet application protocol testing device provided by the present invention. Figure 3 As shown, the mobile Internet application protocol testing device provided by the embodiment of the present invention includes: a monitoring module 310 , a first determination module 320 , a second determination module 330 and a parsing module 340 .

[0124] Optionally, the second determining module 330 may include a network security auditing unit 331 and a determining unit 332 .

[0125] Specifically, the monitoring module 310 is used to input configuration parameters, data acquisition executable program, and configuration file parameter detection in the test device during the operation of the test device. At the same time, before each packet is sent, the operation and connection status of the main program of each submodule (acquisition, restoration, interface machine) in the network security audit unit 331 are monitored.

[0126] The embodiment of the present invention does not specifically limit the specific implementation process of the monitoring module 310. For example, parameters such as IP, port number, and configuration file can be configured according to the network security audit unit 331. After the configuration is successful, the operating status of the network security audit unit 331 is monitored. The specific monitoring steps are as follows:

[0127] (1) Check whether the main program and configuration files of each submodule (acquisition, restoration, interface machine) are correct. If they are normal, execute the next step. If not, exit directly.

[0128] (2) Back up the main configuration files of each submodule (acquisition, restoration, and interface machine) separately, and automatically replace the set key configuration information.

[0129] (3) Automatically start the main program of each sub-module (acquisition, restoration, interface machine), monitor the status information generated by the program TSL.log, and automatically determine whether the connection between each module in the current operating environment is normal.

[0130] The first determination module 320 is used to determine the type of the network data packet according to various categories defined by the industry standard element specification, manually archive it in the path corresponding to the specified type, and send the network data packet to the network security audit unit 331.

[0131] The second determination module 330 is used to transfer the characteristic data file packages generated in the directory of the interface machine module of the network security audit unit 331, and classify the transferred characteristic data file packages.

[0132] The network security audit unit 331 is used to parse the network data packets to be tested and generate several groups of characteristic data.

[0133] The network security audit unit can be a software system that runs on a mobile Internet application protocol testing device, and at least includes a collection main program, a restoration main program, and an interface machine main program.

[0134] The acquisition main program is used to receive the network data packet sent by the first determination module 320 in the mobile Internet application protocol test device to the network security audit unit 331. The restoration main program is used to perform in-depth analysis on the network data packet and restore the characteristic information of the network data packet. The interface machine main program is used to convert the restored characteristic information into a file format and store it, waiting for the determination unit 332 in the second determination unit 330 to transfer and parse the file.

[0135] The determination unit 332 is used to perform preliminary analysis and classification on the characteristic data file package transferred from the network security audit unit 331 .

[0136] For example, when generating characteristic data, the network security audit unit 331 may name the first target file according to a certain naming rule, and a certain segment of character information in the file name indicates the type of characteristic data.

[0137] The determination unit 332 can obtain the complete file name information of the first target file to determine the type of the characteristic data without downloading the internal files by pre-decompressing the compressed package of the characteristic data, or it can directly intercept the valid character segment of the first target file name information to determine the type of the characteristic data.

[0138] The parsing module 340 is used to automatically extract the BCP file content and XML field information in the feature data file package, and to correspond the field name to the extracted information one by one and write them into the result file.

[0139] The mobile Internet application protocol testing device provided in an embodiment of the present invention is used to execute the above-mentioned mobile Internet application protocol testing method of the present invention. Its implementation method is consistent with the implementation method of the mobile Internet application protocol testing method provided by the present invention, and can achieve the same beneficial effects, which will not be repeated here.

[0140] The embodiment of the present invention is based on obtaining network data packets from the mobile Internet, determining the target type according to the test requirements, classifying the feature data generated by parsing the network data packets, parsing the feature data with the target type to obtain the test results, and being able to automatically extract the feature data under the specified information type from the network data packets, generate the corresponding test results, and improve the mobile Internet application protocol parsing capability and test efficiency.

[0141] Figure 4An example of a physical structure diagram of an electronic device is shown in FIG. Figure 4 As shown, the electronic device may include: a processor 410, a communication interface 420, a memory 430 and a communication bus 440, wherein the processor 410, the communication interface 420 and the memory 430 communicate with each other through the communication bus 440. The processor 410 may call the logic instructions in the memory 430 to execute the mobile Internet application protocol test method, which includes: obtaining a network data packet to be tested from the mobile Internet, and determining the type of the network data packet to be tested according to a preset rule; parsing the network data packet to be tested, generating several groups of feature data, and determining the type of each group of feature data; parsing the feature data of the target type to obtain the test result; wherein the type of the network data packet to be tested includes the target type.

[0142] In addition, the logic instructions in the above-mentioned memory 430 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.

[0143] On the other hand, the present invention also provides a computer program product, which includes a computer program. The computer program can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the mobile Internet application protocol testing method provided by the above methods, which includes: obtaining a network data packet to be tested from the mobile Internet, and determining the type of the network data packet to be tested according to preset rules; parsing the network data packet to be tested, generating several groups of feature data, and determining the type of each group of feature data; parsing the feature data of the target type to obtain the test result; wherein the type of the network data packet to be tested includes the target type.

[0144] On the other hand, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, it is implemented to execute the mobile Internet application protocol testing method provided by the above-mentioned methods. The method includes: obtaining a network data packet to be tested from the mobile Internet, and determining the type of the network data packet to be tested according to preset rules; parsing the network data packet to be tested, generating several groups of feature data, and determining the type of each group of feature data; parsing the feature data of the target type to obtain a test result; wherein the type of the network data packet to be tested includes the target type.

[0145] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.

[0146] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0147] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A mobile Internet application protocol testing method, characterized in that: include: Acquire a network data packet to be tested from the mobile Internet, and determine the type of the network data packet to be tested according to a preset rule; Parsing the network data packet to be tested, generating several groups of characteristic data, and determining the type of each group of characteristic data; Parsing the characteristic data of the target type to obtain test results; The generating of several sets of characteristic data includes: After the mobile Internet application protocol test device captures the network data packet of the determined target type, it obtains several groups of characteristic data through parsing and restoration, and classifies them to obtain the information type corresponding to each group of characteristic data; Determining the type of each set of feature data includes: For each set of the characteristic data, obtaining first target information corresponding to the characteristic data; Based on the first target information, determining the type of the feature data; The type of the network data packet to be tested includes the target type; the characteristic data is a file compression package including a first target file and a second target file; The obtaining of the first target information corresponding to the characteristic data includes: obtaining file name information of the first target file in the set of characteristic data by pre-decompression as the first target information of the set of characteristic data.

2. The mobile Internet application protocol testing method according to claim 1, characterized in that: The step of parsing the target feature data and obtaining the test results includes: Based on the target feature data, obtaining second target information and third target information; Based on the second target information and the third target information, obtaining the test result; The target characteristic data includes characteristic data of a target type, the second target information includes content information in the first target file, and the third target information includes field information in the second target file.

3. The mobile Internet application protocol testing method according to claim 2, characterized in that: The obtaining the test result based on the second target information and the third target information includes: The second target information and the third target information are merged in columns to obtain the test result.

4. The mobile Internet application protocol testing method according to any one of claims 1 to 3, characterized in that: After acquiring the network data packet to be tested from the mobile Internet and identifying the type of the network data packet to be tested according to a preset rule, the method further includes: storing the type of the network data packet to be tested in a directory corresponding to the target type.

5. A mobile Internet application protocol testing device, characterized in that: include: A first determination module is used to obtain a network data packet to be tested from the mobile Internet, and determine the type of the network data packet to be tested according to a preset rule; A second determination module is used to parse the network data packet to be tested, generate several groups of characteristic data, and determine the type of each group of characteristic data; A parsing module, used to parse the characteristic data of the target type and obtain test results; Wherein, the type of the network data packet to be tested includes the target type; The generating of several sets of characteristic data includes: After the mobile Internet application protocol test device captures the network data packet of the determined target type, it obtains several groups of characteristic data through parsing and restoration, and classifies them to obtain the information type corresponding to each group of characteristic data; Determining the type of each set of feature data includes: For each set of the characteristic data, obtaining first target information corresponding to the characteristic data; Based on the first target information, determining the type of the feature data; The type of the network data packet to be tested includes the target type; the characteristic data is a file compression package including a first target file and a second target file; The obtaining of the first target information corresponding to the characteristic data includes: obtaining file name information of the first target file in the set of characteristic data by pre-decompression as the first target information of the set of characteristic data.

6. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the steps of the mobile Internet application protocol testing method as described in any one of claims 1 to 4 are implemented.

7. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the mobile Internet application protocol testing method according to any one of claims 1 to 4 are implemented.

8. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the mobile Internet application protocol testing method according to any one of claims 1 to 4 are implemented.