CN108989140B - Method, device and system for testing flow reminding time delay - Google Patents

Method, device and system for testing flow reminding time delay Download PDF

Info

Publication number
CN108989140B
CN108989140B CN201710411864.6A CN201710411864A CN108989140B CN 108989140 B CN108989140 B CN 108989140B CN 201710411864 A CN201710411864 A CN 201710411864A CN 108989140 B CN108989140 B CN 108989140B
Authority
CN
China
Prior art keywords
flow
short message
mobile terminal
value
server
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710411864.6A
Other languages
Chinese (zh)
Other versions
CN108989140A (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.)
China Mobile Communications Group Co Ltd
China Mobile Information Technology Co Ltd
Original Assignee
China Mobile Communications Group Co Ltd
China Mobile Information 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 China Mobile Communications Group Co Ltd, China Mobile Information Technology Co Ltd filed Critical China Mobile Communications Group Co Ltd
Priority to CN201710411864.6A priority Critical patent/CN108989140B/en
Publication of CN108989140A publication Critical patent/CN108989140A/en
Application granted granted Critical
Publication of CN108989140B publication Critical patent/CN108989140B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/08Testing, supervising or monitoring using real traffic
    • 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
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/02Traffic management, e.g. flow control or congestion control
    • H04W28/10Flow control between communication endpoints
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/12Messaging; Mailboxes; Announcements
    • H04W4/14Short messaging services, e.g. short message services [SMS] or unstructured supplementary service data [USSD]

Abstract

The invention discloses a method, a device and a system for testing flow reminding time delay, wherein the method is applied to a mobile terminal and comprises the following steps: according to a test instruction carried in a received test script, consuming a first current flow, and updating a value of the consumed first current flow; if the first current flow value is not larger than the set flow threshold value, recording first time corresponding to the current moment; receiving a first reminding short message and recording a second time for receiving the first reminding short message; and determining the flow awakening delay according to the first time and the second time. In the embodiment of the invention, the first time and the second time are both recorded by the mobile terminal, the first time is the time when the user flow needs to be reminded, and the second time is the actual reminding time of the user flow and covers all links of the flow reminding time delay, so that the accuracy of the test result of the flow reminding time delay is improved.

Description

