CN115048307A - Weak network testing method, device, equipment and storage medium of application software - Google Patents

Weak network testing method, device, equipment and storage medium of application software Download PDF

Info

Publication number
CN115048307A
CN115048307A CN202210693133.6A CN202210693133A CN115048307A CN 115048307 A CN115048307 A CN 115048307A CN 202210693133 A CN202210693133 A CN 202210693133A CN 115048307 A CN115048307 A CN 115048307A
Authority
CN
China
Prior art keywords
weak network
software
network
weak
report
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
CN202210693133.6A
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.)
Ping An Puhui Enterprise Management Co Ltd
Original Assignee
Ping An Puhui Enterprise Management 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 Ping An Puhui Enterprise Management Co Ltd filed Critical Ping An Puhui Enterprise Management Co Ltd
Priority to CN202210693133.6A priority Critical patent/CN115048307A/en
Publication of CN115048307A publication Critical patent/CN115048307A/en
Pending legal-status Critical Current

Links

Images

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

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention relates to a network security technology, and discloses a weak network testing method of application software, which comprises the following steps: acquiring a weak network test mode and a name of a software package to be tested through a preset configuration interface, and matching corresponding network parameters according to the weak network test mode; generating an executable test file according to the weak network test mode and the network parameters; selecting software corresponding to the name of the software package to be tested as target software, and configuring the weak network environment of the target software according to the executable test file; starting target software in the weak network environment, and monitoring the response state of the target software to obtain a monitoring log; and acquiring a working log of the target software according to the name of the software package to be tested, and generating a weak network test report according to the working log and the monitoring log. In addition, the invention also relates to a block chain technology, and the delay parameters and the signal modes can be stored in the nodes of the block chain. The invention also provides a device, equipment and a storage medium for testing the weak network of the application software. The invention can improve the efficiency of weak network test.

Description

