CN109582586B - Application program advanced networking test method, device, server and storage medium - Google Patents

Application program advanced networking test method, device, server and storage medium Download PDF

Info

Publication number
CN109582586B
CN109582586B CN201811574037.XA CN201811574037A CN109582586B CN 109582586 B CN109582586 B CN 109582586B CN 201811574037 A CN201811574037 A CN 201811574037A CN 109582586 B CN109582586 B CN 109582586B
Authority
CN
China
Prior art keywords
application program
networking
application
information
stored
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
CN201811574037.XA
Other languages
Chinese (zh)
Other versions
CN109582586A (en
Inventor
申佳楠
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Chengshi Wanglin Information Technology Co Ltd
Original Assignee
Beijing Chengshi Wanglin 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 Beijing Chengshi Wanglin Information Technology Co Ltd filed Critical Beijing Chengshi Wanglin Information Technology Co Ltd
Priority to CN201811574037.XA priority Critical patent/CN109582586B/en
Publication of CN109582586A publication Critical patent/CN109582586A/en
Application granted granted Critical
Publication of CN109582586B publication Critical patent/CN109582586B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/362Software debugging

Landscapes

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

Abstract

The invention provides a method, a device, a server and a storage medium for testing advanced networking of application programs, wherein the method comprises the following steps: acquiring test data of an application program, wherein the test data comprises running information of the application program under each application scene from the starting running of the application program to before a user allows the application program to start running networking at this time; and detecting whether information for representing the networking of the application program is stored in the test data, and if so, determining that the application program has the problem of networking in advance. The invention realizes the test of the advanced network condition of the application program and is convenient for solving the advanced networking problem of the application program in time.

Description

Application program advanced networking test method, device, server and storage medium
Technical Field
The invention relates to the technical field of software testing, in particular to a method and a device for testing an application program in advance in a networking manner, a server and a storage medium.
Background
Along with the development of science and technology, more and more types of application programs and more perfect functions are arranged in the electronic equipment, so that the pleasure is provided for the life of people, and the convenience is brought to the life of people to the great extent.
Typically, to avoid wasting electronic device traffic, applications are not allowed to be networked ahead of time before the electronic device user does not allow the applications to be networked. Moreover, the industry and credit department standard also proposes that the application program is preinstalled in the electronic equipment on the premise that the application program cannot be networked in advance.
In view of this, it is an urgent need to provide a method, an apparatus, a server and a storage medium for testing advanced networking conditions of an application program, so as to facilitate timely solving the advanced networking conditions of the application program.
Disclosure of Invention
In view of the above, the present invention provides a method, an apparatus, a server and a storage medium for testing advanced networking of an application program, so as to implement testing advanced networking of the application program.
In order to achieve the above object, the following solutions are proposed:
an application program advanced networking test method comprises the following steps:
obtaining test data of an application program, wherein the test data comprises running information of the application program under each application scene from the starting running of the application program to the time before a user allows the application program to start running networking at this time;
detecting whether information representing the networking of the application program is stored in the test data;
if yes, determining that the application program has an advance networking problem.
Preferably, the acquiring test data of the application program includes:
the method comprises the steps that based on first electronic equipment provided with an operating system debugging tool, system running information of second electronic equipment provided with an application program in a test state is obtained; and when the application program is started and run to an application scene before a user allows the application program to start and run networking at this time, the second electronic equipment is in a test state.
Preferably, from the starting to the time when the application program is started to run the networking, before the user allows the application program to start to run the networking, the application program is located in an application scene including:
the application program normally runs in the second electronic device, the application program is suspended by the second electronic device, and/or the application program is quitted by the second electronic device.
Preferably, the detecting whether the test data stores information characterizing networking of the application program includes:
detecting whether first information representing network operation is stored in the test data;
if the first information is stored in the test data, determining an operation log to which the first information belongs in the test data;
and detecting whether the operation log stores information representing the networking of the application program.
Preferably, the detecting whether the operation log stores information characterizing networking of the application program includes:
detecting whether second information representing networking operation is stored in the operation log;
if the second information is not stored in the operation log, determining that the information for representing the networking of the application program is not stored in the operation log;
and if the second information is stored in the operation log, if the packet name carried by the operation log indicates the application program, determining that the information representing the networking of the application program is stored in the operation log.
An application advance networking test apparatus, comprising:
the system comprises a test data acquisition unit, a test data acquisition unit and a data processing unit, wherein the test data acquisition unit is used for acquiring test data of an application program, and the test data comprises running information of the application program in each application scene from the starting running of the application program to before a user allows the application program to start running networking at this time;
the advanced networking detection unit is used for detecting whether information representing networking of the application program is stored in the test data;
and the advanced networking determining unit is used for determining that the application program has an advanced networking problem if the test data stores information for representing the networking of the application program.
Preferably, the test data acquiring unit is specifically configured to:
the method comprises the steps that based on first electronic equipment provided with an operating system debugging tool, system operation information of second electronic equipment provided with an application program in a test state is obtained; and when the application program is in an application scene before the application program is started and run to the condition that the user allows the application program to start and run the networking at the time, the second electronic equipment is in a test state.
Preferably, from the starting to the time when the application program is started to run the networking, before the user allows the application program to start to run the networking, the application program is located in an application scene including:
the application program normally runs in the second electronic device, the application program is suspended by the second electronic device, and/or the application program is quitted by the second electronic device.
Preferably, the advanced networking detection unit includes:
the first detection unit is used for detecting whether first information representing network operation is stored in the test data;
an operation log determining unit, configured to determine, if the first information is stored in the test data, an operation log to which the first information belongs in the test data;
and the second detection unit is used for detecting whether the operation log stores information representing the networking of the application program.
Preferably, the second detecting unit includes:
the second detection subunit is used for detecting whether the second information for representing networking operation is stored in the operation log or not;
a first determining unit, configured to determine that information representing networking of the application program is not stored in the operation log if the second information is not stored in the operation log;
and if the second information is stored in the operation log, if the packet name carried by the operation log indicates the application program, determining that information representing networking of the application program is stored in the operation log.
A server comprising a memory for storing a program and a processor that invokes the program, the program being for:
obtaining test data of an application program, wherein the test data comprises running information of the application program under each application scene from the starting running of the application program to the time before a user allows the application program to start running networking at this time;
detecting whether information representing the networking of the application program is stored in the test data;
if yes, determining that the application program has a problem of networking in advance.
A computer-readable storage medium having stored therein computer-executable instructions for performing the application networking-ahead testing method.
The invention provides a method, a device, a server and a storage medium for testing advanced networking of application programs, wherein the method comprises the following steps: acquiring test data of an application program, wherein the test data comprises running information of the application program under each application scene from the starting running of the application program to before a user allows the application program to start running networking at this time; and detecting whether the test data stores information for representing the networking of the application program, and if so, determining that the application program has a problem of networking in advance. The invention realizes the test of the advanced network condition of the application program and is convenient for solving the advanced networking problem of the application program in time.
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 embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a flowchart of an application advanced networking test method according to an embodiment of the present application;
fig. 2 is a schematic structural diagram of an application advanced networking test system according to an embodiment of the present application;
fig. 3 is a flowchart of a method for detecting whether information characterizing application networking is stored in test data according to an embodiment of the present disclosure;
fig. 4 is a flowchart of a method for detecting whether an operation log stores information characterizing networking of an application program for performing a network advance test according to an embodiment of the present disclosure;
fig. 5 is a schematic structural diagram of an application advanced networking test apparatus according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and 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 (b):
fig. 1 is a flowchart of an application advanced networking test method according to an embodiment of the present application;
as shown in fig. 1, the method includes:
s101, obtaining test data of the application program, wherein the test data comprises running information of the application program in each application scene from the starting running of the application program to before a user allows the application program to start running networking at this time;
in the embodiment of the application, if the application needs to be tested, the test data of the application needs to be obtained first, so as to determine whether the application has a problem of networking in advance based on the test data of the application.
Referring to fig. 2, a schematic structural diagram of an application advanced networking test system provided in the embodiment of the present application is shown, where the application advanced networking test system may be configured to obtain test data of an application, and may further determine whether an application has an advanced networking problem based on the obtained test data of the application.
As shown in fig. 2, the application advance networking test system includes: the network test system comprises a first electronic device 21 and a second electronic device 22 which is in communication connection with the first electronic device 21, wherein an operating system debugging tool 23 is installed on the first electronic device 21, and an application program 24 to be subjected to advanced networking test is installed on the second electronic device 22.
With reference to fig. 2, as a preferred mode of the embodiment of the present application, a mode of acquiring test data of an application by an application advanced networking test system may include: acquiring system running information of a second electronic device 22 provided with an application program 24 when the second electronic device is in a test state based on a first electronic device 21 provided with an operating system debugging tool 23; the second electronic device 22 is in a test state when the application program 24 is in an application scenario that starts up and runs until the user allows the application program 24 to start running the networking this time.
In the embodiment of the present application, when the application 24 in the second electronic device 22 is in an application scenario before the user allows the application to start and run networking this time, the second electronic device may be considered to be in a test state; the first electronic device 21 acquires system operation information of the second electronic device 22 when the second electronic device 22 is in a test state based on the operating system debug tool 23 (the acquired system operation information may be regarded as acquired test data of the application 24).
When the second electronic device is in the test state, the application program 24 in the second electronic device may have a plurality of different application scenarios. That is, the application 24 in the second electronic device may have a variety of different application scenarios from the time the application 24 is launched until the user allows the application 24 to launch the networking this time. For example, the application 24 may be in an application scenario of normal operation in the second electronic device, the application 24 may be in an application scenario of being suspended by the second electronic device, and/or the application 24 may be in an application scenario of being exited by the second electronic device.
In the embodiment of the application, after the application program is started to run, a mode of popping up a dialog box of "whether to allow networking" can be popped up, and a user confirms whether to allow the application program to start running networking at this time. If the user selects 'yes' in the 'whether networking is allowed' dialog box, confirming that the user allows the application program to start running networking at the time; if the user selects "no" in the "if networking is allowed" dialog, then it is confirmed that the user does not allow the application to start running networking this time.
For one startup operation of the application 24 in the second electronic device, if the user exits the application 24 after the application 24 is started and before the "networking enabled or not enabled" dialog box is not popped up yet, the application 24 may be in two application scenarios from the startup operation to before the user enables the application to start networking this time, one application scenario is an application scenario in which the application is in normal operation, and the other application scenario is an application scenario in which the application is exited by the second electronic device.
For one startup operation of the application program 24 in the second electronic device, if the application program 24 runs normally for a period of time from the startup operation, then is suspended by the second electronic device, then is resumed, and then pops up the "networking enabled" dialog box, and the user selects "no" in the "networking enabled" dialog box, it may be considered that the application program may be in two application scenarios from the startup operation to before the user enables the application program to start to run networking this time, one application scenario is an "application scenario in which the application program runs normally", and the other application scenario is an "application scenario in which the application program is suspended by the second electronic device".
For a start operation of the application program 24 in the second electronic device, if the application program 24 runs normally for a period of time from the start operation, then is suspended by the second electronic device, and then is resumed, and then the user exits the application program 24 before the "networking permission dialog box has not popped up," it may be considered that the application program may be in three application scenarios from the start operation to before the user allows the application program to start and run networking this time, one application scenario is an application scenario in which the application program is in normal operation, "another application scenario is an application scenario in which the application program is suspended by the second electronic device," and another application scenario is an application scenario in which the application program is exited by the second electronic device.
For convenience of understanding, the application program provided in the embodiment of the present application may be in several preferred manners before the application program is started and run until the user allows the application program to start and run networking this time, and the specific application scenario needs to be determined according to specific operations, which is not limited herein.
In the embodiment of the present application, in order to ensure the accuracy of the test result, the running information of the application program 24 may be made to cover, as much as possible, various application scenarios that the application program can be in from the start to the run until the user allows the application program to start to run the networking this time. That is, the test data of the application program obtained as much as possible includes: running information for each application scenario that the application may be in from the time the application is launched until the user allows the application to run the networking this time.
S102, detecting whether information representing application program networking is stored in the test data; if yes, go to step S103;
in the embodiment of the application, the test data of the application program to be subjected to the advanced networking test in the second electronic device is system operation information of the second electronic device when the application program in the second electronic device is started and operated to an application scene before a user allows the application program to start and operate networking at this time; therefore, ideally, the system operation information does not include information for characterizing the networking of the application programs; otherwise, if the system operation information includes information representing the networking of the application program, it indicates that the application program has a problem of networking in advance.
Further, in the method for testing advanced networking of application programs provided in the embodiment of the present application, the method further includes: if the information for representing the networking of the application program is not stored in the detection test data, the application program can be determined not to have the problem of networking in advance.
S103, determining that the application program has the problem of networking in advance.
Fig. 3 is a flowchart of a method for detecting whether information characterizing networking of application programs is stored in test data according to an embodiment of the present disclosure.
As shown in fig. 3, the method includes:
s301, detecting whether first information representing network operation is stored in the test data; if the first information is stored in the test data, executing step S302;
in the embodiment of the present application, it may be determined whether the test data stores the "first information" by searching for the keyword "first information" in the test data, and when the test data stores the "first information", step S302 is executed; if the test data does not store the first information, the application program can be determined not to have the problem of networking in advance.
As a preferred embodiment of the present application, the first information for characterizing the operation of the network located in the test data may be "network". Correspondingly, whether the keyword "network" is stored in the test data can be determined in a mode of searching the keyword "network" in the test data; if the test data stores "network", execute step 302; if the network is not stored in the test data, the application program can be determined to have no problem of networking in advance.
S302, determining an operation log of the first information in the test data;
in the embodiment of the application, the test data is composed of at least one operation log, and if it is determined that the first information is stored in the test data, the operation log to which the first information belongs in the test data needs to be determined.
S303, detecting whether the operation log stores information representing the networking of the application program.
In the embodiment of the application, if the information for characterizing the networking of the application program is not stored in each operation log containing the first information in the test data, it can be considered that the information for characterizing the networking of the application program is not stored in the test data; if there is an operation log storing information characterizing application program networking in each operation log of the test data including the first information, it may be considered that the test data stores the information characterizing application program networking.
Fig. 4 is a flowchart of a method for detecting whether an operation log stores information representing networking of an application program for performing a networking test in advance according to an embodiment of the present application.
As shown in fig. 4, the method includes:
s401, detecting whether second information representing networking operation is stored in an operation log; if the second information is not stored in the operation log, executing step S402; if the second information is stored in the operation log, executing step S403;
in the embodiment of the present application, after the operation log containing the first information is determined, it needs to be determined whether second information representing networking operation is stored in the operation log.
The first information can only represent network operation, but cannot represent that networking operation exists, and therefore after determining the operation log containing the first information in the test data, the operation log needs to be further confirmed based on the second information for representing networking operation to determine whether the information representing networking exists in the operation log.
In the embodiment of the application, after the operation log containing the first information is determined, a keyword "second information" can be searched for in the operation log, and if the operation log contains the keyword "second information", it is considered that information representing networking exists in the operation log; otherwise, the operation log is not considered to store information representing the networking of the application program for performing the advanced networking test.
As a preferred embodiment of the present application, the second information may be "Warning"; correspondingly, after the operation log containing the first information is determined, a keyword 'burning' can be searched in the operation log, and if the keyword 'burning' exists in the operation log, the operation log is considered to have information representing networking; if the keyword 'Warning' does not exist in the operation log, the operation log is considered to have no information for representing the networking of the application program for carrying out the advanced networking test.
S402, determining that the operation log does not store information for representing the networking of the application program for performing the advanced networking test;
s403, determining whether the packet name carried by the operation log indicates an application program for performing advanced networking test; if the packet name carried by the operation log indicates an application program for performing advanced networking test, executing step S404; if the packet name carried by the operation log does not indicate the application program for performing the advanced networking test, executing step S402;
s404, determining that the operation log stores information representing the networking of the application program for carrying out the advanced networking test.
In the embodiment of the present application, the system operation information of the second electronic device as the test data of the application may include, in addition to the operation information of the application, operation system operation information other than the operation information of the application, operation information of other applications, and the like, and therefore, even if it is confirmed that the information characterizing networking is stored in the operation log, it cannot be directly determined that the information characterizing networking of the application performing the advanced networking test is stored in the operation log.
In order to further determine whether the operation log containing the first information and the second information stores information representing the networking of the application program for performing the advanced networking test, the packet name of the operation log can be further judged, and if the packet name of the operation log indicates the application program for performing the advanced networking test, the operation log can be considered to store information representing the networking of the application program for performing the advanced networking test; if the packet name of the operation log does not indicate the application program for performing the advanced networking test, it may be determined that information representing networking of the application program for performing the advanced networking test is not stored in the operation log.
In order to facilitate understanding of the method for testing advanced networking of application programs provided by the present application, a preferred implementation of the method for testing advanced networking of application programs provided by the present application is now described with reference to fig. 2.
Firstly, installing an operating system debugging tool on first electronic equipment;
in the embodiment of the application, the operating system debugging tool may be an adb Android debugging Bridge, and the adb is called an Android Debug Bridge and is a debugging tool developed by Android.
The above is only a preferred mode of the operating system debugging tool provided in the embodiment of the present application, and the inventor may set the operating system debugging tool according to his own needs, which is not limited herein.
Secondly, installing an application program needing to be subjected to advanced networking test on second electronic equipment;
in the embodiment of the present application, the first electronic device may be a terminal, such as a computer, and the second electronic device may be a mobile terminal, such as a mobile phone. The first electronic device and the second electronic device are not the same electronic device.
The above is only a preferred mode of the first electronic device and the second electronic device provided in the embodiments of the present application, and the inventor may set specific contents of the first electronic device and the second electronic device according to his own needs, which is not limited herein.
And thirdly, connecting the second electronic equipment to the first electronic equipment through the USB, and opening the USB debugging.
Fourth, turn "run. exe" on the first electronic device;
and fifthly, inputting a storage address of the logcat log, such as an input command adb logcat > path \ file name.
Sixthly, repeatedly executing the process of starting the exit and/or restarting the process of the application program which needs to be subjected to the advanced networking test in the second electronic equipment for approximately ten times; it should be noted here that: and forbidding the user to allow the application program subjected to the advanced networking test to be networked, for example, after popping up a 'whether networking is allowed' dialog box in the application program subjected to the advanced networking test, forbidding the user to select 'yes' in the 'whether networking is allowed' dialog box so as to allow the application program to be networked.
Seventhly, obtaining a logcat log from the saved address, wherein the logcat log comprises at least one operation log, and searching a keyword 'network' in the logcat log; if at least one keyword 'network' is stored in the logcat log, respectively determining an operation log to which each 'network' belongs; acquiring an operation log in which a keyword 'warming' is stored from each determined operation log; if the target operation log exists in the obtained operation log (the packet name of the target operation log indicates the application program for performing the advanced networking test, namely the packet name of the target operation log can be the packet name of the application program for performing the advanced networking test), the application program for performing the advanced networking test is considered to have the advanced networking problem.
The invention provides a method for testing advanced networking of application programs, which comprises the following steps: acquiring test data of an application program, wherein the test data comprises running information of the application program in each application scene from the starting running of the application program to the time before a user allows the application program to start running networking at this time; and detecting whether information for representing the networking of the application program is stored in the test data, and if so, determining that the application program has the problem of networking in advance. The invention realizes the test of the advanced network condition of the application program and is convenient for solving the advanced networking problem of the application program in time.
Fig. 5 is a schematic structural diagram of an application networking-ahead testing apparatus according to an embodiment of the present application.
As shown in fig. 5, the apparatus includes:
a test data obtaining unit 51, configured to obtain test data of an application program, where the test data includes operation information of the application program in each application scenario from the start of the application program to before a user allows the application program to start and operate networking this time;
the advanced networking detection unit 52 is used for detecting whether information representing networking of the application program is stored in the test data;
and the advanced networking determining unit 53 is configured to determine that the application program has an advanced networking problem if the test data stores information representing networking of the application program.
In this embodiment of the present application, preferably, the test data obtaining unit is specifically configured to: the method comprises the steps that based on first electronic equipment provided with an operating system debugging tool, system running information of second electronic equipment provided with an application program in a test state is obtained; and when the application program is in an application scene before the application program is started and run to the condition that the user allows the application program to start and run the networking at the time, the second electronic equipment is in a test state.
In this embodiment of the present application, preferably, before the application program is started and run and the user allows the application program to start and run networking this time, the application scenario in which the application program is located includes: the application program is normally run in the second electronic device, the application program is suspended by the second electronic device, and/or the application program is exited by the second electronic device.
In this embodiment, preferably, the networking-in-advance detecting unit includes:
the first detection unit is used for detecting whether first information representing network operation is stored in the test data;
the operation log determining unit is used for determining the operation log of the first information in the test data if the first information is stored in the test data;
and the second detection unit is used for detecting whether the operation log stores information representing the networking of the application program.
In the embodiment of the present application, preferably, the second detection unit includes:
the second detection subunit is used for detecting whether the second information for representing the networking operation is stored in the operation log or not;
the first determining unit is used for determining that the operation log does not store information representing the networking of the application program if the second information is not stored in the operation log;
and the second determining unit is used for determining that the information for representing the networking of the application programs is stored in the operation log if the second information is stored in the operation log and if the packet name carried by the operation log indicates the application program.
Further, an embodiment of the present application further provides a server, where the server includes a memory and a processor, the memory is used to store a program, the processor calls the program, and the program is used to:
acquiring test data of the application program, wherein the test data comprises running information of the application program in each application scene from the starting running of the application program to the time before a user allows the application program to start running networking at this time;
detecting whether information representing application program networking is stored in the test data;
if yes, determining that the application program has an advance networking problem.
Alternatively, the detailed function and the extended function of the program may be described with reference to the following.
Further, an embodiment of the present application further provides a computer-readable storage medium, where computer-executable instructions are stored in the computer-readable storage medium, and the computer-executable instructions are used in the method for testing advanced networking of application programs.
For detailed description of the computer executable instructions stored in the storage medium provided in the embodiments of the present application, reference may be made to the foregoing embodiments, which are not described herein again.
The invention provides an advanced networking test device, a server and a storage medium for an application program, comprising: acquiring test data of an application program, wherein the test data comprises running information of the application program under each application scene from the starting running of the application program to before a user allows the application program to start running networking at this time; and detecting whether the test data stores information for representing the networking of the application program, and if so, determining that the application program has a problem of networking in advance. The invention realizes the test of the advanced network condition of the application program and is convenient to solve the advanced networking problem of the application program in time.
In this document, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The embodiments in the present description are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (8)

1. An advanced networking test method for an application program is characterized by comprising the following steps:
obtaining test data of an application program, wherein the test data comprises running information of the application program under each application scene from the starting running of the application program to the time before a user allows the application program to start running networking at this time;
detecting whether information for representing the networking of the application programs is stored in the test data or not, wherein the detecting comprises the following steps: detecting whether first information representing network operation is stored in the test data; if the first information is stored in the test data, determining an operation log to which the first information belongs in the test data; detecting whether information representing the networking of the application program is stored in the operation log;
the detecting whether the operation log stores information representing the networking of the application programs further comprises: detecting whether second information representing networking operation is stored in the operation log; if the second information is not stored in the operation log, determining that the information representing the networking of the application program is not stored in the operation log; if the second information is stored in the operation log, if the packet name carried by the operation log indicates the application program, determining that information representing networking of the application program is stored in the operation log;
if yes, determining that the application program has a problem of networking in advance.
2. The method of claim 1, wherein obtaining test data for an application comprises:
the method comprises the steps that based on first electronic equipment provided with an operating system debugging tool, system operation information of second electronic equipment provided with an application program in a test state is obtained; and when the application program is in an application scene before the application program is started and run to the condition that the user allows the application program to start and run the networking at the time, the second electronic equipment is in a test state.
3. The method according to claim 2, wherein the application scene in which the application is located from the start of the application to before the user allows the application to start and run networking at this time comprises:
the application program normally runs in the second electronic device, the application program is suspended by the second electronic device, and/or the application program is quitted by the second electronic device.
4. An application networking-ahead testing apparatus, comprising:
the system comprises a test data acquisition unit, a test data acquisition unit and a data processing unit, wherein the test data acquisition unit is used for acquiring test data of an application program, and the test data comprises running information of the application program in each application scene from the starting running of the application program to before a user allows the application program to start running networking at this time;
the advanced networking detection unit is used for detecting whether information representing networking of the application program is stored in the test data;
the advanced networking determining unit is used for determining that the application program has an advanced networking problem if the information for representing the networking of the application program is stored in the test data;
the advanced networking detection unit comprises: the first detection unit is used for detecting whether first information representing network operation is stored in the test data; an operation log determining unit, configured to determine, if the first information is stored in the test data, an operation log to which the first information belongs in the test data; the second detection unit is used for detecting whether the operation log stores information representing the networking of the application program;
the second detection unit further includes: the second detection subunit is used for detecting whether the second information for representing the networking operation is stored in the operation log or not; a first determining unit, configured to determine that information representing networking of the application program is not stored in the operation log if the second information is not stored in the operation log; and if the second information is stored in the operation log, if the packet name carried by the operation log indicates the application program, determining that information representing networking of the application program is stored in the operation log.
5. The apparatus according to claim 4, wherein the test data obtaining unit is specifically configured to:
the method comprises the steps that based on first electronic equipment provided with an operating system debugging tool, system operation information of second electronic equipment provided with an application program in a test state is obtained; and when the application program is in an application scene before the application program is started and run to the condition that the user allows the application program to start and run the networking at the time, the second electronic equipment is in a test state.
6. The apparatus of claim 5, wherein the application scene in which the application is located from the start of running to before the user allows the application to run networking at this time comprises:
the application program normally runs in the second electronic device, the application program is suspended by the second electronic device, and/or the application program is quitted by the second electronic device.
7. A server comprising a memory for storing a program and a processor for invoking the program, the program for:
obtaining test data of an application program, wherein the test data comprises running information of the application program under each application scene from the starting running of the application program to the time before a user allows the application program to start running networking at this time;
detecting whether information for representing the networking of the application programs is stored in the test data or not, wherein the detecting comprises the following steps: detecting whether first information representing network operation is stored in the test data; if the first information is stored in the test data, determining an operation log to which the first information belongs in the test data; detecting whether information representing the networking of the application program is stored in the operation log;
the detecting whether the operation log stores information representing networking of the application program further includes: detecting whether second information representing networking operation is stored in the operation log; if the second information is not stored in the operation log, determining that the information for representing the networking of the application program is not stored in the operation log; if the second information is stored in the operation log, if the packet name carried by the operation log indicates the application program, determining that information representing networking of the application program is stored in the operation log;
if yes, determining that the application program has an advance networking problem.
8. A computer-readable storage medium having stored thereon computer-executable instructions for performing the application pro-active networking test method of any of claims 1-3.
CN201811574037.XA 2018-12-21 2018-12-21 Application program advanced networking test method, device, server and storage medium Active CN109582586B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811574037.XA CN109582586B (en) 2018-12-21 2018-12-21 Application program advanced networking test method, device, server and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811574037.XA CN109582586B (en) 2018-12-21 2018-12-21 Application program advanced networking test method, device, server and storage medium

Publications (2)

Publication Number Publication Date
CN109582586A CN109582586A (en) 2019-04-05
CN109582586B true CN109582586B (en) 2022-07-22

Family

ID=65931346

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811574037.XA Active CN109582586B (en) 2018-12-21 2018-12-21 Application program advanced networking test method, device, server and storage medium

Country Status (1)

Country Link
CN (1) CN109582586B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112615762A (en) * 2020-12-17 2021-04-06 深圳市欢太科技有限公司 Application networking monitoring method, storage medium and equipment

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104809046B (en) * 2015-05-27 2018-01-16 广东欧珀移动通信有限公司 A kind of application program networking control method and application program networking control device
US10044719B2 (en) * 2016-01-29 2018-08-07 Zscaler, Inc. Client application based access control in cloud security systems for mobile devices
CN105791560B (en) * 2016-02-26 2019-06-04 广东欧珀移动通信有限公司 A kind of access data network-based control method and user terminal
CN107276796B (en) * 2017-06-07 2020-03-17 北京潘达互娱科技有限公司 Network detection method and device
CN108616656A (en) * 2018-04-08 2018-10-02 中国联合网络通信集团有限公司 Using the control method of networking, device, terminal and computer readable storage medium

Also Published As

Publication number Publication date
CN109582586A (en) 2019-04-05

Similar Documents

Publication Publication Date Title
CN109492378B (en) Identity verification method based on equipment identification code, server and medium
CN107656874B (en) Interface testing method and device, simulation baffle and system
CN108399132B (en) Scheduling test method, device and storage medium
CN106598835B (en) Application testing method, device and system
CN106020875B (en) Firmware update management method and device of embedded terminal
CN109582907B (en) Method, device and equipment for verifying integrity of webpage resources and readable storage medium
CN110955409B (en) Method and device for creating resources on cloud platform
CN109284147A (en) A kind of plug-in unit adaptation method and device
CN112860437B (en) Micro-service processing method and device
CN111931185A (en) Java anti-serialization vulnerability detection method and component
CN109582586B (en) Application program advanced networking test method, device, server and storage medium
CN112083851A (en) Interface positioning method and device for BIOS (basic input output System) configuration options, server and computer readable storage medium
CN110135163B (en) Security detection method, device and system based on target application
CN108897588B (en) Routing method and routing device for communication between modules
CN111966630B (en) File type detection method, device, equipment and medium
CN106569851B (en) Application program processing method and device
CN110955449B (en) Gray scale release method and device for client
CN108446144B (en) Application program starting method and device, terminal and storage medium
CN114546819A (en) Code processing method and device, electronic equipment and readable medium
CN108595335B (en) Test environment deployment method, deployment device and storage medium
CN110471828B (en) Operating system testing method, device and equipment thereof
CN105787359A (en) Course guarding method and device
CN106776050B (en) Multi-user process mutual exclusion method and device
CN112685063B (en) Feature library updating method, device, network equipment and readable storage medium
CN112558982B (en) Code detection method and device and computer equipment

Legal Events

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