CN115174461B - System testing method and device based on network request - Google Patents

System testing method and device based on network request Download PDF

Info

Publication number
CN115174461B
CN115174461B CN202211093227.6A CN202211093227A CN115174461B CN 115174461 B CN115174461 B CN 115174461B CN 202211093227 A CN202211093227 A CN 202211093227A CN 115174461 B CN115174461 B CN 115174461B
Authority
CN
China
Prior art keywords
network
target system
network request
protocol information
request
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202211093227.6A
Other languages
Chinese (zh)
Other versions
CN115174461A (en
Inventor
梁俊杰
王俊人
王长磊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Yingfeng Zhizhi Technology Co ltd
Original Assignee
Beijing Yingfeng Zhizhi Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Yingfeng Zhizhi Technology Co ltd filed Critical Beijing Yingfeng Zhizhi Technology Co ltd
Priority to CN202211093227.6A priority Critical patent/CN115174461B/en
Publication of CN115174461A publication Critical patent/CN115174461A/en
Application granted granted Critical
Publication of CN115174461B publication Critical patent/CN115174461B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/14Network analysis or design
    • H04L41/145Network analysis or design involving simulating, designing, planning or modelling of a network

Abstract

The application provides a system testing method and device based on network requests, which are used for paying attention to the influence brought by different network protocols related to the initiated network requests in the system testing process, so that the system testing precision is improved in a more subtle way. The method comprises the following steps: the processing equipment determines a system test task, wherein the system test task is specifically a test task for a target system, and the system test task is used for testing the system performance of the target system; the processing equipment configures a network request of a system test task, and generates a simulated network request based on network card protocol information of a target system and a data packet transmitted under the network card protocol information in the process of configuring the network request of the system test task, wherein the simulated network request is a network request for transmitting different data packet contents under the simulated network card protocol information; the processing device initiates a simulated network request to the target system to test the system performance of the target system through the simulated network request.

Description

System testing method and device based on network request
Technical Field
The present application relates to the field of testing, and in particular, to a method and an apparatus for testing a system based on a network request.
Background
The system product can relate to specific application scenarios such as a database, a server and the like, and for this reason, in the production, sale, work and other links of the system product, the system product can relate to the test of the system performance, so that the corresponding response operation can be arranged according to the specific performance of the system product.
For a system product related to network services, obviously, a lot of network requests are necessarily involved in the preset work, the application services required to be provided are completed in an interactive form of the network requests, and corresponding to the aspect of system testing, the relevant network requests need to be configured to restore the real application environment of the system, so as to determine the performance of the system according to the system response.
In the related art research process, the inventor finds that although a system test effect with higher precision can be achieved by a related network request configured by a pre-configured system test benchmark, in the subsequent actual use process, the inventor also occasionally finds that the performance reflected by the system has a slight deviation from the previous system test result, and obviously, the existing system test scheme still has an unexpected interference factor in the specific test process.
Disclosure of Invention
The application provides a system testing method and device based on network requests, which are used for paying attention to influences brought by different network protocols related to the initiated network requests in the system testing process, so that the system testing precision is improved from a more detailed level.
In a first aspect, the present application provides a system testing method based on a network request, the method including:
the processing equipment determines a system test task, wherein the system test task is specifically a test task for a target system, and the system test task is used for testing the system performance of the target system;
the processing equipment configures a network request of a system test task, and generates a simulated network request based on network card protocol information of a target system and a data packet transmitted under the network card protocol information in the process of configuring the network request of the system test task, wherein the simulated network request is a network request for transmitting different data packet contents under the simulated network card protocol information;
the processing device initiates a simulated network request to the target system to test the system performance of the target system through the simulated network request.
With reference to the first aspect of the present application, in a first possible implementation manner of the first aspect of the present application, the network card protocol information of the target system includes network card protocol information of different network cards of an application environment where the target system is located, and the method further includes:
and traversing the network card protocol information of different network cards of the application environment of the target system by the processing equipment through the communication connection with each equipment of the application environment of the target system.
With reference to the first possible implementation manner of the first aspect of the present application, in a second possible implementation manner of the first aspect of the present application, the method further includes:
the processing equipment simulates the application environment of a target system in the simulation application environment;
the processing equipment traverses the network card protocol information of different network cards of the simulation application environment of the target system in the simulation environment through communication connection with each equipment of the simulation application environment of the target system.
With reference to the first possible implementation manner of the first aspect of the present application, in a third possible implementation manner of the first aspect of the present application, the method further includes:
the processing equipment confirms that the target system also has different network cards of each equipment in the application environment where the target system is located;
the processing equipment monitors the data packets transmitted by the corresponding network cards based on the target system and different network cards of each equipment in the application environment of the target system, and obtains the data packets transmitted under the network card protocol information of the different network cards in the application environment of the target system.
With reference to the first aspect of the present application, in a fourth possible implementation manner of the first aspect of the present application, the generating, by the processing device, a simulated network request based on the network card protocol information of the target system and a data packet transmitted under the network card protocol information includes:
the method comprises the steps that a processing device obtains an initial network request, wherein the initial network request is a template network request generated in advance, or the initial network request is a standard network request generated in real time;
and the processing equipment replaces the request content in the initial network request based on the network card protocol information of the target system and a data packet transmitted under the network card protocol information to generate the simulation network request.
In a second aspect, the present application provides a system testing apparatus based on network request, the apparatus comprising:
the system comprises a determining unit, a processing unit and a processing unit, wherein the determining unit is used for determining a system test task, the system test task is specifically a test task aiming at a target system, and the system test task is used for testing the system performance of the target system;
the system comprises a configuration unit, a network test task generation unit and a simulation network test task generation unit, wherein the configuration unit is used for configuring a network request of the system test task and generating a simulation network request based on network card protocol information of a target system and a data packet transmitted under the network card protocol information in the process of configuring the network request of the system test task, and the simulation network request is a network request simulating the transmission of different data packet contents under the network card protocol information;
and the initiating unit is used for initiating the simulated network request to the target system so as to test the system performance of the target system through the simulated network request.
With reference to the second aspect of the present application, in a first possible implementation manner of the second aspect of the present application, the network card protocol information of the target system includes network card protocol information of different network cards of an application environment where the target system is located, and the apparatus further includes a traversal unit, configured to:
and traversing the network card protocol information of different network cards of the application environment of the target system through the communication connection with each device of the application environment of the target system.
With reference to the first possible implementation manner of the second aspect of the present application, in a second possible implementation manner of the second aspect of the present application, the traversal unit is further configured to:
simulating an application environment of a target system in a simulated application environment;
and traversing network card protocol information of different network cards of the simulation application environment of the target system in the simulation environment through communication connection with each device of the simulation application environment of the target system.
With reference to the first possible implementation manner of the second aspect of the present application, in a third possible implementation manner of the second aspect of the present application, the apparatus further includes a monitoring unit, configured to:
confirming that the target system also has different network cards of each device in the application environment of the target system;
and monitoring data packets transmitted by the corresponding network cards based on different network cards of each device in the application environment of the target system, wherein the target system also has different network cards of each device in the application environment of the target system, and obtaining the data packets transmitted under the network card protocol information of the different network cards in the application environment of the target system.
With reference to the second aspect of the present application, in a fourth possible implementation manner of the second aspect of the present application, the configuration unit is specifically configured to:
acquiring an initial network request, wherein the initial network request is a template network request generated in advance, or the initial network request is a standard network request generated in real time;
and replacing the request content in the initial network request based on the network card protocol information of the target system and the data packet transmitted under the network card protocol information to generate the simulated network request.
In a third aspect, the present application provides a processing device, including a processor and a memory, where the memory stores a computer program, and the processor executes the method provided in the first aspect of the present application or any one of the possible implementation manners of the first aspect of the present application when calling the computer program in the memory.
In a fourth aspect, the present application provides a computer-readable storage medium storing a plurality of instructions adapted to be loaded by a processor to perform the method provided in the first aspect of the present application or any one of the possible implementations of the first aspect of the present application.
From the above, the present application has the following advantageous effects:
after a system test task for a target system is determined, the processing device configures a network request of the system test task, generates a simulation network request in the process of configuring the network request of the system test task, and then initiates the simulation network request to the target system so as to test the system performance of the target system through the simulation network request.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a schematic flow chart of a system testing method based on network request according to the present application;
FIG. 2 is a schematic structural diagram of a system test apparatus based on network request according to the present application;
FIG. 3 is a schematic diagram of a processing apparatus according to the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be described clearly and completely with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only some embodiments of the present application, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terms "first," "second," and the like in the description and claims of this application and in the foregoing drawings are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that the embodiments described herein may be implemented in other sequences than those illustrated or described herein. Moreover, the terms "comprises," "comprising," and any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or modules is not necessarily limited to those steps or modules explicitly listed, but may include other steps or modules not expressly listed or inherent to such process, method, article, or apparatus. The naming or numbering of the steps appearing in the present application does not mean that the steps in the method flow have to be executed in the chronological/logical order indicated by the naming or numbering, and the named or numbered process steps may be executed in a modified order depending on the technical purpose to be achieved, as long as the same or similar technical effects are achieved.
The division of the modules presented in this application is a logical division, and in practical applications, there may be another division, for example, multiple modules may be combined or integrated into another system, or some features may be omitted, or not executed, and in addition, the shown or discussed coupling or direct coupling or communication connection between each other may be through some interfaces, and the indirect coupling or communication connection between the modules may be in an electrical or other similar form, which is not limited in this application. The modules or sub-modules described as separate components may or may not be physically separated, may or may not be physical modules, or may be distributed in a plurality of circuit modules, and some or all of the modules may be selected according to actual needs to achieve the purpose of the present disclosure.
Before describing the network request-based system testing method provided by the present application, the background related to the present application will be described first.
The network request-based system testing method, device and computer-readable storage medium provided by the application can be applied to a processing device, and are used for paying attention to the influence brought by different network protocols involved in the initiated network request in the system testing process, so that the system testing precision is improved in a more subtle way.
In the method for testing a system based on a network request, an execution main body may be a system testing apparatus based on a network request, or different types of processing devices such as a server, a physical host, or User Equipment (UE) that integrates the system testing apparatus based on a network request. The system testing device based on the network request may be implemented in a hardware or software manner, the UE may specifically be a terminal device such as a smart phone, a tablet computer, a notebook computer, a desktop computer, or a Personal Digital Assistant (PDA), and the processing device may be set in a device cluster manner.
It can be understood that, in a specific operation, the processing device may specifically be configured with a test tool that can provide the network request-based system test method of the present application, and the test tool is used as a carrier of an application function of a related test service to achieve an excellent system test effect that can be obtained by the network request-based system test method of the present application.
The system testing method based on network request provided by the present application is described in the following.
First, referring to fig. 1, fig. 1 shows a schematic flow chart of the system testing method based on network request according to the present application, and the system testing method based on network request according to the present application may specifically include the following steps S101 to S103:
step S101, a processing device determines a system test task, wherein the system test task is a test task specific to a target system, and the system test task is used for testing the system performance of the target system;
it can be understood that the processing device may specifically initiate a system test task for the target system locally, manually with the user operation of the staff; or, the processing device may also autonomously initiate a system test task for the target system according to a preconfigured trigger condition; or, the processing device may also execute a system test task for the target system according to the system test task forwarded by the other device; alternatively, the processing device may initiate a system test task for the target system based on the trigger of the other device.
Obviously, how the processing device confirms the system test task for the target system can be flexibly adjusted according to actual situations in practical application.
The specific test content of the system test task is configured according to the specific requirements of different aspects such as the system type, the application scene, the test direction and the like.
For a system test task, when the task is configured, a system test benchmark related to the task can be confirmed, the system test benchmark is generally a standard general system test benchmark, so that for different test tools developed on the market, specific test contents can be configured in a test range specified by the system test benchmark, and although the different test tools can relate to the same test range, the specific and deep test contents have differences and are reflected by different test effects.
Of course, the related system test reference may be determined after the system test task for the target system is determined, that is, only the test object is determined, and the specifically adapted system test reference may be processed subsequently, which meets the development requirement of the actual application.
Step S102, processing a network request of a device configuration system test task, and generating a simulated network request based on network card protocol information of a target system and a data packet transmitted under the network card protocol information in the process of configuring the network request of the system test task, wherein the simulated network request is a network request for transmitting different data packet contents under the simulated network card protocol information;
after the system test task for the target system is determined, then the configuration of its corresponding network request may begin.
It should be understood that the configuration processing for network requests referred to in step S102 herein is not particularly limited to the configuration processing for all network requests related to the system test task, and specifically, the content herein is to describe the configuration processing for simulated network requests of the present application, but in the overall system test process, the configuration processing for network requests other than simulated network requests may also be related, and may be specifically adjusted according to the actual situation, and the present application is not limited herein.
It should be further understood that, for the configuration of network requests other than the simulated network request, the configuration may be a request configured by the processing device according to the system test task of this time, or may be a request for completing the configuration together when the system test task of this time is determined, so that the configuration may be directly carried in the system test task, or may be instructed by the system test task.
Of course, the network requests other than these simulated network requests are not the core of the present application, and therefore the following contents are not described again.
Returning to the specially configured simulated network request, it can be seen that the simulated network request is generated based on the network card protocol information of the target system and the data packet transmitted under the network card protocol information, and is a network request for transmitting different data packet contents under the simulated network card protocol information.
Obviously, in the process of performing a system test task, the present application specifically focuses on an element of a fine level of a network card protocol of a network request, and the present application considers that, in a transmission process of a network request, even if the same request content (strictly speaking, the same content except the network card protocol) exists, corresponding changes exist due to different network card protocols, so that a system side receiving the network request also exists different response processing at the fine level, and further reflects different system performances at the fine level, which is a reason that a slight deviation occurs occasionally between an actual use and a test result in the prior art, and belongs to a fine level problem that the prior art has not focused on.
Therefore, the content of different data packets transmitted by the network request under different network card protocol information is adjusted based on different network protocol information which can be related by the target system, so that not only the element of the fine level of the network card protocol is concerned, but also the perfect different request contents are configured based on the element, the system performance which can be reflected by the fine element of the network card protocol can not be missed by reflecting the whole system test level, and higher test precision is realized.
The network card protocol information can be understood as information describing the working protocol of the network card, so that the working characteristics of the network card can be reflected.
Step S103, the processing device initiates a simulated network request to the target system to test the system performance of the target system through the simulated network request.
It will be appreciated that after the simulated network request is configured, the response of the target system is tested based on the simulated network request, thereby testing the system performance of the target system.
As mentioned above, the simulated network request is not necessarily all network requests in the present application for performing the system test task, but may also refer to other network requests, and therefore, the system performance measured by the simulated network request may only be a part of the system performance measured in the complete system test process.
And after the system performance of the target system is measured, the result output work of the system test task can be completed according to a preset test result output strategy.
For example, the system performance test result can be dynamically output, so that the test execution and the result output are facilitated, and the observation and even intervention of workers are facilitated; for example, the system test task may be re-processed and output after the execution of the test is completed.
In addition, the output work of the system performance test result can be performed in a local storage or external output mode, and the system performance test result can be configured in a text, table, image, audio and other specific file modes.
As can be seen from the embodiment shown in fig. 1, after a system test task for a target system is determined, the processing device configures a network request of the system test task, generates a simulation network request in the process of configuring the network request of the system test task, and then initiates the simulation network request to the target system to test the system performance of the target system through the simulation network request.
The steps of the embodiment shown in fig. 1 and the possible implementation manner thereof in practical application will be described in detail.
The above content introduces the system test mechanism for configuring the simulated network request based on the network card protocol information, and under the system test mechanism for configuring the simulated network request based on the network card protocol information, there is another characteristic that the system test mechanism can classify the network processing request according to different network card protocol information, so as to realize the packet capture processing of finer elements, thereby not only being capable of perfectly simulating the system performance difference of the target system caused by different network card protocol information, but also being capable of classifying and processing the test result based on the fine element of the network card protocol information in the test process, and further realizing the data processing effect of finer granularity.
Returning to the determination of the network card protocol information, the present application considers that the element of the network card protocol information may correspond to the initiator device on the other side of the network request, in addition to the target system itself (corresponding to the network card of the target system itself).
Specifically, as an exemplary embodiment, the network card protocol information of the target system may specifically include network card protocol information of different network cards of an application environment where the target system is located, and for this reason, the method of the present application may further include the following:
the processing device traverses the network card protocol information of different network cards of the application environment of the target system through the communication connection with each device of the application environment of the target system.
It can be understood that, for the capture of the network card protocol information, the network card protocol information of corresponding different network cards may be captured from each device related to the application environment of the target system directly through the connection between the devices, where the determination processing of the network cards in the devices may be involved, and here, what is more concerned is a specific device object corresponding to the network card protocol information, and only the network card is not specifically mentioned in the step.
Under the setting, the network card protocol information of each device which can be contacted by the system work and is provided by the target system can be captured, so that the configuration of the simulated network request can be more perfect according to the network card protocol information which can be related to the current target system.
For example, in this embodiment, the target system may currently involve four types of network card protocol information, i.e., X1, X2, X3, and X4, and thus, the corresponding simulated network request may be configured based on the four types of network card protocol information, i.e., X1, X2, X3, and X4.
In addition, in order to further aim at the network card protocol information which can be related to the target system, an application scene simulation mechanism can be introduced, so that the network card protocol information which can be related to the target system theoretically can be captured.
Correspondingly, as another exemplary embodiment of the present application, the method of the present application may further include:
the processing equipment simulates the application environment of a target system in the simulation application environment;
and traversing the network card protocol information of different network cards of the simulation application environment of the target system by the processing equipment through the communication connection with each equipment of the simulation application environment of the target system in the simulation environment.
It is easy to see that the embodiments herein relate to a simulated application environment additionally introduced in the present application besides the real application environment of the target system, and the simulated application environment can be specifically implemented by a virtual environment, and can also be implemented by other simulation means.
By simulating the application environment of the target system, not only various working environments which can be involved in practical application of the target system are simulated, but also the devices which can be involved in the simulated application environment of the target system can be determined.
Therefore, the network card protocol information of different network cards of the simulation application environment of the target system can be traversed through the communication connection with each device of the simulation application environment of the target system in the simulation application environment, the improvement of the network card protocol information which can be related to the target system in theory is completed, and the simulation network request related to the different network card protocol information which can be related to the target system is further completed.
For example, in the above embodiment, the target system relates to four types of network card protocol information, that is, X1, X2, X3, and X4, in the achievable application environment, theoretically, network card protocol information, that is, Y1, Y2, Y3, Y4, and Y5, may also be related to the target system, so that in the operation of the target system simulated by the simulated application environment of the target system, in this embodiment, it may be confirmed that the target system may also relate to network requests of network card protocol information, that is, Y1, Y2, Y3, Y4, and Y5, and further, in the process of configuring the simulated network request, simulated network requests related to network card protocol information, that may be related to the target system, may also be configured, so as to achieve the perfection effect of configuring the simulated network requests of each piece of network card protocol information, that may be related to the target system, and further, different performances of the target system under the network requests of different network card protocol information that may be related theoretically may be related to the target system may be tested.
Further, for the simulated network request, the simulated network request is generated based on the network card protocol information of the target system and the data packet transmitted under the network card protocol information, wherein the related data packet is easy to understand and is acquired based on the corresponding specific network card protocol, so that the characteristics of the data packet under the specific network card protocol can be quantized, and data guidance is provided for generating the simulated network request.
To this end, as another exemplary embodiment, the processing for acquiring the data packet transmitted under the network card protocol information may specifically include:
the processing equipment confirms that the target system also has different network cards of each equipment in the application environment where the target system is located;
the processing equipment monitors the data packets transmitted by the corresponding network cards based on the target system and different network cards of each equipment in the application environment of the target system, and obtains the data packets transmitted under the network card protocol information of the different network cards in the application environment of the target system.
It can be understood that, before the data packet transmitted under the network card protocol information is acquired, the corresponding specific network card may be determined, so that the monitoring of the work of the network card is conveniently performed.
For different network cards, because different network card protocol information can be involved, adaptive network card monitoring strategies can be configured, so that the work of the network card can be accurately and effectively monitored for different network cards of different equipment.
The confirmation of the network card is now performed from the range of the related different devices, such as the aforementioned application environment where the target system is actually located, and such as the aforementioned simulated application environment where the target system is located, the network cards of the devices that can involve network interaction are all included in the network card monitoring range.
Therefore, after the specific network card which can be involved is confirmed, the network card is monitored, the data packet transmitted by the corresponding network card is monitored, the data packet transmitted under the network card protocol information of different network cards of the application environment of the target system can be obtained, and a direction is provided for the generation of the subsequent simulated network request.
In addition, in the generation processing process of the simulated network request, not only the generation processing of a new request but also the transformation processing of an original request can be involved, and the generation requirement of the simulated network request can be met.
As another exemplary embodiment, the process of generating the simulated network request by the processing device based on the network card protocol information of the target system and the data packet transmitted under the network card protocol information may specifically include the following steps:
the method comprises the steps that a processing device obtains an initial network request, wherein the initial network request is a template network request generated in advance, or the initial network request is a standard network request generated in real time;
the processing device replaces the request content in the initial network request based on the network card protocol information of the target system and the data packet transmitted under the network card protocol information to generate the simulated network request.
It is clear that in the embodiments herein, the simulated network requests to which the present application refers are generated on the basis of template network requests or standard network requests.
The former, that is, the template network request, can be understood as a request filled with the template request content, which cannot be used for normal system test, even though the system test requirements in the prior art cannot be met, the request content needs to be adjusted to complete the corresponding system test function.
As a special case of template network requests, which only provide the format of the underlying network request, the request content of which is empty, it is obvious that the substitution of the request content referred to in the embodiments herein can be directly understood in the manner of content filling.
For the latter, i.e. the standard network request, obviously, the network request adopted in the prior art can be used for understanding, and naturally, the influence of the fine element of the network card protocol information which is not concerned in the prior art also exists, so that the effect of adapting to different network card protocol information can be achieved by simulating the content modification related to the network request through the application.
After the initial network request is obtained, whether the request content is empty or not, the request content can be replaced by the request content which is adapted to the replacement conditions of the different network card protocol information and the data packet transmitted under the network card protocol information and confirmed by the application in a request content replacement mode, and the specific configuration content of the simulated network request is completed.
Under the setting, compared with the mode of directly generating the simulated network request, the simulated network request is obtained by adopting the mode of transforming the original request, and in the actual operation, the more convenient processing effect can be obtained.
Of course, in specific applications, a combination mode of directly generating and reforming an original request can also be adopted to complete the configuration of the simulated network request, and the configuration is adjusted according to actual needs.
The above is the introduction of the system testing method based on the network request provided by the present application, and in order to better implement the system testing method based on the network request provided by the present application, the present application also provides a system testing device based on the network request from the perspective of a functional module.
Referring to fig. 2 and fig. 2 are schematic structural diagrams of the system test device based on network request according to the present application, in which the system test device 200 based on network request may specifically include the following structures:
the determining unit 201 is configured to determine a system test task, where the system test task is specifically a test task for a target system, and the system test task is used to test system performance of the target system;
the configuration unit 202 is configured to configure a network request of a system test task, and generate a simulated network request based on network card protocol information of a target system and a data packet transmitted under the network card protocol information in a process of configuring the network request of the system test task, where the simulated network request is a network request for simulating the network card protocol information and transmitting different data packet contents;
the initiating unit 203 is configured to initiate a simulated network request to the target system to test the system performance of the target system through the simulated network request.
In an exemplary embodiment, the network card protocol information of the target system includes network card protocol information of different network cards of an application environment where the target system is located, and the apparatus further includes a traversal unit 204 configured to:
and traversing the network card protocol information of different network cards of the application environment of the target system through the communication connection with each device of the application environment of the target system.
In another exemplary embodiment, the traversal unit 204 is further configured to:
simulating an application environment of a target system in a simulated application environment;
and traversing network card protocol information of different network cards of the simulation application environment of the target system in the simulation environment through communication connection with each device of the simulation application environment of the target system.
In yet another exemplary embodiment, the apparatus further comprises a listening unit 205 configured to:
confirming that the target system also has different network cards of each device in the application environment of the target system;
and monitoring data packets transmitted by the corresponding network cards based on different network cards of each device in the application environment of the target system, wherein the target system also has different network cards of each device in the application environment of the target system, and obtaining the data packets transmitted under the network card protocol information of the different network cards in the application environment of the target system.
In another exemplary embodiment, the configuration unit 202 is specifically configured to:
acquiring an initial network request, wherein the initial network request is a template network request generated in advance, or the initial network request is a standard network request generated in real time;
and replacing the request content in the initial network request based on the network card protocol information of the target system and the data packet transmitted under the network card protocol information to generate the simulated network request.
The present application further provides a processing device from a hardware structure perspective, referring to fig. 3, fig. 3 shows a schematic structural diagram of the processing device of the present application, specifically, the processing device of the present application may include a processor 301, a memory 302, and an input/output device 303, where the processor 301 is configured to implement the steps of the system testing method based on the network request in the corresponding embodiment of fig. 1 when executing the computer program stored in the memory 302; alternatively, the processor 301 is configured to implement the functions of the units in the corresponding embodiment shown in fig. 2 when executing the computer program stored in the memory 302, and the memory 302 is configured to store the computer program required by the processor 301 to execute the system testing method based on the network request in the corresponding embodiment shown in fig. 1.
Illustratively, the computer program may be divided into one or more modules/units, which are stored in the memory 302 and executed by the processor 301 to accomplish the present application. One or more modules/units may be a series of computer program instruction segments capable of performing certain functions, the instruction segments being used to describe the execution of a computer program in a computer device.
The processing devices may include, but are not limited to, a processor 301, a memory 302, and an input-output device 303. It will be appreciated by those skilled in the art that the illustration is merely an example of a processing device and does not constitute a limitation of the processing device and may include more or fewer components than illustrated, or some components may be combined, or different components, for example, the processing device may also include a network access device, a bus, etc. through which the processor 301, the memory 302, the input output device 303, etc. are connected.
The Processor 301 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, etc. The general purpose processor may be a microprocessor or the processor may be any conventional processor or the like, the processor being the control center for the processing device and the various interfaces and lines connecting the various parts of the overall device.
The memory 302 may be used to store computer programs and/or modules, and the processor 301 implements various functions of the computer device by running or executing the computer programs and/or modules stored in the memory 302 and invoking data stored in the memory 302. The memory 302 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required for at least one function, and the like; the storage data area may store data created according to the use of the processing apparatus, and the like. In addition, the memory may include high-speed random access memory, and may also include non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), at least one magnetic disk storage device, a Flash memory device, or other volatile solid state storage device.
When the processor 301 is used to execute the computer program stored in the memory 302, the following functions may be specifically realized:
determining a system test task, wherein the system test task is a test task specific to a target system, and the system test task is used for testing the system performance of the target system;
configuring a network request of a system test task, and generating a simulated network request based on network card protocol information of a target system and a data packet transmitted under the network card protocol information in the process of configuring the network request of the system test task, wherein the simulated network request is a network request for transmitting different data packet contents under the simulated network card protocol information;
and initiating a simulated network request to the target system so as to test the system performance of the target system through the simulated network request.
It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the system testing apparatus and the processing device based on the network request and the corresponding units thereof described above may refer to the description of the system testing method based on the network request in the corresponding embodiment of fig. 1, and are not described herein again in detail.
It will be understood by those skilled in the art that all or part of the steps of the methods of the above embodiments may be performed by instructions or by associated hardware controlled by the instructions, which may be stored in a computer readable storage medium and loaded and executed by a processor.
For this reason, the present application provides a computer-readable storage medium, in which a plurality of instructions are stored, and the instructions can be loaded by a processor to execute the steps of the system testing method based on the network request in the embodiment corresponding to fig. 1 in the present application, and specific operations may refer to the description of the system testing method based on the network request in the embodiment corresponding to fig. 1, which is not described herein again.
Wherein the computer-readable storage medium may include: read Only Memory (ROM), random Access Memory (RAM), magnetic or optical disks, and the like.
Because the instructions stored in the computer-readable storage medium can execute the steps of the system test method based on the network request in the embodiment corresponding to fig. 1, the beneficial effects that can be achieved by the system test method based on the network request in the embodiment corresponding to fig. 1 can be achieved, which are detailed in the foregoing description and are not repeated herein.
The system testing method, apparatus, processing device and computer-readable storage medium based on network request provided by the present application are introduced in detail above, and a specific example is applied in the present application to illustrate the principle and implementation of the present application, and the description of the above embodiment is only used to help understand the method and core idea of the present application; meanwhile, for those skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (6)