Weak network testing method, device, equipment and storage medium of application software
Technical Field
The invention relates to the technical field of network security, in particular to a weak network testing method, a device, equipment and a storage medium for application software.
Background
With the advent of the digital era, more and more application software is provided on the market, but different network environments in daily life can cause certain influence on the application software, and in order to ensure the normal work of the application software in different network environments, an extreme network environment needs to be simulated, and the application software is subjected to weak network testing.
The existing weak network test aiming at the application software is mostly a manual weak network manufacturing environment, and further the function test of the application software is carried out in the weak network environment, for example, the weak network test is carried out in the environment with relatively poor network signals such as an elevator, in practical application, the cost of the manual weak network manufacturing environment is high, influence factors are more, and testers need to observe and judge according to different conditions in the weak network test, so that the efficiency is low when the weak network test is carried out.
Disclosure of Invention
The invention provides a method, a device, equipment and a storage medium for testing a weak network of application software, and mainly aims to solve the problem of low efficiency in weak network testing.
In order to achieve the above object, the weak network testing method for application software provided by the present invention comprises:
acquiring a weak network test mode and a name of a software package to be tested through a preset configuration interface, and matching corresponding network parameters according to the weak network test mode;
generating an executable test file according to the weak network test mode and the network parameters;
selecting software corresponding to the name of the software package to be tested as target software, and configuring the weak network environment of the target software according to the executable test file;
starting the target software in the weak network environment, and monitoring the response state of the target software to obtain a monitoring log;
and acquiring a working log of the target software according to the name of the software package to be tested, and generating a weak network test report according to the working log and the monitoring log.
Optionally, the matching of the corresponding network parameters according to the weak network test pattern includes:
acquiring a delay parameter and a signal mode of the weak network test mode;
and calculating corresponding network parameters according to the delay parameters and the signal modes.
Optionally, the configuring the weak network environment of the target software according to the executable test file includes:
configuring preset test parameters of the proxy server through the executable test file;
acquiring an IP address and a port number of the proxy server, and performing network connection between the proxy server and the target software according to the IP address and the port number;
intercepting the network signal through the proxy server, adjusting the network signal according to the test parameters, and forwarding the adjusted network signal to the target software through the proxy server.
Optionally, the monitoring the response state of the target software to obtain a monitoring log includes:
recording the response time of the target software through a preset timer;
recording a screen of the target software after response to obtain a response video;
converting the response video into a response frame atlas frame by frame;
removing repeated pictures in the response frame picture set to obtain a changed frame picture set;
and analyzing the state of the pictures in the changed frame picture set to obtain a page state, and generating the monitoring log according to the response time and the page state.
Optionally, performing state analysis on the pictures in the changed frame picture set to obtain a page state, including:
performing clustering analysis on the pictures in the changed frame picture set to obtain a page clustering report;
carrying out structural analysis on the pictures in the change frame picture set to obtain a page structure report;
performing character analysis on the pictures in the change frame picture set to obtain a page character report;
and generating the page state according to the page clustering report, the page structure report and the page character report.
Optionally, the obtaining the working log of the target software according to the name of the software package to be tested includes:
inquiring corresponding process information according to the name of the software package to be tested to obtain a target process number;
inquiring a corresponding record number according to the target process number to obtain a target record number;
and searching the target record number through a preset searching instruction to obtain a working log of the target software.
Optionally, the generating a weak network test report according to the working log and the listening log includes:
extracting uplink flow and downlink flow from the working log;
performing numerical analysis on the uplink flow and the downlink flow to obtain a large flow test report;
extracting an overtime report and a page state report from the monitoring log;
and generating the weak network test report according to the large flow test report, the overtime report and the page state report.
In order to solve the above problem, the present invention further provides a weak network testing apparatus for application software, the apparatus including:
the parameter configuration module is used for acquiring a weak network test mode and a name of a software package to be tested through a preset configuration interface and matching corresponding network parameters according to the weak network test mode;
the instruction generation module is used for generating an executable test file according to the weak network test mode and the network parameters;
the weak network configuration module is used for selecting software corresponding to the name of the software package to be tested as target software and configuring the weak network environment of the target software according to the executable test file;
the weak network monitoring module is used for starting the target software in the weak network environment and monitoring the response state of the target software to obtain a monitoring log;
and the report generation module is used for acquiring a working log of the target software according to the name of the software package to be tested and generating a weak network test report according to the working log and the monitoring log.
In order to solve the above problem, the present invention also provides an apparatus comprising:
at least one processor; and (c) a second step of,
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores a computer program executable by the at least one processor, the computer program being executable by the at least one processor to enable the at least one processor to perform the weak network testing method of the application software.
In order to solve the above problem, the present invention further provides a storage medium, in which at least one computer program is stored, and the at least one computer program is executed by a processor in a device to implement the weak network testing method of the application software.
The embodiment of the invention can facilitate the user to configure various conditions of the weak network by matching the corresponding network parameters with the weak network test mode, saves the step of manually calculating the parameters by the user, improves the test efficiency of testers, enhances the coverage rate of the weak network test by various weak network test modes, and takes over the network of the target software by acting the executable test file, thereby realizing the weak network test of specific application software, expanding the coverage rate of the weak network test, simultaneously not influencing the work of other application software of the mobile phone, and simultaneously, acting the network of the target software by using the proxy server, simulating the weak network environment by software, reducing the summary of the test environment, avoiding other data interference and improving the test efficiency of the testers; the response state of the target software is monitored and analyzed, so that a tester can be assisted to judge the running state of the target software in a weak network environment, the testing efficiency and the testing precision of the tester are improved, a weak network test report is generated through the working log and the monitoring log, various parameters related to user experience can be covered, the weak network test is comprehensively judged, and the testing efficiency of the tester is improved. Therefore, the weak network testing method, the device, the equipment and the storage medium of the application software can solve the problem of low efficiency in weak network testing.
Drawings
Fig. 1 is a schematic flowchart of a weak network testing method for application software according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a configuration of a weak network environment according to an embodiment of the present invention;
fig. 3 is a schematic flowchart of generating a weak network test report according to an embodiment of the present invention;
FIG. 4 is a functional block diagram of a weak network testing apparatus for application software according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a device for implementing the weak network testing method for application software according to an embodiment of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The embodiment of the application provides a weak network testing method for application software. The execution subject of the weak network testing method of the application software includes, but is not limited to, at least one of the devices that the server, the terminal, and the like can be configured to execute the method provided by the embodiment of the present application. In other words, the weak network testing method of the application software may be performed by software or hardware installed in the terminal device or the server device, and the software may be a block chain platform. The server includes but is not limited to: a single server, a server cluster, a cloud server or a cloud server cluster, and the like. The server may be an independent server, or may be a cloud server that provides basic cloud computing services such as a cloud service, a cloud database, cloud computing, a cloud function, cloud storage, a Network service, cloud communication, a middleware service, a domain name service, a security service, a Content Delivery Network (CDN), a big data and artificial intelligence platform, and the like.
Fig. 1 is a schematic flow chart of a weak network testing method for application software according to an embodiment of the present invention. In this embodiment, the weak network testing method for application software includes:
s1, acquiring a weak network test mode and a name of a software package to be tested through a preset configuration interface, and matching corresponding network parameters according to the weak network test mode;
in the embodiment of the present invention, the weak network test pattern may be a delay parameter and a signal pattern stored in a block chain or a database, where the signal pattern includes a 2G signal, a 3G signal, a 4G signal, a 5G signal, and the like.
Specifically, the package name of the software to be tested refers to a package name (package name) of software which needs to be subjected to the weak network test, and the package name is a unique identifier for judging an APP in an Android system, for example, the package name of the WeChat is com.
In detail, the weak network test mode and the name of the software package to be tested can be obtained through an edit text (EditText) of the configuration interface, wherein the EditText is one of UI controls of Android and can receive and obtain input of a user.
In detail, the network parameters include, but are not limited to, an uplink speed, a downlink speed, an uplink delay, a downlink delay, and the like.
In the embodiment of the present invention, the matching of the corresponding network parameters according to the weak network test pattern includes: acquiring a delay parameter and a signal mode of the weak network test mode; and calculating corresponding network parameters according to the delay parameters and the signal modes.
In detail, the network parameters corresponding to the delay parameters and the signal patterns are calculated according to the delay parameters, for example, when the weak network test pattern is a 2G signal GSM900, and the delay parameters are delayed by 300ms every uplink and downlink by 1KB, the corresponding uplink speed is 2.7K/bps, the corresponding downlink speed is 9.6K/bps, the corresponding uplink delay is 8KB × 1000/2.7 — 2962ms, and the corresponding uplink delay is 8KB × 1000/9.6 — 833 ms.
In the embodiment of the invention, the corresponding network parameters are matched through the weak network test mode, so that a user can configure various conditions of the weak network conveniently, the step of manually calculating the parameters by the user is omitted, the test efficiency of testers is improved, and the coverage rate of the weak network test is enhanced through various weak network test modes.
S2, generating an executable test file according to the weak network test mode and the network parameters;
bat files, by typing in the name of the executable test file or clicking on the executable test file, the system will run the executable test file directly by cmd.
In detail, the generating of the executable test file according to the weak network test pattern and the network parameter, for example, osesion [ "request-unlock-delay" ] ═ 300 "means that the delay is 0.3 seconds every time 1KB of data is uploaded.
In the embodiment of the invention, the network can be conveniently proxied by the subsequent proxy server by generating the executable test file by utilizing the weak network test mode and the network parameters.
S3, selecting software corresponding to the name of the software package to be tested as target software, and configuring the weak network environment of the target software according to the executable test file;
in an embodiment of the present invention, referring to fig. 2, the configuring a weak network environment of the target software according to the executable test file includes:
s21, configuring preset testing parameters of the proxy server through the executable testing file;
s22, acquiring the IP address and the port number of the proxy server, and performing network connection between the proxy server and the target software according to the IP address and the port number;
s23, intercepting the network signal through the proxy server, adjusting the network signal according to the test parameters, and forwarding the adjusted network signal to the target software through the proxy server.
In detail, the Proxy Server may be a Proxy Server or a folder, the Proxy Server is an application software for Proxy to the network, and the folder is an http protocol debugging Proxy tool, and is capable of recording and checking network communication between the device and the internet, setting a breakpoint, and checking all network data entering the folder.
In the embodiment of the invention, the network of the target software is subjected to proxy takeover through the executable test file, so that the weak network test of specific application software can be realized, the coverage rate of the weak network test is enlarged, the work of other application software of a mobile phone is not influenced, and meanwhile, the proxy server is used for carrying out proxy on the network of the target software, so that the weak network environment can be simulated by software, the list of the test environment is reduced, the interference of other data is avoided, and the test efficiency of testers is improved.
S4, starting the target software in the weak network environment, and monitoring the response state of the target software to obtain a monitoring log;
in the embodiment of the present invention, the response status of the target software includes, but is not limited to, software flash back, no response of software, response timeout, page picture display error, page structure disorder, and the like.
In this embodiment of the present invention, the monitoring the response status of the target software to obtain a monitoring log includes: recording the response time of the target software through a preset timer; recording a screen of the target software after response to obtain a response video; converting the response video frame by frame into a response frame atlas; removing repeated pictures in the response frame picture set to obtain a changed frame picture set; and analyzing the state of the pictures in the changed frame picture set to obtain a page state, and generating the monitoring log according to the response time and the page state.
In detail, the response video refers to a screen recording video from the beginning of the target software response to the end of the target software loading, and the duration of the response video is preferably 10 seconds.
Specifically, performing state analysis on the pictures in the changed frame picture set to obtain a page state includes: performing clustering analysis on the pictures in the changed frame picture set to obtain a page clustering report; carrying out structural analysis on the pictures in the changed frame picture set to obtain a page structural report; performing character analysis on the pictures in the changed frame picture set to obtain a page character report; and generating the page state according to the page clustering report, the page structure report and the page text report.
Specifically, a Convolutional Neural Network (CNN) may be used to perform cluster analysis on the pictures in the changed frame image set, so as to obtain a page cluster report.
In detail, a Single Shot multi box Detector (SSD) may be used to perform structural analysis on the pictures in the change frame image set, so as to obtain a page structure report.
Specifically, the pictures in the changed frame picture set may be subjected to text analysis through a Long Short-Term Memory network (LSTM) to obtain a page text report.
In the embodiment of the invention, the response state of the target software is monitored and analyzed, so that the detection personnel can be assisted to judge the running state of the target software in the weak network environment, and the test efficiency and the test precision of the detection personnel are improved.
And S5, acquiring a working log of the target software according to the name of the software package to be tested, and generating a weak network test report according to the working log and the monitoring log.
In the embodiment of the invention, the working log refers to a log of the android system for recording the working state of the application program, when the application program is started, the android system creates a folder named by the process number according to the process number occupied by the application program, and saves the running state of the application program in the folder, including the request consumption flow, the received data flow and the like of the application program.
In the embodiment of the present invention, the obtaining the working log of the target software according to the name of the to-be-tested software package includes: inquiring corresponding process information according to the name of the software package to be tested to obtain a target process number; inquiring a corresponding record number according to the target process number to obtain a target record number; and searching the target record number through a preset searching instruction to obtain a working log of the target software.
In detail, the target Process number refers to a Process Identification number (PID), a Process ID is created when each program is opened in an operating system, that is, the PID is a code number of each Process, each Process has a unique PID number, which is allocated by the system when the Process is run and does not represent a special Process, and the PID does not change an identifier when the Process is run, but the PID identifier is recycled by the system after the Process is terminated, and may be continuously allocated to a newly running program.
In detail, the record number refers to a User Identification (UID), the UID refers to a uniquely assigned number assigned to an application program by an operating system, and a work log of the target software can be queried through the UID.
Specifically, the target process number may be obtained by querying corresponding process information through a findstr command and the name of the software package to be tested, where the findstr command is a command carried by a Window system and is used to search a row containing some specific character strings in one or more specified file files and print complete information of the row or print a file name where the query character string is located.
In detail, the retrieval instruction may be an adb shell ps-Aa instruction, which is capable of obtaining state details of a process.
In detail, referring to fig. 3, the generating a weak network test report according to the working log and the listening log includes:
s31, extracting uplink flow and downlink flow from the working log;
s32, carrying out numerical analysis on the uplink flow and the downlink flow to obtain a large flow test report;
s33, extracting a timeout report and a page state report from the monitoring log;
and S34, generating the weak network test report according to the large flow test report, the overtime report and the page state report.
In detail, the large flow test report is used to determine whether the target software performs large flow actions such as updating an installation package and downloading a file in a weak network environment.
Specifically, the timeout report includes, but is not limited to, records of application response time, whether timeout reconnection occurs, and the like, and is used for judging whether the response of the target software in the weak network environment can meet the user requirement;
in detail, the page status report includes records of whether a page picture is displayed incorrectly and whether a page structure is disordered, and the like, and is used for judging the anti-interference capability of the target software in the weak network environment.
In the embodiment of the invention, the weak network test report is generated through the working log and the monitoring log, so that various parameters related to user experience can be covered, the weak network detection is comprehensively judged, and the test efficiency of testers is improved.
The embodiment of the invention can facilitate the user to configure various conditions of the weak network by matching the corresponding network parameters with the weak network test mode, saves the step of manually calculating the parameters by the user, improves the test efficiency of testers, enhances the coverage rate of the weak network test by various weak network test modes, and takes over the network of the target software by acting the executable test file, thereby realizing the weak network test of specific application software, expanding the coverage rate of the weak network test, simultaneously not influencing the work of other application software of the mobile phone, and simultaneously, acting the network of the target software by using the proxy server, simulating the weak network environment by software, reducing the summary of the test environment, avoiding other data interference and improving the test efficiency of the testers; the response state of the target software is monitored and analyzed, so that a tester can be assisted to judge the running state of the target software in a weak network environment, the testing efficiency and the testing precision of the tester are improved, a weak network test report is generated through the working log and the monitoring log, various parameters related to user experience can be covered, the weak network test is comprehensively judged, and the testing efficiency of the tester is improved. Therefore, the weak network testing method of the application software can solve the problem of low efficiency in weak network testing.
Fig. 4 is a functional block diagram of a weak network testing apparatus for application software according to an embodiment of the present invention.
The weak network testing apparatus 100 of the application software according to the present invention may be installed in a device. According to the realized functions, the weak network testing device 100 of the application software may include a parameter configuration module 101, an instruction generation module 102, a weak network configuration module 103, a weak network monitoring module 104, and a report generation module 105. The modules of the invention, which may also be referred to as units, are a series of computer program segments capable of being executed by a processor of a device and performing fixed functions, and are stored in a memory of the device.
In the present embodiment, the functions of the respective modules/units are as follows:
the parameter configuration module 101 is configured to obtain a weak network test mode and a name of a software package to be tested through a preset configuration interface, and match corresponding network parameters according to the weak network test mode;
the instruction generating module 102 is configured to generate an executable test file according to the weak network test mode and the network parameter;
the weak network configuration module 103 is configured to select software corresponding to the name of the software package to be tested as target software, and configure a weak network environment of the target software according to the executable test file;
the weak network monitoring module 104 is configured to start the target software in the weak network environment, and monitor a response state of the target software to obtain a monitoring log;
the report generating module 105 is configured to obtain a working log of the target software according to the name of the software package to be tested, and generate a weak network test report according to the working log and the monitoring log.
In detail, when the modules in the weak network testing apparatus 100 for application software according to the embodiment of the present invention are used, the same technical means as the weak network testing method for application software described in fig. 1 to fig. 3 are adopted, and the same technical effects can be produced, which is not described herein again.
Fig. 5 is a schematic structural diagram of a device for implementing the weak network testing method for application software according to an embodiment of the present invention.
The device 1 may comprise a processor 10, a memory 11, a communication bus 12 and a communication interface 13, and may further comprise a computer program, such as a weak network test program of application software, stored in the memory 11 and executable on the processor 10.
In some embodiments, the processor 10 may be composed of an integrated circuit, for example, a single packaged integrated circuit, or may be composed of a plurality of integrated circuits packaged with the same function or different functions, and includes one or more Central Processing Units (CPUs), a microprocessor, a digital Processing chip, a graphics processor, a combination of various control chips, and the like. The processor 10 is a Control Unit (Control Unit) of the device, connects various components of the entire device by using various interfaces and lines, executes various functions of the device and processes data by running or executing programs or modules (for example, a weak network test program for executing application software, etc.) stored in the memory 11, and calling data stored in the memory 11.
The memory 11 includes at least one type of readable storage medium including flash memory, removable hard disks, multimedia cards, card-type memory (e.g., SD or DX memory, etc.), magnetic memory, magnetic disks, optical disks, and the like. The memory 11 may in some embodiments be an internal storage unit of the device, for example a removable hard disk of the device. The memory 11 may also be an external storage device of the device in other embodiments, such as a plug-in removable hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), etc. provided on the device. Further, the memory 11 may also include both an internal storage unit of the device and an external storage device. The memory 11 may be used not only to store application software installed in the device and various types of data, such as codes of weak network test programs of the application software, etc., but also to temporarily store data that has been output or is to be output.
The communication bus 12 may be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. The bus may be divided into an address bus, a data bus, a control bus, etc. The bus is arranged to enable connection communication between the memory 11 and at least one processor 10 or the like.
The communication interface 13 is used for communication between the above-mentioned device and other devices, and includes a network interface and a user interface. Optionally, the network interface may include a wired interface and/or a wireless interface (e.g., WI-FI interface, bluetooth interface, etc.), typically used to establish a communication connection between the device and other devices. The user interface may be a Display (Display), an input unit such as a Keyboard (Keyboard), and optionally a standard wired interface, a wireless interface. Alternatively, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode) touch device, or the like. The display, which may also be referred to as a display screen or display unit, is suitable for displaying information processed in the device and for displaying a visualized user interface.
Only devices having components are shown, it will be understood by those skilled in the art that the structures shown in the figures do not constitute limitations on the devices, and may include fewer or more components than shown, or some components in combination, or a different arrangement of components.
For example, although not shown, the apparatus may further include a power supply (such as a battery) for supplying power to each component, and preferably, the power supply may be logically connected to the at least one processor 10 through a power management device, so that functions such as charge management, discharge management, and power consumption management are implemented through the power management device. The power supply may also include any component of one or more dc or ac power sources, recharging devices, power failure detection circuitry, power converters or inverters, power status indicators, and the like. The device may further include various sensors, a bluetooth module, a Wi-Fi module, etc., which are not described herein again.
It is to be understood that the described embodiments are for purposes of illustration only and that the scope of the appended claims is not limited to such structures.
The weak network test program of the application software stored in the memory 11 of the device 1 is a combination of instructions that, when executed in the processor 10, can implement:
acquiring a weak network test mode and a name of a software package to be tested through a preset configuration interface, and matching corresponding network parameters according to the weak network test mode;
generating an executable test file according to the weak network test mode and the network parameters;
selecting software corresponding to the name of the software package to be tested as target software, and configuring the weak network environment of the target software according to the executable test file;
starting the target software in the weak network environment, and monitoring the response state of the target software to obtain a monitoring log;
and acquiring a working log of the target software according to the name of the software package to be tested, and generating a weak network test report according to the working log and the monitoring log.
Specifically, the specific implementation method of the instruction by the processor 10 may refer to the description of the relevant steps in the embodiment corresponding to the drawings, which is not described herein again.
Further, the integrated modules/units of the device 1 may be stored in a storage medium if implemented in the form of software functional units and sold or used as separate products. The storage medium may be volatile or nonvolatile. For example, the storage medium may include: any entity or device capable of carrying said computer program code, recording medium, U-disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM).
The invention also provides a storage medium, the readable storage medium storing a computer program which, when executed by a processor of a device, may implement:
acquiring a weak network test mode and a name of a software package to be tested through a preset configuration interface, and matching corresponding network parameters according to the weak network test mode;
generating an executable test file according to the weak network test mode and the network parameters;
selecting software corresponding to the name of the software package to be tested as target software, and configuring the weak network environment of the target software according to the executable test file;
starting the target software in the weak network environment, and monitoring the response state of the target software to obtain a monitoring log;
and acquiring a working log of the target software according to the name of the software package to be tested, and generating a weak network test report according to the working log and the monitoring log.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus, device and method can be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the modules is only one logical functional division, and other divisions may be realized in practice.
The modules described as separate parts may or may not be physically separate, and parts displayed as modules may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment.
In addition, functional modules in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional module.
It will be evident to those skilled in the art that the invention is not limited to the details of the foregoing illustrative embodiments, and that the present invention may be embodied in other specific forms without departing from the spirit or essential attributes thereof.
The present embodiments are therefore to be considered in all respects as illustrative and not restrictive, the scope of the invention being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. Any reference signs in the claims shall not be construed as limiting the claim concerned.
The block chain is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, a consensus mechanism, an encryption algorithm and the like. A block chain (Blockchain), which is essentially a decentralized database, is a series of data blocks associated by using a cryptographic method, and each data block contains information of a batch of network transactions, so as to verify the validity (anti-counterfeiting) of the information and generate a next block. The blockchain may include a blockchain underlying platform, a platform product service layer, an application service layer, and the like.
The embodiment of the application can acquire and process related data based on an artificial intelligence technology. Among them, Artificial Intelligence (AI) is a theory, method, technique and application system that simulates, extends and expands human Intelligence using a digital computer or a machine controlled by a digital computer, senses the environment, acquires knowledge and uses the knowledge to obtain the best result.
Furthermore, it is obvious that the word "comprising" does not exclude other elements or steps, and the singular does not exclude the plural. A plurality of units or means recited in the system claims may also be implemented by one unit or means in software or hardware. The terms first, second, etc. are used to denote names, but not any particular order.
Finally, it should be noted that the above embodiments are only intended to illustrate the technical solutions of the present invention and not to limit the same, and although the present invention is described in detail with reference to the preferred embodiments, it should be understood by those skilled in the art that modifications or equivalent substitutions can be made to the technical solutions of the present invention without departing from the spirit and scope of the technical solutions of the present invention.

