CN117395175A - Network application software testing method, device, equipment, medium and program product - Google Patents

Network application software testing method, device, equipment, medium and program product Download PDF

Info

Publication number
CN117395175A
CN117395175A CN202311292187.2A CN202311292187A CN117395175A CN 117395175 A CN117395175 A CN 117395175A CN 202311292187 A CN202311292187 A CN 202311292187A CN 117395175 A CN117395175 A CN 117395175A
Authority
CN
China
Prior art keywords
network
abnormal
application software
network environment
user
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202311292187.2A
Other languages
Chinese (zh)
Inventor
关援凯
秦晓宁
陈颖
王添
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nettrix Information Industry Beijing Co Ltd
Original Assignee
Nettrix Information Industry Beijing 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 Nettrix Information Industry Beijing Co Ltd filed Critical Nettrix Information Industry Beijing Co Ltd
Priority to CN202311292187.2A priority Critical patent/CN117395175A/en
Publication of CN117395175A publication Critical patent/CN117395175A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3664Environments for testing or debugging software
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3684Test management for test design, e.g. generating new test cases
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0805Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
    • H04L43/0817Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking functioning
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0823Errors, e.g. transmission errors
    • H04L43/0829Packet loss
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0852Delays
    • 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
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements
    • H04L43/55Testing of service level quality, e.g. simulating service usage

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Quality & Reliability (AREA)
  • Computer Hardware Design (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Environmental & Geological Engineering (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The application relates to a network application software testing method, device, equipment, medium and program product. The method comprises the following steps: responding to a function test request of a user on target network application software, and determining whether an abnormal network environment simulation tool is started; displaying an environment configuration interface of the abnormal network environment simulation tool under the condition that the abnormal network environment simulation tool is started; and performing functional test on the target network application software according to the network environment parameters edited by the user in the environment configuration interface to obtain a test result of the target network application software. Various abnormal network conditions are simulated by introducing an abnormal network environment simulation tool, so that the test mode is set reasonably, the test is performed under the normal network environment, the test can be performed under various abnormal network environments, and the robustness of network application software is improved.

Description

Network application software testing method, device, equipment, medium and program product
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method, an apparatus, a device, a medium, and a program product for testing network application software.
Background
Network application software refers to software that is capable of providing various services to network users for providing or acquiring shared resources on a network. Such as browsing software, transmission software, and telnet software, etc.
In the related art, after the development work of the network application software is completed, the network application software and the testing tool are generally deployed in a stable testing environment to perform a functional test on the network application software.
However, in the related art, when the network application software is tested in function, there is a problem that the test mode is set unreasonably, which results in poor robustness of the tested network application software.
Disclosure of Invention
Based on the above, it is necessary to provide a method, an apparatus, a device, a medium and a program product for testing network application software, which simulate various abnormal network conditions by introducing an abnormal network environment simulation tool, so that the test mode is set reasonably, the test can be performed not only in a normal network environment, but also in various abnormal network environments, and the robustness of the network application software is improved.
In a first aspect, the present application provides a method for testing network application software, including:
Responding to a function test request of a user on target network application software, and determining whether an abnormal network environment simulation tool is started;
displaying an environment configuration interface of the abnormal network environment simulation tool under the condition that the abnormal network environment simulation tool is started;
and performing functional test on the target network application software according to the network environment parameters edited by the user in the environment configuration interface to obtain a test result of the target network application software.
According to the technical scheme, whether the abnormal network environment simulation tool is started or not is determined by responding to the function test request of the user on the target network application software, and then the environment configuration interface of the abnormal network environment simulation tool is displayed under the condition that the abnormal network environment simulation tool is started is determined, and then the function test is carried out on the target network application software according to the network environment parameters edited by the user in the environment configuration interface, so that the test result of the target network application software is obtained. When the related function test of the target network application software is carried out, firstly, whether an abnormal network environment simulation tool is required to be started is determined, if the abnormal network environment simulation tool is determined to be started, the environment configuration interface of the abnormal network environment simulation tool is displayed to a user, so that the user sets network environment parameters for constructing the abnormal network environment in the environment configuration interface, after the setting is finished, the function test is carried out on the target network application software in the abnormal network environment according to the network environment parameters set by the user, namely, various abnormal network conditions are simulated by introducing the abnormal network environment simulation tool, the test mode is set reasonably, the test is carried out under the normal network environment, the test can be carried out under various abnormal network environments, and the robustness of the network application software is improved.
In one embodiment, the environment configuration interface includes a data packet source edit box and a network anomaly function option edit area, and the method further includes:
acquiring data packet source information edited by a user in a data packet source editing frame, and acquiring network abnormal function parameter values edited by the user in a network abnormal function option editing area;
and determining network environment parameters according to the source information of the data packets and the network abnormal function parameter values.
According to the technical scheme, the data packet source editing frame and the network abnormal function option editing area are arranged in the environment configuration interface, so that a user can set various parameters according to own requirements to simulate various complex abnormal network environments; the environment configuration interface is simple to set, so that a user can simulate various conditions of an abnormal network conveniently, the testing efficiency of testing target network application software in the abnormal network environment by the user is improved, in addition, the abnormal network environment can be simulated by directly configuring relevant parameters in the environment configuration interface, various devices and relevant professional technicians are not required to support, and the cost for constructing the abnormal network environment is reduced.
In one embodiment, obtaining the network abnormal function parameter value edited by the user in the network abnormal function option editing area includes:
Acquiring a target network abnormal function option selected by a user from a network abnormal function option editing area;
displaying a function setting page corresponding to the target network abnormal function option; the function setting page comprises an effective probability editing frame and a data packet editing frame of the target network abnormal function options;
and determining the probability score input by the user in the effective probability editing box, the data packet input in the data packet editing box and the target network abnormal function option as network abnormal function parameter values.
According to the technical scheme, the function setting page is introduced, so that parameters related to network abnormal functions can be set in detail in the function setting page, various complex abnormal network environments can be accurately simulated, defects of target network application software in the abnormal network environments can be timely dealt with in a test stage, problems found in later actual use are avoided, and the conditions of high maintenance cost and the like are avoided.
In one embodiment, according to network environment parameters edited by a user in an environment configuration interface, performing a functional test on target network application software to obtain a test result of the target network application software, including:
Operating an abnormal network environment simulation tool according to the network environment parameters;
acquiring current network operation information output by an abnormal network environment simulation tool;
and performing functional test on the target network application software according to the current network operation information to obtain a test result of the target network application software.
According to the technical scheme, the function test is carried out on the target network application software in the abnormal network environment simulation tool by operating the abnormal network environment simulation tool according to the network environment parameters set by the user, so that whether the function of the target network application software meets the specified requirement is verified in the abnormal network environment, the robustness of the target network application software is greatly improved, and the software quality of the target network application software is fully ensured.
In one embodiment, according to current network operation information, performing a functional test on the target network application software to obtain a test result of the target network application software, including:
comparing the current network operation information with the network environment parameters;
if the current network operation information is consistent with the network environment parameters, determining that the construction of the abnormal network environment is successful;
and under the condition that the construction of the abnormal network environment is successful, operating the target network application software in the abnormal network environment to obtain a test result of the target network application software.
In the technical scheme of the embodiment of the application, the current network operation information is compared with the network environment parameters to determine whether the abnormal network environment is constructed successfully, and under the condition that the abnormal network environment is constructed successfully, the function test is performed on the target network application software, so that the accuracy of the test result of the function test of the target network application software in the abnormal network environment is improved, and the robustness of the target network application software is further improved.
In one embodiment, the method further comprises:
and under the condition that the abnormal network environment simulation tool is not started, performing functional test on the target network application software in the normal network environment to obtain a test result of the target network application software.
In the technical scheme of the embodiment of the application, under the condition that the abnormal network environment simulation tool is not started, the target network application software is operated in the normal network environment, so that a test result of the function test of the target network application software in the normal network environment is obtained; the target network application software is subjected to functional test in a normal network environment so as to further find potential errors and defects, and the quality and reliability of the target network application software are improved.
In a second aspect, the present application further provides a network application software testing device, including:
the first determining module is used for responding to a functional test request of a user on target network application software and determining whether an abnormal network environment simulation tool is started or not;
the interface display module is used for displaying an environment configuration interface of the abnormal network environment simulation tool under the condition that the abnormal network environment simulation tool is determined to be started;
and the second determining module is used for carrying out functional test on the target network application software according to the network environment parameters edited by the user in the environment configuration interface to obtain a test result of the target network application software.
In a third aspect, embodiments of the present application further provide a computer device. The computer device comprises a memory storing a computer program and a processor implementing the steps of any of the embodiments of the first aspect described above when the processor executes the computer program.
In a fourth aspect, embodiments of the present application also provide a computer-readable storage medium. A computer readable storage medium having stored thereon a computer program which when executed by a processor performs the steps of any of the embodiments of the first aspect described above.
In a fifth aspect, embodiments of the present application also provide a computer program product. A computer program product comprising a computer program which when executed by a processor performs the steps of any of the embodiments of the first aspect described above.
According to the network application software testing method, device, equipment, medium and program product, whether the abnormal network environment simulation tool is started is determined by responding to the function testing request of the user on the target network application software, and then the environment configuration interface of the abnormal network environment simulation tool is displayed under the condition that the abnormal network environment simulation tool is started is determined, and then the function testing is carried out on the target network application software according to the network environment parameters edited by the user in the environment configuration interface, so that the testing result of the target network application software is obtained. When the related function test of the target network application software is carried out, firstly, whether an abnormal network environment simulation tool is required to be started is determined, if the abnormal network environment simulation tool is determined to be started, the environment configuration interface of the abnormal network environment simulation tool is displayed to a user, so that the user sets network environment parameters for constructing the abnormal network environment in the environment configuration interface, after the setting is finished, the function test is carried out on the target network application software in the abnormal network environment according to the network environment parameters set by the user, namely, various abnormal network conditions are simulated by introducing the abnormal network environment simulation tool, the test mode is set reasonably, the test is carried out under the normal network environment, the test can be carried out under various abnormal network environments, and the robustness of the network application software is improved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the related art, the drawings that are required to be used in the embodiments or the related technical descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and other drawings may be obtained according to the drawings without inventive effort for a person having ordinary skill in the art.
FIG. 1 is an application environment diagram of a network application software testing method in one embodiment;
FIG. 2 is a flow chart of a method for testing network application software in one embodiment;
FIG. 3 is a flow diagram of obtaining user edited network environment parameters in one embodiment;
FIG. 4 is a schematic diagram of an environment configuration interface in one embodiment;
FIG. 5 is a flow chart of acquiring network abnormal function parameter values in one embodiment;
FIG. 6 is a flow chart of determining test results of target network application software in one embodiment;
FIG. 7 is a flowchart illustrating a method for determining test results of target network application software according to another embodiment;
FIG. 8 is a flowchart of a method for testing network application software according to another embodiment;
FIG. 9 is a schematic diagram of a network application software testing apparatus according to an embodiment;
fig. 10 is an internal structural view of a computer device in one embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application will be further described in detail with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the present application.
The network application software testing method provided by the embodiment of the application can be applied to an application environment shown in fig. 1. Wherein the terminal 102 communicates with the server 104 via a network. The data storage system may store data that the server 104 needs to process. The data storage system may be integrated on the server 104 or may be located on a cloud or other network server. The terminal 102 may be, but not limited to, various personal computers, notebook computers, smart phones, tablet computers, internet of things devices, and portable wearable devices, where the internet of things devices may be smart speakers, smart televisions, smart air conditioners, smart vehicle devices, and the like. The portable wearable device may be a smart watch, smart bracelet, headset, or the like. The server 104 may be implemented as a stand-alone server or as a server cluster of multiple servers.
In an exemplary embodiment, as shown in fig. 2, a method for testing network application software is provided, and the method is applied to the server in fig. 1 for illustration, and includes the following steps 201 to 203. Wherein:
s201, responding to a function test request of a user to target network application software, and determining whether to enable an abnormal network environment simulation tool.
The network application software can provide various services for network users, including but not limited to browsing software, transmission software, remote login software and the like; the target network application software is any network application software which needs to be subjected to functional test. The abnormal network environment simulation tool is a tool capable of simulating various abnormal network conditions; abnormal network conditions may include, but are not limited to, network packet loss, network delay, network retransmission, and network misordering.
The function test request is a request sent to the server by the user when the user has the requirement of performing function test on the target network application software. In one implementation manner, a software function testing tool provided by the server can be integrated in a terminal held by a user, and then a function testing request of the target network application software can be sent to the server through the software function testing tool. Wherein the software functional testing tool may be presented in the form of web pages, applets, applications and the like.
When a user needs to perform functional test on the target network application software, a functional test request on the target network application software can be generated, the functional test request is sent to a server, and when the server receives the functional test request of the user on the target network application software, whether the user needs to start an abnormal network environment simulation tool can be determined.
The method includes that a function test request sent by a user carries an identifier of whether an abnormal network environment simulation tool is to be started or not, and when the server receives the function test request, whether the abnormal network environment simulation tool is to be started or not can be determined according to the identifier carried in the function test request; for example, the identifier carried in the functional test request is compared with a plurality of prestored identifiers related to the functional test, if the identifier carried in the functional test request is the identifier for enabling the abnormal network environment simulation tool, the abnormal network environment simulation tool is determined to be required to be enabled, and conversely, if the identifier carried in the functional test request is the identifier for not enabling the abnormal network environment simulation tool, the abnormal network environment simulation tool is determined not to be required to be enabled.
Another implementation way is that when the server receives a function test request of a user for target network application software, a network environment selection interface is displayed for the user, and whether an abnormal network environment simulation tool is started or not is determined according to options of the user in the network environment selection interface; for example, the network environment selection interface includes a normal network environment option and an abnormal network environment option, and if the abnormal network environment option is identified to be selected by the user, it is determined that the abnormal network environment simulation tool needs to be started.
S202, displaying an environment configuration interface of the abnormal network environment simulation tool under the condition that the abnormal network environment simulation tool is started.
The environment configuration interface is an interface capable of configuring various abnormal network conditions.
If it is determined that the abnormal network environment simulation tool is enabled, it is necessary to determine what abnormal network the abnormal network environment simulation tool should simulate.
In the embodiment of the application, when the abnormal network environment simulation tool is determined to be started, an environment configuration interface of the abnormal network environment simulation tool is displayed for a user, so that the user configures network environment parameters for constructing the abnormal network environment in the environment configuration interface.
And S203, performing functional test on the target network application software according to the network environment parameters edited by the user in the environment configuration interface to obtain a test result of the target network application software.
The network environment parameters include, but are not limited to, internet protocol (IP, intellectual Property) information, delay rate, packet loss rate, and out-of-order rate.
The method comprises the steps that an environment configuration interface of an abnormal network environment simulation tool is displayed for a user, the user can configure based on various network parameters included in the environment configuration interface, after the user configuration is completed, the network environment parameters edited by the user in the environment configuration interface are obtained, the abnormal network environment simulation tool is executed according to the network environment parameters, so that target network application software operates in an abnormal network environment, functional testing of the target network application software is completed, and a testing result of the target network application software is obtained.
It should be noted that, the environment configuration interface includes a plurality of abnormal network options and various network parameter options, and the user can perform any configuration based on the actual requirement; for example, the user may perform parameter configuration on related network abnormal conditions in the environment configuration interface according to various network abnormal conditions encountered by other network application software in the actual use process.
In the network application software testing method provided by the embodiment of the application, whether the abnormal network environment simulation tool is started is determined by responding to the function testing request of the user on the target network application software, and then the environment configuration interface of the abnormal network environment simulation tool is displayed under the condition that the abnormal network environment simulation tool is determined to be started, and then the function testing is carried out on the target network application software according to the network environment parameters edited by the user in the environment configuration interface, so that the testing result of the target network application software is obtained. When the related function test of the target network application software is carried out, firstly, whether an abnormal network environment simulation tool is required to be started is determined, if the abnormal network environment simulation tool is determined to be started, the environment configuration interface of the abnormal network environment simulation tool is displayed to a user, so that the user sets network environment parameters for constructing the abnormal network environment in the environment configuration interface, after the setting is finished, the function test is carried out on the target network application software in the abnormal network environment according to the network environment parameters set by the user, namely, various abnormal network conditions are simulated by introducing the abnormal network environment simulation tool, the test mode is set reasonably, the test is carried out under the normal network environment, the test can be carried out under various abnormal network environments, and the robustness of the network application software is improved.
Various network application software encounters many network abnormal conditions in the actual use process, the actual network abnormal environment is complex, and when various complex abnormal network environments are simulated by the abnormal network environment simulation tool, the environment configuration interface of the abnormal network environment simulation tool is required to provide an editing function capable of setting various network environment parameters. Based on this, in one exemplary embodiment, an alternative way of obtaining user-edited network environment parameters is provided. As shown in fig. 3, steps 301 to 302 may be included. Wherein:
s301, acquiring data packet source information edited by a user in a data packet source editing frame, and acquiring network abnormal function parameter values edited by the user in a network abnormal function option editing area.
In the embodiment of the application, the environment configuration interface comprises a data packet source editing box and a network abnormal function option editing area. The packet source information may include, but is not limited to, IP address information, port information, network protocols, and the like. The network abnormal function parameter value represents parameters related to the network abnormal function, such as network abnormal function and function validation probability.
In one embodiment, as shown in FIG. 4, an interface is configured for an environment; the data packet Source editing box may manually input a data packet Source, for example, may input IP address information of a data packet, and may include a destination address (Dstaddr, destination address) and a Source address (Srcaddr, source address); for example, if the information input in the packet source edit box is ip.dstaddr= 192.168.10.75, the destination IP address in the IP address information of the packet is 192.168.10.75; the data packet source setting means that the data packet interested by the user is set, and when the subsequent abnormal network environment simulation tool actually operates, the set data packet interested is intercepted, so that corresponding abnormal processing and operation are carried out on the data packet interested. It should be noted that, in addition to the IP address, the packet source edit box may also be provided with port information, a network protocol, and the like.
In addition, the network abnormal function option editing area comprises a plurality of network abnormal function options, and a user clicks a certain network abnormal function option to pop up a function setting page of the network abnormal function option and set related parameters; among them, network abnormal function options include, but are not limited to, abnormal functions such as delay, packet loss, retransmission, misordering, throttling, and tampering.
The user inputs the relevant information of the interested data packet in the data packet source editing box of the environment configuration interface, edits the corresponding content in the network abnormal function area according to the relevant options and the relevant prompt information in the function setting page corresponding to the options, and the server can acquire the data packet source information edited by the user in the data packet source editing box and the network abnormal function parameter value edited in the network abnormal function option editing area after clicking for storage.
S302, determining network environment parameters according to the source information of the data packets and the network abnormal function parameter values.
The network environment parameters are the relevant information edited by the user in the environment configuration interface, namely the source information of the data packet and the network abnormal function parameter values edited by the user in the environment configuration interface are directly used as the network environment parameters.
In the embodiment of the application, by setting the data packet source editing frame and the network abnormal function option editing area in the environment configuration interface, a user can set various parameters according to own needs so as to simulate various complex abnormal network environments; the environment configuration interface is simple to set, so that a user can simulate various conditions of an abnormal network conveniently, the testing efficiency of testing target network application software in the abnormal network environment by the user is improved, in addition, the abnormal network environment can be simulated by directly configuring relevant parameters in the environment configuration interface, various devices and relevant professional technicians are not required to support, and the cost for constructing the abnormal network environment is reduced.
In order to accurately simulate various complex abnormal network environments, besides the network abnormal function options, parameters related to each network abnormal function can be set in detail so as to restore the actual network abnormal environment as efficiently and accurately as possible, and the problems that the software robustness is poor and the software quality cannot be ensured when the target network application software is actually used in the later period are avoided. Based on this, in an exemplary embodiment, a step of acquiring the network abnormal function parameter value edited by the user in the network abnormal function option editing area is explained in detail, and as shown in fig. 5, steps 401 to 403 may be included. Wherein:
s401, acquiring a target network abnormal function option selected by a user from a network abnormal function option editing area.
In the embodiment of the application, the network abnormal function option editing area comprises network abnormal function options such as delay, packet loss, retransmission, disorder, throttling, tampering and the like; in the network abnormal function option editing area of the environment configuration interface, the user can select a target network abnormal function option from the provided network abnormal function options, and after the user selects, the server acquires the target network abnormal function option selected by the user from the network abnormal function option editing area.
It should be noted that the number of the target network abnormal function options may be one or more, that is, a plurality of network abnormal functions in the environment configuration interface of the present application may be used alone or in combination, and may specifically be selected according to the needs of the user.
S402, displaying a function setting page corresponding to the target network abnormal function option.
In the embodiment of the application, the function setting page comprises an effective probability editing box and a data packet editing box of the target network abnormal function option. For example, as shown in fig. 4, the environment configuration interface includes a function setting page with a network abnormal function option as a delay, and the effective probability parameter and the packet parameter of the delay function can be set.
The effective probability is expressed by a percentage, and a user can directly input a number in the effective probability editing box as the effective probability of the abnormal function or click the effective probability editing box to select a related number from the popped number options as the effective probability of the abnormal function.
For a data packet, an input data packet and an output data packet can be selected to represent whether the input data packet or the output data packet is subjected to exception handling; the user clicks the data packet editing box to pop up the input option and the output option, and can directly click the input option or the output option as the data packet to be subjected to exception processing. In the present application, the exception processing may be performed on the input data packet or the exception processing may be performed on the output data packet, that is, when the data packet is selected, the input data packet or the output data packet may be used as the data packet for exception processing alone, or the input data packet and the output data packet may be used as the data packet for exception processing together.
S403, determining the probability score input by the user in the effective probability editing box, the data packet input in the data packet editing box and the target network abnormal function option as network abnormal function parameter values.
In the embodiment of the present application, the network abnormal function parameter value is a relevant parameter set by the user in the network abnormal function option editing area of the environment configuration interface, and after the user finishes setting various parameters related to the network abnormal function in the network abnormal function option editing area according to the own requirement, the probability score input by the user in the efficiency probability editing frame, the data packet input in the data packet editing frame and the target network abnormal function option are directly used as the network abnormal function parameter value.
In the embodiment of the application, by introducing the function setting page, parameters related to network abnormal functions can be set in detail in the function setting page, so that various complex abnormal network environments can be accurately simulated, the defects of the target network application software in the abnormal network environments can be timely dealt with in a test stage, and the situations of excessively high maintenance cost and the like caused by finding problems in later actual use are avoided.
After the user completes the configuration of the network environment parameters of the abnormal network environment in the environment configuration interface according to the actual demands, the abnormal network environment simulation tool can be operated according to the network environment parameters configured by the user, so that the target network application software can perform functional test in the abnormal network environment configured by the user. Based on this, in one embodiment, an alternative way of determining the test results of the target network application software is provided. As shown in fig. 6, steps 501 to 503 may be included. Wherein:
s501, operating an abnormal network environment simulation tool according to the network environment parameters.
After the user edits the network environment parameters in the environment configuration interface, clicking and storing, if the edited network environment parameters are checked to have no problem, clicking a start control in the environment configuration interface, and after the server detects that the user clicks to start, starting to operate an abnormal network environment simulation tool according to the obtained network environment parameters, so that the abnormal network environment simulation tool is effective.
S502, acquiring current network operation information output by the abnormal network environment simulation tool.
In the embodiment of the application, the current network operation information is the current network state generated after the abnormal network environment simulation tool operates according to the network environment parameters.
After the abnormal network environment simulation tool takes effect, the current network state, namely the current network operation information, can be output in an operation page of the abnormal network environment simulation tool. For example, if the network environment parameter set by the user in the environment configuration interface includes that the source information of the data packet is ip.dstaddr= 192.168.10.75, the abnormal function option of the target network is packet loss, the effective probability of the abnormal function option of the target network is 50%, and the data packet of the abnormal function option of the target network is an input data packet, the current network operation information may be that the packet loss rate of the input data packet with the IP address of 192.168.10.75 is 50%.
And S503, performing functional test on the target network application software according to the current network operation information to obtain a test result of the target network application software.
After the current network operation information is obtained, whether the current network operation information is correct or not can be determined, and under the condition that the current network operation information is correct, functional test is conducted on the target network application software, so that a test result of the target network application software is obtained.
For example, the current network operation information may be searched to see if the current network operation information includes error information indicating an abnormal operation, such as checking whether an error function exists; if the error reporting information which indicates the abnormal operation is not found in the current network operation information through the retrieval, determining that the current network operation information is error-free; if the current network operation information includes error reporting information indicating abnormal operation after searching, a prompt message can be output to the user to indicate the user to end the operation of the abnormal network environment simulation tool, and whether the setting parameters are correct or not is checked.
According to the embodiment of the application, the function test is carried out on the target network application software in the abnormal network environment simulation tool by operating the abnormal network environment simulation tool according to the network environment parameters set by the user, so that whether the function of the target network application software meets the specified requirement is verified in the abnormal network environment, the robustness of the target network application software is greatly improved, and the software quality of the target network application software is fully ensured.
In order to ensure the accuracy of the test result of the function test of the target network application software in the abnormal network environment, it is necessary to determine whether the abnormal network environment simulation tool is successful in constructing the abnormal network environment required by the user before the target network application software formally enters the function test process. Based on this, in one embodiment, a step of performing a functional test on the target network application software according to the current network operation information to obtain a test result of the target network application software is explained in detail. As shown in fig. 7, steps 601 to 603 may be included. Wherein:
s601, comparing the current network operation information with the network environment parameters.
After the network environment parameters edited by the user in the environment configuration interface are obtained, the network environment parameters can be stored in a database, so that on one hand, the user can conveniently and directly call the network environment parameters from the database without repeatedly configuring the parameters when performing functional tests of other network application software, and on the other hand, when determining whether the abnormal network environment is successfully constructed, the network environment parameters can be called from the database to perform comparison operation of the network environment parameters and the current network operation information output by the abnormal network environment simulation tool.
After the current network operation information output by the abnormal network environment simulation tool is obtained, network environment parameters edited by a user can be obtained from a database, and then the current network operation information is compared with the network environment parameters to determine whether the abnormal network environment is successfully constructed.
S602, if the current network operation information is consistent with the network environment parameters, determining that the abnormal network environment is constructed successfully.
Comparing the current network operation information with the network environment parameters, and if the current network operation information is compared with the network environment parameters, namely the current network operation information is consistent with the network environment parameters, determining that the construction of the abnormal network environment is successful; if the current network operation information is inconsistent with the network environment parameters, the abnormal network environment is determined to be not constructed successfully, and prompt information can be output to instruct a user to end the operation of the abnormal network environment simulation tool, and whether the setting parameters are correct is checked.
And S603, under the condition that the construction of the abnormal network environment is successful, operating the target network application software in the abnormal network environment to obtain a test result of the target network application software.
If the abnormal network environment is successfully constructed, the function test can be performed on the target network application software in the abnormal network environment, and the target network application software is directly operated in the current abnormal network environment at the moment, so that whether the function of the target network application software meets the specified requirement is verified according to the obtained test result of the target network application software.
In the embodiment of the application, the current network operation information is compared with the network environment parameters to determine whether the abnormal network environment is constructed successfully, and the function test is performed on the target network application software under the condition that the abnormal network environment is constructed successfully, so that the accuracy of the test result of the function test of the target network application software in the abnormal network environment is improved, and the robustness of the target network application software is further improved.
When the function test is carried out on the target network application software, the test is carried out not only in an abnormal network environment to ensure the software quality and the robustness of the target network application software, but also in a normal network environment to further find potential errors and defects, and the quality, the reliability and the robustness of the software are improved through the double test in the abnormal network environment and the normal network environment. In an exemplary embodiment, the method further comprises:
and under the condition that the abnormal network environment simulation tool is not started, performing functional test on the target network application software in the normal network environment to obtain a test result of the target network application software.
If the abnormal network environment simulation tool is determined not to be started, directly starting the test, namely running the target network application software in the normal network environment to verify whether various functions of the target network application software meet preset requirements in the normal network environment.
In the embodiment of the application, under the condition that the abnormal network environment simulation tool is not started, operating the target network application software in the normal network environment to obtain a test result of performing functional test on the target network application software in the normal network environment; the target network application software is subjected to functional test in a normal network environment so as to further find potential errors and defects, and the quality and reliability of the target network application software are improved.
In addition, in an exemplary embodiment, the present application further provides an alternative example of a network application software testing method, as shown in fig. 8, which may include the following steps:
s701, determining whether to enable an abnormal network environment simulation tool or not in response to a function test request of a user for target network application software; if yes, executing S702; if not, then S708 is performed.
S702, displaying an environment configuration interface of the abnormal network environment simulation tool.
S703, acquiring the data packet source information edited by the user in the data packet source editing frame, and acquiring the network abnormal function parameter values edited by the user in the network abnormal function option editing area.
Acquiring a target network abnormal function option selected by a user from a network abnormal function option editing area; displaying a function setting page corresponding to the target network abnormal function option; the function setting page comprises an effective probability editing frame and a data packet editing frame of the target network abnormal function options; and determining the probability score input by the user in the effective probability editing box, the data packet input in the data packet editing box and the target network abnormal function option as network abnormal function parameter values.
S704, determining network environment parameters according to the source information of the data packets and the network abnormal function parameter values.
S705, operating the abnormal network environment simulation tool according to the network environment parameters.
S706, current network operation information output by the abnormal network environment simulation tool is obtained.
And S707, performing functional test on the target network application software according to the current network operation information to obtain a test result of the target network application software.
And S708, performing functional test on the target network application software in the normal network environment to obtain a test result of the target network application software.
The above processes of S701 to S708 may refer to the descriptions of the above method embodiments, and the implementation principle and technical effects are similar, and are not repeated herein.
It should be understood that, although the steps in the flowcharts related to the embodiments described above are sequentially shown as indicated by arrows, these steps are not necessarily sequentially performed in the order indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least some of the steps in the flowcharts described in the above embodiments may include a plurality of steps or a plurality of stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of the steps or stages is not necessarily performed sequentially, but may be performed alternately or alternately with at least some of the other steps or stages.
Based on the same inventive concept, the embodiment of the application also provides a network application software testing device for implementing the above-mentioned network application software testing method. The implementation of the solution provided by the device is similar to the implementation described in the above method, so the specific limitation of the embodiment of one or more network application software testing devices provided below may be referred to the limitation of the network application software testing method hereinabove, and will not be repeated herein.
In an exemplary embodiment, as shown in fig. 9, there is provided a network application software testing apparatus 1, including: a first determination module 10, an interface presentation module 20, and a second determination module 30, wherein:
a first determining module 10, configured to determine whether to enable an abnormal network environment simulation tool in response to a functional test request of a user for target network application software;
an interface display module 20, configured to display an environment configuration interface of the abnormal network environment simulation tool if it is determined that the abnormal network environment simulation tool is enabled;
the second determining module 30 is configured to perform a functional test on the target network application software according to the network environment parameters edited by the user in the environment configuration interface, so as to obtain a test result of the target network application software.
In one embodiment, the network application software testing apparatus 1 further includes:
the information acquisition module is used for acquiring the data packet source information edited by the user in the data packet source editing frame and acquiring the network abnormal function parameter value edited by the user in the network abnormal function option editing area;
and the third determining module is used for determining network environment parameters according to the source information of the data packets and the network abnormal function parameter values.
In one embodiment, the information obtaining module is configured to:
acquiring a target network abnormal function option selected by a user from a network abnormal function option editing area; displaying a function setting page corresponding to the target network abnormal function option; the function setting page comprises an effective probability editing frame and a data packet editing frame of the target network abnormal function options; and determining the probability score input by the user in the effective probability editing box, the data packet input in the data packet editing box and the target network abnormal function option as network abnormal function parameter values.
In one embodiment, the second determination module 30 includes:
the operation unit is used for operating the abnormal network environment simulation tool according to the network environment parameters;
the acquisition unit is used for acquiring current network operation information output by the abnormal network environment simulation tool;
and the determining unit is used for carrying out functional test on the target network application software according to the current network operation information to obtain a test result of the target network application software.
In one embodiment, the determining unit is configured to:
comparing the current network operation information with the network environment parameters; if the current network operation information is consistent with the network environment parameters, determining that the construction of the abnormal network environment is successful; and under the condition that the construction of the abnormal network environment is successful, operating the target network application software in the abnormal network environment to obtain a test result of the target network application software.
In one embodiment, the network application software testing apparatus 1 further includes:
and the fourth determining module is used for performing functional test on the target network application software in the normal network environment under the condition that the abnormal network environment simulation tool is not started, so as to obtain a test result of the target network application software.
The modules in the network application software testing device may be implemented in whole or in part by software, hardware, or a combination thereof. The above modules may be embedded in hardware or may be independent of a processor in the computer device, or may be stored in software in a memory in the computer device, so that the processor may call and execute operations corresponding to the above modules.
In one exemplary embodiment, a computer device is provided, which may be a server, and the internal structure thereof may be as shown in fig. 10. The computer device includes a processor, a memory, an Input/Output interface (I/O) and a communication interface. The processor, the memory and the input/output interface are connected through a system bus, and the communication interface is connected to the system bus through the input/output interface. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, computer programs, and a database. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The database of the computer device is used to store network application software test data. The input/output interface of the computer device is used to exchange information between the processor and the external device. The communication interface of the computer device is used for communicating with an external terminal through a network connection. The computer program, when executed by a processor, implements a network application software testing method.
It will be appreciated by those skilled in the art that the structure shown in fig. 10 is merely a block diagram of some of the structures associated with the present application and is not limiting of the computer device to which the present application may be applied, and that a particular computer device may include more or fewer components than shown, or may combine certain components, or have a different arrangement of components.
In one exemplary embodiment, a computer device is provided comprising a memory and a processor, the memory having stored therein a computer program, the processor when executing the computer program performing the steps of:
responding to a function test request of a user on target network application software, and determining whether an abnormal network environment simulation tool is started;
displaying an environment configuration interface of the abnormal network environment simulation tool under the condition that the abnormal network environment simulation tool is started;
and performing functional test on the target network application software according to the network environment parameters edited by the user in the environment configuration interface to obtain a test result of the target network application software.
In one embodiment, the processor when executing the computer program further performs the steps of:
acquiring data packet source information edited by a user in a data packet source editing frame, and acquiring network abnormal function parameter values edited by the user in a network abnormal function option editing area; and determining network environment parameters according to the source information of the data packets and the network abnormal function parameter values.
In one embodiment, when the processor executes logic in the computer program for obtaining the network abnormal function parameter value edited by the user in the network abnormal function option editing area, the following steps are specifically implemented:
acquiring a target network abnormal function option selected by a user from a network abnormal function option editing area; displaying a function setting page corresponding to the target network abnormal function option; the function setting page comprises an effective probability editing frame and a data packet editing frame of the target network abnormal function options; and determining the probability score input by the user in the effective probability editing box, the data packet input in the data packet editing box and the target network abnormal function option as network abnormal function parameter values.
In one embodiment, when the processor executes logic of the target network application software to obtain a test result of the target network application software by performing a functional test on the target network application software according to network environment parameters edited by a user in an environment configuration interface in the computer program, the following steps are specifically implemented:
operating an abnormal network environment simulation tool according to the network environment parameters; acquiring current network operation information output by an abnormal network environment simulation tool; and performing functional test on the target network application software according to the current network operation information to obtain a test result of the target network application software.
In one embodiment, when the processor executes logic in the computer program to perform a functional test on the target network application software according to the current network operation information and obtain a test result of the target network application software, the following steps are specifically implemented:
comparing the current network operation information with the network environment parameters; if the current network operation information is consistent with the network environment parameters, determining that the construction of the abnormal network environment is successful; and under the condition that the construction of the abnormal network environment is successful, operating the target network application software in the abnormal network environment to obtain a test result of the target network application software.
In one embodiment, the processor when executing the computer program further performs the steps of:
and under the condition that the abnormal network environment simulation tool is not started, performing functional test on the target network application software in the normal network environment to obtain a test result of the target network application software.
The principles and specific processes of implementing the above-mentioned computer device in each embodiment may be referred to the description in the foregoing embodiment of the network application software testing method embodiment, which is not repeated herein.
In one embodiment, a computer readable storage medium is provided having a computer program stored thereon, which when executed by a processor, performs the steps of:
Responding to a function test request of a user on target network application software, and determining whether an abnormal network environment simulation tool is started;
displaying an environment configuration interface of the abnormal network environment simulation tool under the condition that the abnormal network environment simulation tool is started;
and performing functional test on the target network application software according to the network environment parameters edited by the user in the environment configuration interface to obtain a test result of the target network application software.
In one embodiment, the computer program when executed by the processor further performs the steps of:
acquiring data packet source information edited by a user in a data packet source editing frame, and acquiring network abnormal function parameter values edited by the user in a network abnormal function option editing area; and determining network environment parameters according to the source information of the data packets and the network abnormal function parameter values.
In one embodiment, when logic for acquiring the network abnormal function parameter value edited by the user in the network abnormal function option editing area in the computer program is executed by the processor, the following steps are specifically implemented:
acquiring a target network abnormal function option selected by a user from a network abnormal function option editing area; displaying a function setting page corresponding to the target network abnormal function option; the function setting page comprises an effective probability editing frame and a data packet editing frame of the target network abnormal function options; and determining the probability score input by the user in the effective probability editing box, the data packet input in the data packet editing box and the target network abnormal function option as network abnormal function parameter values.
In one embodiment, the computer program performs a functional test on the target network application software according to the network environment parameters edited by the user in the environment configuration interface, and when the logic for obtaining the test result of the target network application software is executed by the processor, the following steps are specifically implemented:
operating an abnormal network environment simulation tool according to the network environment parameters; acquiring current network operation information output by an abnormal network environment simulation tool; and performing functional test on the target network application software according to the current network operation information to obtain a test result of the target network application software.
In one embodiment, the computer program performs a functional test on the target network application software according to the current network operation information, and when the logic for obtaining the test result of the target network application software is executed by the processor, the following steps are specifically implemented:
comparing the current network operation information with the network environment parameters; if the current network operation information is consistent with the network environment parameters, determining that the construction of the abnormal network environment is successful; and under the condition that the construction of the abnormal network environment is successful, operating the target network application software in the abnormal network environment to obtain a test result of the target network application software.
In one embodiment, the computer program when executed by the processor further performs the steps of:
and under the condition that the abnormal network environment simulation tool is not started, performing functional test on the target network application software in the normal network environment to obtain a test result of the target network application software.
The principles and specific procedures of implementing the foregoing embodiments of the present invention in the foregoing embodiments of the method for testing network application software may be referred to in the foregoing embodiments of the present invention, and are not described herein in detail.
In one embodiment, a computer program product is provided comprising a computer program which, when executed by a processor, performs the steps of:
responding to a function test request of a user on target network application software, and determining whether an abnormal network environment simulation tool is started;
displaying an environment configuration interface of the abnormal network environment simulation tool under the condition that the abnormal network environment simulation tool is started;
and performing functional test on the target network application software according to the network environment parameters edited by the user in the environment configuration interface to obtain a test result of the target network application software.
In one embodiment, the computer program when executed by the processor further performs the steps of:
Acquiring data packet source information edited by a user in a data packet source editing frame, and acquiring network abnormal function parameter values edited by the user in a network abnormal function option editing area; and determining network environment parameters according to the source information of the data packets and the network abnormal function parameter values.
In one embodiment, when logic for acquiring the network abnormal function parameter value edited by the user in the network abnormal function option editing area in the computer program is executed by the processor, the following steps are specifically implemented:
acquiring a target network abnormal function option selected by a user from a network abnormal function option editing area; displaying a function setting page corresponding to the target network abnormal function option; the function setting page comprises an effective probability editing frame and a data packet editing frame of the target network abnormal function options; and determining the probability score input by the user in the effective probability editing box, the data packet input in the data packet editing box and the target network abnormal function option as network abnormal function parameter values.
In one embodiment, the computer program performs a functional test on the target network application software according to the network environment parameters edited by the user in the environment configuration interface, and when the logic for obtaining the test result of the target network application software is executed by the processor, the following steps are specifically implemented:
Operating an abnormal network environment simulation tool according to the network environment parameters; acquiring current network operation information output by an abnormal network environment simulation tool; and performing functional test on the target network application software according to the current network operation information to obtain a test result of the target network application software.
In one embodiment, the computer program performs a functional test on the target network application software according to the current network operation information, and when the logic for obtaining the test result of the target network application software is executed by the processor, the following steps are specifically implemented:
comparing the current network operation information with the network environment parameters; if the current network operation information is consistent with the network environment parameters, determining that the construction of the abnormal network environment is successful; and under the condition that the construction of the abnormal network environment is successful, operating the target network application software in the abnormal network environment to obtain a test result of the target network application software.
In one embodiment, the computer program when executed by the processor further performs the steps of:
and under the condition that the abnormal network environment simulation tool is not started, performing functional test on the target network application software in the normal network environment to obtain a test result of the target network application software.
The principles and specific procedures of implementing the foregoing embodiments of the present invention in the foregoing embodiments of the method for testing network application software are referred to in the foregoing embodiments, and are not described herein in detail.
It should be noted that, the data (including, but not limited to, data for analysis, data stored, data displayed, etc.) referred to in the present application are all information and data authorized or fully authorized by each party, and the collection, use, and processing of the relevant data are required to meet the relevant regulations.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, database, or other medium used in the various embodiments provided herein may include at least one of non-volatile and volatile memory. The nonvolatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical Memory, high density embedded nonvolatile Memory, resistive random access Memory (ReRAM), magnetic random access Memory (Magnetoresistive Random Access Memory, MRAM), ferroelectric Memory (Ferroelectric Random Access Memory, FRAM), phase change Memory (Phase Change Memory, PCM), graphene Memory, and the like. Volatile memory can include random access memory (Random Access Memory, RAM) or external cache memory, and the like. By way of illustration, and not limitation, RAM can be in the form of a variety of forms, such as static random access memory (Static Random Access Memory, SRAM) or dynamic random access memory (Dynamic Random Access Memory, DRAM), and the like. The databases referred to in the various embodiments provided herein may include at least one of relational databases and non-relational databases. The non-relational database may include, but is not limited to, a blockchain-based distributed database, and the like. The processors referred to in the embodiments provided herein may be general purpose processors, central processing units, graphics processors, digital signal processors, programmable logic units, quantum computing-based data processing logic units, etc., without being limited thereto.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The above examples only represent a few embodiments of the present application, which are described in more detail and are not to be construed as limiting the scope of the present application. It should be noted that it would be apparent to those skilled in the art that various modifications and improvements could be made without departing from the spirit of the present application, which would be within the scope of the present application. Accordingly, the scope of protection of the present application shall be subject to the appended claims.

Claims (10)

1. A method for testing network application software, the method comprising:
responding to a function test request of a user on target network application software, and determining whether an abnormal network environment simulation tool is started;
displaying an environment configuration interface of an abnormal network environment simulation tool under the condition that the abnormal network environment simulation tool is determined to be started;
and performing functional test on the target network application software according to the network environment parameters edited by the user in the environment configuration interface to obtain a test result of the target network application software.
2. The method of claim 1, wherein the environment configuration interface includes a packet source edit box and a network anomaly function option edit area, the method further comprising:
acquiring data packet source information edited by the user in the data packet source editing frame, and acquiring network abnormal function parameter values edited by the user in the network abnormal function option editing area;
and determining the network environment parameter according to the data packet source information and the network abnormal function parameter value.
3. The method according to claim 2, wherein the obtaining the network abnormal function parameter value edited by the user in the network abnormal function option editing area includes:
acquiring a target network abnormal function option selected by the user from a network abnormal function option editing area;
displaying a function setting page corresponding to the target network abnormal function option; the function setting page comprises an effective probability editing box and a data packet editing box of the target network abnormal function options;
and determining the probability score input by the user in the effective probability editing box, the data packet input in the data packet editing box and the target network abnormal function option as the network abnormal function parameter value.
4. A method according to any one of claims 1 to 3, wherein the performing a functional test on the target network application software according to the network environment parameters edited by the user in the environment configuration interface to obtain a test result of the target network application software includes:
operating the abnormal network environment simulation tool according to the network environment parameters;
acquiring current network operation information output by the abnormal network environment simulation tool;
and performing functional test on the target network application software according to the current network operation information to obtain a test result of the target network application software.
5. The method of claim 4, wherein the performing the functional test on the target network application software according to the current network operation information to obtain the test result of the target network application software includes:
comparing the current network operation information with the network environment parameters;
if the current network operation information is consistent with the network environment parameters, determining that the construction of the abnormal network environment is successful;
and under the condition that the construction of the abnormal network environment is successful, operating the target network application software in the abnormal network environment to obtain a test result of the target network application software.
6. A method according to any one of claims 1-3, wherein the method further comprises:
and under the condition that the abnormal network environment simulation tool is not started, performing functional test on the target network application software in the normal network environment to obtain a test result of the target network application software.
7. A network application software testing apparatus, the apparatus comprising:
the first determining module is used for responding to a functional test request of a user on target network application software and determining whether an abnormal network environment simulation tool is started or not;
the interface display module is used for displaying an environment configuration interface of the abnormal network environment simulation tool under the condition that the abnormal network environment simulation tool is determined to be started;
and the second determining module is used for carrying out functional test on the target network application software according to the network environment parameters edited by the user in the environment configuration interface to obtain a test result of the target network application software.
8. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor implements the steps of the method of any of claims 1 to 6 when the computer program is executed.
9. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 6.
10. A computer program product comprising a computer program, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 6.
CN202311292187.2A 2023-10-08 2023-10-08 Network application software testing method, device, equipment, medium and program product Pending CN117395175A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311292187.2A CN117395175A (en) 2023-10-08 2023-10-08 Network application software testing method, device, equipment, medium and program product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311292187.2A CN117395175A (en) 2023-10-08 2023-10-08 Network application software testing method, device, equipment, medium and program product

Publications (1)

Publication Number Publication Date
CN117395175A true CN117395175A (en) 2024-01-12

Family

ID=89464087

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311292187.2A Pending CN117395175A (en) 2023-10-08 2023-10-08 Network application software testing method, device, equipment, medium and program product

Country Status (1)

Country Link
CN (1) CN117395175A (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105183653A (en) * 2015-09-18 2015-12-23 江苏中利电子信息科技有限公司 Automatic testing method and device for ad-hoc network
CN107135390A (en) * 2017-05-08 2017-09-05 湖南快乐阳光互动娱乐传媒有限公司 Automatic testing method and system for television application
CN107272668A (en) * 2017-08-14 2017-10-20 北京航天发射技术研究所 A kind of emulation test method of car launcher car control system
CN109086211A (en) * 2018-08-22 2018-12-25 平安科技(深圳)有限公司 Analog network abnormality eliminating method, device, computer equipment and storage medium
CN110324201A (en) * 2019-05-21 2019-10-11 平安科技(深圳)有限公司 Terminal network test method, device, computer equipment and storage medium
WO2020233064A1 (en) * 2019-05-21 2020-11-26 深圳壹账通智能科技有限公司 Function test-based factor influence degree determination method and apparatus, and terminal device
CN113868126A (en) * 2021-09-17 2021-12-31 北京顺达同行科技有限公司 Application debugging method, device and storage medium of equipment
CN113918400A (en) * 2021-09-23 2022-01-11 国网冀北电力有限公司计量中心 Terminal drive test method, device and system
CN114461350A (en) * 2022-03-30 2022-05-10 中国工商银行股份有限公司 Method and device for testing availability of container
CN116594881A (en) * 2023-05-12 2023-08-15 杭州一骑轻尘信息技术有限公司 Network environment switching method, device, equipment, development system and storage medium

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105183653A (en) * 2015-09-18 2015-12-23 江苏中利电子信息科技有限公司 Automatic testing method and device for ad-hoc network
CN107135390A (en) * 2017-05-08 2017-09-05 湖南快乐阳光互动娱乐传媒有限公司 Automatic testing method and system for television application
CN107272668A (en) * 2017-08-14 2017-10-20 北京航天发射技术研究所 A kind of emulation test method of car launcher car control system
CN109086211A (en) * 2018-08-22 2018-12-25 平安科技(深圳)有限公司 Analog network abnormality eliminating method, device, computer equipment and storage medium
CN110324201A (en) * 2019-05-21 2019-10-11 平安科技(深圳)有限公司 Terminal network test method, device, computer equipment and storage medium
WO2020233064A1 (en) * 2019-05-21 2020-11-26 深圳壹账通智能科技有限公司 Function test-based factor influence degree determination method and apparatus, and terminal device
CN113868126A (en) * 2021-09-17 2021-12-31 北京顺达同行科技有限公司 Application debugging method, device and storage medium of equipment
CN113918400A (en) * 2021-09-23 2022-01-11 国网冀北电力有限公司计量中心 Terminal drive test method, device and system
CN114461350A (en) * 2022-03-30 2022-05-10 中国工商银行股份有限公司 Method and device for testing availability of container
CN116594881A (en) * 2023-05-12 2023-08-15 杭州一骑轻尘信息技术有限公司 Network environment switching method, device, equipment, development system and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
魏雪卉;: "嵌入式软件配置项测试技术及策略", 火控雷达技术, no. 01, 25 March 2018 (2018-03-25), pages 51 - 55 *

Similar Documents

Publication Publication Date Title
WO2018000607A1 (en) Method and electronic apparatus for identifying test case failure causes
US10705946B2 (en) Techniques for real time server testing in a production environment
CN109408361A (en) Monkey tests restored method, device, electronic equipment and computer readable storage medium
CN116644250B (en) Page detection method, page detection device, computer equipment and storage medium
CN108228611B (en) Document information copying method and device
CN111949537A (en) Interface test method, device, equipment and medium
WO2023124314A1 (en) Micro-service test method and system for hybrid cpu architecture device, and related apparatus
CN117395175A (en) Network application software testing method, device, equipment, medium and program product
CN116155597A (en) Access request processing method and device and computer equipment
CN114760314A (en) Server management method, device, computer equipment and storage medium
CN114371866A (en) Version reconfiguration test method, device and equipment of service system
CN116795723B (en) Chain unit test processing method and device and computer equipment
CN114218056B (en) Performance test method and device for transaction system, computer equipment and storage medium
CN115292097B (en) Database instance creation method, apparatus, device, storage medium, and program product
CN116541454B (en) Event configuration method, device, computer equipment and storage medium
US20240104085A1 (en) Computer system and method for evaluating integrity and parsing of a file system and parsing implementation
CN117785674A (en) Interface use case generation method, device, computer equipment and storage medium
CN117033172A (en) Test data processing method, apparatus, device, storage medium and program product
CN116361149A (en) Batch processing automatic test method, device, computer equipment and storage medium
CN118069718A (en) Data display method, device, computer equipment and storage medium
CN117112051A (en) Component topology map generation method and device, computer equipment and storage medium
CN118132443A (en) Method and device for constructing batch test file and computer equipment
CN118377482A (en) Interface development method, device, computer equipment and storage medium
CN115934521A (en) Method and device for acquiring standing book information of business application and computer equipment
CN116414406A (en) BMC customizing method, device, computer equipment, storage medium and program product

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