1. A method for testing a system based on a network request, the method comprising:
the method comprises the steps that a processing device determines a system test task, wherein the system test task is specifically a test task for a target system, and the system test task is used for testing the system performance of the target system;
the processing equipment configures a network request of the system test task, and generates a simulated network request based on network card protocol information of the target system and a data packet transmitted under the network card protocol information in the process of configuring the network request of the system test task, wherein the simulated network request is a network request simulating the transmission of different data packet contents under the network card protocol information;
the processing device initiates the simulated network request to the target system so as to test the system performance of the target system through the simulated network request;
the network card protocol information of the target system comprises network card protocol information of different network cards of an application environment where the target system is located, and the method further comprises the following steps:
the processing equipment traverses network card protocol information of different network cards of the application environment of the target system through communication connection with each equipment of the application environment of the target system;
the method further comprises the following steps:
the processing device simulates an application environment of the target system in a simulated application environment;
and the processing equipment traverses the network card protocol information of different network cards of the simulated application environment of the target system in the simulated application environment through the communication connection with each equipment of the simulated application environment of the target system.
2. The method of claim 1, further comprising:
the processing equipment confirms that the target system also has different network cards of each equipment in the application environment of the target system;
and the processing equipment monitors the data packet transmitted by the corresponding network card based on the target system and different network cards of the equipment in the application environment of the target system, and obtains the data packet transmitted under the network card protocol information of the different network cards in the application environment of the target system.
3. The method of claim 1, wherein the processing device generates a simulated network request based on the network card protocol information of the target system and a data packet transmitted under the network card protocol information, and comprises:
the processing equipment acquires an initial network request, wherein the initial network request is a template network request generated in advance, or the initial network request is a standard network request generated in real time;
and the processing equipment replaces the request content in the initial network request based on the network card protocol information of the target system and a data packet transmitted under the network card protocol information to generate the simulated network request.
4. An apparatus for network request based system testing, the apparatus comprising:
the system comprises a determining unit, a processing unit and a processing unit, wherein the determining unit is used for determining a system test task, the system test task is specifically a test task for a target system, and the system test task is used for testing the system performance of the target system;
a configuration unit, configured to configure a network request of the system test task, and generate a simulated network request based on the network card protocol information of the target system and a data packet transmitted under the network card protocol information in a process of configuring the network request of the system test task, where the simulated network request is a network request that simulates different data packet contents transmitted under the network card protocol information;
the initiating unit is used for initiating the simulated network request to the target system so as to test the system performance of the target system through the simulated network request;
the network card protocol information of the target system comprises network card protocol information of different network cards of an application environment where the target system is located, and the device further comprises a traversing unit, which is used for:
traversing network card protocol information of different network cards of the application environment of the target system through communication connection with each device of the application environment of the target system;
the traversal unit is further configured to:
simulating an application environment of the target system in a simulated application environment;
and traversing network card protocol information of different network cards of the simulation application environment of the target system in the simulation application environment through communication connection with each device of the simulation application environment of the target system.
5. The apparatus of claim 4, further comprising a listening unit configured to:
confirming that the target system is also provided with different network cards of each device in the application environment of the target system;
and monitoring data packets transmitted by corresponding network cards based on different network cards of each device in the application environment of the target system, and obtaining the data packets transmitted under the network card protocol information of the different network cards in the application environment of the target system.
6. The apparatus according to claim 4, wherein the configuration unit is specifically configured to:
acquiring an initial network request, wherein the initial network request is a template network request generated in advance, or the initial network request is a standard network request generated in real time;
and replacing the request content in the initial network request based on the network card protocol information of the target system and the data packet transmitted under the network card protocol information to generate the simulated network request.
CN202211093227.6A 2022-09-08 2022-09-08 System testing method and device based on network request Active CN115174461B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211093227.6A CN115174461B (en) 2022-09-08 2022-09-08 System testing method and device based on network request

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211093227.6A CN115174461B (en) 2022-09-08 2022-09-08 System testing method and device based on network request