Claims (10)

1. A weak network testing method for application software is characterized by comprising the following steps:
acquiring a weak network test mode and a name of a software package to be tested through a preset configuration interface, and matching corresponding network parameters according to the weak network test mode;
generating an executable test file according to the weak network test mode and the network parameters;
selecting software corresponding to the name of the software package to be tested as target software, and configuring the weak network environment of the target software according to the executable test file;
starting the target software in the weak network environment, and monitoring the response state of the target software to obtain a monitoring log;
and acquiring a working log of the target software according to the name of the software package to be tested, and generating a weak network test report according to the working log and the monitoring log.
2. The weak network testing method of application software according to claim 1, wherein the matching of the corresponding network parameters according to the weak network testing pattern comprises:
acquiring a delay parameter and a signal mode of the weak network test mode;
and calculating corresponding network parameters according to the delay parameters and the signal modes.
3. The weak network testing method of application software according to claim 1, wherein said configuring the weak network environment of the target software according to the executable test file comprises:
configuring preset test parameters of the proxy server through the executable test file;
acquiring an IP address and a port number of the proxy server, and performing network connection between the proxy server and the target software according to the IP address and the port number;
intercepting the network signal through the proxy server, adjusting the network signal according to the test parameters, and forwarding the adjusted network signal to the target software through the proxy server.
4. The weak network testing method of application software according to claim 1, wherein said intercepting the response status of the target software to obtain an interception log comprises:
recording the response time of the target software through a preset timer;
recording a screen of the target software after response to obtain a response video;
converting the response video into a response frame atlas frame by frame;
removing repeated pictures in the response frame picture set to obtain a changed frame picture set;
and analyzing the state of the pictures in the changed frame picture set to obtain a page state, and generating the monitoring log according to the response time and the page state.
5. The weak network testing method of application software according to claim 4, wherein performing state analysis on the pictures in the change frame picture set to obtain a page state comprises:
performing clustering analysis on the pictures in the changed frame picture set to obtain a page clustering report;
carrying out structural analysis on the pictures in the change frame picture set to obtain a page structure report;
performing character analysis on the pictures in the change frame picture set to obtain a page character report;
and generating the page state according to the page clustering report, the page structure report and the page character report.
6. The weak network testing method of application software according to claim 1, wherein the obtaining the working log of the target software according to the name of the software package to be tested comprises:
inquiring corresponding process information according to the name of the software package to be tested to obtain a target process number;
inquiring a corresponding record number according to the target process number to obtain a target record number;
and searching the target record number through a preset searching instruction to obtain a working log of the target software.
7. The weak network testing method of application software according to any one of claims 1 to 6, wherein the generating of the weak network test report according to the working log and the listening log comprises:
extracting uplink flow and downlink flow from the working log;
performing numerical analysis on the uplink flow and the downlink flow to obtain a large flow test report;
extracting an overtime report and a page state report from the monitoring log;
and generating the weak network test report according to the large flow test report, the overtime report and the page state report.
8. An apparatus for testing a weak network of application software, the apparatus comprising:
the parameter configuration module is used for acquiring a weak network test mode and a name of a software package to be tested through a preset configuration interface and matching corresponding network parameters according to the weak network test mode;
the instruction generation module is used for generating an executable test file according to the weak network test mode and the network parameters;
the weak network configuration module is used for selecting software corresponding to the name of the software package to be tested as target software and configuring the weak network environment of the target software according to the executable test file;
the weak network monitoring module is used for starting the target software in the weak network environment and monitoring the response state of the target software to obtain a monitoring log;
and the report generation module is used for acquiring a working log of the target software according to the name of the software package to be tested and generating a weak network test report according to the working log and the monitoring log.
9. An apparatus, characterized in that the apparatus comprises:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the weak network testing method of application software according to any one of claims 1 to 7.
10. A storage medium storing a computer program which, when executed by a processor, implements a weak network testing method for application software according to any one of claims 1 to 7.
CN202210693133.6A 2022-06-17 2022-06-17 Weak network testing method, device, equipment and storage medium of application software Pending CN115048307A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210693133.6A CN115048307A (en) 2022-06-17 2022-06-17 Weak network testing method, device, equipment and storage medium of application software

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210693133.6A CN115048307A (en) 2022-06-17 2022-06-17 Weak network testing method, device, equipment and storage medium of application software