Method, device and system for testing flow reminding time delay
Technical Field
The invention relates to the field of telecommunication service testing, in particular to a method, a device and a system for testing flow reminding time delay.
Background
With the popularization of mobile terminals and 4G (the 4th Generation mobile communication, fourth Generation mobile communication technology) high-speed networks, higher requirements are put forward on the capability of real-time charging and real-time traffic reminding of operators. The delay of the reminding of the remaining traffic on the internet by the mobile phone may cause high package traffic cost, and cause complaints and even disputes of users. In order to help a user to clearly know the flow rate of reasonable use, the operator sends a reminding short message to the user at important time points of insufficient package allowance, exhausted package allowance, exceeding package flow rate and the like. But because the flow of 'real-time flow calculation-flow reminding triggering-short message sending-user mobile terminal' is longer, if the user is roaming, the flow is more complicated. Therefore, when the reminding short message reaches the mobile terminal of the user, the actual flow usage of the user is already more than the flow usage in the received reminding short message. Therefore, in order to better improve user experience, an operator needs to obtain a traffic reminding time delay by using a traffic reminding time delay test method, where the traffic reminding time delay is a time difference between an actual reminding time of user traffic and a time at which the user traffic should be reminded.
In the prior art, a test method for flow reminding delay may be that a service support department of an operator counts time consumed by each link of flow reminding through correlation analysis of logs and ticket, and a sum of time consumed by each link determined by the time consumed by each link is used as the flow reminding delay, where the time consumed by each link includes a reminding trigger delay (from when a user uses a flow to reach a reminding threshold to when a charging alarm is triggered), a short message assembly delay (from when a charging system generates an alarm to when an account management system completes short message assembly), and a short message sending delay (from when the account management system completes short message assembly to when a short message is sent to a short message center).
In the test process of the actual flow reminding time delay, the service support system of the operator cannot cover all links of the reminding time delay, the counted time delay is only the time consumed by the user when the flow reaches the reminding threshold value and the reminding short message is sent to the short message center, and the time consumed by the reminding short message sent from the short message center to the mobile terminal of the user is not counted, so that the test result of the flow reminding time delay has low accuracy.
Disclosure of Invention
The invention provides a method, a device and a system for testing flow reminding time delay, which are used for solving the problem of low accuracy of a test result of the flow reminding time delay in the prior art.
In order to solve the above problem, the present invention provides a test of traffic reminding delay, which is applied to a mobile terminal, and the method includes:
according to a test instruction carried in a received test script, consuming a first current flow, and updating a value of the consumed first current flow, wherein the test script is sent by a server;
if the first current flow value is not larger than the set flow threshold value, recording first time corresponding to the current moment;
receiving a first reminding short message, and recording a second time of receiving the first reminding short message, wherein the first reminding short message is sent when a short message server detects that a first current flow value of the mobile terminal is not greater than a set flow threshold value;
and determining the flow awakening delay according to the first time and the second time.
Further, before consuming the first current traffic according to the test instruction carried in the received test script, the method further includes:
sending a flow query request to a short message server according to the received remote acquisition operation of the server;
determining a first residual flow of the mobile terminal according to the received information returned by the short message server;
determining a first current flow value according to the sum of the first residual flow and a preset overflow flow, and judging whether the first current flow value is greater than a set flow threshold value;
if yes, the subsequent steps are carried out.
Further, if the value of the first current flow is not greater than the set flow threshold value, before consuming the first current flow according to the test instruction carried in the received test script, the method further includes:
consuming the first remaining flow if the value of the first remaining flow is not 0;
if a second reminding short message sent by the short message server when the first residual flow value is detected to be 0 is received, sending an ordering request to the server, and sending a flow ordering short message for ordering a preset first flow value to the short message server according to the received remote ordering operation of the server aiming at the ordering request;
receiving order success information returned by the short message server aiming at the flow order short message;
sending a flow query request to a short message server, and judging whether information returned by the short message server aiming at the flow query request is received within a set time length;
if so, determining a second residual flow of the mobile terminal according to the returned information, determining a second current flow according to the sum of the second residual flow and a preset overflow flow, and taking the second current flow as a first current flow to perform subsequent steps.
Further, if the value of the first current flow is not greater than the set flow threshold value, before consuming the first current flow according to the test instruction carried in the received test script, the method further includes:
if the first residual flow value is 0, sending an ordering request to a server, and sending a flow ordering short message for ordering a preset first flow value to a short message server according to the received remote ordering operation of the server aiming at the ordering request;
receiving order success information returned by the short message server aiming at the flow order short message;
sending a flow query request to a short message server, and judging whether information returned by the short message server aiming at the flow query request is received within a set time length;
if so, determining a third residual flow of the mobile terminal according to the returned information, determining a third current flow according to the sum of the third residual flow and a preset overflow flow, and taking the third current flow as the first current flow to perform the subsequent steps.
Further, after the determining a flow arousal delay, the method further comprises:
and sending the test result carrying the traffic reminding time delay to a server.
The invention provides a testing device for flow reminding time delay, which is applied to a mobile terminal and comprises:
the consumption updating module is used for consuming the first current flow according to a test instruction carried in a received test script, and updating the value of the consumed first current flow, wherein the test script is sent by a server;
the detection recording module is used for recording first time corresponding to the current moment if the first current flow value is not larger than a set flow threshold value;
the receiving and recording module is used for receiving a first reminding short message and recording second time for receiving the first reminding short message, wherein the first reminding short message is sent when the short message server detects that the value of the first current flow of the mobile terminal is not greater than a set flow threshold value;
and the time delay determining module is used for determining the flow reminding time delay according to the first time and the second time.
Further, the apparatus further comprises:
the query judgment module is used for sending a flow query request to the short message server according to the received remote acquisition operation of the server; determining a first residual flow of the mobile terminal according to the received information returned by the short message server; determining a first current flow value according to the sum of the first residual flow and a preset overflow flow, and judging whether the first current flow value is larger than a set flow threshold value; if so, the consumption update module is triggered.
Further, the apparatus further comprises:
the consumption ordering module is used for judging that the first current flow value is not larger than a set flow threshold value, and if the first residual flow value is not 0, consuming the first residual flow; if receiving a second reminding short message sent by the short message server when the first residual flow value is detected to be 0, sending an ordering request to the server, and sending a flow ordering short message for ordering a preset first flow value to the short message server according to the received remote ordering operation of the server for the ordering request; receiving order success information returned by the short message server aiming at the flow order short message; sending a flow query request to a short message server, and judging whether information returned by the short message server aiming at the flow query request is received within a set time length; if so, determining a second residual flow of the mobile terminal according to the returned information, determining a second current flow according to the sum of the second residual flow and a preset overflow flow, and triggering a consumption updating module by taking the second current flow as a first current flow.
Further, the apparatus further comprises:
the order judging module is used for judging that the current flow value is not larger than a set flow threshold value, sending an order request to a server if the first residual flow value is 0, and sending a flow order short message for ordering a preset first flow value to a short message server according to the received remote order operation of the server aiming at the order request; receiving order success information returned by the short message server aiming at the flow order short message; sending a flow query request to a short message server, and judging whether information returned by the short message server aiming at the flow query request is received within a set time length; if so, determining a third residual flow of the mobile terminal according to the returned information, determining a third current flow according to the sum of the third residual flow and a preset overflow flow, and triggering a consumption updating module by taking the third current flow as the first current flow.
Further, the apparatus further comprises:
and the result sending module is used for sending the test result carrying the traffic reminding time delay to a server.
The invention provides a test system for flow reminding time delay, which comprises:
the server is used for sending a test script carrying a test instruction to the mobile terminal;
the mobile terminal is used for consuming the first current flow according to the received test instruction carried in the test script and updating the value of the consumed first current flow; if the first current flow value is not larger than the set flow threshold value, recording first time corresponding to the current moment; receiving a first reminding short message and recording a second time for receiving the first reminding short message; determining a flow awakening delay according to the first time and the second time;
and the short message server is used for sending a first reminding short message to the mobile terminal if the first current flow value of the mobile terminal is not larger than the set flow threshold value.
Further, the server is also used for remotely acquiring the mobile terminal by adopting a General Packet Radio Service (GPRS) wireless scheduling technology;
the mobile terminal is also used for sending a flow query request to the short message server according to the received remote acquisition operation of the server; determining a first residual flow of the mobile terminal according to the received information returned by the short message server; determining a value of a first current flow according to the sum of the first residual flow and a preset overflow flow, judging whether the value of the first current flow is larger than a set flow threshold value, and if so, consuming the first current flow according to a test instruction carried in a received test script;
the short message server is also used for receiving the flow query request sent by the mobile terminal and returning information aiming at the flow query request.
Further, the mobile terminal is further configured to consume the first remaining traffic if the value of the first current traffic is not greater than a set traffic threshold and the value of the first remaining traffic is not 0; if the second reminding short message is received, sending an ordering request to a server, and sending a flow ordering short message for ordering a preset first flow value to a short message server according to the received remote ordering operation of the server aiming at the ordering request; receiving order success information returned by the short message server; sending a flow query request to a short message server, and judging whether information returned by the short message server aiming at the flow query request is received within a set time length; if so, determining a second residual flow of the mobile terminal according to the returned information, determining a second current flow according to the sum of the second residual flow and a preset overflow flow, taking the second current flow as a first current flow, and consuming the first current flow according to a test instruction carried in a received test script;
the server is also used for receiving the ordering request sent by the mobile terminal and performing remote ordering operation on the mobile terminal by adopting a GPRS wireless scheduling technology;
the short message server is also used for sending a second reminding short message if the first residual flow value of the mobile terminal is detected to be 0; receiving a flow ordering short message which is sent by the mobile terminal and orders a preset first flow value, ordering the flow of the first flow value for the mobile terminal, and returning ordering success information to the mobile terminal; and receiving a flow query request sent by the mobile terminal, and returning second residual flow information to the mobile terminal.
Further, the mobile terminal is further configured to send an order request to a server if the first current flow value is not greater than a set flow threshold value and the first remaining flow value is 0, and send a flow order short message ordering a preset first flow value to a short message server according to a received remote order operation of the server for the order request; receiving order success information returned by the short message server aiming at the flow order short message; sending a flow query request to a short message server, and judging whether information returned by the short message server aiming at the flow query request is received within a set time length; if so, determining a third residual flow of the mobile terminal according to the returned information, determining a third current flow according to the sum of the third residual flow and a preset overflow flow, taking the third current flow as the first current flow, and consuming the first current flow according to a test instruction carried in the received test script.
Further, the mobile terminal is further configured to send the test result carrying the traffic reminding delay to a server;
and the server is also used for receiving the test result which is sent by the mobile terminal and carries the traffic reminding time delay.
The invention provides a method, a device and a system for testing flow reminding time delay, wherein the method comprises the following steps: the mobile terminal consumes the first current flow according to a test instruction carried in a received test script, and updates the value of the consumed first current flow, wherein the test script is sent by a server; if the first current flow value is not larger than the set flow threshold value, recording first time corresponding to the current moment; receiving a first reminding short message, and recording a second time of receiving the first reminding short message, wherein the first reminding short message is sent when a short message server detects that a first current flow value of the mobile terminal is not greater than a set flow threshold value; and determining the flow awakening delay according to the first time and the second time. In the embodiment of the invention, when the mobile terminal detects that the value of the first current flow is not greater than the set flow threshold value, the first time corresponding to the current time is recorded, the reminding short message sent by the short message server that the value of the first current flow is not greater than the set flow threshold value is received, the corresponding second time is recorded, the first time is the theoretical reminding time of the user flow, the second time is the actual reminding time of the user flow, and the flow reminding time delay is determined according to the first time and the second time, so that all links of the flow reminding time delay are covered, and the accuracy of the test result of the flow reminding time delay is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic diagram of a flow reminding delay test process according to embodiment 1 of the present invention;
fig. 2A is a schematic diagram of another flow reminding delay test process according to embodiment 4 of the present invention;
fig. 2B is a schematic structural diagram of a test system for traffic alert delay according to embodiment 5 of the present invention;
fig. 3 is a schematic diagram of a testing process of a traffic reminding delay according to embodiment 6 of the present invention;
fig. 4 is a schematic diagram of a testing apparatus for traffic reminding delay according to an embodiment of the present invention.
Detailed Description
In order to improve the accuracy of a test result of the traffic reminding delay, the embodiment of the invention provides a method, a device and a system for testing the traffic reminding delay.
In order to make the objects, technical solutions and advantages of the present invention clearer, the present invention will be described in further detail with reference to the accompanying drawings, and it is apparent that the described embodiments are only a part of the embodiments of the present invention, not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Example 1:
fig. 1 is a schematic diagram of a testing process of a traffic alert delay according to an embodiment of the present invention, where the process includes the following steps:
s101: and according to a test instruction carried in the received test script, consuming the first current flow, and updating the value of the consumed first current flow, wherein the test script is sent by the server.
The method for testing the traffic reminding delay provided by the embodiment of the invention is applied to the mobile terminal, the mobile terminal mainly refers to a mobile phone, but does not exclude other devices, such as a tablet personal computer, a Personal Digital Assistant (PDA) and other devices capable of consuming traffic.
The mobile terminal can be used for receiving the test script sent by the server, consuming the first current flow according to the test instruction carried in the test script, and updating the value of the consumed first current flow.
The mobile terminal can consume the first current flow by downloading a file, playing a video or audio on a network and the like, and the mobile terminal can consume the flow in which way according to the test instruction carried in the test script. The specific process of consuming the flow in different ways belongs to the prior art, and is not described in detail in the embodiment of the present invention.
The test script may be generated in advance and stored locally by the server according to a script generation algorithm stored by a tester, or may be generated by the server after receiving a task execution query request sent by the mobile terminal and aiming at the task execution query request, where the task execution query request carries identification information of the mobile terminal.
The Identification information of the mobile terminal may be one or more of a device number of the mobile terminal, or a mobile phone number corresponding to a Subscriber Identity Module (SIM) card installed on the mobile terminal, and the like, and may also carry GPS (global positioning System) coordinate information corresponding to the mobile terminal. Because the embodiment of the present invention tests the traffic reminding delay, preferably, the identification information of the mobile terminal may be a mobile phone number corresponding to an SIM card installed on the mobile terminal, or a combination of the mobile phone number corresponding to the SIM card installed on the mobile terminal and a GPS coordinate corresponding to the mobile terminal.
If the identification information of the mobile terminal is the combination information of the mobile phone number corresponding to the SIM card installed on the mobile terminal and the GPS coordinate corresponding to the mobile terminal, the server can judge whether the GPS coordinate is located at the attribution of the mobile phone number or not after receiving the task execution inquiry request, and if so, the server sends a test script carrying a test instruction to the mobile terminal.
The server may store the same test script for all the mobile terminals, or store different test scripts for different mobile terminals, for example, for different mobile terminals, the server generates and stores corresponding test scripts by using the mobile phone numbers of the same attribution as a group according to the attribution of the mobile phone numbers of the mobile terminals.
In order to avoid repeated dispatch of the same test task for multiple times, the server marks the task state of the generated test script as unscheduled, and after the server sends the test script to the mobile terminal, the server may directly mark the task state of the corresponding test script as scheduled, or start a timer to determine whether receiving confirmation information returned by the mobile terminal is received within a set time length, and if so, mark the task state of the corresponding test script as scheduled.
S102: and if the first current flow value is not larger than the set flow threshold value, recording the first time corresponding to the current moment.
The method for detecting the first current flow value by the mobile terminal may be implemented by applying third-party monitoring software installed on the mobile terminal, or may be implemented by directly executing a flow detection method provided by an operating system corresponding to the mobile terminal, for example, when the operating system corresponding to the mobile terminal is an android system, the mobile terminal detects the current first current flow value by circularly executing a network flow method provided by the android system.
When the mobile terminal detects that the value of the first current flow is not larger than a set flow threshold, a first time corresponding to the current moment can be obtained by calling a clock application, and the first time is recorded and stored, wherein the first time recorded by the mobile terminal at the moment is a theoretical reminding moment of the user flow, and the flow threshold is stored in the mobile terminal.
In order to further improve the accuracy of the test result of the traffic reminding delay, when the mobile terminal detects that the first current traffic value is not greater than the set traffic threshold, the operation of consuming the first current traffic may be stopped.
The traffic threshold may be a specific value, such as 0MB (Mega Byte), 80MB or 100MB, or other values used to represent the traffic value, such as 50% of the total traffic, 80% of the total traffic, or 0.2 of the total traffic, where the value of the total traffic is stored in the mobile terminal. In the process of actually testing the traffic reminding delay, the number of the traffic thresholds may be one, or may be multiple, and the test process of one-time traffic reminding delay is performed for one traffic threshold.
S103: and receiving a first reminding short message, and recording a second time of receiving the first reminding short message, wherein the first reminding short message is sent when the short message server detects that the value of the first current flow of the mobile terminal is not greater than a set flow threshold value.
When the short message server detects that the value of the first current flow of the mobile terminal is not larger than a set flow threshold value, a first reminding short message is sent to the mobile terminal, the short message server belongs to all operators corresponding to the mobile terminal, the flow threshold value is stored in the short message server, namely the flow threshold value stored in the short message server is correspondingly the same as the flow threshold value stored in the mobile terminal, and the two parties agree in advance according to which flow threshold value is in each test.
In the process of actually testing the traffic reminding time delay, the traffic threshold may be one, or multiple, the test process of one traffic reminding time delay is performed for one traffic threshold, and the first reminding short message sent by the short message server in the test process of one traffic reminding time delay is also sent for the same traffic threshold as the traffic threshold for the mobile terminal to record the first time this time.
The process of the short message server detecting the value of the first current flow of the mobile terminal belongs to the prior art, and details of the process are not repeated in the embodiment of the invention.
When the mobile terminal receives a first reminding short message sent by the short message server, a second time corresponding to the first reminding short message is obtained by calling a clock application, and the second time is recorded and stored, wherein the second time recorded by the mobile terminal at the moment is the actual reminding moment of the user flow, namely the actual arrival time of the reminding short message of an operator, which is used for reminding the current flow of the user of the mobile terminal to reach the flow threshold value, at the mobile terminal.
S104: and determining the flow awakening delay according to the first time and the second time.
And the mobile terminal calculates the difference value between the first time and the second time according to the first time and the second time, and the difference value is used as the flow reminding time delay.
The first time and the second time are recorded by the mobile terminal, and the flow reminding time delay is determined by the mobile terminal according to the first time and the second time, so that the automatic test of the flow reminding time delay is realized.
In the embodiment of the invention, when the mobile terminal detects that the value of the first current flow is not greater than the set flow threshold value, the first time corresponding to the current time is recorded, the reminding short message sent by the short message server that the value of the first current flow is not greater than the set flow threshold value is received, the corresponding second time is recorded, the first time is the theoretical reminding time of the user flow, the second time is the actual reminding time of the user flow, and the flow reminding time delay is determined according to the first time and the second time, so that all links of the flow reminding time delay are covered, and the accuracy of the test result of the flow reminding time delay is improved.
Example 2:
in order to further improve the accuracy of the test result of the traffic reminding delay, on the basis of the above embodiment, in the embodiment of the present invention, before consuming the current traffic according to the test instruction carried in the received test script, the method further includes:
sending a flow query request to a short message server according to the received remote acquisition operation of the server;
determining a first residual flow of the mobile terminal according to the received information returned by the short message server;
determining a first current flow value according to the sum of the first residual flow and a preset overflow flow, and judging whether the first current flow value is larger than a set flow threshold value;
if yes, the subsequent steps are carried out.
Since the method for detecting the first current flow value by the mobile terminal and the method for detecting the first current flow value by the short message server are different, when the mobile terminal consumes the first current flow, the first current flow value after the mobile terminal detects and updates consumption and the first current flow value after the short message server detects and updates consumption may be different, and the flow threshold value locally stored by the mobile terminal and the flow threshold value locally stored by the short message server are the same, so that when the mobile terminal detects that the first current flow value is not greater than the flow threshold value, the first current flow value detected by the short message server is greater than the flow threshold value, so that the short message server does not send the first reminding short message to the mobile terminal, and the test process of the flow reminding delay aiming at the set flow threshold value cannot be completed, the accuracy of the test result of the flow reminding delay is influenced.
Therefore, in order to further improve the accuracy of the test result of the flow reminding time delay, when testing, a general tester can set and store the overflow flow in the mobile terminal, so that the mobile terminal determines the value of the first current flow according to the first residual flow and the overflow flow, and when the value of the first current flow is consumed until the value of the first current flow is not greater than the flow threshold, the short message server can be triggered to send the first reminding short message to the mobile terminal.
In addition, the server remotely operates the mobile terminal, and can also realize the test of the flow reminding time delay under various scenes, including the common state of the mobile terminal in the home location, the roaming state of the mobile terminal in the place different from the home location, and the like.
Under the conditions of travel at different places, business trips and the like, the mobile terminal is in a roaming state because the mobile terminal is located at a place different from the home location of the mobile terminal, and when a user consumes the current flow of the mobile terminal until the current flow reaches a set flow threshold, the process of the short message server of an operator detecting that the current flow reaches the set flow threshold to send a first reminding short message to the mobile terminal is more complicated, for example, for the same operator, different mobile terminals are located in different areas and different home locations of mobile phone numbers of the mobile terminals, the port corresponding to the short message server of the area where the mobile terminal is located and the port corresponding to the short message server of the home location may be different, when flow reminding is performed, the port corresponding to the short message server of the home location of the mobile terminal may be required to forward the first reminding short message to the port of the short message server of the area where the mobile terminal belongs, and then transmitted to the mobile terminal. Therefore, in order to further improve the accuracy of the test result of the traffic reminding delay, a tester needs to manually carry the mobile terminal to be tested to different areas or post the mobile terminal to be tested to different areas. The mobile terminal to be tested is mailed to different areas, and the server remotely operates the mobile terminal to complete the test of the flow reminding time delay, so that the test cost is further saved, and the test efficiency is improved.
The server remotely operates the mobile terminal by adopting a General Packet Radio Service (GPRS) wireless scheduling technology.
The server may perform remote obtaining operation on the mobile terminal, where the mobile terminal sends an obtaining operation request to the server according to the script instruction, and the server performs remote obtaining operation on the mobile terminal according to the obtaining operation request.
The method comprises the steps that a mobile terminal receives remote acquisition operation and sends a flow query request to a short message server, wherein the flow query request carries identification information of the mobile terminal, the flow query requests sent by the mobile terminal are different for the short message servers of different operators, ports corresponding to the short message servers in different areas of the same operator are possibly the same and possibly different, and the flow query requests sent by the mobile terminal are possibly the same and possibly different.
The short message server returns information carrying the residual flow to the mobile terminal aiming at the received flow query request sent by the mobile terminal, and the mobile terminal receives the information returned by the short message server and determines the first residual flow. The process of determining the first remaining flow by the mobile terminal according to the received information returned by the short message server may be that the mobile terminal obtains the first remaining flow by a method of matching front and back keywords according to the received information returned by the short message server.
The process that the mobile terminal obtains the first remaining flow through a method of matching keywords before and after according to the received information returned by the short message server belongs to the prior art, and the process is not described in detail in the embodiment of the invention.
And the mobile terminal determines a value of a first current flow according to the sum of the first residual flow and a preset overflow flow, and consumes the first current flow if the value of the first current flow is judged to be larger than a set flow threshold.
The value of the traffic that the mobile terminal should consume is: the value of the flow rate that should be consumed is the value of the remaining flow rate-the flow rate threshold value + the value of the overflow flow rate, wherein the flow rate threshold value is a specific numerical value, and if the flow rate threshold value is expressed in a manner such as a percentage or a decimal, the value of the flow rate that should be consumed is the value of the remaining flow rate-the value of the total flow rate-the flow rate threshold value + the value of the overflow flow rate, and the value of the total flow rate is stored in the mobile terminal in advance. For example, the value of the total flow stored in the mobile terminal is 100M, the flow threshold value is 10% of the total flow, the value of the overflow flow is 3M, and the value of the remaining flow detected by the mobile terminal is 80M, and according to the above calculation process, the value of the flow to be consumed is 80-100 × 10% +3 × 73M.
In the embodiment of the invention, the mobile terminal is tested in various scenes, and the server remotely acquires the mobile terminal to finish the test of the traffic reminding time delay by adopting a remote operation mode, so that the corresponding attribution of the mobile terminal and the traffic reminding time delay in a roaming state are tested, and the accuracy of the test result of the traffic reminding time delay is further improved.
Example 3:
in order to further improve the accuracy of the test result of the traffic reminding delay, on the basis of the foregoing embodiments, in an embodiment of the present invention, if the first current traffic value is not greater than the set traffic threshold value, before consuming the first current traffic according to the test instruction carried in the received test script, the method further includes:
consuming the first remaining flow if the value of the first remaining flow is not 0;
if receiving a second reminding short message sent by the short message server when the first residual flow value is detected to be 0, sending an ordering request to the server, and sending a flow ordering short message for ordering a preset first flow value to the short message server according to the received remote ordering operation of the server for the ordering request;
receiving order success information returned by the short message server aiming at the flow order short message;
sending a flow query request to a short message server, and judging whether information returned by the short message server aiming at the flow query request is received within a set time length;
if so, determining a second residual flow of the mobile terminal according to the returned information, determining a second current flow according to the sum of the second residual flow and a preset overflow flow, and taking the second current flow as a first current flow to perform subsequent steps.
When the value of the first current flow is not greater than the set flow threshold and the value of the first remaining flow is not 0, in order to ensure that the test of the flow reminding delay can be performed, the mobile terminal needs to perform flow ordering to make the current flow greater than the set flow threshold, so that the accuracy of the test result of the flow reminding delay is further improved, the mobile terminal needs to consume the first remaining flow first and make the value of the first remaining flow 0 and then perform ordering operation.
And the mobile terminal judges that the value of the first residual flow is not 0, consumes the first residual flow, the consumption of the first residual flow by the mobile terminal can be consumed in modes of downloading a file, playing video or audio on a network and the like, and the consumption of the flow by the mobile terminal in which mode can be adopted can be carried out according to the test instruction carried in the test script. The specific process of consuming the flow in different ways belongs to the prior art, and is not described in detail in the embodiment of the present invention.
In order to further improve the accuracy of the test result of the traffic reminding delay, when the mobile terminal detects that the value of the first remaining traffic is 0, the operation of consuming the first remaining traffic may be stopped.
After stopping consuming the first remaining traffic, the mobile terminal may send a traffic query request to the short message server at a set time interval according to the script instruction until a value of the first remaining traffic determined according to information returned by the received short message server for the traffic query request is 0, and send an order request to the server, where the order request includes identification information of the mobile terminal, where the set time interval may be 5 seconds, 1 minute, or 5 minutes, and the like.
The server receives an ordering request sent by the mobile terminal, and performs remote ordering operation on the mobile terminal according to the ordering request. The server remotely operates the mobile terminal by adopting a GPRS wireless scheduling technology.
The mobile terminal receives the remote ordering operation and sends a flow ordering short message for ordering a preset first flow value to the short message server, wherein the preset first flow value can be stored in the mobile terminal, the test script or the server. The traffic ordering short message carries identification information of the mobile terminal, the traffic ordering short messages sent by the mobile terminal are different aiming at short message servers of different operators, ports corresponding to the short message servers in different areas of the same operator are possibly the same and possibly different, and the traffic ordering short messages sent by the mobile terminal are possibly the same and possibly different.
The short message server returns order success information to the mobile terminal aiming at the flow order short message sent by the mobile terminal, after the mobile terminal receives the order success information, the mobile terminal sends a flow inquiry request to the short message server according to the script instruction, a timer is started, whether the information returned by the short message server aiming at the flow inquiry request is received within a set time length is judged, if so, the ordered flow with a preset first flow value is considered to be sent to the account, and the subsequent steps are carried out; if the traffic reminding time delay is not received, the task is considered to be overtime, the mobile terminal forcibly ends the test task, and the traffic reminding time delay is tested according to the next traffic threshold, wherein the set time length can be 5 minutes, 20 minutes, 1 hour and the like, and in the roaming state of the test scene, the set time length can be set to be longer because the attribution corresponding to the mobile terminal is different from the area where the mobile terminal is located.
If the mobile terminal receives the information returned by the short message server within the set time length, determining the second residual flow of the mobile terminal according to the returned information, determining the second current flow according to the sum of the second residual flow and the overflow flow, taking the second current flow as the first current flow, and performing subsequent steps.
In the embodiment of the present invention, when the first current flow value is not greater than the set flow threshold and the first remaining flow value is not 0, in order to ensure that the flow reminding delay test can be performed, the mobile terminal needs to perform flow ordering, so that the current flow is greater than the set flow threshold, the mobile terminal consumes the current flow first, and performs ordering operation after the current flow value is 0, thereby further improving the accuracy of the test result of the flow reminding delay.
Example 4:
in order to further improve accuracy of a test result of the traffic reminding delay, on the basis of the foregoing embodiments, in an embodiment of the present invention, if the value of the first current traffic is not greater than the set traffic threshold, before consuming the first current traffic according to a test instruction carried in a received test script, the method further includes:
if the first residual flow value is 0, sending an ordering request to a server, and sending a flow ordering short message for ordering a preset first flow value to a short message server according to the received remote ordering operation of the server aiming at the ordering request;
receiving order success information returned by the short message server aiming at the flow order short message;
sending a flow query request to a short message server, and judging whether information returned by the short message server aiming at the flow query request is received within a set time length;
if so, determining a third residual flow of the mobile terminal according to the returned information, determining a third current flow according to the sum of the third residual flow and a preset overflow flow, and taking the third current flow as the first current flow to perform the subsequent steps.
When the value of the first current flow is not greater than the set flow threshold and the value of the first remaining flow is 0, in order to ensure that the flow reminding delay test can be performed, the mobile terminal needs to perform flow ordering to enable the first current flow to be greater than the set flow threshold, so that the accuracy of the test result of the flow reminding delay is further improved.
The mobile terminal may send an order request to a server according to the script instruction, where the order request includes identification information of the mobile terminal.
The server receives an order request sent by a mobile terminal, and performs remote order operation on the mobile terminal according to the order request, wherein the server remotely operates the mobile terminal by adopting a GPRS wireless scheduling technology.
The mobile terminal receives the remote ordering operation and sends a flow ordering short message for ordering a preset first flow value to the short message server, wherein the preset first flow value can be stored in the mobile terminal, the test script or the server. The traffic ordering short message carries identification information of the mobile terminal, the traffic ordering short messages sent by the mobile terminal are different aiming at short message servers of different operators, ports corresponding to the short message servers in different areas of the same operator are possibly the same and possibly different, and the traffic ordering short messages sent by the mobile terminal are possibly the same and possibly different.
The short message server returns order success information to the mobile terminal aiming at the flow order short message sent by the mobile terminal, after the mobile terminal receives the order success information, the mobile terminal sends a flow inquiry request to the short message server according to the script instruction, a timer is started, whether the information returned by the short message server aiming at the flow inquiry request is received within a set time length is judged, if so, the ordered flow with a preset first flow value is considered to be sent to the account, and the subsequent steps are carried out; if the traffic reminding time delay is not received, the task is considered to be overtime, the mobile terminal forcibly ends the test task, and the traffic reminding time delay is tested according to the next traffic threshold, wherein the set time length can be 5 minutes, 20 minutes, 1 hour and the like, and in the roaming state of the test scene, the set time length can be set to be longer because the attribution corresponding to the mobile terminal is different from the area where the mobile terminal is located.
If the mobile terminal receives the information returned by the short message server within the set time length, determining the third residual flow of the mobile terminal according to the returned information, determining the third current flow according to the sum of the third residual flow and the overflow flow, taking the third current flow as the first current flow, and performing subsequent steps.
For analysis of the test results of the flow alerting thresholds, after the determining of the flow alerting delay, the method further comprises:
and sending the test result carrying the traffic reminding time delay to a server.
If the mobile terminal has the operation of forcibly terminating the task in the test process of the traffic reminding delay, sending alarm information to the server, and in addition, in the actual test process, the situations that the mobile terminal is forcibly turned off or disconnected due to insufficient power and the like may occur, after the server sends the test script to the mobile terminal, starting a timer, judging whether a test result sent by the mobile terminal is received or not within the set test duration, if not, generating the alarm information or identifying the task failure in the local of the mobile terminal, wherein the set test duration may be 5 minutes, 20 minutes, 1 hour and the like, and in the test scene of roaming, the set test duration may be set to be longer due to the fact that the attribution area corresponding to the mobile terminal is different from the area where the mobile terminal is located.
The foregoing embodiment is described below with reference to a specific embodiment, and fig. 2A is a schematic diagram of another flow reminding delay test process provided in the embodiment of the present invention, where the process includes the following steps:
s201: sending a flow query request to a short message server according to the received remote acquisition operation of the server; determining a first residual flow of the mobile terminal according to the received information returned by the short message server; determining a first current flow value according to the sum of the first residual flow and a preset overflow flow, and judging whether the first current flow value is greater than a set flow threshold value; if so, go to S208; if not, proceed to S202.
S202: judging whether the value of the first residual flow is 0 or not; if yes, go to S204; if not, proceed to S203.
S203: and consuming the first residual flow, and receiving a second reminding short message sent by the short message server when the first residual flow is detected to be 0.
S204: sending an order request to a server, and sending a flow order short message for ordering a preset first flow value to a short message server according to the received remote order operation of the server aiming at the order request.
S205: and receiving the order success information returned by the short message server aiming at the flow order short message.
S206: sending a flow query request to a short message server, and judging whether information returned by the short message server aiming at the flow query request is received within a set time length; if so, proceed to S207.
Of course, if the information returned by the short message server for the traffic query request is not received within the set time length, the mobile terminal may continue to send the traffic query request to the short message server, or may forcibly terminate the test process of the traffic reminding delay.
S207: and determining the residual flow of the mobile terminal according to the returned information, determining the current flow according to the sum of the residual flow and the preset overflow flow, and taking the current flow as the first current flow.
S208: according to a test instruction carried in a received test script, consuming a first current flow, and updating a value of the consumed first current flow; if the first current flow value is not larger than the set flow threshold value, recording first time corresponding to the current moment; receiving a first reminding short message, recording a second time of receiving the first reminding short message, and determining the flow reminding time delay according to the first time and the second time.
In the embodiment of the invention. When the first current flow value is not greater than the set flow threshold and the first remaining flow value is not 0, the mobile terminal needs to perform flow ordering to ensure that the flow reminding time delay test can be performed, so that the first current flow is greater than the set flow threshold, and the accuracy of the flow reminding time delay test result is further improved.
Example 5:
fig. 2B is a schematic structural diagram of a test system for traffic alert delay according to an embodiment of the present invention, and as shown in fig. 2B, the test system for traffic alert delay includes: a server 21, a mobile terminal 22 and a short message server 23; wherein the content of the first and second substances,
the server 21 is configured to send a test script carrying a test instruction to the mobile terminal 22;
the mobile terminal 22 is configured to consume the first current traffic according to the test instruction carried in the received test script, and update a value of the consumed first current traffic; if the first current flow value is not larger than the set flow threshold value, recording first time corresponding to the current moment; receiving a first reminding short message and recording a second time for receiving the first reminding short message; determining a flow awakening delay according to the first time and the second time;
the short message server 23 is configured to send a first reminding short message to the mobile terminal 22 if it is detected that the first current traffic value of the mobile terminal 22 is not greater than the set traffic threshold.
In order to improve the accuracy of the test result of the traffic reminding delay, a server, a mobile terminal and a short message server are deployed in the system, wherein the mobile terminal mainly refers to a mobile phone, but does not exclude other devices, such as a tablet personal computer, a Personal Digital Assistant (PDA) and other devices capable of consuming traffic. And the short message server belongs to all operators corresponding to the mobile terminal.
The server 21 is further configured to perform a remote acquisition operation on the mobile terminal 22 by using a general packet radio service GPRS radio scheduling technology;
the mobile terminal 22 is further configured to send a traffic query request to the short message server 23 according to the received remote acquisition operation of the server 21; determining a first remaining flow of the mobile terminal 22 according to the received information returned by the short message server 23; determining a value of a first current flow according to the sum of the first residual flow and a preset overflow flow, judging whether the value of the first current flow is larger than a set flow threshold value, and if so, consuming the first current flow according to a test instruction carried in a received test script;
the short message server 23 is further configured to receive a traffic query request sent by the mobile terminal 22, and return information for the traffic query request.
The mobile terminal 22 is further configured to consume the first remaining traffic if the value of the first remaining traffic is not 0; if receiving a second reminding short message sent by the short message server 23 when the value of the residual flow is detected to be 0, sending an ordering request to the server 21, and sending a flow ordering short message for ordering a preset first flow value to the short message server 23 according to the received remote ordering operation of the server 21 for the ordering request; receiving order success information returned by the short message server 23 for the traffic order short message; sending a flow query request to the short message server 23, and judging whether information returned by the short message server 23 for the flow query request is received within a set time length; if yes, determining a second residual flow of the mobile terminal 22 according to the returned information, determining a second current flow according to the sum of the second residual flow and a preset overflow flow, taking the second current flow as a first current flow, and consuming the first current flow according to a test instruction carried in a received test script;
the server 21 is further configured to receive an order request sent by the mobile terminal 22, and perform a remote order operation on the mobile terminal 22 by using a GPRS wireless scheduling technology;
the short message server 23 is further configured to send a second reminding short message if it is detected that the value of the first remaining flow of the mobile terminal 22 is 0; receiving a flow ordering short message for ordering a preset first flow value sent by the mobile terminal 22, ordering the flow of the first flow value for the mobile terminal 22, and returning ordering success information to the mobile terminal 22; and receiving a traffic query request sent by the mobile terminal 22, and returning second remaining traffic information to the mobile terminal 22.
The mobile terminal 22 is further configured to send an order request to the server 21 if the first remaining flow value is 0, and send a flow order short message for ordering a preset first flow value to the short message server 23 according to a received remote order operation of the server 21 for the order request; receiving order success information returned by the short message server 23 for the traffic order short message; sending a flow query request to the short message server 23, and judging whether information returned by the short message server 23 for the flow query request is received within a set time length; if so, determining a third remaining flow of the mobile terminal 22 according to the returned information, determining a third current flow according to the sum of the third remaining flow and a preset overflow flow, taking the third current flow as the first current flow, and consuming the first current flow according to a test instruction carried in the received test script.
The mobile terminal 22 is further configured to send the test result carrying the traffic reminding delay to the server 21;
the server 21 is further configured to receive a test result sent by the mobile terminal 22 and carrying the traffic reminding delay.
In the embodiment of the invention, when the mobile terminal detects that the current flow value is not greater than the set flow threshold value, the first time corresponding to the current time is recorded, the reminding short message sent by the short message server when the current flow value is not greater than the set flow threshold value is received, the corresponding second time is recorded, the first time is the theoretical reminding time of the user flow, the second time is the actual reminding time of the user flow, the flow reminding time delay is determined through the first time and the second time, and all links of the flow reminding time delay are covered, so that the accuracy of the test result of the flow reminding time delay is improved.
Example 6:
on the basis of the foregoing embodiments, the foregoing embodiments are described with a specific embodiment in the embodiments of the present invention, and fig. 3 is a schematic diagram of a testing process of a traffic reminding delay provided by the embodiments of the present invention, as shown in fig. 3, the process includes the following steps:
s301: and a test task scheduling stage.
The method comprises the steps that a script generation algorithm is stored in a server in advance by a tester, the script generation algorithm specifically comprises a test task scheduling strategy, the server generates a test task aiming at the flow reminding time delay of different mobile terminals according to the scheduling strategy in the script generation algorithm, and the test task of the flow reminding time delay comprises the priority of different mobile terminals for executing the test task, the periodicity of the test task and the like. After generating the test tasks aiming at the traffic reminding time delays of different mobile terminals, the server marks the task state of the test tasks of the traffic reminding time delays as not scheduled. Further, in order to reduce the number of tests and save resources, the test task of the traffic reminding delay generated by the server may be generated by using the mobile phone numbers of the same attribution as a group according to the attribution of the mobile phone number of the mobile terminal.
For example, according to a scheduling policy, the server executes a flow reminding delay test task generated by the first mobile terminal at 10 am at 3/23/2017, has the highest priority, is only executed periodically, and marks the task state of the test task as unscheduled, executes a flow reminding delay test task generated by the second mobile terminal at 11 am at 3/23/2017, has a normal priority, is only executed periodically, and marks the task state of the test task as unscheduled.
The traffic threshold value for different mobile terminals may be one or multiple, and if the traffic threshold value for one mobile terminal is multiple, the server may have one or multiple test tasks for the traffic reminding delay generated by the mobile terminal.
S302: and a test task dispatching stage.
In the embodiment of the invention, the mobile terminal to be tested is provided with the testing client software for testing, and the data interaction between the mobile terminal and the server can be completed through the testing client software.
The method comprises the steps that a mobile terminal sends a task execution query request to a server, wherein the task execution query request carries identification information of the mobile terminal, the identification information of the mobile terminal is combination information of a mobile phone number corresponding to an SIM card installed on the mobile terminal and a GPS coordinate corresponding to the mobile terminal, and the server judges whether the GPS coordinate is located in a home location of the mobile phone number or not after receiving the task execution query request.
If yes, the server judges whether a test task to be dispatched for the attribution is stored locally or not according to the attribution of the mobile phone number, and if not, information of task ending is returned to the mobile terminal. If so, finding the test task aiming at the mobile terminal locally, packaging the test task into a task response packet to be dispatched, and sending the task response packet to the mobile terminal.
In order to avoid repeated dispatch of the same test task for multiple times, after the server sends the task response packet to be dispatched to the mobile terminal, the task state of the corresponding test task can be directly marked as dispatched, or a timer can be started to judge whether receiving confirmation information returned by the mobile terminal is received within a set time length, and if so, the task state of the corresponding test task is marked as dispatched; if not, alarm information is generated or the task fails to be identified locally for the mobile terminal.
S303: and a test task execution stage.
After the mobile terminal receives the to-be-dispatched task response packet, the testing client software analyzes the testing script of the testing task in the received to-be-dispatched task response packet.
The mobile terminal sends an operation request to the server according to a test instruction in the test script, the server carries out remote acquisition operation on the mobile terminal according to the acquisition operation request, the mobile terminal sends a flow query request to a specified port of the short message server according to the received remote acquisition operation of the server, and the residual flow of the mobile terminal is determined by a front and back keyword matching method according to the received information returned by the short message server.
After determining the remaining flow, the mobile terminal may determine the remaining flow as a first current flow, directly determine whether the first current flow value is greater than the set flow threshold, or determine the first current flow value according to the sum of the remaining flow and the overflow flow, and determine whether the first current flow value is greater than the set flow threshold.
If the first current flow is consumed in a file downloading mode, updating the value of the consumed first current flow, detecting the value of the first current flow by circularly executing a network flow method provided by an operating system, recording first time corresponding to the current moment by calling a clock application if the value of the first current flow is detected to be not greater than a set flow threshold value, and storing the first time. The flow value that the mobile terminal should consume is: the value of the flow to be consumed is the value of the remaining flow-the value of the total flow + the value of the overflow flow, wherein the flow threshold is expressed by percentage or decimal, and the value of the total flow is stored in the mobile terminal in advance.
When the short message server detects that the value of the first current flow of the mobile terminal is not larger than a set flow threshold value, a first reminding short message is sent to the mobile terminal, the mobile terminal receives the first reminding short message, a second time corresponding to the first reminding short message is obtained by calling a clock application, the second time is stored, the difference value of the first time and the second time is calculated, and the difference value is used as flow reminding time delay.
If the mobile terminal judges that the first current flow value is not larger than the set flow threshold value, whether the first residual flow value is 0 or not is judged, if not, the first residual flow is consumed, a flow query request is sent to the short message service according to a set first time interval, and an order request is sent to the server until a second reminding short message sent by the short message server when the first residual flow value is detected to be 0 is received, wherein the first time interval can be 10 seconds, 5 minutes, 1 hour and the like, and under the condition that a test scene is a roaming state, the set time interval can be set to be longer as the corresponding attribution of the mobile terminal is different from the area where the mobile terminal is located.
The method comprises the steps that a server receives an ordering request sent by a mobile terminal, remote ordering operation is carried out on the mobile terminal according to the ordering request, the mobile terminal sends a flow ordering short message for ordering a preset first flow value to a short message server according to the received remote ordering operation of the server aiming at the ordering request, ordering success information returned by the short message server aiming at the flow ordering short message is received, and the mobile terminal sends a flow inquiry request to the short message server according to a set second time interval, wherein the second time interval can be the same as or different from the first time interval, and can be 20 seconds, 5 minutes, 1 hour and the like.
The mobile terminal judges whether information returned by the short message server aiming at the flow query request is received within a set time length, if the information is received, the flow of the ordered preset first flow value is considered to be paid, a second residual flow of the mobile terminal is determined according to the returned information, a second current flow is determined according to the sum of the second residual flow and the preset overflow flow, the second current flow is used as a first current flow, the mobile terminal consumes the first current flow according to a test instruction carried in a received test script, and the specific mobile terminal consumes the first current flow in a file downloading mode.
If the mobile terminal judges that the first current flow value is not larger than the set flow threshold value and the first residual flow value is 0, sending an order request to a server, wherein the first time interval can be 10 seconds, 5 minutes, 1 hour and the like, and in the roaming state of the test scene, the first time interval can be set to be longer because the attribution area corresponding to the mobile terminal is different from the area where the mobile terminal is located.
The server receives an ordering request sent by the mobile terminal, carries out remote ordering operation on the mobile terminal according to the ordering request, the mobile terminal sends a flow ordering short message ordering a preset first flow value to the short message server according to the received remote ordering operation of the server aiming at the ordering request, receives ordering success information returned by the short message server aiming at the flow ordering short message, and sends a flow inquiry request to the short message server according to a set second time interval, wherein the second time interval may be the same as or different from the first time interval, the second time interval may be 20 seconds, 5 minutes, or 1 hour, etc., when the test scenario is in a roaming state, the second time interval may be set longer because the attribution corresponding to the mobile terminal is different from the area where the mobile terminal is located.
The mobile terminal judges whether information returned by the short message server aiming at the flow query request is received within a set time length, if the information is received, the flow of the ordered preset first flow value is considered to be paid, a third residual flow of the mobile terminal is determined according to the returned information, a third current flow is determined according to the sum of the third residual flow and the preset overflow flow, the third current flow is used as the first current flow, the mobile terminal consumes the first current flow according to a test instruction carried in a received test script, and the specific mobile terminal consumes the first current flow in a file downloading mode.
If the mobile terminal does not receive the first reminding short message that the short message server detects that the current flow value of the mobile terminal is not larger than the set flow threshold value within the set waiting time, the mobile terminal considers that the test task is overtime, forcibly terminates the test task, and sends alarm information to the server.
If there are multiple traffic thresholds in the test task, the operations described above are performed for each traffic threshold. After the mobile terminal performs the above operation on each traffic threshold, the mobile terminal encapsulates the test result of each traffic threshold and sends the encapsulated test result to the server.
S304: and a test task ending stage.
The server judges whether the test result sent by the mobile terminal is received within the set test duration, if so, the test result is stored, and if not, alarm information is generated or the local identification task fails aiming at the mobile terminal.
In the embodiment of the invention, when the mobile terminal detects that the value of the first current flow is not greater than the set flow threshold value, the first time corresponding to the current time is recorded, the reminding short message sent by the short message server that the value of the first current flow is not greater than the set flow threshold value is received, the corresponding second time is recorded, the first time is the theoretical reminding time of the user flow, the second time is the actual reminding time of the user flow, and the flow reminding time delay is determined according to the first time and the second time, so that all links of the flow reminding time delay are covered, and the accuracy of the test result of the flow reminding time delay is improved.
Fig. 4 is a schematic view of a testing apparatus for traffic reminding delay according to an embodiment of the present invention, which is applied to a mobile terminal, and the apparatus includes:
a consumption updating module 41, configured to consume a first current flow according to a test instruction carried in a received test script, and update a value of the consumed first current flow, where the test script is sent by a server;
the detection recording module 42 is configured to record a first time corresponding to a current time if it is detected that the first current flow value is not greater than the set flow threshold;
the receiving and recording module 43 is configured to receive a first reminding short message, and record a second time when the first reminding short message is received, where the first reminding short message is sent when the short message server detects that a first current traffic value of the mobile terminal is not greater than a set traffic threshold;
and a delay determining module 44, configured to determine a flow waking delay according to the first time and the second time.
The device further comprises:
the query judgment module 45 is used for sending a flow query request to the short message server according to the received remote acquisition operation of the server; determining a first residual flow of the mobile terminal according to the received information returned by the short message server; determining a first current flow value according to the sum of the first residual flow and a preset overflow flow, and judging whether the first current flow value is larger than a set flow threshold value; if so, the consumption update module 41 is triggered.
The device further comprises:
a consumption ordering module 46, configured to determine that the first current flow value is not greater than a set flow threshold, and if the first remaining flow value is not 0, consume the first remaining flow; if receiving a second reminding short message sent by the short message server when the first residual flow value is detected to be 0, sending an ordering request to the server, and sending a flow ordering short message for ordering a preset first flow value to the short message server according to the received remote ordering operation of the server for the ordering request; receiving order success information returned by the short message server aiming at the flow order short message; sending a flow query request to a short message server, and judging whether information returned by the short message server aiming at the flow query request is received within a set time length; if yes, determining a second remaining flow of the mobile terminal according to the returned information, determining a second current flow according to a sum of the second remaining flow and a preset overflow flow, and triggering the consumption updating module 41 by taking the second current flow as the first current flow.
The device further comprises:
the order judging module 47 is configured to judge that the current flow value is not greater than a set flow threshold, send an order request to a server if the first remaining flow value is 0, and send a flow order short message for ordering a preset first flow value to a short message server according to a received remote order operation of the server for the order request; receiving order success information returned by the short message server aiming at the flow order short message; sending a flow query request to a short message server, and judging whether information returned by the short message server aiming at the flow query request is received within a set time length; if yes, determining a third remaining flow of the mobile terminal according to the returned information, determining a third current flow according to a sum of the third remaining flow and a preset overflow flow, and triggering the consumption updating module 41 by taking the third current flow as the first current flow.
The device further comprises:
and a result sending module 48, configured to send the test result carrying the traffic reminding delay to the server.
The embodiment of the invention provides a method, a device and a system for testing flow reminding time delay, wherein the method comprises the following steps: the mobile terminal consumes the first current flow according to a test instruction carried in a received test script, and updates the value of the consumed first current flow, wherein the test script is sent by a server; if the first current flow value is not larger than the set flow threshold value, recording first time corresponding to the current moment; receiving a first reminding short message, and recording a second time of receiving the first reminding short message, wherein the first reminding short message is sent when a short message server detects that a first current flow value of the mobile terminal is not greater than a set flow threshold value; and determining the flow awakening delay according to the first time and the second time. In the embodiment of the invention, when the mobile terminal detects that the value of the first current flow is not greater than the set flow threshold value, the first time corresponding to the current time is recorded, the reminding short message sent by the short message server that the value of the first current flow is not greater than the set flow threshold value is received, the corresponding second time is recorded, the first time is the time when the user flow should be reminded, the second time is the actual reminding time of the user flow, the flow reminding time delay is determined according to the first time and the second time, and all links of the flow reminding time delay are covered, so that the accuracy of the test result of the flow reminding time delay is improved.
For the system/apparatus embodiments, since they are substantially similar to the method embodiments, the description is relatively simple, and reference may be made to some descriptions of the method embodiments for relevant points.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While the preferred embodiments of the present application have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all alterations and modifications as fall within the scope of the application.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.