Publications (2)

Publication Number Publication Date
CN115174461A CN115174461A (en) 2022-10-11
CN115174461B true CN115174461B (en) 2022-12-23

Family

ID=83481571

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211093227.6A Active CN115174461B (en) 2022-09-08 2022-09-08 System testing method and device based on network request

Country Status (1)

Country Link
CN (1) CN115174461B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB2511027A (en) * 2012-12-04 2014-08-27 Anite Telecoms Ltd Apparatus and method for testing
CN104822159A (en) * 2015-01-04 2015-08-05 杭州敦崇科技股份有限公司 System and method for WLAN test of AP by simulating STA
CN106375142A (en) * 2016-08-26 2017-02-01 腾讯科技(深圳)有限公司 Application program test method and apparatus

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114205274A (en) * 2021-11-02 2022-03-18 北京百度网讯科技有限公司 Network equipment testing method and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB2511027A (en) * 2012-12-04 2014-08-27 Anite Telecoms Ltd Apparatus and method for testing
CN104822159A (en) * 2015-01-04 2015-08-05 杭州敦崇科技股份有限公司 System and method for WLAN test of AP by simulating STA
CN106375142A (en) * 2016-08-26 2017-02-01 腾讯科技(深圳)有限公司 Application program test method and apparatus

Also Published As

Publication number Publication date
CN115174461A (en) 2022-10-11

Similar Documents

Publication Publication Date Title
US10949158B2 (en) Screenshot method and apparatus
CN104967585B (en) A kind of method and apparatus of remote debugging mobile terminal
CN106657180B (en) Information transmission method and device for cloud service, terminal equipment and system
US8660833B2 (en) Method, computer program product and apparatus for providing an interactive network simulator
CN110519127B (en) Network delay detection method, device and storage medium
WO2020211360A1 (en) Mock test method and system, electronic device, and computer non-volatile readable storage medium
CN114925644A (en) Method for verifying logic system design in edge system and edge system
CN113133039A (en) Method and device for testing performance of gateway system
CN110457202B (en) TPC-E testing method for quickly establishing ODBC connection and driver equipment
CN115174461B (en) System testing method and device based on network request
KR101611433B1 (en) Performance testing method, performance testing apparatus performing the same and storage media sotring the same
CN108696559A (en) Method for stream processing and device
CN113656152B (en) Local simulation method, system, medium and electronic equipment based on container cloud environment
CN115914062A (en) Network card testing method and device, electronic equipment and storage medium
CN110932879A (en) Network performance test method, data processing device and storage medium
CN110311977B (en) Form verification platform based on cloud computing and method thereof
CN111752827A (en) Test script generation method and device
CN113535586A (en) Test environment switching method, device, equipment and readable storage medium
CN112968812A (en) Network performance testing method, device, equipment and storage medium
CN108733805B (en) File interaction method, system, computer equipment and storage medium
CN113127369A (en) Processing method and device for execution script
CN111752828A (en) Performance test method and device for Web application
CN109271310B (en) Development testing method and device for network function of mobile application program
CN114500302B (en) ICE service arrangement method, ICE service arrangement device, terminal equipment and storage medium
CN111769992A (en) Network data management method, cloud platform and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant