CN106776323B - Application testing method and device - Google Patents

Application testing method and device Download PDF

Info

Publication number
CN106776323B
CN106776323B CN201611171571.7A CN201611171571A CN106776323B CN 106776323 B CN106776323 B CN 106776323B CN 201611171571 A CN201611171571 A CN 201611171571A CN 106776323 B CN106776323 B CN 106776323B
Authority
CN
China
Prior art keywords
terminal
recording
script
target
test
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
CN201611171571.7A
Other languages
Chinese (zh)
Other versions
CN106776323A (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.)
Guangzhou Kugou Computer Technology Co Ltd
Original Assignee
Guangzhou Kugou Computer 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 Guangzhou Kugou Computer Technology Co Ltd filed Critical Guangzhou Kugou Computer Technology Co Ltd
Priority to CN201611171571.7A priority Critical patent/CN106776323B/en
Publication of CN106776323A publication Critical patent/CN106776323A/en
Application granted granted Critical
Publication of CN106776323B publication Critical patent/CN106776323B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3684Test management for test design, e.g. generating new test cases

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 discloses an application testing method and device, and belongs to the field of automatic testing. The method comprises the following steps: when an application test instruction of a target application is detected, acquiring a plurality of script description information corresponding to the target application, wherein each script description information is used for describing a recording script for testing a corresponding function in the target application; when a selection instruction of a target recording script is detected, downloading the target recording script, wherein the target recording script is any one of a plurality of recording scripts; and testing the target application based on the target recording script. According to the embodiment of the invention, the downloaded recording script is played back for multiple times to repeat the test, and the target application does not need to be manually operated to record and obtain the recording script, so that the test flexibility is enhanced, and the test efficiency of the application is improved.

Description

Application testing method and device
Technical Field
The invention relates to the field of automatic testing, in particular to an application testing method and device.
Background
With the rapid development of electronic technology, more and more applications can be installed in a terminal, and the applications can provide various services for a user through a user interface. In order to ensure the stability of the application when providing services through the user interface, the application developer needs to test each function of the user interface. In the process of actual test, a large number of tests are usually required to ensure the stability, so that the mode of automatic test of equipment can be adopted to replace a manual mode for repeated test, the test time can be shortened, and the test efficiency is greatly improved.
At present, the method for testing the application by generally adopting an automatic testing mode of the equipment comprises the following steps: the user opens the target application to be tested installed on the test terminal, manually operates the target application, records the detected operation when the test terminal detects the operation on the target application to obtain a recorded script, and then plays back the recorded script for multiple times by the test terminal, namely repeatedly executes the recorded operation for multiple times, so as to realize the automatic test of the test terminal.
However, when the test terminal tests the target application, the target application needs to be manually operated to record the recorded script, and then the recorded script can be played back for multiple times to repeat the test, so that the flexibility is low, and the test efficiency of the application is reduced.
Disclosure of Invention
In order to solve the problems in the prior art, embodiments of the present invention provide an application testing method and apparatus. The technical scheme is as follows:
in one aspect, an application testing method is provided, and the method includes:
when an application test instruction of a target application is detected, acquiring a plurality of script description information corresponding to the target application, wherein each script description information is used for describing a recording script for testing a corresponding function in the target application;
when a selection instruction of a target recording script is detected, downloading the target recording script, wherein the target recording script is any one of a plurality of recording scripts, and the plurality of recording scripts are in one-to-one correspondence with the plurality of script description information;
and testing the target application based on the target recording script.
Optionally, after the obtaining of the multiple script description information corresponding to the target application, the method further includes:
when the selection instruction of the target recording script is not detected but the test recording instruction of the target application is detected, acquiring a terminal information list, wherein the terminal information list comprises a plurality of terminal identifications and other terminal identifications currently connected with each terminal;
when a selection instruction of a target terminal identification is detected, determining a recording script obtained by recording the operation process of the target application based on the target terminal, wherein the target terminal identification is any terminal identification displayed by the terminal information list;
and testing the target application based on the recorded script obtained by recording.
Optionally, the determining, based on the target terminal, a recording script obtained by recording the operation process of the target application includes:
when the target terminal identification is a first terminal identification, determining a recording script obtained by recording the operation process of the target application through a first terminal, wherein the first terminal is a terminal for detecting an application test instruction of the target application;
when the target terminal identification is a second terminal identification, the second terminal determines a recording script obtained by recording the operation process of the target application through remote control of the second terminal, wherein the second terminal identification is any one of the plurality of terminal identifications except the first terminal identification;
and when the target terminal identification is other terminal identifications currently connected with the second terminal, sending an operation recording prompt message to the second terminal to prompt a user corresponding to the second terminal to operate other terminals currently connected with the second terminal so as to record and obtain a recording script.
Optionally, the determining, by the first terminal, a recording script obtained by recording the operation process of the target application includes:
acquiring a first IP (Internet Protocol) address and a first port number, wherein the first IP address is an IP address used by a current connection network, and the first port number is a port number in an idle state at present;
sending a first test recording request, wherein the first test recording request carries the first IP address and the first port number;
and when a test recording response is received, determining a recording script obtained by recording the operation process of the target application.
Optionally, the determining, by the second terminal, a recording script obtained by recording the operation process of the target application by remotely controlling the second terminal includes:
acquiring the first IP address and the first port number;
sending a second test recording request, wherein the second test recording request carries the first IP address, the first port number and the second terminal identification;
and when a test recording response is received, the second terminal is remotely controlled, and the second terminal determines a recording script obtained by recording the operation process of the target application.
Optionally, the method further comprises:
when the target terminal identification is a first terminal identification, generating script description information corresponding to the recording script through the first terminal, and sending the recording script and the script description information corresponding to the recording script; alternatively, the first and second electrodes may be,
and when the target terminal identification is a second terminal identification, controlling the second terminal, generating script description information corresponding to the recording script by the second terminal, and sending the recording script and the script description information corresponding to the recording script.
In another aspect, an application testing apparatus is provided, the apparatus comprising:
the device comprises a first acquisition module, a second acquisition module and a third acquisition module, wherein the first acquisition module is used for acquiring a plurality of script description information corresponding to a target application when an application test instruction of the target application is detected, and each script description information is used for describing a recording script for testing a corresponding function in the target application;
the downloading module is used for downloading a target recording script when a selection instruction of the target recording script is detected, wherein the target recording script is any one of a plurality of recording scripts, and the plurality of recording scripts are in one-to-one correspondence with the plurality of script description information;
and the testing module is used for testing the target application based on the target recording script.
Optionally, the apparatus further comprises:
a second obtaining module, configured to obtain a terminal information list when a selection instruction of the target recording script is not detected but a test recording instruction of the target application is detected, where the terminal information list includes multiple terminal identifiers and other terminal identifiers currently connected to each terminal;
the determining module is used for determining a recording script obtained by recording the operation process of the target application based on the target terminal when a selection instruction of the target terminal identification is detected, wherein the target terminal identification is any terminal identification displayed by the terminal information list;
the test module is further used for testing the target application based on the recorded script obtained through recording.
Optionally, the determining module includes:
the first determining unit is used for determining a recording script obtained by recording the operation process of the target application through a first terminal when a selection instruction of a target terminal identifier is detected and the target terminal identifier is a first terminal identifier, wherein the first terminal is a terminal which detects an application test instruction of the target application;
a second determining unit, configured to determine, by a second terminal, a recording script obtained by recording an operation process of the target application by performing remote control on the second terminal when the target terminal identifier is the second terminal identifier, where the second terminal identifier is any one of the plurality of terminal identifiers except the first terminal identifier;
and the sending unit is used for sending an operation recording prompt message to the second terminal when the target terminal identifier is the other terminal identifier currently connected with the second terminal so as to prompt a user corresponding to the second terminal to operate the other terminal currently connected with the second terminal so as to record and obtain the recording script.
Optionally, the first determining unit includes:
the first acquiring subunit is configured to, when a selection instruction of a target terminal identifier is detected, acquire a first network protocol IP address and a first port number when the target terminal identifier is a first terminal identifier, where the first IP address is a network protocol IP address used by a currently connected network, and the first port number is a port number currently in an idle state;
the first sending subunit is configured to send a first test recording request, where the first test recording request carries the first IP address and the first port number;
and the first determining subunit is used for determining a recording script obtained by recording the operation process of the target application when the test recording response is received.
Optionally, the second determining unit includes:
a second obtaining subunit, configured to obtain the first IP address and the first port number when the target terminal identifier is a second terminal identifier;
a second sending subunit, configured to send a second test recording request, where the second test recording request carries the first IP address, the first port number, and the second terminal identifier;
and the second determining subunit is used for determining a recording script obtained by recording the operation process of the target application by the second terminal through remote control of the second terminal when the test recording response is received.
Optionally, the apparatus further comprises:
the first generation module is used for generating script description information corresponding to the recording script through the first terminal and sending the recording script and the script description information corresponding to the recording script when the target terminal identifier is the first terminal identifier; alternatively, the first and second electrodes may be,
and the second generation module is used for generating script description information corresponding to the recording script by the second terminal through controlling the second terminal when the target terminal identifier is the second terminal identifier, and sending the recording script and the script description information corresponding to the recording script.
The technical scheme provided by the embodiment of the invention has the following beneficial effects: in the embodiment of the invention, when the first terminal detects the application test instruction of the target application, the script description information corresponding to the target application can be obtained, and when the selection instruction of the target recording script is detected, the first terminal can directly download the target recording script stored by the test server without manually operating the target application to record and obtain the recording script, so that the first terminal can directly play back the downloaded recording script for multiple times to repeatedly test the target application, the test flexibility is further enhanced, and the manual operation is not required when the recording script is obtained, thereby improving the test efficiency of the application.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a diagram illustrating an application test system architecture according to an embodiment of the present invention;
FIG. 2 is a flow chart of an application testing method according to an embodiment of the present invention;
FIG. 3 is a flow chart of another application testing method provided by the embodiment of the invention;
FIG. 4A is a block diagram of an application testing apparatus according to an embodiment of the present invention;
FIG. 4B is a block diagram of another application testing apparatus provided in an embodiment of the present invention;
FIG. 4C is a block diagram of a determination module provided by embodiments of the present invention;
fig. 4D is a block diagram of a first determining unit provided by the embodiment of the present invention;
fig. 4E is a block diagram of a second determining unit provided by the embodiment of the present invention;
fig. 4F is a block diagram of a third application testing apparatus according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, embodiments of the present invention will be described in detail with reference to the accompanying drawings.
An embodiment of the present invention provides an application testing system, and referring to fig. 1, the system includes: a first terminal 001, a second terminal 002 and a test server 003. The first terminal 001 and the second terminal 002 are respectively communicated with the test server 003 through an HTTP (Hyper Text Transfer Protocol) link or a long link established by a websocket technology, wherein when the long link of the websocket is not established, the first terminal 001 and the second terminal 002 are respectively communicated with the test server 003 through the HTTP link, when the long link of the websocket is established, the first terminal 001 and the second terminal 002 are respectively communicated with the test server 003 through the websocket long link, and the first terminal 001 and the second terminal 002 are communicated with each other through the test server 003.
The first terminal 001 is configured to log in an application test webpage of the test server 003 through the first user account, download a recording script from the test server 003, play back the downloaded recording script to test the application to be tested, and determine the recording script obtained by recording the operation process of the application to be tested when receiving a test recording response sent by the test server 003. The second terminal 002 is configured to log in an application test webpage corresponding to the test server through the second user account, and determine a recording script obtained by recording an operation process of the application to be tested when the first terminal 001 performs remote control through the test server 003. The test server 003 is configured to respond to each operation performed by the first terminal 001 after logging in the application test web page, and to respond to each operation performed by the second terminal 002 after logging in the application test web page.
It should be noted that the first terminal 001 may be a terminal such as a mobile phone, a personal digital assistant, a computer, a tablet device, or the like; the second terminal 002 may also be a mobile phone, a personal digital assistant, a computer, a tablet device, or the like; the test server 003 may be one server or a server cluster including a plurality of servers.
The first terminal 001 may be connected to another terminal via a USB (Universal Serial Bus) to communicate with the other terminal, and the second terminal 002 may be connected to another terminal via a USB to communicate with the other terminal, where the other terminal may be a mobile phone, a personal digital assistant, a computer, a tablet device, or the like.
An embodiment of the present invention provides an application testing method, which is shown in fig. 2 and includes:
step 201: when an application test instruction of a target application is detected, a plurality of script description information corresponding to the target application is obtained, and each script description information is used for describing a recording script for testing a corresponding function in the target application.
Step 202: and when a selection instruction of the target recording script is detected, downloading the target recording script, wherein the target recording script is any one of a plurality of recording scripts, and the plurality of recording scripts are in one-to-one correspondence with the plurality of script description information.
Step 203: and testing the target application based on the target recording script.
In the embodiment of the invention, when the first terminal detects the application test instruction of the target application, the script description information corresponding to the target application can be obtained, and when the selection instruction of the target recording script is detected, the first terminal can directly download the target recording script stored by the test server without manually operating the target application to record and obtain the recording script, so that the first terminal can directly play back the downloaded recording script for multiple times to repeatedly test the target application, the test flexibility is further enhanced, and the manual operation is not required when the recording script is obtained, thereby improving the test efficiency of the application.
Optionally, after obtaining a plurality of script description information corresponding to the target application, the method further includes:
when the selection instruction of the target recording script is not detected but the test recording instruction of the target application is detected, acquiring a terminal information list, wherein the terminal information list comprises a plurality of terminal identifications and other terminal identifications currently connected with each terminal;
when a selection instruction of a target terminal identifier is detected, determining a recording script obtained by recording the operation process of a target application based on the target terminal, wherein the target terminal identifier is any terminal identifier displayed in a terminal information list;
and testing the target application based on the recorded script obtained by recording.
Optionally, determining, based on the target terminal, a recording script obtained by recording the operation process of the target application, where the recording script is obtained by:
when the target terminal identification is a first terminal identification, determining a recording script obtained by recording the operation process of the target application through a first terminal, wherein the first terminal is a terminal which detects an application test instruction of the target application;
when the target terminal identification is a second terminal identification, the second terminal is remotely controlled, and a recording script obtained by recording the operation process of the target application is determined by the second terminal, wherein the second terminal identification is any one of a plurality of terminal identifications except the first terminal identification;
and when the target terminal identification is other terminal identifications currently connected with the second terminal, sending an operation recording prompt message to the second terminal to prompt a user corresponding to the second terminal to operate other terminals currently connected with the second terminal so as to record and obtain the recording script.
Optionally, determining, by the first terminal, a recording script obtained by recording the operation process of the target application, where the recording script is obtained by recording the operation process of the target application, includes:
acquiring a first network protocol IP address and a first port number, wherein the first IP address is a network protocol IP address used by a current connection network, and the first port number is a port number in an idle state at present;
sending a first test recording request, wherein the first test recording request carries a first IP address and a first port number;
and when a test recording response is received, determining a recording script obtained by recording the operation process of the target application.
Optionally, the determining, by the second terminal, a recording script obtained by recording an operation process of the target application by remotely controlling the second terminal includes:
acquiring a first IP address and a first port number;
sending a second test recording request, wherein the second test recording request carries the first IP address, the first port number and the second terminal identification;
and when a test recording response is received, the second terminal is remotely controlled, and the second terminal determines a recording script obtained by recording the operation process of the target application.
Optionally, the method further comprises:
when the target terminal identification is a first terminal identification, generating script description information corresponding to the recording script through the first terminal, and sending the recording script and the script description information corresponding to the recording script; alternatively, the first and second electrodes may be,
and when the target terminal identification is the second terminal identification, the second terminal is controlled to generate script description information corresponding to the recording script, and the recording script and the script description information corresponding to the recording script are sent.
All the above optional technical solutions can be combined arbitrarily to form an optional embodiment of the disclosure, which is not described in detail in the embodiments of the present invention.
An embodiment of the present invention provides an application testing method, and referring to fig. 3, the method includes:
step 301: when an application test instruction of a target application is detected, a plurality of script description information corresponding to the target application is obtained, and each script description information is used for describing a recording script for testing a corresponding function in the target application.
The method for the first terminal to obtain the multiple script description information corresponding to the target application may be the following two methods.
The first mode is as follows: the method includes the steps that an application test request of a target application is sent to a test server, the application test request can include a target application identifier, when the test server receives the application test request of the target application, a plurality of script description information corresponding to the target application can be obtained from a corresponding relation between the stored application identifier and the script description information based on the target application identifier, the obtained script description information is sent to a first terminal, and the first terminal receives the script description information.
The second mode is as follows: and acquiring a plurality of script description information corresponding to the stored target application from the local. The script description information corresponding to the target application stored in the first terminal may be obtained from the test server in advance, and the first terminal may maintain synchronous update of the script information with the test server when the first terminal is connected to the network, so as to ensure that the script description information corresponding to the target application stored in the first terminal is the latest updated script description information of the test server.
It should be noted that the application test instruction of the target application is used to instruct to test the target application, and the application test instruction of the target application may be triggered by a user through a specified operation, where the specified operation may be a click operation, a sliding operation of a preset track, a voice operation, and the like on an application test option of the target application in the current display interface.
In addition, the script description information is used for describing the recording script for testing the corresponding function in the target application. For example, the target application may be a dog-cool music, the corresponding function in the target application may be a music downloading function, and the recording script may be a music downloading script, and accordingly, the script description information may be "dog-cool music: download music ".
Furthermore, the first terminal and the second terminal mentioned in the following steps can both establish a connection with the test server through an HTTP link by logging in an application test web page of the test server, and in the page of the application test web page, an operation bar, a recorded code display area, a playback log printing area, and the like can be displayed, wherein the operation bar can be used for displaying recording-related options, the recorded code display area can be used for displaying recorded codes of recorded scripts in real time, and the playback log printing area can be used for displaying records of playback recorded scripts and displaying options for printing the records.
In addition, after acquiring the multiple script description information corresponding to the target application from the test server, the first terminal may further display the multiple script description information, so that the user may obtain the self-selectable script according to the multiple script description information, and thus select the self-required recording script from the multiple recording scripts corresponding to the target application to test the target application.
Step 302: and when a selection instruction of the target recording script is detected, downloading the target recording script, wherein the target recording script is any one of a plurality of recording scripts, and the plurality of recording scripts are in one-to-one correspondence with the plurality of script description information.
It should be noted that the selection instruction of the target recording script is used to select the target recording script from the recording scripts corresponding to the script description information, and the selection instruction of the target recording script may be triggered by a user through a specified operation, where the specified operation may be a click operation on a target recording script option, a sliding operation on a preset track, a voice operation, and the like.
In addition, the plurality of recording scripts corresponding to the target application stored in the test server may be recording scripts uploaded by other terminals connected to the test server before the current time, where the process of recording scripts by other terminals connected to the test server before the current time is similar to the process of recording scripts by the first terminal through the target terminal in step 305 described below.
Step 303: and testing the target application based on the target recording script.
The first terminal performs multiple playback on the downloaded target recording script, that is, repeatedly executes the operation process recorded by the target recording script for multiple times, so as to test the target application installed in the first terminal, and thus, a user corresponding to the first terminal can determine the stability of the target application user interface when providing services. In practical application, when a user corresponding to the first terminal needs to test a target application installed in another terminal, the target recording script can be sent to the another terminal through the first terminal, so that the another terminal can play back the target recording script for multiple times after receiving the target recording script, and the target application installed in the another terminal can be tested.
Step 304: and when the selection instruction of the target recording script is not detected but the test recording instruction of the target application is detected, acquiring a terminal information list, wherein the terminal information list comprises a plurality of terminal identifications and other terminal identifications currently connected with each terminal.
When the first terminal detects a test recording instruction of the target application, a test recording request of the target application can be sent to the test server, and when the test server receives the test recording request of the target application, the stored terminal information list is sent to the first terminal, and the first terminal displays the terminal information list.
When the user does not find the required recording script from the script description information displayed by the first terminal, the user can trigger a test recording instruction to the first terminal, so that the user can record the recording script of the target application. Therefore, when the first terminal does not detect the selection instruction of the target recording script but detects the test recording instruction of the target application, that is, when the user selects the self recording script instead of selecting the recording script provided by the test server, the first terminal may send the test recording request of the target application to the test server, when the test server receives the test recording request of the target application, the stored terminal information list may be sent to the first terminal, and the first terminal may display the terminal information list after receiving the test recording request, so that the user may select one terminal from the terminal information list for recording.
It should be noted that the test server may store the terminal identifiers of all currently connected terminals and the terminal identifiers of other terminals connected to all terminals in the terminal information list, and update the terminal information list in real time, so as to send the terminal information list to the first terminal when receiving the test recording request of the target application sent by the first terminal.
In addition, the test recording instruction of the target application is used for indicating that the recording of the target application is performed to obtain the recording script, and the test recording instruction of the target application can be triggered by a user through a specified operation, where the specified operation may be a click operation on a test recording option of the target application, a sliding operation of a preset track, a voice operation, and the like.
Moreover, the terminal identifier is used to uniquely identify the terminal currently connected to the test server, for example, the terminal identifier may be a name and a model of the terminal, information obtained by combining the name and the model of the terminal in a preset manner, and the like.
Step 305: when a selection instruction of a target terminal identification is detected, a recording script obtained by recording the operation process of the target application is determined based on the target terminal, wherein the target terminal identification is any terminal identification displayed in a terminal information list.
Because the terminal information list includes a plurality of terminal identifiers and other terminal identifiers currently connected to each terminal, and the plurality of terminal identifiers are terminal identifiers currently connected to the test server, the target terminal identifier may be the first terminal identifier, other terminal identifiers currently connected to the first terminal, the second terminal identifier, or other terminal identifiers currently connected to the second terminal, that is, the target terminal may be the first terminal, other terminals currently connected to the first terminal, the second terminal, or other terminals currently connected to the second terminal. The first terminal identifier is an identifier of the first terminal, the second terminal is any one of the plurality of terminals except the first terminal, and correspondingly, the second terminal identifier is any one of the plurality of terminal identifiers except the first terminal identifier. The first terminal can be currently connected with other terminals through the USB, and similarly, the second terminal can also be currently connected with other terminals through the USB.
Since the method for determining the recorded script obtained by recording the operation process of the target application based on the target terminal by the first terminal is different when the target terminals are different, the following possible situations are described below for the method for determining the recorded script obtained by recording the operation process of the target application based on the target terminal by the first terminal:
the first possible scenario: and when the target terminal identification is the first terminal identification, determining a recording script obtained by recording the operation process of the target application through the first terminal.
When the target terminal identification is a first terminal identification, the first terminal acquires a first IP address and a first port number, wherein the first IP address is an IP address used by a current connection network, and the first port number is a port number in an idle state at present; sending a first test recording request to a test server, wherein the first test recording request carries a first IP address and a first port number; and when a test recording response sent by the test server is received, determining a recording script obtained by recording the operation process of the target application.
The first terminal acquires a first IP address and a first port number, and then can send a first test recording request to the test server; when the test server receives the first test recording request, a websocket long link can be established with the first terminal through a websocket technology based on a first IP address and a first port number carried in the first test recording request, and at the moment, the first terminal and the test server can communicate through the established websocket long link; after the websocket long link is established, the first terminal records the operation process of the target application, namely, records the position corresponding to the detected operation executed on the target application and the target application option triggered by the operation, and generates a recording code in a preset format based on the recorded position and the target application option; pushing the recorded codes to a test server in real time through a websocket long link between the test server and the record code; the test server can refresh the application test webpage when receiving the recording code sent by the first terminal, and then the first terminal displays the refreshed application test webpage, so that a user using the first terminal at present can obtain the recording code of the first terminal in time; and stopping recording when the first terminal detects a recording stopping instruction of the target application, so as to obtain a recording script comprising the recording code.
In a first possible case, the first terminal and the test server may establish a connection through the first IP address and the first port number, so that when the first terminal records by itself, data such as a code may be synchronously recorded with the test server.
Further, when the first terminal detects a recording stopping instruction of the target application, a long-chain connection and disconnection request can be sent to the test server at the same time, so that the test server disconnects the websocket long link with the first terminal when receiving the long-chain connection and disconnection request. After the test server disconnects the websocket long link with the first terminal, the first terminal still logs in the application test webpage, so that the test server and the first terminal can still continue to communicate through the HTTP link.
Further, when the target terminal identifier is the first terminal identifier, script description information corresponding to the recording script may be generated by the first terminal, and the recording script and the script description information corresponding to the recording script may be sent to the test server, so that the test server stores the recording script and the description information corresponding to the recording script, and thus, other terminals connected to the test server may obtain the script recorded by the first terminal from the test server, so as to implement sharing of the recording script.
The first terminal generates script description information corresponding to a recording script in a preset generation format based on the recording script obtained by recording the operation process of the target application, sends the recording script and the script description information corresponding to the recording script to the test server through a websocket long chain of the test server, and the test server receives and stores the recording script sent by the first terminal and the script description information corresponding to the recording script.
For example, the target application may be a cool dog music, the corresponding function in the target application may be a music downloading function, and the preset generation format may be "application name: and applying the corresponding function to be tested ", the first terminal records the recording script obtained based on the music downloading operation process of the cool dog music application, and the generated script description information can be' cool dog music: download music ".
The second possible scenario: and when the target terminal identification is the first connection terminal identification, sending a recording request to the first connection terminal, and determining a recording script obtained by recording the operation process of the target application through the first connection terminal, wherein the first connection terminal is any one of other terminals currently connected with the first terminal.
The first terminal acquires a first IP address and a first port number, and then can send a first test recording request to the test server; when the test server receives the first test recording request, a websocket long link can be established with the first terminal through a websocket technology based on a first IP address and a first port number carried in the first test recording request, and at the moment, the first terminal and the test server can communicate through the established websocket long link; after the websocket long link is established, the first terminal sends a recording request to the first connection terminal; after the first connection terminal receives the recording request, recording the operation process of the target application, and sending a recording code obtained by recording to the first terminal; when the first terminal receives the recording code, the recording code can be pushed to the test server in real time through a websocket long link between the first terminal and the test server, the test server can refresh an application test webpage when receiving the recording code sent by the first terminal, and then the refreshed application test webpage is displayed by the first terminal, so that a user using the first terminal at present can check the recording code of the first terminal in time; when the first terminal detects a recording stopping instruction of a target application, sending a recording stopping request to the first connection terminal; and stopping recording when the first connecting terminal receives the recording stopping request, so that the first terminal obtains the recording script comprising the recording code.
In this embodiment, the implementation manner of the recording code obtained by recording the operation process of the target application by the first terminal is the same as the implementation manner of the recording code obtained by recording the operation process of the target application by the first terminal in the first possible situation, which is not described herein again.
Optionally, when the first connection terminal is a mobile phone equipped with an Android system, the mobile phone may start an ADB (Android Debug Bridge) of the mobile phone through user triggering when the mobile phone is connected to the first terminal through a USB, so as to implement the steps of receiving a recording request, sending a recording code, and the like in the implementation process through an ADB function of the mobile phone.
In addition, when the first terminal detects a recording stopping instruction of the target application, a long-link disconnection request may also be sent to the test server, so that the test server disconnects the websocket long link with the first terminal, and then the test server and the first terminal may continue to communicate through the HTTP link.
A third possible scenario: when the target terminal identification is a second terminal identification, the second terminal determines a recording script obtained by recording the operation process of the target application through remote control of the second terminal;
when the target terminal identification is a second terminal identification, the first terminal acquires a first IP address and a first port number; sending a second test recording request to the test server, wherein the second test recording request carries the first IP address, the first port number and the second terminal identification; and when a test recording response sent by the test server is received, the second terminal is remotely controlled through the test server, and the second terminal determines a recording script obtained by recording the operation process of the target application.
The first terminal acquires the first IP address and the first port number, and then can send a second test recording request to the test server; when the test server receives the second test recording request, the second test recording request can be sent to the second terminal according to the second terminal identifier; the second terminal receives and displays the second test recording request, and then sends a test recording agreement message to the test server when detecting the test recording agreement operation, wherein the test recording agreement message carries a second IP address and a second port number, the second IP address is an IP address used by the second terminal for connecting with the network currently, and the second port number is a port number of the second terminal in an idle state currently; when receiving the test recording agreement message, the test server sends a test recording response to the first terminal, establishes a websocket long link with the first terminal through a websocket technology based on the first IP address and the first port number, and establishes a websocket long link with the second terminal through the websocket technology based on the second IP address and the second port number; when the first terminal receives the test recording response, the second terminal can be remotely controlled through the test server, namely the second terminal is remotely controlled through the websocket long link respectively established between the test server and the first terminal and between the test server and the second terminal; the second terminal records the operation process of the target application to obtain a recorded code, sends the recorded code to the first terminal in real time through websocket long links respectively established between the test server and the first terminal and the second terminal, and stops recording when a recording stopping instruction of the target application is detected, so that a recording script comprising the recorded code is obtained and sent to the first terminal.
In this embodiment, the implementation manner of the recording code obtained by recording the operation process of the target application by the second terminal is the same as the implementation manner of the recording code obtained by recording the operation process of the target application by the first terminal in the first possible situation, which is not described herein again.
In a second possible case, the first terminal and the test server may establish a connection through the first IP address and the first port number, and the second terminal and the test server may establish a connection through the second IP address and the second port number, so that when the first terminal records through the second terminal, data such as codes and the like may be synchronously recorded with the test server.
It should be noted that, since the target application may not be installed in the second terminal, after the first terminal performs remote control on the second terminal, the first terminal may install the target application in the second terminal through the remote control, and then record by the second terminal, and then when the second terminal finishes recording, the first terminal may again unload the target application installed in the second terminal through the remote control, so that normal use of the second terminal is not affected.
In addition, when the second terminal detects a recording stopping instruction of the target application, a long-chain disconnection request may also be sent to the test server, so that the test server disconnects the websocket long links between the first terminal and the second terminal, and then the test server may continue to communicate with the first terminal and the second terminal through the HTTP links.
Further, when the target terminal identifier is the second terminal identifier, the first terminal may control the second terminal, and the second terminal generates script description information corresponding to the recording script, and sends the recording script and the script description information corresponding to the recording script to the test server, so that the test server stores the recording script and the description information corresponding to the recording script, and thus, other terminals connected to the test server may obtain the script recorded by the first terminal through the second terminal from the test server, so as to implement sharing of the recording script.
The first terminal is respectively connected with the websocket long links of the first terminal and the second terminal through the test server to control the second terminal, so that the second terminal generates script description information corresponding to a recording script in a preset format based on the recording script obtained by the operation process of the target application, and sends the recording script and the script description information corresponding to the recording script to the test server, and when the test server receives the recording script sent by the second terminal and the script description information corresponding to the recording script, the test server stores the recording script and the script description information corresponding to the recording script locally.
Further, after the second terminal receives the second test recording request, when detecting that the test recording operation is rejected, sending a test recording rejection message to the test server; when the test server receives the test recording rejection message, sending a test recording rejection response to the first terminal; when the first terminal receives the response of refusing to test and record, the terminal information list is displayed again, so that when a selection instruction of the other terminal identification except the second terminal of the terminal information list is detected, a test recording request is sent to the other terminal through the test server until a recording script obtained by recording the operation process of the target application is determined through any terminal in the terminal information list.
A fourth possible scenario: and when the target terminal identification is a second connection terminal identification, sending an operation recording prompt message to the second terminal to prompt a user corresponding to the second terminal to operate other terminals currently connected with the second terminal so as to record and obtain a recording script, wherein the second connection terminal is any one of the other terminals currently connected with the second terminal.
When the target terminal identification is a second connection terminal identification, the first terminal acquires a first IP address and a first port number; sending a third test recording request and an operation recording prompt message to the test server, wherein the third test recording request carries the first IP address, the first port number and the second terminal identification, and the operation recording prompt message comprises the operation which needs to be executed on the second connection terminal by a user corresponding to the second terminal; and when a test recording response sent by the test server is received, determining a recording script obtained by recording the operation process of the target application through the second connection terminal.
The first terminal acquires the first IP address and the first port number, and then can send a third test recording request and an operation recording prompt message to the test server; when the test server receives the third test recording request and the operation recording prompt message, the third test recording request and the operation recording prompt message can be sent to the second terminal according to the second terminal identifier; the second terminal receives and displays the third test recording request and the operation recording prompt message, and then sends a test recording agreement message to the test server when detecting that the test recording agreement operation is agreed, wherein the test recording agreement message carries a second IP address and a second port number, the second IP address is an IP address used by the second terminal in the current connection network, and the second port number is a port number of the second terminal in the idle state; when receiving the test recording agreement message, the test server sends a test recording response to the first terminal, establishes a websocket long link with the first terminal through a websocket technology based on the first IP address and the first port number, and establishes a websocket long link with the second terminal through the websocket technology based on the second IP address and the second port number; when the first terminal receives the test recording response, the second terminal can be remotely controlled through the test server, namely the second terminal is remotely controlled through the websocket long link respectively established between the test server and the first terminal and between the test server and the second terminal; the second terminal records the operation process of the target application through the second connecting terminal to obtain a recorded code, and the recorded code is sent to the first terminal in real time through websocket long links respectively established between the second terminal and the first terminal through the test server; when the second terminal detects a recording stopping instruction of the target application, sending a recording stopping request to the second connection terminal; stopping recording when the second connecting terminal receives the recording stopping request, so as to obtain a recording script comprising a recording code; and the first terminal receives the recording script sent by the second connection terminal through the second terminal and the test server.
In a second possible case, the implementation manner of the recording code obtained by recording the operation process of the target application by the second terminal through the second connection terminal is the same as the implementation manner of the recording code obtained by recording the operation process of the target application by the first terminal through the first connection terminal, which is not repeated herein in this embodiment.
It should be noted that, because the target application may not be installed in the second connection terminal, the operation recording prompting message sent by the first terminal may include an operation of downloading and uninstalling the target application, in addition to the recording operation that the user corresponding to the second terminal needs to perform on the target application. The second terminal can display the operation recording prompt message in a text format, so that a user corresponding to the second terminal can know which recording operations need to be performed after seeing the operation recording prompt message.
In addition, when the second terminal detects a recording stopping instruction of the target application, a long-chain disconnection request may also be sent to the test server, so that the test server disconnects the websocket long links between the first terminal and the second terminal, and then the test server may continue to communicate with the first terminal and the second terminal through the HTTP links.
Further, after the second terminal receives the third test recording request and the operation recording prompt message, when the test recording rejection operation is detected, the test recording rejection message is sent to the test server; when the test server receives the test recording rejection message, sending a test recording rejection response to the first terminal; when the first terminal receives the response of refusing to test and record, the terminal information list is displayed again, so that when a selection instruction of the other terminal identification except the second terminal of the terminal information list is detected, a test recording request is sent to the other terminal through the test server until a recording script obtained by recording the operation process of the target application is determined through any terminal in the terminal information list.
Further, in the process of recording the script by the first terminal, when a selection operation of the target unit code identifier is detected, the target unit code may be obtained from the test server, and inserted into the currently displayed recording code, where the target unit code is any unit code in a unit code list of the test server, and the unit code is a recording code stored by the test server and determined by one or more operations performed on the target application. The unit code may be a unit code that is uploaded to the test server by a user of a terminal connected to the test server before the current time and stored after being manually checked by an administrator of the test server, and the test server may display an identifier, functional description information, and the like of the stored unit code in a unit code list of an application test web page, thereby providing the stored unit code for the user connected to the test server to use. Similarly, in the process that the first terminal records the script through the second terminal or another terminal currently connected with the second terminal, any unit code can be inserted into the currently displayed recording code.
In the above four possible situations, the first terminal may record the operation process of the target application through itself, the terminal connected to itself, the second terminal, and the terminal connected to the second terminal, respectively, so as to obtain the recording script, that is, the first terminal is not limited to obtaining the recording script only through itself, so that the problem that the first terminal itself is not suitable for recording can be avoided, and the flexibility of the test can be enhanced.
Step 306: and testing the target application based on the recorded script obtained by recording.
The first terminal performs multiple playback on the recorded script, that is, repeatedly executes the operation process recorded by the recorded script for multiple times, so as to test the target application installed in the first terminal, and thus, a user corresponding to the first terminal can determine the stability of the target application user interface when providing service. In practical application, when a user corresponding to the first terminal needs to test a target application installed in another terminal, the recorded script can be sent to the other terminal through the first terminal, so that the other terminal can play back the recorded script for multiple times after receiving the recorded script, and the target application installed in the other terminal can be tested.
When the user corresponding to the first terminal does not find the required recording script from the test server, the first terminal may record the script through the steps 304 to 306 to test the target application, and then the user corresponding to the first terminal may upload the script recorded by the user to the test server as a shared resource, so that the test server may serve as a script sharing platform to provide a plurality of recording scripts for a plurality of users, and the users may share the resource.
In the embodiment of the invention, when the first terminal detects the application test instruction of the target application, the script description information corresponding to the target application can be obtained, and when the selection instruction of the target recording script is detected, the first terminal can directly download the target recording script stored by the test server without manually operating the target application to record and obtain the recording script, so that the first terminal can directly play back the downloaded recording script for multiple times to repeatedly test the target application, the test flexibility is further enhanced, and the manual operation is not required when the recording script is obtained, thereby improving the test efficiency of the application.
Referring to fig. 4A, an embodiment of the present invention provides an application testing apparatus 400, which includes: a first obtaining module 401, a downloading module 402 and a testing module 403.
A first obtaining module 401, configured to obtain, when an application test instruction of a target application is detected, multiple script description information corresponding to the target application, where each script description information is used to describe a recording script for testing a corresponding function in the target application;
a downloading module 402, configured to download a target recording script when a selection instruction of the target recording script is detected, where the target recording script is any one of multiple recording scripts, and the multiple recording scripts are in one-to-one correspondence with multiple script description information;
the testing module 403 tests the target application based on the target recording script.
Optionally, referring to fig. 4B, the apparatus further comprises:
a second obtaining module 404, configured to obtain a terminal information list when a selection instruction of the target recording script is not detected but a test recording instruction of the target application is detected, where the terminal information list includes multiple terminal identifiers and other terminal identifiers currently connected to each terminal;
a determining module 405, configured to determine, based on a target terminal, a recording script obtained by recording an operation process of a target application when a selection instruction of a target terminal identifier is detected, where the target terminal identifier is any terminal identifier displayed in a terminal information list;
the testing module 403 is further configured to test the target application based on the recorded script.
Optionally, referring to fig. 4C, the determining module 405 includes:
a first determining unit 4051, configured to determine, when a selection instruction of a target terminal identifier is detected and when the target terminal identifier is a first terminal identifier, a recording script obtained by recording an operation process of a target application by using a first terminal, where the first terminal is a terminal that detects an application test instruction of the target application;
a second determining unit 4052, configured to determine, by performing remote control on the second terminal, a recording script obtained by recording an operation process of the target application, where the second terminal identifier is any one of the plurality of terminal identifiers except the first terminal identifier, when the target terminal identifier is the second terminal identifier;
the sending unit 4053 is configured to send an operation recording prompting message to the second terminal when the target terminal identifier is another terminal identifier currently connected to the second terminal, so as to prompt a user corresponding to the second terminal to operate another terminal currently connected to the second terminal so as to obtain a recording script by recording.
Alternatively, referring to fig. 4D, the first determination unit 4051 includes:
a first obtaining subunit 40511, configured to, when a selection instruction of a target terminal identifier is detected, obtain a first network protocol IP address and a first port number when the target terminal identifier is a first terminal identifier, where the first IP address is a network protocol IP address used by a currently connected network, and the first port number is a port number currently in an idle state;
a first sending subunit 40512, configured to send a first test recording request, where the first test recording request carries a first IP address and a first port number;
the first determining subunit 40513 is configured to determine, when the test recording response is received, a recording script obtained by recording the operation process of the target application.
Alternatively, referring to fig. 4E, the second determination unit 4052 includes:
a second obtaining subunit 40521, configured to obtain the first IP address and the first port number when the target terminal identifier is the second terminal identifier;
a second sending subunit 40522, configured to send a second test recording request, where the second test recording request carries the first IP address, the first port number, and the second terminal identifier;
and the second determining subunit 40523 is configured to, when the test recording response is received, determine, by performing remote control on the second terminal, a recording script obtained by recording the operation process of the target application.
Optionally, referring to fig. 4F, the apparatus further comprises:
a first generating module 406, configured to generate, by the first terminal, script description information corresponding to the recording script and send the recording script and the script description information corresponding to the recording script when the target terminal identifier is the first terminal identifier; alternatively, the first and second electrodes may be,
the second generating module 407 is configured to, when the target terminal identifier is the second terminal identifier, control the second terminal to generate script description information corresponding to the recording script, and send the recording script and the script description information corresponding to the recording script.
In summary, in the embodiment of the present invention, when the first terminal detects an application test instruction of the target application, the multiple script description information corresponding to the target application may be obtained, and when a selection instruction of the target recording script is detected, the first terminal may directly download the target recording script stored by the test server, without manually operating the target application, to record the target recording script, so that the first terminal may directly perform multiple playbacks on the downloaded recording script to repeatedly test the target application, thereby enhancing the flexibility of the test, and since the manual operation is not required when the recording script is obtained, the testing efficiency of the application is improved.
It should be noted that: in practical applications, the function distribution may be completed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the apparatus for application testing and the method for application testing provided by the above embodiments belong to the same concept, and specific implementation processes thereof are detailed in the method embodiments and will not be described herein again.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.

Claims (8)

1. An application testing method, the method comprising:
when an application test instruction of a target application is detected, acquiring a plurality of script description information corresponding to the target application, wherein each script description information is used for describing a recording script for testing a corresponding function in the target application;
when a selection instruction of a target recording script is detected, downloading the target recording script, wherein the target recording script is any one of a plurality of recording scripts, and the plurality of recording scripts are in one-to-one correspondence with the plurality of script description information;
testing the target application based on the target recording script;
when the selection instruction of the target recording script is not detected but the test recording instruction of the target application is detected, acquiring a terminal information list, wherein the terminal information list comprises a plurality of terminal identifications and other terminal identifications currently connected with each terminal;
when a selection instruction of a target terminal identification is detected, when the target terminal identification is a first terminal identification, determining a recording script obtained by recording the operation process of the target application through the first terminal, wherein the first terminal is a terminal which detects an application test instruction of the target application; when the target terminal identification is a second terminal identification, the second terminal determines a recording script obtained by recording the operation process of the target application through remote control of the second terminal, wherein the second terminal identification is any one of the plurality of terminal identifications except the first terminal identification; when the target terminal identification is other terminal identifications currently connected with the second terminal, sending an operation recording prompt message to the second terminal to prompt a user corresponding to the second terminal to operate other terminals currently connected with the second terminal so as to record and obtain a recording script, wherein the target terminal identification is any terminal identification displayed in the terminal information list;
and testing the target application based on the recorded script obtained by recording.
2. The method of claim 1, wherein determining, by the first terminal, the recording script recorded during the operation of the target application comprises:
acquiring a first network protocol IP address and a first port number, wherein the first network protocol IP address is a network protocol IP address used by a first terminal in a current connection network, and the first port number is a port number of the first terminal in an idle state;
sending a first test recording request, wherein the first test recording request carries the first network protocol IP address and the first port number;
and when a test recording response is received, determining a recording script obtained by recording the operation process of the target application.
3. The method of claim 1, wherein the determining, by the second terminal, the recorded script recorded for the operational procedure of the target application by remotely controlling the second terminal comprises:
acquiring a first network protocol IP address and a first port number, wherein the first network protocol IP address is a network protocol IP address used by a first terminal in a current connection network, and the first port number is a port number of the first terminal in an idle state;
sending a second test recording request, wherein the second test recording request carries the first network protocol IP address, the first port number and the second terminal identification;
and when a test recording response is received, the second terminal is remotely controlled, and the second terminal determines a recording script obtained by recording the operation process of the target application.
4. The method of any of claims 1-3, wherein the method further comprises:
when the target terminal identification is a first terminal identification, generating script description information corresponding to the recording script through the first terminal, and sending the recording script and the script description information corresponding to the recording script; alternatively, the first and second electrodes may be,
and when the target terminal identification is a second terminal identification, controlling the second terminal, generating script description information corresponding to the recording script by the second terminal, and sending the recording script and the script description information corresponding to the recording script.
5. An application testing apparatus, the apparatus comprising:
the device comprises a first acquisition module, a second acquisition module and a third acquisition module, wherein the first acquisition module is used for acquiring a plurality of script description information corresponding to a target application when an application test instruction of the target application is detected, and each script description information is used for describing a recording script for testing a corresponding function in the target application;
the downloading module is used for downloading a target recording script when a selection instruction of the target recording script is detected, wherein the target recording script is any one of a plurality of recording scripts, and the plurality of recording scripts are in one-to-one correspondence with the plurality of script description information;
the test module is used for testing the target application based on the target recording script;
a second obtaining module, configured to obtain a terminal information list when a selection instruction of the target recording script is not detected but a test recording instruction of the target application is detected, where the terminal information list includes multiple terminal identifiers and other terminal identifiers currently connected to each terminal;
the determining module is used for determining a recording script obtained by recording the operation process of the target application based on the target terminal when a selection instruction of the target terminal identification is detected, wherein the target terminal identification is any terminal identification displayed by the terminal information list;
the test module is also used for testing the target application based on the recorded script obtained by recording;
wherein the determining module comprises:
the first determining unit is used for determining a recording script obtained by recording the operation process of the target application through a first terminal when a selection instruction of a target terminal identifier is detected and the target terminal identifier is a first terminal identifier, wherein the first terminal is a terminal which detects an application test instruction of the target application;
a second determining unit, configured to determine, by a second terminal, a recording script obtained by recording an operation process of the target application by performing remote control on the second terminal when the target terminal identifier is the second terminal identifier, where the second terminal identifier is any one of the plurality of terminal identifiers except the first terminal identifier;
and the sending unit is used for sending an operation recording prompt message to the second terminal when the target terminal identifier is the other terminal identifier currently connected with the second terminal so as to prompt a user corresponding to the second terminal to operate the other terminal currently connected with the second terminal so as to record and obtain the recording script.
6. The apparatus of claim 5, wherein the first determining unit comprises:
the first acquiring subunit is configured to, when a selection instruction of a target terminal identifier is detected, acquire a first network protocol IP address and a first port number when the target terminal identifier is a first terminal identifier, where the first network protocol IP address is a network protocol IP address used by the first terminal to currently connect to a network, and the first port number is a port number of the first terminal currently in an idle state;
a first sending subunit, configured to send a first test recording request, where the first test recording request carries the first network protocol IP address and the first port number;
and the first determining subunit is used for determining a recording script obtained by recording the operation process of the target application when the test recording response is received.
7. The apparatus of claim 5, wherein the second determining unit comprises:
a second obtaining subunit, configured to, when the target terminal identifier is a second terminal identifier, obtain a first network protocol IP address and a first port number, where the first network protocol IP address is a network protocol IP address used by the first terminal to currently connect to a network, and the first port number is a port number of the first terminal currently in an idle state;
a second sending subunit, configured to send a second test recording request, where the second test recording request carries the first network protocol IP address, the first port number, and the second terminal identifier;
and the second determining subunit is used for determining a recording script obtained by recording the operation process of the target application by the second terminal through remote control of the second terminal when the test recording response is received.
8. The apparatus of any of claims 5-7, wherein the apparatus further comprises:
the first generation module is used for generating script description information corresponding to the recording script through the first terminal and sending the recording script and the script description information corresponding to the recording script when the target terminal identifier is the first terminal identifier; alternatively, the first and second electrodes may be,
and the second generation module is used for generating script description information corresponding to the recording script by the second terminal through controlling the second terminal when the target terminal identifier is the second terminal identifier, and sending the recording script and the script description information corresponding to the recording script.
CN201611171571.7A 2016-12-17 2016-12-17 Application testing method and device Active CN106776323B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611171571.7A CN106776323B (en) 2016-12-17 2016-12-17 Application testing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611171571.7A CN106776323B (en) 2016-12-17 2016-12-17 Application testing method and device

Publications (2)

Publication Number Publication Date
CN106776323A CN106776323A (en) 2017-05-31
CN106776323B true CN106776323B (en) 2019-12-27

Family

ID=58892140

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611171571.7A Active CN106776323B (en) 2016-12-17 2016-12-17 Application testing method and device

Country Status (1)

Country Link
CN (1) CN106776323B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110221983B (en) * 2019-06-19 2024-01-16 深圳市腾讯网域计算机网络有限公司 Test method, test device, computer readable storage medium and computer equipment
CN110764840B (en) * 2019-09-29 2023-11-03 望海康信(北京)科技股份公司 Method, device and system for wirelessly debugging android device
CN113158146A (en) * 2020-01-07 2021-07-23 网联清算有限公司 Script management method, script management platform, computing device and medium
CN111506496A (en) * 2020-03-11 2020-08-07 北京三快在线科技有限公司 Test data acquisition method and device, electronic equipment and storage medium
CN113515453B (en) * 2021-06-24 2021-12-07 航天中认软件测评科技(北京)有限责任公司 Webpage testing system

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102710832A (en) * 2012-04-21 2012-10-03 北京迈凯互动网络科技有限公司 Mobile application test method and system
CN103778053A (en) * 2012-10-18 2014-05-07 周玲玲 Remote real machine test system and method of mobile terminals
US8875102B1 (en) * 2009-03-12 2014-10-28 Google Inc. Multiple browser architecture and method
CN104765678A (en) * 2014-01-08 2015-07-08 阿里巴巴集团控股有限公司 Method and device for testing applications on mobile terminal
CN104883353A (en) * 2015-03-31 2015-09-02 深圳市深信服电子科技有限公司 Terminal single sign-on configuration and authentication method and system, and application service system
CN105335283A (en) * 2014-08-01 2016-02-17 阿里巴巴集团控股有限公司 Application testing method and device in terminal equipment

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8875102B1 (en) * 2009-03-12 2014-10-28 Google Inc. Multiple browser architecture and method
CN102710832A (en) * 2012-04-21 2012-10-03 北京迈凯互动网络科技有限公司 Mobile application test method and system
CN103778053A (en) * 2012-10-18 2014-05-07 周玲玲 Remote real machine test system and method of mobile terminals
CN104765678A (en) * 2014-01-08 2015-07-08 阿里巴巴集团控股有限公司 Method and device for testing applications on mobile terminal
CN105335283A (en) * 2014-08-01 2016-02-17 阿里巴巴集团控股有限公司 Application testing method and device in terminal equipment
CN104883353A (en) * 2015-03-31 2015-09-02 深圳市深信服电子科技有限公司 Terminal single sign-on configuration and authentication method and system, and application service system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
使用loadrunner录制手机终端APP脚本;lychbeyond;《https://blog.csdn.net/lychbeyond/article/details/51646553》;20160612;第1-10页 *

Also Published As

Publication number Publication date
CN106776323A (en) 2017-05-31

Similar Documents

Publication Publication Date Title
CN106776323B (en) Application testing method and device
CN104765678B (en) The method and device tested the application on mobile terminal device
CN110032507B (en) Application program testing method, device and system, electronic equipment and storage medium
US7519864B2 (en) Automation test systems
CN106681924A (en) Software testing method and software testing system
CN104581785B (en) wireless network test method, test device and mobile terminal
CN104424089A (en) Terminal testing method and device
KR20070112281A (en) Apparatus and methods for product acceptance testing on a wireless device
CN111694757B (en) Application program testing method and device, electronic equipment and computer readable storage medium
CN111309632A (en) Application program testing method and device, computer equipment and storage medium
CN110493028A (en) A kind of clustered deploy(ment) method, system, device and computer readable storage medium
CN109873728A (en) A kind of terminal test method, device and storage medium
CN111611121A (en) Hardware simulation test method, device and equipment
CN112311620A (en) Method, apparatus, electronic device and readable medium for diagnosing network
CN111506311A (en) Internet rapid iterative development, integration and release method and middlebox enabling engine
CN103729258B (en) A kind of automatic test approach, terminal and system
CN108540344B (en) Router upgrading test method and system
CN113849356A (en) Equipment testing method and device, electronic equipment and storage medium
CN110941252A (en) Vehicle-mounted equipment testing method and system
CN110913406B (en) Access configuration method and device of RCS test server
CN113495817A (en) Power consumption testing method and device, server and storage medium
CN107943706A (en) A kind of test system, method, apparatus and computer-readable storage medium
KR100793056B1 (en) Test Control Device for Testing of Telematics service and its method
CN112069051A (en) PUSH time-consuming testing method and terminal
CN113434406B (en) Function test method and device, storage medium and electronic 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
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 510660 Guangzhou City, Guangzhou, Guangdong, Whampoa Avenue, No. 315, self - made 1-17

Applicant after: Guangzhou KuGou Networks Co., Ltd.

Address before: 510000 B1, building, No. 16, rhyme Road, Guangzhou, Guangdong, China 13F

Applicant before: Guangzhou KuGou Networks Co., Ltd.

GR01 Patent grant
GR01 Patent grant