Publications (1)

Publication Number Publication Date
CN115048307A true CN115048307A (en) 2022-09-13

Family

ID=83162677

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210693133.6A Pending CN115048307A (en) 2022-06-17 2022-06-17 Weak network testing method, device, equipment and storage medium of application software

Country Status (1)

Country Link
CN (1) CN115048307A (en)

Similar Documents

Publication Publication Date Title
US9569325B2 (en) Method and system for automated test and result comparison
CN109302522A (en) Test method, device and computer system and medium
CN113138929A (en) Distributed interface testing method and device, electronic equipment and storage medium
CN112131118A (en) Mock testing method, Mock testing device, electronic equipment and computer readable storage medium
CN110647471A (en) Interface test case generation method, electronic device and storage medium
CN102981949A (en) Method for on-line automatic tests of server
CN112068852A (en) Method, system, equipment and medium for installing open source software based on domestic server
CN115061885A (en) Complete machine aging automatic test method and device, electronic equipment and storage medium
CN112527664A (en) Method and device for generating test case, electronic equipment and storage medium
CN112559355A (en) Test case generation method and device, electronic equipment and storage medium
CN114880238A (en) Mobile terminal interface testing method, device, equipment and storage medium
CN114006885A (en) Data acquisition method and device based on intelligent equipment and electronic equipment
CN116244133A (en) Hard disk test management method, system, terminal and storage medium
CN115048307A (en) Weak network testing method, device, equipment and storage medium of application software
CN116244186A (en) Operating system test management method and device and computing equipment
CN114385155A (en) vue project visualization tool generation method, device, equipment and storage medium
CN115145870A (en) Method and device for positioning reason of failed task, electronic equipment and storage medium
CN114896164A (en) Interface optimization method and device, electronic equipment and storage medium
CN114124835A (en) Interface-based data transmission method, device, equipment and medium
CN115022397A (en) Interface parameter simplifying method and device, electronic equipment and storage medium
CN114064510A (en) Function testing method and device, electronic equipment and storage medium
CN113051171A (en) Interface test method, device, equipment and storage medium
CN112527655A (en) Software version quality abnormity detection method and device, electronic equipment and storage medium
CN111400191A (en) Webpage security testing method and device and computer readable storage medium
CN116414610B (en) Method, device, equipment and storage medium for acquiring abnormal log fragments

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