Network testing method and device, equipment and storage medium
By obtaining the application's network traffic data and performing automated functional tests in the IPv6 network, the functional abnormalities and performance degradation encountered by existing applications in the IPv6 network environment are solved, and efficient and accurate IPv6 support test is achieved. Reduces labor costs and improves testing efficiency.
Patent Information
- Application Number
- CN202411394483.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-08
- Publication Date
- 2025-02-18
AI Technical Summary
Existing applications may encounter abnormal functions, failed connections or reduced performance problems in IPv6 network environments, which will affect user experience and application reliability. The existing IPv6 support test methods rely on manual detection, accuracy and Low efficiency.
By obtaining the application's network traffic data, quickly determine the network protocol used by the application, and perform automated functional tests in the IPv6 network, record the test results and generate a test report.
It realizes automated functional testing of application IPv6 support, reduces labor costs, improves testing efficiency and accuracy, helps developers quickly discover and fix potential problems, and provides a basis for subsequent optimization.
Smart Images

Figure CN119484344A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of network testing technology, and in particular to a network testing method, device, equipment and storage medium. Background Art
[0002] With the rapid development of Internet technology, the address resources of Internet Protocol version 4 (IPv4) are facing the severe challenge of exhaustion. As the next generation Internet protocol, Internet Protocol version 6 (IPv6) is gradually becoming popular and applied due to its huge address space, stronger security and more efficient routing capabilities. However, many existing applications do not fully consider the support of IPv6 during design and development, which leads to these applications encountering problems such as functional anomalies, connection failures or performance degradation in the IPv6 network environment, which directly affects the user experience and the reliability of the application.
[0003] In order to ensure that current applications can run normally in the future Internet environment, it is essential to test their IPv6 support. However, most of the current IPv6 support testing methods for applications rely on manual detection, which has low accuracy and efficiency and is difficult to meet the growing needs of developers and testers. Summary of the invention
[0004] In view of this, the purpose of the present application is to provide a network testing method, device, equipment and storage medium.
[0005] As one aspect of the present application, a network testing method is provided, comprising:
[0006] Get network traffic data for your application;
[0007] Based on the network traffic data, determining a network protocol corresponding to the application;
[0008] In response to determining that the network protocol is the IPv6 protocol, performing a functional test on the application in the IPv6 network, and recording a test result of the functional test;
[0009] A test report is generated according to the test results.
[0010] Optionally, performing a functional test on the application and recording a test result of the functional test includes:
[0011] Obtaining an automated test script for performing the functional test;
[0012] Testing multiple functions of the application according to the automated testing script;
[0013] The response time and success rate of the application when testing each of the functions described are recorded.
[0014] Optionally, log files generated by the application during the testing process are collected; the log files include abnormal situations of the application during the testing process.
[0015] Optionally, determining the network protocol corresponding to the application based on the network traffic data includes:
[0016] Determining, based on the network traffic data, a network address when the application program accesses an application server;
[0017] Based on the network address, a network protocol corresponding to the application is determined.
[0018] Optionally, before obtaining the network traffic data of the application, the following steps are included:
[0019] Configure a test environment; the test environment includes an IPv6 network, a test tool and the application; the IPv6 network is used to support the application to access the application server; the test tool is used to capture network traffic data of the application in operation.
[0020] Optionally, the testing tool is a network sniffing tool.
[0021] Optionally, the test report includes at least one of the following:
[0022] Test environment, test steps, test results, anomalies, and conclusions and recommendations.
[0023] As a second aspect of the present application, a network testing device is provided, comprising: an acquisition module, a determination module, a processing module and a generation module;
[0024] The acquisition module is used to acquire network traffic data of the application program;
[0025] The determination module is used to determine the network protocol corresponding to the application based on the network traffic data;
[0026] The processing module is used for, in response to determining that the network protocol is the IPv6 protocol, performing a functional test on the application in the IPv6 network and recording a test result of the functional test;
[0027] The generating module is used to generate a test report according to the test result.
[0028] Optionally, the processing module is also used to obtain an automated test script for performing the functional test; test multiple functions of the application according to the automated test script; and record the response time and success rate of the application when testing each of the functions.
[0029] Optionally, the network testing device further includes a collection module.
[0030] The collection module is used to collect log files generated by the application during the test process; the log files include abnormal situations of the application during the test process.
[0031] Optionally, the determination module is further used to determine, based on the network traffic data, a network address when the application accesses an application server; and based on the network address, determine a network protocol corresponding to the application.
[0032] Optionally, the network testing device also includes a configuration module.
[0033] The configuration module is used to configure a test environment; the test environment includes an IPv6 network, a test tool and the application; the IPv6 network is used to support the application to access an application server; and the test tool is used to capture network traffic data of the application in operation.
[0034] Optionally, the testing tool is a network sniffing tool.
[0035] Optionally, the test report includes at least one of the following:
[0036] Test environment, test steps, test results, anomalies, and conclusions and recommendations.
[0037] As a third aspect of the present application, an electronic device includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the above-mentioned network testing method when executing the program.
[0038] As a fourth aspect of the present application, a non-transitory computer-readable storage medium is provided, wherein the non-transitory computer-readable storage medium stores computer instructions, and the computer instructions are used to enable the computer to execute the above-mentioned network testing method provided in the present application.
[0039] From the above, it can be seen that the network testing method, device, equipment and storage medium provided by the present application can quickly determine the network protocol used by the application by obtaining the network traffic data of the application, so as to carry out automated functional testing on the application supporting the IPv6 protocol in a targeted manner. Furthermore, by recording the test results and generating a test report, the network performance and function of the application are accurately reflected, which helps developers to quickly understand the performance of the application in the functional test, facilitates the discovery of potential problems and repairs them, and at the same time, the test report also provides a basis for subsequent optimization. This solution reduces labor costs and improves testing efficiency and accuracy by performing automated functional testing on the IPv6 support of the application. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] In order to more clearly illustrate the technical solutions in the present application or related technologies, the drawings required for use in the embodiments or related technical descriptions are briefly introduced below. Obviously, the drawings described below are only embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0041] Figure 1 A schematic diagram of an application scenario of a network testing method provided in an embodiment of the present application;
[0042] Figure 2 A flowchart of a network testing method provided in an embodiment of the present application;
[0043] Figure 3 A flowchart of a network testing method provided in an embodiment of the present application;
[0044] Figure 4 A flowchart of a network testing method provided in an embodiment of the present application;
[0045] Figure 5 A flowchart of a network testing method provided in an embodiment of the present application;
[0046] Figure 6 A flowchart of a network testing method provided in an embodiment of the present application;
[0047] Figure 7 A schematic diagram of the composition of a network testing device provided in an embodiment of the present application;
[0048] Figure 8 A schematic diagram of the composition of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0049] In order to make the purpose, technical solutions and advantages of the present application more clearly understood, the present application is further described in detail below in combination with specific embodiments and with reference to the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without creative work are within the scope of protection of the present application.
[0050] It should be noted that, in the embodiments of the present application, words such as "exemplarily" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplarily" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplarily" or "for example" is intended to present related concepts in a concrete way. Unless otherwise defined, the technical terms or scientific terms used in the embodiments of the present application should have the usual meaning understood by people with ordinary skills in the field to which the present application belongs. SUMMARY OF THE INVENTION
[0052] In the related technologies, the traditional TCP / IP protocol suite, especially its core component, the IPv4 protocol, has gradually been unable to meet the growing address demand. The exhaustion of IPv4 addresses has become one of the key factors restricting the development of the Internet. To this end, the IPv6 protocol came into being, aiming to solve the problem of insufficient address space faced by IPv4, while providing higher security, better service quality and more efficient routing capabilities.
[0053] The inventor of the present application has found that IPv6 is in the stage of widespread deployment worldwide, and coexistence and transition with IPv4 have become key issues that need to be resolved urgently. In this process, how to ensure the compatibility of applications with IPv6 addresses and achieve smooth transition has become an important factor affecting the speed of IPv6 popularization and application effect. Therefore, it is very important to test the support of IPv6. At present, many applications do not fully consider the support for IPv6 during the design and development stage, which leads to the fact that these applications may encounter problems such as functional abnormalities, connection failures or performance degradation in the IPv6 network environment, which directly affects the user experience and the reliability of the application. At present, most of the IPv6 support test methods for applications are still in the manual detection stage. This method is not only time-consuming and labor-intensive, but also easily affected by human factors, resulting in the difficulty in guaranteeing the accuracy and efficiency of the test results.
[0054] In order to solve the above problems, this application provides a network testing method, which obtains the network traffic data of the application and quickly determines the network protocol used by the application, so as to carry out targeted automated functional testing of the application supporting the IPv6 protocol. Furthermore, by recording the test results and generating a test report, the network performance and function of the application are accurately reflected, which helps developers quickly understand the performance of the application in the functional test, facilitates the discovery of potential problems and repairs them, and at the same time, the test report also provides a basis for subsequent optimization. This solution reduces labor costs and improves testing efficiency and accuracy by performing automated functional testing on the IPv6 support of the application.
[0055] After introducing the basic principles of the present application, various non-limiting implementation methods of the present application are described in detail below.
[0056] Application Scenario Overview
[0057] Figure 1 A schematic diagram of an application scenario of a network testing method provided in an embodiment of the present application. Figure 1 As shown, the application scenario includes a terminal device 101 and a network testing device 102. The terminal device 101 and the network testing device 102 may be connected via a wired or wireless communication network.
[0058] The network testing device 102 mentioned here can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms. Optionally, the server can also be implemented on a cloud platform. For example, the cloud platform can include private clouds, public clouds, hybrid clouds, community clouds, distributed clouds, inter-clouds, and multi-clouds, etc., or any combination thereof. The embodiments of the present application are not limited to this.
[0059] In some embodiments, the terminal device 101 includes but is not limited to a desktop computer, a mobile phone, a mobile computer, a tablet computer, a media player, a smart wearable device, a personal digital assistant (PDA) or other electronic devices capable of realizing the above functions.
[0060] In some embodiments, the application is installed in the terminal device 101. When the application is running on the terminal device 101, it interacts with the application server through the network to generate network traffic data. This data includes the network behavior of the application, such as requests and responses.
[0061] In some embodiments, the network testing device 102 captures the network traffic data of the application program running on the terminal device 101 through a configured network sniffing tool or other testing tool. During the test, the network traffic data generated by the terminal device 101 is transmitted to the network testing device 102 for analysis and processing. At the same time, the network testing device 102 can also send a test instruction or request to the terminal device 101 to trigger a specific test scenario or collect additional test data.
[0062] It should be understood that Figure 1 is an exemplary structural diagram, Figure 1 The application scenario shown includes an unlimited number of devices, for example, an unlimited number of terminal devices 101 and an unlimited number of network test devices 102. Figure 1 In addition to the equipment shown, Figure 1 The application scenario shown may also include other devices, which is not limited to this.
[0063] Combine the following Figure 1 The network testing method according to the exemplary implementation of the present application is described by using the application scenario. It should be noted that the above application scenario is only shown to facilitate understanding of the spirit and principle of the present application, and the implementation of the present application is not limited in this respect. On the contrary, the implementation of the present application can be applied to any applicable scenario.
[0064] Figure 2 A flowchart of a network testing method provided in an embodiment of the present application is shown in FIG. Figure 2 As shown, the network testing method provided by the present application can be implemented by the above-mentioned network testing device 102, and specifically includes the following steps:
[0065] S201. Obtain network traffic data of an application.
[0066] In some embodiments, the network traffic data of the application is collected by using a network sniffing tool or a network traffic monitoring tool provided by the operating system and the application itself, so as to understand the network communication status of the application.
[0067] Among them, network traffic data includes data packets sent and received by applications. These data packets contain information such as source address, destination address, protocol type, data content, etc. during the application communication process.
[0068] In some embodiments, Figure 3 As shown, before S201, the network testing method provided in the embodiment of the present application further includes the following S200:
[0069] S200. Configure the test environment.
[0070] The test environment includes IPv6 network, test tools and applications.
[0071] It should be noted that the IPv6 network is used to support applications to access application servers; the test tool is used to capture network traffic data when the application is running.
[0072] In some embodiments, first, a router supporting IPv6 is used to configure a home or laboratory network to ensure that the test device can automatically obtain an IPv6 address, thereby simulating a real network interaction environment, and in the case of using a network simulator for testing, the network settings of the simulator are configured to support IPv6. Then, a network sniffing tool is installed as a test tool, for example, a wireless sniffer (wireshark) or a command line network packet capture tool (tcpdump), and the settings of the network sniffing tool are configured, for example, a network interface to be captured, a capture filter is set, etc., and after installation, it is confirmed that the network sniffing tool can normally capture network traffic data. Then, an application program that needs to be tested for IPv6 compatibility is installed on the test device, for example, the latest version of the Android application program is downloaded from the Google App Store, or the latest version of the Android application program is installed according to the Android application package (android application package, APK) file, by ensuring that the application program is the latest version, so that the test result has real-time and relevance. Finally, when confirming that the application program can operate normally, the network testing method of the present application is executed.
[0073] S202: Determine the network protocol corresponding to the application based on the network traffic data.
[0074] In some embodiments, the protocol field of the data packet can be obtained by analyzing the captured network traffic data, and then the network protocol type can be determined by analyzing the protocol header information or the value of the protocol field in the network traffic data.
[0075] For example, when the protocol field value of the IP header is 6, it means that the transmission control protocol (TCP) is used; when the protocol field value of the IP header is 17, it means that the user datagram protocol (UDP) is used; when the IPv6 address is used in the data packet and the next header field of the IP header points to a specific protocol, such as TCP, UDP, internet control message protocol (ICMP), etc., it indicates that the network protocol type is the IPv6 protocol.
[0076] In some embodiments, Figure 4 As shown, S202 can be specifically implemented as follows S2021-S2022:
[0077] S2021. Determine the network address when the application accesses the application server based on the network traffic data.
[0078] In some embodiments, a data analysis tool is used to extract network address information in network traffic data, such as source IP address, destination IP address, port number, etc. Based on the extracted network address information, the network address when the application accesses the application server is determined, wherein the network address includes an IPv4 address and an IPv6 address.
[0079] S2022. Determine the network protocol corresponding to the application based on the network address.
[0080] In some embodiments, after determining the network address accessed by the application, the protocol header information of the data packet is further analyzed. The protocol header includes a field indicating the protocol type, such as the version field of the IP data packet, to identify a specific protocol flag or structure.
[0081] It should be noted that there is a clear difference between the address formats of IPv4 and IPv6. IPv4 addresses are a series of decimal numbers separated by dots, such as 192.168.1.1, while IPv6 addresses are hexadecimal blocks separated by colons, such as 2001:0db8:85a3:0000:0000:8a2e:0370:7334.
[0082] S203: In response to determining that the network protocol is the IPv6 protocol, perform a functional test on the application program in the IPv6 network, and record a test result of the functional test.
[0083] In some embodiments, in response to determining that the network protocol is the IPv6 protocol, each function of the application is tested one by one in the IPv6 network environment to ensure that each function is executed in the IPv6 environment, including data transmission, connection stability, performance, etc. At the same time, the test results of the functional test are recorded, including whether the test passes, detailed information on the test results, etc., for subsequent analysis and generation of test reports.
[0084] In some embodiments, the above functional test steps are repeated in an IPv4 test environment, the results are recorded, and compared with the test results in an IPv6 environment. Then, based on the comparison results, differences in functional performance, response time, success rate, etc. are found, and possible compatibility issues, performance bottlenecks or other potential problems are identified. At the same time, the differences and problems found are recorded in detail, including the specific manifestations of the problems, the scope of impact, possible causes, etc. Further, based on the test results and the problems found, the compatibility and performance of the application in IPv6 and IPv4 environments are improved.
[0085] In some embodiments, Figure 5 As shown, S203 can be specifically implemented as follows S2031-S2033:
[0086] S2031. Obtain an automated test script for functional testing.
[0087] In some embodiments, a suitable automated testing framework is selected according to the platform and development environment of the application. For example, for Android applications, an application automated testing tool (appium) or an automated testing framework (espresso) is used; for web applications, an automated testing tool (selenium) is selected. Furthermore, based on the business logic and core functions of the application, test scripts covering various features are developed. The scripts should cover all key functional points. In addition, before performing formal testing, the correctness and effectiveness of the test scripts are verified in a non-production environment in advance to ensure that they can accurately simulate the expected user behavior.
[0088] S2032. Test multiple functions of the application according to the automated test script.
[0089] In some embodiments, in an IPv6 network environment, automated testing tools are used to execute written automated testing scripts, which will simulate various user interactions, such as data input, button clicks, page navigation, etc., in order to test multiple functions of the application.
[0090] Among them, the multiple functions of the application may include user login, data synchronization, content loading, real-time communication, etc.
[0091] S2033. Record the application's response time and success rate when testing each function.
[0092] In some embodiments, during the test execution process, the behavior and output of the application are monitored, and key performance indicators are collected. Furthermore, the response time and success rate of each function are recorded, for example, the time from user input to application response, whether the test passes, the number of successful tests, etc. Finally, the recorded test results are saved to a file for subsequent analysis and generation of a test report.
[0093] In some embodiments, by collecting and analyzing log files, the performance and stability of the application during the test can be evaluated and optimized, and abnormal situations can be tracked and resolved. Figure 6 As shown, the network testing method provided in the embodiment of the present application also includes the following S2034:
[0094] S2034. Collect log files generated by the application during the testing process.
[0095] Among them, the log file includes the abnormal conditions of the application during the testing process.
[0096] In some embodiments, first, in a test environment, the logging function of an application is configured, and then, during the test process, log files generated by the application are collected, including the start and end time of the test, abnormal conditions during the test, error messages, etc. Furthermore, through the collected log files, abnormal conditions of the application during the test are analyzed and recorded in a test report.
[0097] S204: Generate a test report based on the test results.
[0098] The test report shall include at least one of the following:
[0099] Test environment, test steps, test results, anomalies, and conclusions and recommendations.
[0100] In some embodiments, the description of the test environment includes: IPv6 address range, application version, test tool, network configuration, device model, operating system version, etc.; the specific steps of the test include: setting up the test environment, the execution method of each functional test, and the use instructions of the test script or tool; the overview of the test results includes: whether the test passed, the functional performance during the test, etc.; abnormal situations include: abnormal situations found during the test process, and the manifestation of the abnormal situation, reproduction steps and the preliminary judgment of the cause of the problem; conclusions and suggestions include: analysis of test results, problem discovery and solutions, etc.
[0101] For example, when there are compatibility issues with an application in an IPv6 environment, based on the content of the test report, it can be found that the main reason is that the network request part of the application does not support the IPv6 protocol, resulting in failure of data download and network request. To solve these problems, the suggestions in the test report can be described as: modify the network request part in the code to support the IPv6 protocol. At the same time, update the third-party libraries used to improve the overall IPv6 compatibility of the application. In addition, review and adjust the network configuration to ensure that the test environment can truly reflect the characteristics of the IPv6 network environment, etc., so that the development team can directly make modifications and optimizations based on the suggestions put forward in the test report, thereby effectively improving the IPv6 compatibility of the application and providing a better user experience.
[0102] It should be understood that by comprehensively evaluating and summarizing the support level of applications in the IPv6 network environment, and then based on a detailed testing process and results analysis, it is possible to provide a strong basis and specific suggestions for improving the IPv6 compatibility of applications.
[0103] The network testing method, device, equipment and storage medium provided by the present application can quickly determine the network protocol used by the application by obtaining the network traffic data of the application, thereby performing targeted automated functional testing on the application supporting the IPv6 protocol. Furthermore, by recording the test results and generating a test report, the network performance and function of the application are accurately reflected, helping developers to quickly understand the performance of the application in the functional test, facilitating the discovery of potential problems and repairing them. At the same time, the test report also provides a basis for subsequent optimization. This solution reduces labor costs and improves testing efficiency and accuracy by performing automated functional testing on the IPv6 support of the application.
[0104] Furthermore, by using automated test scripts to test multiple functions of the application, the test efficiency is improved and manual test errors are reduced. By recording the response time and success rate of each functional test, detailed performance indicators are provided for the application. By recording these data, it is possible to evaluate whether the application meets the performance requirements and whether there are potential failure issues.
[0105] It should be noted that the method of the embodiment of the present application can be performed by a single device, such as a computer or server. The method of this embodiment can also be applied to a distributed scenario and completed by multiple devices cooperating with each other. In the case of such a distributed scenario, one of the multiple devices can only perform one or more steps in the method of the embodiment of the present application, and the multiple devices will interact with each other to complete the described method.
[0106] It should be noted that the above describes some embodiments of the present application. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the above embodiments and still achieve the desired results. In addition, the processes depicted in the accompanying drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0107] Based on the same inventive concept, corresponding to any of the above-mentioned embodiment methods, the present application also provides a network testing device.
[0108] refer to Figure 7 , the network testing device comprises: an acquisition module 701, a determination module 702, a processing module 703 and a generation module 704;
[0109] The acquisition module 701 is used to acquire network traffic data of the application program;
[0110] The determination module 702 is used to determine the network protocol corresponding to the application based on the network traffic data;
[0111] The processing module 703 is used for, in response to determining that the network protocol is the IPv6 protocol, performing a functional test on the application in the IPv6 network and recording a test result of the functional test;
[0112] The generating module 704 is used to generate a test report according to the test result.
[0113] In some embodiments, the processing module 703 is also used to obtain an automated test script for performing the functional test; test multiple functions of the application according to the automated test script; and record the response time and success rate of the application when testing each of the functions.
[0114] In some embodiments, the network testing device further includes a collection module 705 .
[0115] The collection module 705 is used to collect log files generated by the application during the test process; the log files include abnormal situations of the application during the test process.
[0116] In some embodiments, the determination module 702 is further used to determine, based on the network traffic data, a network address when the application accesses an application server; and based on the network address, determine a network protocol corresponding to the application.
[0117] In some embodiments, the network testing device further includes a configuration module 706 .
[0118] The configuration module 706 is used to configure a test environment; the test environment includes an IPv6 network, a test tool, and the application; the IPv6 network is used to support the application to access an application server; and the test tool is used to capture network traffic data of the application in operation.
[0119] In some embodiments, the testing tool is a network sniffing tool.
[0120] In some embodiments, the test report includes at least one of the following:
[0121] Test environment, test steps, test results, anomalies, and conclusions and recommendations.
[0122] For the convenience of description, the above device is described in terms of functions divided into various modules. Of course, when implementing the present application, the functions of each module can be implemented in the same or multiple software and / or hardware.
[0123] The device of the above embodiment is used to implement the corresponding network testing method in any of the above embodiments, and has the beneficial effects of the corresponding method embodiment, which will not be described in detail here.
[0124] Based on the same inventive concept, corresponding to any of the above-mentioned embodiments and methods, the present application also provides an electronic device, including 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 network testing method described in any of the above embodiments is implemented.
[0125] Figure 8 A more specific schematic diagram of the hardware structure of an electronic device provided in this embodiment is shown, and the device may include: a processor 1010, a memory 1020, an input / output interface 1030, a communication interface 1040, and a bus 1050. The processor 1010, the memory 1020, the input / output interface 1030, and the communication interface 1040 are connected to each other through the bus 1050 in the device.
[0126] The processor 1010 can be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of this specification.
[0127] The memory 1020 may be implemented in the form of ROM (Read Only Memory), RAM (Random Access Memory), static storage device, dynamic storage device, etc. The memory 1020 may store an operating system and other application programs. When the technical solutions provided in the embodiments of this specification are implemented by software or firmware, the relevant program codes are stored in the memory 1020 and are called and executed by the processor 1010.
[0128] The input / output interface 1030 is used to connect the input / output module to realize information input and output. The input / output module can be configured in the device as a component (not shown in the figure), or it can be externally connected to the device to provide corresponding functions. The input device may include a keyboard, a mouse, a touch screen, a microphone, various sensors, etc., and the output device may include a display, a speaker, a vibrator, an indicator light, etc.
[0129] The communication interface 1040 is used to connect a communication module (not shown) to realize communication interaction between the device and other devices. The communication module can realize communication through a wired mode (such as USB, network cable, etc.) or a wireless mode (such as mobile network, WIFI, Bluetooth, etc.).
[0130] The bus 1050 includes a path that transmits information between the various components of the device (eg, the processor 1010, the memory 1020, the input / output interface 1030, and the communication interface 1040).
[0131] It should be noted that, although the above device only shows the processor 1010, the memory 1020, the input / output interface 1030, the communication interface 1040 and the bus 1050, in the specific implementation process, the device may also include other components necessary for normal operation. In addition, it can be understood by those skilled in the art that the above device may also only include the components necessary for implementing the embodiments of the present specification, and does not necessarily include all the components shown in the figure.
[0132] The electronic device of the above embodiment is used to implement the corresponding network testing method in any of the above embodiments, and has the beneficial effects of the corresponding method embodiment, which will not be described in detail here.
[0133] Based on the same inventive concept, corresponding to any of the above-mentioned embodiment methods, the present application also provides a non-transitory computer-readable storage medium, wherein the non-transitory computer-readable storage medium stores computer instructions, and the computer instructions are used to enable the computer to execute the network testing method described in any of the above embodiments.
[0134] The computer-readable medium of this embodiment includes permanent and non-permanent, removable and non-removable media, and information storage can be implemented by any method or technology. Information can be computer-readable instructions, data structures, modules of programs, 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, read-only compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device.
[0135] The computer instructions stored in the storage medium of the above embodiment are used to enable the computer to execute the network testing method described in any of the above embodiments, and have the beneficial effects of the corresponding method embodiments, which will not be repeated here.
[0136] Based on the same inventive concept, corresponding to the network testing method described in any of the above embodiments, the present disclosure also provides a computer program product, which includes a computer program. In some embodiments, the computer program is executable by one or more processors so that the processors execute the network testing method. Corresponding to the execution subject corresponding to each step in each embodiment of the network testing method, the processor that executes the corresponding step may belong to the corresponding execution subject.
[0137] The computer program product of the above embodiment is used to enable the processor to execute the network testing method described in any of the above embodiments, and has the beneficial effects of the corresponding method embodiment, which will not be repeated here.
[0138] Those skilled in the art should understand that the discussion of any of the above embodiments is merely illustrative and is not intended to imply that the scope of the present application (including the claims) is limited to these examples. In line with the concept of the present application, the technical features in the above embodiments or different embodiments may be combined, the steps may be implemented in any order, and there are many other variations of the different aspects of the embodiments of the present application as described above, which are not provided in detail for the sake of simplicity.
[0139] In addition, to simplify the description and discussion, and in order not to make the embodiments of the present application difficult to understand, the known power supply / ground connection with the integrated circuit (IC) chip and other components may or may not be shown in the provided drawings. In addition, the device can be shown in the form of a block diagram to avoid making the embodiments of the present application difficult to understand, and this also takes into account the fact that the details of the implementation of these block diagram devices are highly dependent on the platform to be implemented in the embodiments of the present application (that is, these details should be fully within the scope of understanding of those skilled in the art). In the case of elaborating specific details (e.g., circuits) to describe exemplary embodiments of the present application, it is obvious to those skilled in the art that the embodiments of the present application can be implemented without these specific details or when these specific details are changed. Therefore, these descriptions should be considered to be illustrative rather than restrictive.
[0140] Although the present application has been described in conjunction with specific embodiments of the present application, many replacements, modifications and variations of these embodiments will be apparent to those skilled in the art from the foregoing description. For example, other memory architectures (e.g., dynamic RAM (DRAM)) may use the embodiments discussed.
[0141] The embodiments of the present application are intended to cover all such substitutions, modifications and variations that fall within the broad scope of the appended claims. Therefore, any omissions, modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the embodiments of the present application should be included in the scope of protection of the present application.
Claims
1. A network testing method, characterized in that: The method comprises: Get network traffic data for your application; Based on the network traffic data, determining a network protocol corresponding to the application; In response to determining that the network protocol is the IPv6 protocol, performing a functional test on the application in the IPv6 network, and recording a test result of the functional test; A test report is generated according to the test results.
2. The method according to claim 1, characterized in that The performing functional testing on the application and recording the test results of the functional testing includes: Obtaining an automated test script for performing the functional test; Testing multiple functions of the application according to the automated testing script; The response time and success rate of the application when testing each of the functions described are recorded.
3. The method according to claim 2, characterized in that The method further comprises: Collect log files generated by the application during the test process; the log files include abnormal situations of the application during the test process.
4. The method according to claim 1, characterized in that The determining, based on the network traffic data, a network protocol corresponding to the application program includes: Determining, based on the network traffic data, a network address when the application program accesses an application server; Based on the network address, a network protocol corresponding to the application is determined.
5. The method according to claim 1, characterized in that Before obtaining the network traffic data of the application, the method further includes: Configure a test environment; the test environment includes an IPv6 network, a test tool and the application; the IPv6 network is used to support the application to access the application server; the test tool is used to capture network traffic data of the application in operation.
6. The method according to claim 5, characterized in that The testing tool is a network sniffing tool.
7. The method according to claim 1, characterized in that The test report includes at least one of the following: Test environment, test steps, test results, anomalies, and conclusions and recommendations.
8. A network testing device, characterized in that: The device comprises: an acquisition module, a determination module, a processing module and a generation module; The acquisition module is used to acquire network traffic data of the application program; The determination module is used to determine the network protocol corresponding to the application based on the network traffic data; The processing module is used for, in response to determining that the network protocol is the IPv6 protocol, performing a functional test on the application in the IPv6 network and recording a test result of the functional test; The generating module is used to generate a test report according to the test result.
9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the method according to any one of claims 1 to 7 when executing the program. 10 . A non-transitory computer-readable storage medium storing computer instructions, wherein the computer instructions are used to cause a computer to execute the method according to claim 1 .
Citation Information
Cited By
Network performance measurement method and device, computer equipment, storage medium and computer program product
CN120639664A