CN112448860A - Application program testing method and related equipment - Google Patents

Application program testing method and related equipment Download PDF

Info

Publication number
CN112448860A
CN112448860A CN201910812997.3A CN201910812997A CN112448860A CN 112448860 A CN112448860 A CN 112448860A CN 201910812997 A CN201910812997 A CN 201910812997A CN 112448860 A CN112448860 A CN 112448860A
Authority
CN
China
Prior art keywords
network
network characteristic
parameter set
characteristic parameter
target
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.)
Granted
Application number
CN201910812997.3A
Other languages
Chinese (zh)
Other versions
CN112448860B (en
Inventor
翟小东
李明
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing QIYI Century Science and Technology Co Ltd
Original Assignee
Beijing QIYI Century Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing QIYI Century Science and Technology Co Ltd filed Critical Beijing QIYI Century Science and Technology Co Ltd
Priority to CN201910812997.3A priority Critical patent/CN112448860B/en
Publication of CN112448860A publication Critical patent/CN112448860A/en
Application granted granted Critical
Publication of CN112448860B publication Critical patent/CN112448860B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • 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/0823Errors, e.g. transmission errors
    • H04L43/0847Transmission error
    • 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/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0876Network utilisation, e.g. volume of load or congestion level
    • H04L43/0894Packet rate

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Environmental & Geological Engineering (AREA)
  • Telephone Function (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The embodiment of the invention provides a test method and related equipment of an application program, wherein the method comprises the following steps: acquiring a network characteristic parameter set of a real network where the electronic equipment is located, wherein each data in the network characteristic parameter set comprises: parameter values of the target network characteristic parameters and time points of the parameter values; determining a target parameter value of a target network characteristic parameter at a test time point based on the network characteristic parameter set; and calling the target parameter value to test the simulation network of the application program at the test time point. Therefore, the difference between the network environment of the simulated network and the network environment of the real network can be reduced, and the test accuracy of the application program is improved.

Description

Application program testing method and related equipment
Technical Field
The present invention relates to the field of application program testing, and in particular, to a method and related device for testing an application program.
Background
With the development of electronic technology, electronic devices such as mobile phones, tablet computers, smart televisions and the like have become indispensable tools in daily life of people. The electronic device may provide a user with various functions such as browsing a web page, working, playing games, listening to music online, watching videos, and the like by installing an application program. In order to ensure that the application program can provide stable and reliable service for the user, the running stability of the application program is usually required to be tested in the development process of the application program.
The weak network environment test is a crucial part in the application test because the actual network where the electronic device is located may be unstable or the network speed is low, and the harsh network environment may cause the operation of the application to fail. At present, in a weak network environment test of an application program, an effect of simulating a weak network is usually achieved by configuring current limiting through a tool on line, namely configuring network characteristic parameters such as bandwidth, uploading rate, downloading rate, time delay, packet loss, bit error rate and the like of the weak network. However, since the real network environment is complex and variable, the simulated network environment may have a large difference from the real network environment, which may result in the accuracy of the weak network environment test of the application program being reduced.
Therefore, the problem of low test accuracy exists in the weak network environment test of the application program at present.
Disclosure of Invention
The embodiment of the invention provides a test method and related equipment of an application program, and aims to solve the problem of low test accuracy in the existing weak network environment test of the application program.
In order to solve the technical problem, the invention is realized as follows:
in a first aspect, an embodiment of the present invention provides an application program testing method, which is applied to an electronic device, and the method includes:
acquiring a network characteristic parameter set of a real network where the electronic device is located, wherein each data in the network characteristic parameter set comprises: parameter values of the target network characteristic parameters and time points of the parameter values;
determining a target parameter value of a target network characteristic parameter at a test time point based on the network characteristic parameter set;
and calling the target parameter value to test the simulation network of the application program at the test time point.
In a second aspect, an embodiment of the present invention further provides an electronic device, including:
a parameter set obtaining module, configured to obtain a network feature parameter set of a real network where the electronic device is located, where each piece of data in the network feature parameter set includes: parameter values of the target network characteristic parameters and time points of the parameter values;
the parameter value determining module is used for determining a target parameter value of a target network characteristic parameter at a testing time point based on the network characteristic parameter set;
and the testing module is used for calling the target parameter value to test the simulation network of the application program at the testing time point.
In a third aspect, an embodiment of the present invention further provides an electronic device, which includes a processor, a memory, and a computer program stored on the memory and capable of running on the processor, where the computer program, when executed by the processor, implements the steps of the method for testing the application program.
In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the method for testing an application program are implemented.
In the embodiment of the present invention, a network feature parameter set of a real network where an electronic device is located is obtained, where each data in the network feature parameter set includes: parameter values of the target network characteristic parameters and time points of the parameter values; determining a target parameter value of a target network characteristic parameter at a test time point based on the network characteristic parameter set; and calling the target parameter value to test the simulation network of the application program at the test time point. Therefore, the difference between the network environment of the simulated network and the network environment of the real network can be reduced, and the test accuracy of the application program is improved.
Drawings
Fig. 1 is a schematic flowchart of a method for testing an application according to an embodiment of the present invention;
FIG. 2 is a diagram illustrating an actual application of a method for testing an application program according to an embodiment of the present invention;
FIG. 3 is a graph illustrating a fitting function provided by an embodiment of the present invention;
FIG. 4 is a second graph of a fitting function provided by an embodiment of the present invention;
FIG. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present invention;
FIG. 6 is a schematic structural diagram of a parameter value determining module according to an embodiment of the present invention;
fig. 7 is a second schematic structural diagram of an electronic device according to an embodiment of the invention;
fig. 8 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1, which is a schematic flow chart of a method for testing an application according to an embodiment of the present invention, an electronic device includes a display screen, and as shown in fig. 1, the method for testing an application includes the following steps:
step 101, obtaining a network feature parameter set of a real network where the electronic device is located, wherein each data in the network feature parameter set includes: parameter values of the target network characteristic parameters and time points of the parameter values;
step 102, determining a target parameter value of a target network characteristic parameter at a test time point based on the network characteristic parameter set;
and 103, calling the target parameter value to test the simulation network of the application program at the test time point.
The electronic device can determine the target parameter value of the target network characteristic parameter at the test time point according to the parameter value of the target network characteristic parameter of the real network, and test the simulation network of the application program through the target parameter value at the test time point, so that the network environment of the simulation network and the network environment of the real network in the test process of the application program have higher association degree, the difference between the network environment of the simulation network and the network environment of the real network can be reduced, and the test accuracy of the application program is further improved.
In step 101, the obtaining of the network feature parameter set of the real network where the electronic device is located may be that the electronic device continuously records and caches parameter values of target network feature parameters of the real network connected in the use process of the electronic device, and in a case that a first instruction for instructing the obtained network feature parameter set is received, extracts a part or all of the stored parameter values of the target network feature parameters as the network feature parameter set; or, in the using process, when receiving a second instruction for instructing to acquire the network feature parameter set, the electronic device may record, in real time, the parameter value of the target network feature parameter of the real network to which the electronic device is connected, and generate the network feature parameter set from the parameter value recorded in real time.
Wherein the first instruction and the second instruction may be: and the first instruction and the second instruction can be instructions input by a user.
For example, the user may input an operation (i.e., the first instruction or the second instruction) for instructing to acquire the network feature parameter set of 19:00 to 21:00 in the electronic device, and the electronic device acquires the parameter value of the target network feature parameter of the real network in which the electronic device is located in the time period of 19:00 to 21:00 according to the operation input by the user.
Of course, the first instruction and the second instruction may be instructions that are automatically triggered by the electronic device according to a certain rule, and are not limited herein.
In some embodiments, the obtaining of the network feature parameter set of the real network where the electronic device is located includes:
and when the preset interval duration is detected to be reached, acquiring a network characteristic parameter set of a real network where the electronic equipment is located.
Here, the electronic device may obtain the network feature parameter set of the real network where the electronic device is located at a certain time interval, so as to implement dynamic update of the network feature parameter set, and further may reduce a difference between a network environment of the simulated network and a network environment of the real network, so that the test accuracy of the application program is higher.
For example, the preset interval duration may be one day, the electronic device may acquire the network feature parameter set of the real network once a day, for example, the electronic device may acquire the parameter value of the target network feature parameter in two hours every other day, and update the previous network feature parameter set by using the newly acquired network feature parameter set.
In this embodiment, the real network is any network connected in the operation process of the electronic device, and may be a mobile data network, a wired network, or a wireless access network, and so on.
In addition, the target network characteristic parameter may be any characteristic parameter of a network to which the electronic device is connected, and in some embodiments, the target network characteristic parameter may include at least one of a bandwidth, an upload rate, a download rate, a delay, a packet loss rate, and an error rate, so that the target network characteristic parameter may be flexibly selected according to actual needs.
It should be noted that, in the case that the target network characteristic parameter includes a plurality of items of bandwidth, upload rate, download rate, delay time, packet loss, and error rate, each of the parameter values is an array composed of a plurality of values, for example, in the case that the target network characteristic parameter includes bandwidth, upload rate, download rate, delay time, packet loss, and error rate, each of the parameter values is equal to (bandwidth value, upload rate value, download rate value, delay time value, packet loss rate value, error rate value), and so on.
In addition, after the electronic device obtains the network characteristic parameter set, the network characteristic parameter set may be stored, so as to facilitate operations such as querying and modifying parameter values in the network characteristic parameter set, which is not described herein again.
In step 102, when the electronic device obtains the network feature parameter set, the electronic device may determine a target parameter value of a target network feature parameter at a test time point based on the network feature parameter set, where the test time point is a time point in an application test process, that is, the electronic device may predict a parameter value at the test time point based on the network feature parameter set.
In this embodiment, the determining the target parameter value of the target network characteristic parameter at the test time point based on the network characteristic parameter set may be determining a parameter value of the target network characteristic parameter associated with the time point and the test time point in the network characteristic parameter set as the target parameter value.
For example, in the case where the above-mentioned network characteristic parameter values include parameter values of 19:00-21:00 on a certain date, and in the case where the above-mentioned test time point is 20:10 on another date, the electronic device may determine the parameter values at the time point of 20:10 in the network characteristic parameter set as the above-mentioned target parameter values.
In some embodiments, the step 102 may include:
constructing a time distribution model of the target network characteristic parameter based on the network characteristic parameter set;
and acquiring parameter values of the target network characteristic parameters of the test time points based on the time distribution model.
Here, the terminal may construct a time distribution model of the target network characteristic parameter based on the network characteristic parameter set, and obtain the parameter value of the test time point through calculation of the time distribution model, so that the parameter set at any test time may be obtained through the acquired partial data, and the correlation between the network environment of the simulated network and the network environment of the real network is higher, thereby further improving the test accuracy.
In this embodiment, the time distribution model of the target network characteristic parameter is constructed based on the network characteristic parameter set, the time distribution model may be constructed by the electronic device through a construction method of an arbitrary time distribution model, for example, the time distribution model may be a deep learning model in which the network characteristic parameter set is used as a training data set of the deep learning model, the deep learning model is trained to obtain the target network characteristic parameter, a time point in a training process is used as a parameter of an input layer, and a parameter value of the target network characteristic parameter is used as a parameter of an output layer.
In other embodiments, the constructing a time distribution model of the target network characteristic parameter includes:
and fitting the parameter values in the network characteristic parameter set to generate a time distribution model of the target network characteristic parameters.
The electronic equipment can perform fitting processing on the data in the network characteristic parameter set through a fitting algorithm to generate a time distribution model of the target network characteristic parameters, so that the electronic equipment can not only quickly construct the time distribution model, but also ensure the test accuracy.
It should be noted that the fitting algorithm may be any algorithm capable of implementing the construction of the time distribution model, for example, the fitting function of the fitting algorithm may be a quadratic function, and the like, and is not limited herein.
When the time distribution model is constructed through a fitting algorithm, the time points of the parameter values of the target network characteristic parameters can be used as the independent variables of the fitting function, and the parameter values are used as the dependent variables, so that the adjustable parameters of the fitting function are obtained through calculation.
In addition, in the case that the target network characteristic parameter includes a plurality of parameters, the time distribution model may be a matrix function including a plurality of fitting functions, and each fitting function corresponds to one parameter, that is, one fitting function only represents an association relationship between a value of one parameter and a time point; of course, the time distribution model may be formed by only one fitting function, and the one fitting function may represent the association relationship between the array of parameter values of the target network characteristic parameter and the time point, which is not limited herein.
In some embodiments, before the constructing the time distribution model of the target network feature parameter based on the network feature parameter set, the method further includes:
filtering the data in the network characteristic parameter set to obtain a filtered network characteristic parameter set;
the constructing a time distribution model of the target network characteristic parameter based on the network characteristic parameter set comprises:
and constructing a time distribution model of the network characteristic parameters based on the network characteristic parameter set after filtering processing.
Here, after the electronic device acquires the network characteristic parameter set, the electronic device may perform filtering processing on the data in the network characteristic parameter set through a denoising algorithm, so as to remove discrete data (i.e., noise data) in the network characteristic parameter set, improve the accuracy of the time distribution model, and further improve the accuracy of the application program test.
It should be noted that the denoising algorithm may be any algorithm capable of removing discrete data in the network characteristic parameter set, for example, the denoising algorithm may be any one of filtering algorithms such as logical judgment filtering, median filtering, mean filtering, weighted average filtering, and moving filtering, and is not limited herein.
In step 103, after the electronic device obtains the target parameter value of the target network characteristic parameter at the test time point, the electronic device may call the target parameter value to perform the test of the simulation network on the application program at the test time point.
It should be noted that, the above-mentioned electronic device may perform the network simulation test on the Application program by calling the target parameter value, where the electronic device calls an Application Programming Interface (API) of the network simulation test tool according to the test time point through a network simulation test tool, such as an atc (advanced Traffic control) tool, so as to enable the configuration to take effect in real time, so as to implement the test on the Application program, where a process of calling the parameter value of the network characteristic parameter at the time point through the network simulation test tool is well known in the art, and is not described herein again.
In addition, the electronic device may call a target parameter value to perform a network simulation test on the application program at a test time point, where the electronic device may determine a target parameter value within a period of test time (including the test time point) in advance through the time distribution model, and call the target parameter value at the test time point in a test process; alternatively, the electronic device may calculate a target parameter value through the time distribution model at each test time point during the test process, and directly call the target parameter value for testing, which is not limited herein.
In this embodiment, in order to facilitate understanding of the processing procedure of the test method of the application program, an example of practical application of the method is provided here for explanation, and as shown in fig. 2, the processing procedure includes:
1) firstly, recording a network for a long time by using a tool (the sampling frequency can be infinite and accurate to seconds, minutes and the like), and recording parameters such as bandwidth, time delay, packet loss rate, data packet error codes, time points and the like into a database and the like;
2) optimizing data, analyzing and denoising the sampled data to obtain a time distribution model;
3) when a network needs to be simulated, acquiring network characteristic parameters in the model through a network simulation tool according to time point information, and dynamically updating the network parameter configuration of the simulation network to realize a dynamically changing network and achieve the aim of high simulation;
in addition, the processing procedure may further include:
4) periodic data rectification, such as performed weekly 1), 2) to achieve dynamic updates to the time distribution model;
1) the specific treatment process to 3) is as follows:
step1, acquiring a network characteristic parameter set of a real network, namely screening equivalent data of uplink and downlink bandwidths, time delay, packet loss rate and data packet error rate from the network characteristic parameter;
the screened quantized data can be stored in a database, and is easy to query and modify.
Step2, removing discrete data (namely, filtering the data in the network characteristic parameter set) by a digital filtering algorithm;
wherein, filtering is a low-frequency enhanced spatial domain filtering technique, and the purpose is two: firstly, blurring; secondly, noise is eliminated. Here, the discrete data may be removed by a digital filtering algorithm such as a decision filtering, a median filtering, a mean filtering, a weighted average filtering, or a moving filtering, and the corresponding filtering algorithm may be selected according to an actual scene.
Step3, performing mathematical modeling by using a fitting algorithm to obtain a matrix function (namely a time distribution model), wherein independent variables are natural time and adjustable parameters;
for example, the matrix function may include a fitting function of an uplink bandwidth, a downlink bandwidth, a delay, a packet loss rate, and an error rate, and the matrix function may be expressed as:
an uplink bandwidth fitting function UpRa (t, ea) ═ f1(t, a);
a downlink bandwidth fitting function downlink r (at, tb) e ═ f2(t, b);
delay fit function Dela (t, yc) ═ f3(t, c);
the packet loss rate fitting function Los (ts, d) is f4(t, d);
a bit error rate fitting function Corrup (tt, ieo) n ═ f5(t, e);
wherein a, b, c, d and e represent the adjustable parameters of each fitting function respectively.
Illustratively, the upstream bandwidth fitting function is f1(t, a) ═ t2+2t + a is for example:
the argument t represents the test time point (the test time point is a natural time, such as 20:05:13, and can be processed as a time stamp when calculated);
a represents an adjustable parameter, which is generally a constant and is not a variable;
the dependent variable f1(t, a) represents the upstream bandwidth values corresponding to the test time points, the arc shown in fig. 3 is the fitted curve of the upstream bandwidth fitting function, the abscissa is the time axis, the ordinate is the upstream bandwidth values, and discrete data in the filtering process for unconnected points in fig. 3 (where each point represents an upstream bandwidth value).
Step4, the algorithm module realizes the relevant function, and continuously calculates the real-time network parameters (namely, the target parameter values of the target network characteristic parameters at the testing time point are determined based on the network characteristic parameter set) by taking the field time as the input;
for example, the electronic device may calculate, according to the test time point t, the matrix function to obtain corresponding network parameters (uplink bandwidth, downlink bandwidth, delay, packet loss rate, and bit error rate), and form a data matrix as shown in table 1 below:
TABLE 1
Figure BDA0002185552490000091
In addition, the electronic device may divide a curve formed by the parameter values calculated by the fitting functions into infinite sections on the horizontal axis according to the differential principle, and convert the continuously changing curve into a staircase curve when each region tends to be infinitesimal, for example, as shown in fig. 4, convert a curve formed by the fitting function f1(t, a) into a staircase curve, thereby making the simulated network closer to the real network.
Step5, analyzing the data matrix, and continuously calling an API (application programming interface) of the ATC tool according to the time point to configure real-time effect (namely, calling the target parameter value to test the simulation network of the application program at the test time point).
In the embodiment of the present invention, a network feature parameter set of a real network where an electronic device is located is obtained, where each data in the network feature parameter set includes: parameter values of the target network characteristic parameters and time points of the parameter values; determining a target parameter value of a target network characteristic parameter at a test time point based on the network characteristic parameter set; and calling the target parameter value to test the simulation network of the application program at the test time point. Therefore, the difference between the network environment of the simulated network and the network environment of the real network can be reduced, and the test accuracy of the application program is improved.
Referring to fig. 5, fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present invention, where the electronic device 500 includes:
a parameter set obtaining module 501, configured to obtain a network feature parameter set of a real network where the electronic device is located, where each data in the network feature parameter set includes: parameter values of the target network characteristic parameters and time points of the parameter values;
a parameter value determining module 502, configured to determine a target parameter value of a target network feature parameter at a test time point based on the network feature parameter set;
the testing module 503 is configured to invoke the target parameter value to perform a test on the simulation network of the application program at the testing time point.
Optionally, as shown in fig. 6, the parameter value determining module 502 includes:
a model construction unit 5021, configured to construct a time distribution model of the target network feature parameter based on the network feature parameter set;
a parameter value obtaining unit 5022, configured to obtain a parameter value of the target network characteristic parameter at the test time point based on the time distribution model.
Optionally, the model building unit 5021 is specifically configured to:
and fitting the data in the network characteristic parameter set to generate a time distribution model of the target network characteristic parameters.
Optionally, as shown in fig. 7, the electronic device 500 further includes:
a filtering module 504, configured to perform filtering processing on the data in the network feature parameter set to obtain a filtered network feature parameter set;
the model construction unit 5021 is specifically configured to:
and constructing a time distribution model of the network characteristic parameters based on the network characteristic parameter set after filtering processing.
Optionally, the parameter set obtaining module 502 is specifically configured to:
and when the preset interval duration is detected to be reached, acquiring a network characteristic parameter set of a real network where the electronic equipment is located.
The electronic device 500 can implement the processes implemented by the electronic device in the foregoing embodiments and achieve the same beneficial effects, and therefore, for avoiding repetition, the detailed description is omitted here.
Fig. 8 is a schematic diagram of a hardware structure of an electronic device for implementing various embodiments of the present invention, where the electronic device 800 includes, but is not limited to: a radio frequency unit 801, a network module 802, an audio output unit 803, an input unit 804, a sensor 805, a display unit 806, a user input unit 807, an interface unit 808, a memory 809, a processor 810, and a power supply 811. The display unit 806 is a display screen. Those skilled in the art will appreciate that the electronic device configuration shown in fig. 8 does not constitute a limitation of the electronic device, and that the electronic device may include more or fewer components than shown, or some components may be combined, or a different arrangement of components. In the embodiment of the present invention, the electronic device includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted electronic device, a wearable device, a pedometer, and the like.
Wherein the processor 810 is configured to:
acquiring a network characteristic parameter set of a real network where the electronic device is located, wherein each data in the network characteristic parameter set comprises: parameter values of the target network characteristic parameters and time points of the parameter values;
determining a target parameter value of a target network characteristic parameter at a test time point based on the network characteristic parameter set;
and calling the target parameter value to test the simulation network of the application program at the test time point.
A processor 810, further configured to:
constructing a time distribution model of the target network characteristic parameter based on the network characteristic parameter set;
and acquiring parameter values of the target network characteristic parameters of the test time points based on the time distribution model.
Optionally, the processor 810 is further configured to:
and fitting the data in the network characteristic parameter set to generate a time distribution model of the target network characteristic parameters.
Optionally, the processor 810 is further configured to:
filtering the data in the network characteristic parameter set to obtain a filtered network characteristic parameter set;
and constructing a time distribution model of the network characteristic parameters based on the network characteristic parameter set after filtering processing.
Optionally, the processor 810 is further configured to:
and when the preset interval duration is detected to be reached, acquiring a network characteristic parameter set of a real network where the electronic equipment is located.
The electronic device 800 can implement the processes implemented by the electronic device in the foregoing embodiments and achieve the same beneficial effects, and for avoiding repetition, the details are not repeated here.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 801 may be used for receiving and sending signals during a message sending and receiving process or a call process, and specifically, receives downlink data from a base station and then processes the received downlink data to the processor 810; in addition, the uplink data is transmitted to the base station. In general, radio frequency unit 801 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. Further, the radio frequency unit 801 can also communicate with a network and other devices through a wireless communication system.
The electronic device provides wireless broadband internet access to the user via the network module 802, such as to assist the user in sending and receiving e-mails, browsing web pages, and accessing streaming media.
The audio output unit 803 may convert audio data received by the radio frequency unit 801 or the network module 802 or stored in the memory 809 into an audio signal and output as sound. Also, the audio output unit 803 may also provide audio output related to a specific function performed by the electronic apparatus 800 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 803 includes a speaker, a buzzer, a receiver, and the like.
The input unit 804 is used for receiving an audio or video signal. The input Unit 804 may include a Graphics Processing Unit (GPU) 8041 and a microphone 8042, and the Graphics processor 8041 processes image data of a still picture or video obtained by an image capturing device (such as a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 806. The image frames processed by the graphics processor 8041 may be stored in the memory 809 (or other storage medium) or transmitted via the radio frequency unit 801 or the network module 802. The microphone 8042 can receive sound, and can process such sound into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 801 in case of a phone call mode.
The electronic device 800 also includes at least one sensor 805, such as light sensors, motion sensors, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 8061 according to the brightness of ambient light and a proximity sensor that can turn off the display panel 8061 and/or the backlight when the electronic device 800 is moved to the ear. As one type of motion sensor, an accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of an electronic device (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), and vibration identification related functions (such as pedometer, tapping); the sensors 805 may also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., which are not described in detail herein.
The display unit 806 is used to display information input by the user or information provided to the user. The Display unit 806 may include a Display panel 8061, and the Display panel 8061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 807 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the electronic apparatus. Specifically, the user input unit 807 includes a touch panel 8071 and other input devices 8072. The touch panel 8071, also referred to as a touch screen, may collect touch operations by a user on or near the touch panel 8071 (e.g., operations by a user on or near the touch panel 8071 using a finger, a stylus, or any other suitable object or accessory). The touch panel 8071 may include two portions of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 810, receives a command from the processor 810, and executes the command. In addition, the touch panel 8071 can be implemented by various types such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 8071, the user input unit 807 can include other input devices 8072. In particular, other input devices 8072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein.
Further, the touch panel 8071 can be overlaid on the display panel 8061, and when the touch panel 8071 detects a touch operation on or near the touch panel 8071, the touch operation is transmitted to the processor 810 to determine the type of the touch event, and then the processor 810 provides a corresponding visual output on the display panel 8061 according to the type of the touch event. Although in fig. 8, the touch panel 8071 and the display panel 8061 are two independent components to implement the input and output functions of the electronic device, in some embodiments, the touch panel 8071 and the display panel 8061 may be integrated to implement the input and output functions of the electronic device, and the implementation is not limited herein.
The interface unit 808 is an interface for connecting an external device to the electronic apparatus 800. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 808 may be used to receive input (e.g., data information, power, etc.) from external devices and transmit the received input to one or more elements within the electronic device 800 or may be used to transmit data between the electronic device 800 and external devices.
The memory 809 may be used to store software programs as well as various data. The memory 809 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 809 can include high speed random access memory, and can also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 810 is a control center of the electronic device, connects various parts of the whole electronic device by using various interfaces and lines, performs various functions of the electronic device and processes data by running or executing software programs and/or modules stored in the memory 809 and calling data stored in the memory 809, thereby monitoring the whole electronic device. Processor 810 may include one or more processing units; preferably, the processor 810 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 810.
The electronic device 800 may also include a power supply 811 (e.g., a battery) for powering the various components, and preferably, the power supply 811 may be logically coupled to the processor 810 via a power management system to manage charging, discharging, and power consumption management functions via the power management system.
In addition, the electronic device 800 includes some functional modules that are not shown, and are not described in detail herein.
Preferably, an embodiment of the present invention further provides an electronic device, which includes a processor 810, a memory 809, and a computer program that is stored in the memory 809 and can be run on the processor 810, and when the computer program is executed by the processor 810, the processes of the embodiment of the testing method for an application program are implemented, and the same technical effect can be achieved, and in order to avoid repetition, details are not described here again.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements each process of the above-mentioned test method embodiment of the application program, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling an electronic device (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (12)

1. A test method of an application program is applied to electronic equipment, and is characterized by comprising the following steps:
acquiring a network characteristic parameter set of a real network where the electronic device is located, wherein each data in the network characteristic parameter set comprises: parameter values of the target network characteristic parameters and time points of the parameter values;
determining a target parameter value of a target network characteristic parameter at a test time point based on the network characteristic parameter set;
and calling the target parameter value to test the simulation network of the application program at the test time point.
2. The method of claim 1, wherein determining the target parameter value of the target network characteristic parameter at the test time point based on the network characteristic parameter set comprises:
constructing a time distribution model of the target network characteristic parameter based on the network characteristic parameter set;
and acquiring parameter values of the target network characteristic parameters of the test time points based on the time distribution model.
3. The method of claim 2, wherein the constructing the time distribution model of the target network characteristic parameter comprises:
and fitting the data in the network characteristic parameter set to generate a time distribution model of the target network characteristic parameters.
4. The method according to claim 2 or 3, wherein before constructing the time distribution model of the target network feature parameter based on the network feature parameter set, the method further comprises:
filtering the data in the network characteristic parameter set to obtain a filtered network characteristic parameter set;
the constructing a time distribution model of the target network characteristic parameter based on the network characteristic parameter set comprises:
and constructing a time distribution model of the network characteristic parameters based on the network characteristic parameter set after filtering processing.
5. The method of claim 1, wherein the obtaining of the set of network feature parameters of the real network where the electronic device is located comprises:
and when the preset interval duration is detected to be reached, acquiring a network characteristic parameter set of a real network where the electronic equipment is located.
6. An electronic device, comprising:
a parameter set obtaining module, configured to obtain a network feature parameter set of a real network where the electronic device is located, where each piece of data in the network feature parameter set includes: parameter values of the target network characteristic parameters and time points of the parameter values;
the parameter value determining module is used for determining a target parameter value of a target network characteristic parameter at a testing time point based on the network characteristic parameter set;
and the test module is used for calling the target parameter value to test the simulation network of the application program at the test time point.
7. The electronic device of claim 6, wherein the parameter value determination module comprises:
the model construction unit is used for constructing a time distribution model of the target network characteristic parameter based on the network characteristic parameter set;
and the parameter value acquisition unit is used for acquiring the parameter value of the target network characteristic parameter of the test time point based on the time distribution model.
8. The electronic device according to claim 7, wherein the model construction unit is specifically configured to:
and fitting the data in the network characteristic parameter set to generate a time distribution model of the target network characteristic parameters.
9. The electronic device of claim 7 or 8, further comprising:
the filtering module is used for filtering the data in the network characteristic parameter set to obtain a filtered network characteristic parameter set;
the model building unit is specifically configured to:
and constructing a time distribution model of the network characteristic parameters based on the network characteristic parameter set after filtering processing.
10. The electronic device of claim 6, wherein the parameter set obtaining module is specifically configured to:
and when the preset interval duration is detected to be reached, acquiring a network characteristic parameter set of a real network where the electronic equipment is located.
11. An electronic device, comprising a processor, a memory and a computer program stored on the memory and executable on the processor, the computer program, when executed by the processor, implementing the steps of the method for testing an application program according to any one of claims 1 to 5.
12. A computer-readable storage medium, characterized in that a computer program is stored on the computer-readable storage medium, which computer program, when being executed by a processor, carries out the steps of the method for testing an application program according to any one of claims 1 to 5.
CN201910812997.3A 2019-08-30 2019-08-30 Application program testing method and related equipment Active CN112448860B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910812997.3A CN112448860B (en) 2019-08-30 2019-08-30 Application program testing method and related equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910812997.3A CN112448860B (en) 2019-08-30 2019-08-30 Application program testing method and related equipment

Publications (2)

Publication Number Publication Date
CN112448860A true CN112448860A (en) 2021-03-05
CN112448860B CN112448860B (en) 2023-04-07

Family

ID=74741353

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910812997.3A Active CN112448860B (en) 2019-08-30 2019-08-30 Application program testing method and related equipment

Country Status (1)

Country Link
CN (1) CN112448860B (en)

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030218983A1 (en) * 2001-07-19 2003-11-27 Robert Cahn Methods for optimizing and evaluating network access techniques
CN101237358A (en) * 2008-02-01 2008-08-06 北京工业大学 Analysis method on available bandwidth of network parameter measurement system and point-to-point access time sequence
CN103096363A (en) * 2011-11-08 2013-05-08 深圳市腾讯计算机系统有限公司 Method and device for simulating weak wireless network
CN103377120A (en) * 2012-04-24 2013-10-30 深圳市财付通科技有限公司 Test method and device for application programs
CN104536863A (en) * 2014-12-08 2015-04-22 广东欧珀移动通信有限公司 Application program test method and device
CN106375142A (en) * 2016-08-26 2017-02-01 腾讯科技(深圳)有限公司 Application program test method and apparatus
CN106569942A (en) * 2015-10-08 2017-04-19 阿里巴巴集团控股有限公司 Test method and apparatus
CN106844220A (en) * 2017-03-09 2017-06-13 北京融信易安信息技术有限公司 A kind of method of testing and system of simulation computer web application real running environment
CN108664395A (en) * 2018-04-26 2018-10-16 武汉斗鱼网络科技有限公司 Applied program testing method, device, equipment and storage medium
CN108829372A (en) * 2018-09-07 2018-11-16 厦门海傲斯科技有限公司 A kind of reality simulation method and the intelligent wearable device for reality simulation
CN109359385A (en) * 2018-10-17 2019-02-19 网宿科技股份有限公司 A kind of training method and device of service quality assessment model

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030218983A1 (en) * 2001-07-19 2003-11-27 Robert Cahn Methods for optimizing and evaluating network access techniques
CN101237358A (en) * 2008-02-01 2008-08-06 北京工业大学 Analysis method on available bandwidth of network parameter measurement system and point-to-point access time sequence
CN103096363A (en) * 2011-11-08 2013-05-08 深圳市腾讯计算机系统有限公司 Method and device for simulating weak wireless network
CN103377120A (en) * 2012-04-24 2013-10-30 深圳市财付通科技有限公司 Test method and device for application programs
CN104536863A (en) * 2014-12-08 2015-04-22 广东欧珀移动通信有限公司 Application program test method and device
CN106569942A (en) * 2015-10-08 2017-04-19 阿里巴巴集团控股有限公司 Test method and apparatus
CN106375142A (en) * 2016-08-26 2017-02-01 腾讯科技(深圳)有限公司 Application program test method and apparatus
CN106844220A (en) * 2017-03-09 2017-06-13 北京融信易安信息技术有限公司 A kind of method of testing and system of simulation computer web application real running environment
CN108664395A (en) * 2018-04-26 2018-10-16 武汉斗鱼网络科技有限公司 Applied program testing method, device, equipment and storage medium
CN108829372A (en) * 2018-09-07 2018-11-16 厦门海傲斯科技有限公司 A kind of reality simulation method and the intelligent wearable device for reality simulation
CN109359385A (en) * 2018-10-17 2019-02-19 网宿科技股份有限公司 A kind of training method and device of service quality assessment model

Also Published As

Publication number Publication date
CN112448860B (en) 2023-04-07

Similar Documents

Publication Publication Date Title
CN109768810B (en) Signal processing circuit, terminal equipment and signal processing method
CN108600546B (en) Environment light detection method and mobile terminal
CN111554321A (en) Noise reduction model training method and device, electronic equipment and storage medium
CN108362304B (en) Data processing method and mobile terminal
CN110855313B (en) Signal control method and electronic equipment
CN111385714B (en) Method for determining voice coil temperature of loudspeaker, electronic device and storage medium
CN108984066B (en) Application icon display method and mobile terminal
CN111324235A (en) Screen refreshing frequency adjusting method and electronic equipment
CN111405416B (en) Stereo recording method, electronic device and storage medium
CN111477243A (en) Audio signal processing method and electronic equipment
CN109088973B (en) Antenna control method and device and mobile terminal
CN108512615B (en) Signal intensity display method and mobile terminal
CN108984145B (en) Brightness adjusting method and electronic equipment
CN107784298B (en) Identification method and device
CN107277364B (en) Shooting method, mobile terminal and computer readable storage medium
CN110456923B (en) Gesture sensing data processing method and electronic equipment
CN110058837B (en) Audio output method and terminal
CN109348212B (en) Image noise determination method and terminal equipment
CN110730013B (en) Method for improving transmission stray and mobile terminal
CN111314639A (en) Video recording method and electronic equipment
CN109769175B (en) Audio processing method and electronic equipment
CN109660657B (en) Application program control method and device
CN108900942B (en) Play control method and electronic equipment
CN109067429B (en) Control method and terminal equipment
CN107743174B (en) Clipping judgment method of sound signal and mobile terminal

Legal Events

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