Claims (15)

1. A method for testing traffic reminding time delay is characterized in that the method is applied to a mobile terminal and comprises the following steps:
according to a test instruction carried in a received test script, consuming a first current flow, and updating a value of the consumed first current flow, wherein the test script is sent by a server;
if the first current flow value is not larger than the set flow threshold value, recording first time corresponding to the current moment;
receiving a first reminding short message, and recording a second time of receiving the first reminding short message, wherein the first reminding short message is sent when a short message server detects that a first current flow value of the mobile terminal is not greater than a set flow threshold value;
and determining the flow awakening delay according to the first time and the second time.
2. The method of claim 1, wherein before consuming the first current traffic according to the test instruction carried in the received test script, the method further comprises:
sending a flow query request to a short message server according to the received remote acquisition operation of the server;
determining a first residual flow of the mobile terminal according to the received information returned by the short message server;
determining a first current flow value according to the sum of the first residual flow and a preset overflow flow, and judging whether the first current flow value is greater than a set flow threshold value;
if yes, the subsequent steps are carried out.
3. The method of claim 2, wherein if the value of the first current traffic is not greater than the set traffic threshold, before consuming the first current traffic according to the test instruction carried in the received test script, the method further comprises:
consuming the first remaining flow if the value of the first remaining flow is not 0;
if a second reminding short message sent by the short message server when the first residual flow value is detected to be 0 is received, sending an ordering request to the server, and sending a flow ordering short message for ordering a preset first flow value to the short message server according to the received remote ordering operation of the server aiming at the ordering request;
receiving order success information returned by the short message server aiming at the flow order short message;
sending a flow query request to a short message server, and judging whether information returned by the short message server aiming at the flow query request is received within a set time length;
if so, determining a second residual flow of the mobile terminal according to the returned information, determining a second current flow according to the sum of the second residual flow and a preset overflow flow, and taking the second current flow as a first current flow to perform subsequent steps.
4. The method of claim 2, wherein if the value of the first current traffic is not greater than the set traffic threshold, before consuming the first current traffic according to the test instruction carried in the received test script, the method further comprises:
if the first residual flow value is 0, sending an ordering request to a server, and sending a flow ordering short message for ordering a preset first flow value to a short message server according to the received remote ordering operation of the server aiming at the ordering request;
receiving order success information returned by the short message server aiming at the flow order short message;
sending a flow query request to a short message server, and judging whether information returned by the short message server aiming at the flow query request is received within a set time length;
if so, determining a third residual flow of the mobile terminal according to the returned information, determining a third current flow according to the sum of the third residual flow and a preset overflow flow, and taking the third current flow as the first current flow to perform the subsequent steps.
5. The method of claim 1, wherein after the determining the flow arousal delay, the method further comprises:
and sending the test result carrying the traffic reminding time delay to a server.
6. The utility model provides a testing arrangement of time delay is reminded to flow which characterized in that is applied to mobile terminal, and the device includes:
the consumption updating module is used for consuming the first current flow according to a test instruction carried in a received test script, and updating the value of the consumed first current flow, wherein the test script is sent by a server;
the detection recording module is used for recording first time corresponding to the current moment if the first current flow value is not larger than a set flow threshold value;
the receiving and recording module is used for receiving a first reminding short message and recording second time for receiving the first reminding short message, wherein the first reminding short message is sent when the short message server detects that the value of the first current flow of the mobile terminal is not greater than a set flow threshold value;
and the time delay determining module is used for determining the flow reminding time delay according to the first time and the second time.
7. The apparatus of claim 6, wherein the apparatus further comprises:
the query judgment module is used for sending a flow query request to the short message server according to the received remote acquisition operation of the server; determining a first residual flow of the mobile terminal according to the received information returned by the short message server; determining a first current flow value according to the sum of the first residual flow and a preset overflow flow, and judging whether the first current flow value is larger than a set flow threshold value; if so, the consumption update module is triggered.
8. The apparatus of claim 7, wherein the apparatus further comprises:
the consumption ordering module is used for judging that the first current flow value is not larger than a set flow threshold value, and if the first residual flow value is not 0, consuming the first residual flow; if receiving a second reminding short message sent by the short message server when the first residual flow value is detected to be 0, sending an ordering request to the server, and sending a flow ordering short message for ordering a preset first flow value to the short message server according to the received remote ordering operation of the server for the ordering request; receiving order success information returned by the short message server aiming at the flow order short message; sending a flow query request to a short message server, and judging whether information returned by the short message server aiming at the flow query request is received within a set time length; if so, determining a second residual flow of the mobile terminal according to the returned information, determining a second current flow according to the sum of the second residual flow and a preset overflow flow, and triggering a consumption updating module by taking the second current flow as a first current flow.
9. The apparatus of claim 7, wherein the apparatus further comprises:
the order judging module is used for judging that the current flow value is not larger than a set flow threshold value, sending an order request to a server if the first residual flow value is 0, and sending a flow order short message for ordering a preset first flow value to a short message server according to the received remote order operation of the server aiming at the order request; receiving order success information returned by the short message server aiming at the flow order short message; sending a flow query request to a short message server, and judging whether information returned by the short message server aiming at the flow query request is received within a set time length; if so, determining a third residual flow of the mobile terminal according to the returned information, determining a third current flow according to the sum of the third residual flow and a preset overflow flow, and triggering a consumption updating module by taking the third current flow as the first current flow.
10. The apparatus of claim 6, wherein the apparatus further comprises:
and the result sending module is used for sending the test result carrying the traffic reminding time delay to a server.
11. A test system for traffic alert delay, the test system comprising:
the server is used for sending a test script carrying a test instruction to the mobile terminal;
the mobile terminal is used for consuming the first current flow according to the received test instruction carried in the test script and updating the value of the consumed first current flow; if the first current flow value is not larger than the set flow threshold value, recording first time corresponding to the current moment; receiving a first reminding short message and recording a second time for receiving the first reminding short message; determining a flow awakening delay according to the first time and the second time;
and the short message server is used for sending a first reminding short message to the mobile terminal if the first current flow value of the mobile terminal is not larger than the set flow threshold value.
12. The system of claim 11, wherein the server is further configured to perform remote acquisition operations for the mobile terminal using general packet radio service GPRS radio scheduling techniques;
the mobile terminal is also used for sending a flow query request to the short message server according to the received remote acquisition operation of the server; determining a first residual flow of the mobile terminal according to the received information returned by the short message server; determining a value of a first current flow according to the sum of the first residual flow and a preset overflow flow, judging whether the value of the first current flow is larger than a set flow threshold value, and if so, consuming the first current flow according to a test instruction carried in a received test script;
the short message server is also used for receiving the flow query request sent by the mobile terminal and returning information aiming at the flow query request.
13. The system of claim 12, wherein the mobile terminal is further configured to consume the first remaining traffic if the value of the first current traffic is not greater than a set traffic threshold and the value of the first remaining traffic is not 0; if the second reminding short message is received, sending an ordering request to a server, and sending a flow ordering short message for ordering a preset first flow value to a short message server according to the received remote ordering operation of the server aiming at the ordering request; receiving order success information returned by the short message server; sending a flow query request to a short message server, and judging whether information returned by the short message server aiming at the flow query request is received within a set time length; if so, determining a second residual flow of the mobile terminal according to the returned information, determining a second current flow according to the sum of the second residual flow and a preset overflow flow, taking the second current flow as a first current flow, and consuming the first current flow according to a test instruction carried in a received test script;
the server is also used for receiving the ordering request sent by the mobile terminal and performing remote ordering operation on the mobile terminal by adopting a GPRS wireless scheduling technology;
the short message server is also used for sending a second reminding short message if the first residual flow value of the mobile terminal is detected to be 0; receiving a flow ordering short message which is sent by the mobile terminal and orders a preset first flow value, ordering the flow of the first flow value for the mobile terminal, and returning ordering success information to the mobile terminal; and receiving a flow query request sent by the mobile terminal, and returning second residual flow information to the mobile terminal.
14. The system of claim 12, wherein the mobile terminal is further configured to send a subscription request to a server, and send a traffic subscription short message subscribing to a preset first traffic value to a short message server according to a received remote subscription operation of the server for the subscription request, if the first current traffic value is not greater than a set traffic threshold value and the first remaining traffic value is 0; receiving order success information returned by the short message server aiming at the flow order short message; sending a flow query request to a short message server, and judging whether information returned by the short message server aiming at the flow query request is received within a set time length; if so, determining a third residual flow of the mobile terminal according to the returned information, determining a third current flow according to the sum of the third residual flow and a preset overflow flow, taking the third current flow as the first current flow, and consuming the first current flow according to a test instruction carried in the received test script.
15. The system of claim 11, wherein the mobile terminal is further configured to send a test result carrying the traffic reminding delay to a server;
and the server is also used for receiving the test result which is sent by the mobile terminal and carries the traffic reminding time delay.
CN201710411864.6A 2017-06-05 2017-06-05 Method, device and system for testing flow reminding time delay Active CN108989140B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710411864.6A CN108989140B (en) 2017-06-05 2017-06-05 Method, device and system for testing flow reminding time delay

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710411864.6A CN108989140B (en) 2017-06-05 2017-06-05 Method, device and system for testing flow reminding time delay

Publications (2)

Publication Number Publication Date
CN108989140A CN108989140A (en) 2018-12-11
CN108989140B true CN108989140B (en) 2020-10-30

Family

ID=64501821

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710411864.6A Active CN108989140B (en) 2017-06-05 2017-06-05 Method, device and system for testing flow reminding time delay

Country Status (1)

Country Link
CN (1) CN108989140B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112367684B (en) * 2020-10-13 2023-11-14 北京水滴科技集团有限公司 Flow control method, device, storage medium and computer equipment

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102480578A (en) * 2010-11-25 2012-05-30 中国移动通信集团四川有限公司 Method, system and device for reminding data traffic
US8463306B1 (en) * 2011-05-22 2013-06-11 Mobivity, Inc. Method and system for SMS messaging verification

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7587209B2 (en) * 2002-12-30 2009-09-08 Nortel Networks Limited Method of SMS message transfer after GPRS attach
CN101697645A (en) * 2009-10-20 2010-04-21 厦门敏讯信息技术股份有限公司 Method and device for acquiring current time for mobile communication terminal
CN102387486B (en) * 2010-09-06 2015-02-04 中国移动通信集团河北有限公司 Method and device for charging general packet radio service (GPRS) partition bill
CN103179589B (en) * 2011-12-20 2016-06-22 中国移动通信集团安徽有限公司 The method and system that a kind of user terminal surfing flow is reminded
CN104041108A (en) * 2012-10-30 2014-09-10 华为技术有限公司 Data Transmission Method, Switching Method, Data Transmission Apparatus, Switching Apparatus, User Equipment, Wireless Access Node, Data Transmission System And Switching System
CN103812897A (en) * 2012-11-12 2014-05-21 中国移动通信集团山东有限公司 Network flow control method and device
CN104703163B (en) * 2013-12-06 2018-05-29 中国电信股份有限公司 Terminal online residual flow method for real-time monitoring and traffic monitoring server
CN104767650A (en) * 2014-01-03 2015-07-08 中国移动通信集团广东有限公司 Message network delay measuring and calculating method and message network delay measuring and calculating device
CN104010281A (en) * 2014-05-30 2014-08-27 可牛网络技术(北京)有限公司 Hinting method and device of mobile equipment traffic
US9967164B2 (en) * 2014-09-02 2018-05-08 Netscout Systems Texas, Llc Methods and devices to efficiently determine node delay in a communication network
CN106656646A (en) * 2015-10-29 2017-05-10 中国移动通信集团河北有限公司 Intelligent flow prompt method and device, and corresponding mobile terminal

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102480578A (en) * 2010-11-25 2012-05-30 中国移动通信集团四川有限公司 Method, system and device for reminding data traffic
US8463306B1 (en) * 2011-05-22 2013-06-11 Mobivity, Inc. Method and system for SMS messaging verification

Also Published As

Publication number Publication date
CN108989140A (en) 2018-12-11

Similar Documents

Publication Publication Date Title
KR101641174B1 (en) Method for enabling shutdown alarm clock and mobile terminal, and program, and recording medium for enabling shutdown alarm clock
CN105677477B (en) Method and device for optimizing application program resources and electronic equipment
KR102280465B1 (en) A terminal and application synchronization method thereof
JP6560352B2 (en) Information push method and device
CN104244378B (en) Improve the wireless communication device and method of power management
US20140129501A1 (en) Method for predicting user operation and mobile terminal
CN103209439A (en) Method, apparatus and device for monitoring data traffic
CN105407456A (en) Method and system used for processing help-seeking information
CN108616653B (en) Information processing method, device, mobile terminal and computer readable storage medium
CN108541013B (en) Information processing method, device, mobile terminal and computer readable storage medium
WO2019148936A1 (en) Information reminder
CN103037348A (en) Tracking area updating method and system
CN103596246A (en) Method and terminal for recovering data service
CN106959857A (en) The application control method and apparatus of a kind of electronic equipment
CN112311824A (en) Attendance information processing method and related device
WO2014198106A1 (en) Terminal and method for application management thereof
CN103491175B (en) Method and terminal for application program management
CN112492624A (en) Method and device for reminding use of 5G function, electronic equipment and storage medium
CN108989140B (en) Method, device and system for testing flow reminding time delay
WO2017206318A1 (en) Mobile device, and method and apparatus for sharing location thereof
CN109005509B (en) Terminal positioning method, device, terminal and storage medium
CN110852851A (en) Block chain-based vehicle sharing method and device and readable storage medium
CN101854369A (en) Remote information notification system and method
CN113329345A (en) Method and device for improving short message sending success rate
CN103095528B (en) A kind of method and apparatus running the application of Sampling network flow

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
CB02 Change of applicant information

Address after: 518048, 10 floor, Guo Tong Building, 9023 Binhe Road, Futian District, Shenzhen, Guangdong.

Applicant after: CHINA MOBILE INFORMATION TECHNOLOGY Co.,Ltd.

Applicant after: CHINA MOBILE COMMUNICATIONS GROUP Co.,Ltd.

Address before: 518048, 10 floor, Guo Tong Building, 9023 Binhe Road, Futian District, Shenzhen, Guangdong.

Applicant before: CHINA MOBILE INFORMATION TECHNOLOGY Co.,Ltd.

Applicant before: China Mobile Communications Corp.

CB02 Change of applicant information
TA01 Transfer of patent application right

Effective date of registration: 20200327

Address after: Room 1006, building 16, yard 16, Yingcai North Third Street, future science city, Changping District, Beijing 102209

Applicant after: China Mobile Information Technology Co.,Ltd.

Applicant after: CHINA MOBILE COMMUNICATIONS GROUP Co.,Ltd.

Address before: 518048, 10 floor, Guo Tong Building, 9023 Binhe Road, Futian District, Shenzhen, Guangdong.

Applicant before: CHINA MOBILE INFORMATION TECHNOLOGY Co.,Ltd.

Applicant before: CHINA MOBILE COMMUNICATIONS GROUP Co.,Ltd.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant