CN110837474A - Script recording method, device, terminal and storage medium - Google Patents

Script recording method, device, terminal and storage medium Download PDF

Info

Publication number
CN110837474A
CN110837474A CN201911107059.XA CN201911107059A CN110837474A CN 110837474 A CN110837474 A CN 110837474A CN 201911107059 A CN201911107059 A CN 201911107059A CN 110837474 A CN110837474 A CN 110837474A
Authority
CN
China
Prior art keywords
recording
script
configuration data
control information
configuration
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201911107059.XA
Other languages
Chinese (zh)
Inventor
孟曦东
邓小志
冯泽康
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Bo Hongyuan Data Polytron Technologies Inc
Original Assignee
Beijing Bo Hongyuan Data Polytron Technologies Inc
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 Bo Hongyuan Data Polytron Technologies Inc filed Critical Beijing Bo Hongyuan Data Polytron Technologies Inc
Priority to CN201911107059.XA priority Critical patent/CN110837474A/en
Publication of CN110837474A publication Critical patent/CN110837474A/en
Pending legal-status Critical Current

Links

Images

Classifications

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

Landscapes

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

Abstract

The embodiment of the invention discloses a script recording method, a script recording device, a terminal and a storage medium. The method comprises the following steps: projecting the acquired interface of the application program to be tested to a projection area in the interface of the recorder; according to the operation of the user in the projection area, sending the corresponding operation information to a recording server; receiving control information returned by the recording server according to the operation information; and determining configuration data according to the control information, and recording the operation information and the corresponding configuration data in the script. The technical scheme provided by the embodiment of the invention solves the problem of low recording efficiency caused by manual design and script writing configuration still required by recording operation at a mobile phone end in the existing script recording scheme, realizes automatic configuration of script actions and is more convenient for users to use.

Description

Script recording method, device, terminal and storage medium
Technical Field
The embodiment of the invention relates to the technical field of Application (APP) testing, in particular to a script recording method, a device, a terminal and a storage medium.
Background
The mobile APP business develops rapidly and becomes an indispensable part of the daily life of the vast consumers. New APP is continuously emitted, and compared with the existing APP of the traditional software, the iteration period is greatly shortened. In order to ensure the normal use of the APP service function, the APP needs to be automatically tested in various service types, generally, a script is recorded in advance, and then the purpose of automatically operating the APP is achieved through the explanation and execution of the script. Although the burden of manual writing is reduced in a script recorder such as Testin based on World wide Web (Web) which is commonly used nowadays, more detailed and deeper mining of performance tests is generally ignored due to excessive consideration of universality, performance indexes are wider, and test scenes are also biased to be simplified.
In the script recording method for synchronizing the mobile phone screen to the computer terminal adopted by the prior art, the computer terminal monitors the touch operation on the mobile phone screen, judges the type of the touch operation according to the relation between the starting position and the end position of the touch action, further acquires control information of the corresponding position, and records the automatic test script according to the type of the touch operation and the control information. However, in the prior art, the operation of recording the script is implemented at the mobile phone end, and only the operation of the application program itself can be performed, and the configuration related operations except the application program are inconvenient to perform, so the configuration part of the script still needs to be manually designed and written by the user, thereby reducing the efficiency of recording the script.
Disclosure of Invention
The invention provides a script recording method, a device, a terminal and a storage medium, and aims to solve the problem of low recording efficiency caused by manual design and script compiling configuration still required by recording operation at a mobile phone terminal in the existing script recording scheme.
In a first aspect, an embodiment of the present invention provides a script recording method, where the method includes:
projecting the acquired interface of the application program to be tested to a projection area in the interface of the recorder;
according to the operation of the user in the projection area, sending the corresponding operation information to a recording server;
receiving control information returned by the recording server according to the operation information;
and determining configuration data according to the control information, and recording the operation information and the corresponding configuration data in the script.
In a second aspect, an embodiment of the present invention further provides a script recording apparatus, where the apparatus includes:
the interface projection module is used for projecting the acquired interface of the application program to be tested to a projection area in the interface of the recorder;
the operation information sending module is used for sending the corresponding operation information to the recording server according to the operation of the user in the projection area;
the control information receiving module is used for receiving control information returned by the recording server according to the operation information;
and the configuration data determining module is used for determining configuration data according to the control information and recording the operation information and the corresponding configuration data in the script.
In a third aspect, an embodiment of the present invention further provides a terminal, where the terminal includes:
one or more processors;
a memory for storing one or more programs;
when the one or more programs are executed by the one or more processors, the one or more processors implement the script recording method provided by any embodiment of the invention.
In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the script recording method provided in any embodiment of the present invention.
The embodiment of the invention provides a script recording scheme, which comprises the steps of projecting an acquired interface of an application program to be tested to a projection area in an interface of a recorder, automatically determining operation information and corresponding configuration data according to the operation of a user in the projection area, and recording the operation information and the corresponding configuration data in a script for the automatic test of APP. The problem of recording efficiency is low because manual design and script writing configuration are still needed due to recording operation at a mobile phone end in the existing script recording scheme is solved, automatic configuration of script actions is realized, and the use of a user is facilitated.
Drawings
Fig. 1 is a flowchart of a script recording method according to an embodiment of the present invention;
fig. 2 is a flowchart of a script recording method according to a second embodiment of the present invention;
fig. 3 is a flowchart of a script recording method according to a third embodiment of the present invention;
fig. 4 is a schematic structural diagram of a script recording apparatus according to a fourth embodiment of the present invention;
fig. 5 is a schematic structural diagram of a terminal according to a fifth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Before discussing exemplary embodiments in more detail, it should be noted that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although a flowchart may describe the steps as a sequential process, many of the steps can be performed in parallel, concurrently or simultaneously. In addition, the order of the steps may be rearranged. The process may be terminated when its operations are completed, but may have additional steps not included in the figure. The processes may correspond to methods, functions, procedures, subroutines, and the like.
Example one
Fig. 1 is a flowchart of a script recording method according to an embodiment of the present invention. The present embodiment is applicable to the case of performing automated testing of various service types on APP by using scripts, and the method may be executed by a script recording apparatus provided in the embodiment of the present invention, where the apparatus may be implemented by hardware and/or software, and may be generally integrated in a Computer device, for example, a Personal Computer (PC). As shown in fig. 1, the method specifically comprises the following steps:
and S11, projecting the acquired interface of the application program to be tested to a projection area in the interface of the recorder.
After the recorder successfully logs in, connection is firstly established with the intelligent terminal where the application program to be tested is located, optionally, the connection mode can be selected according to needs, connection can be performed through a data line, a local area network or a remote network, and the intelligent terminal can comprise a mobile phone or a tablet personal computer and the like. After the recorder applies for the intelligent terminal, the picture of the intelligent terminal is projected to a projection area for display in the recorder interface, and optionally, the projection area can be positioned on the left side of the recorder interface according to the use habit of a user. The user can operate the projected interface of the application program to be tested by using input equipment such as a mouse or a keyboard in the projection area, or can operate the interface in a touch screen mode, optionally, the user operation can comprise clicking, sliding, frame selection, screenshot and/or the like, the corresponding operation is converted into the operation of the corresponding coordinates in the intelligent terminal, and the picture of the intelligent terminal can be synchronized in real time in the interface of the recorder.
And S12, according to the operation of the user in the projection area, sending the corresponding operation information to the recording server.
After receiving the operation of the user in the projection area, the operation information is sent to a recording server, and control information corresponding to the operation is stored in the recording server. Optionally, the operation information may include an operation type, an operation position coordinate, and/or a preset display interface control identifier, where the operation type is a click, a slide, a frame selection, or a screenshot, and the preset display interface control identifier may be a control identifier preset by performing a column division according to a screen. Optionally, before sending the corresponding operation information to the recording server, the type of the user operation may be determined, if the operation is a framing operation, the framed area is used as an image comparison area for determining the correctness of the result of the response operation of the application program to be tested, the coordinates of the framing area are recorded in the script, and meanwhile, the coordinates of the framing area are sent to the recording server for area coordinate conversion to obtain an image corresponding to the coordinates of the framing area. If the operation is a control screenshot operation, the control screenshot is used as a basis for positioning the control when the application program to be tested responds to the operation during script playback, the region coordinates of the screenshot are obtained by the recorder firstly, then the region coordinates are sent to the recording server for control screenshot, and then the control screenshot is returned to the recorder and recorded in the script. Optionally, the function of clicking a check box by right clicking a mouse in the projection area of the recorder can be realized, and the user can be switched to perform the box selection operation or the control screenshot operation by selecting the content in the check box.
And S13, receiving control information returned by the recording server according to the operation information.
After the operation information is sent to the recording server, the recording server may index the control information stored therein according to the operation information, optionally, the control information includes a control type, a control function and/or a control coordinate, the control information may be packaged information, and the recorder may select useful information therein according to the operation requirement.
And S14, determining configuration data according to the control information, and recording the operation information and the corresponding configuration data in the script.
After receiving the control information returned by the recording server, optionally, the control information may be analyzed to obtain detailed information of the control. The operation of the user is an action, and the operation information is basic information of the action, including action name, action content, action coordinates and the like. And automatically generating various configuration data of the action according to the detailed information of the control, such as a control searching mode, a control coordinate and an action interaction performance calculating mode. And then recording the operation information and the corresponding configuration data in the script so as to play back the automatic test of the script.
According to the technical scheme provided by the embodiment of the invention, the acquired interface of the application program to be tested is projected to the projection area in the interface of the recorder, then the operation information and the corresponding configuration data are automatically determined according to the operation of the user in the projection area, and the operation information and the corresponding configuration data are recorded in the script for the automatic test of the APP. The problem of recording efficiency is low because manual design and script writing configuration are still needed due to recording operation at a mobile phone end in the existing script recording scheme is solved, automatic configuration of script actions is realized, and the use of a user is facilitated.
On the basis of the above technical solution, optionally, before determining the configuration data according to the control information, the script recording method may further include: and setting a configuration item set and a preset configuration data set corresponding to the configuration items for the recorder. That is to say, the configuration items included in the configuration data automatically generated by the recorder are preset, and in the process of recording the script, only the configuration items required to be performed need to be selected according to the control information, and then the configuration data corresponding to the control information is determined from the preset configuration data set corresponding to the configuration items according to the control information. Optionally, the configuration data may also be obtained by performing automatic calculation or intelligent derivation according to the control information, so that the obtained configuration data better conforms to the characteristics of the control.
On the basis of the above technical solution, optionally, after setting a configuration item set and a preset configuration data set corresponding to the configuration item for the recorder, the script recording method may further include: according to the received configuration item text string input by the user, the configuration items contained in the configuration item text string are recorded in the configuration item set, and the preset configuration data corresponding to the configuration items contained in the configuration item text string are recorded in the preset configuration data set. That is to say, on the basis of realizing the automatic configuration of the recorder to the script actions, the user is still allowed to add configuration items and configuration data, and an interface for adding configuration data by the user is provided, so that the convenience of script recording is provided for the user without programming capability, and the process of script recording can be further perfected by the user with programming capability.
Example two
Fig. 2 is a flowchart of a script recording method according to a second embodiment of the present invention. The technical scheme of the embodiment is further refined on the basis of the technical scheme, as shown in fig. 2, and specifically includes the following steps:
and S21, projecting the acquired interface of the application program to be tested to a projection area in the interface of the recorder.
And S22, according to the operation of the user in the projection area, sending the corresponding operation information to the recording server.
And S23, receiving control information returned by the recording server according to the operation information.
And S24, determining configuration data according to the control information, and recording the operation information and the corresponding configuration data in the script.
And S25, displaying the operation information and the corresponding configuration data in the recorder interface.
Optionally, the projection area is set on the left side of the recorder interface, and meanwhile, the operation information and the corresponding configuration data can be displayed on the right side of the recorder interface, and an interface for modifying the configuration data is provided for a user. When the user modifies the configuration data, a text string editing mode is not needed any more, the right side of the recorder interface can provide a pull-down menu for the user to select the configuration data, and also can provide a text box corresponding to the configuration item for the user to input a specific data value.
And S26, updating the name and the configuration data of the modified operation information to the script and displaying the script in the interface of the recorder according to the received modification operation of the name and the configuration data of the operation information by the user.
Optionally, the recorder does not provide an automatic generation function for the name of the operation information, and the user needs to set the name by himself or herself so as to facilitate recording by the user. If the user needs to modify the existing configuration data, only new configuration data needs to be selected or input in the interface of the recorder, and after the recorder receives the data modified by the user, the data is directly updated to the script and displayed in the interface of the recorder. Optionally, the user may also modify the network data acquisition mode, the APP start mode, whether to record a screen during the recording process, and the like in the recorder interface, so that the APP runs under different scenes when the script is recorded, thereby avoiding errors caused by environment and scene changes during the running of the script.
According to the technical scheme provided by the embodiment of the invention, the visual interface for modification is provided for the user, convenience is further provided for the user in the script recording process, and for the configuration data modification which is required to be carried out, the user only needs to input the corresponding data, and does not need to write the configuration item text. Meanwhile, the user can also directly designate additional parameters in the recording process, such as the starting mode of the APP and the like, so that the script recording can adapt to the complicated and changeable APP automatic test environment.
EXAMPLE III
Fig. 3 is a flowchart of a script recording method according to a third embodiment of the present invention. The technical scheme of the embodiment is further refined on the basis of the technical scheme, as shown in fig. 3, and specifically includes the following steps:
and S31, projecting the acquired interface of the application program to be tested to a projection area in the interface of the recorder.
And S32, according to the operation of the user in the projection area, sending the corresponding operation information to the recording server.
And S33, receiving control information returned by the recording server according to the operation information.
And S34, setting performance verification data of the last non-frame selection or screenshot operation according to the control information and the image corresponding to the image comparison area before the operation of the application program to be tested.
On the basis of providing automatic configuration for user operation, the recorder can also automatically generate various configurations aiming at APP performance monitoring, automatically detect and generate action interaction performance verification data, and set different performance monitoring parameters according to different test scenes selected by a user. If the current operation is not the first non-frame selection or screenshot operation and the user performs the frame selection operation before the current operation, an image comparison area used for judging the correctness of the result of the response operation of the application program to be tested is obtained, an image corresponding to the image comparison area in the application program to be tested is obtained, the image can be used as performance verification data of the last non-frame selection or screenshot operation, the method can be specifically used for comparing pixel points according to the image after the operation of the application program to be tested and the image used as the performance verification data in a script test, and whether the operation is successfully executed is judged by using the matching rate of the two images. Meanwhile, the control information returned by the recording server can also be used as performance verification data of the last non-frame selection or screenshot operation, the control information in the current frame is compared with the control information used as the performance verification data in the script test, and whether the operation is successfully executed is judged by using the matching rate between the two pieces of control information. Optionally, the performance verification data automatically generated by the recorder may be recorded in the script, or may be recorded in another performance verification program, and if the performance verification data is recorded in the script, the performance verification data may be simultaneously displayed in an interface of the recorder, or the performance verification data may be adjusted again by a user through simple input data.
And S35, converting the operation into a test action of the corresponding coordinate in the application program to be tested.
The performance verification data to be obtained should be data in a real running state in the application program to be tested, so before the performance verification data is obtained, the operation of a user in the projection area of the recorder needs to be converted into a test action of a corresponding coordinate in the application program to be tested.
And S36, acquiring a corresponding image in the application program to be tested according to the coordinates of the frame selection area.
After the application program to be tested responds to the non-framing or screenshot operation of a user in the projection area of the recorder, if the user performs the framing operation, the coordinates of the framing area are calculated, the corresponding image is obtained in the application program to be tested according to the coordinates of the framing area and can be returned to the script storage and the other performance verification program storage.
And S37, determining configuration data according to the control information, and recording the operation information and the corresponding configuration data in the script.
According to the technical scheme provided by the embodiment of the invention, the control information and the image corresponding to the image comparison area selected by the user in the application program to be tested are used as the performance verification data of the test action, so that convenience is further provided for the user in the script recording process, the user can not write codes of the performance verification data acquisition part manually, and meanwhile, the performance verification data can be conveniently modified in the recorder interface.
Example four
Fig. 4 is a schematic structural diagram of a script recording apparatus according to a fourth embodiment of the present invention. The device can be realized by hardware and/or software, and can be integrated in a PC for executing the script recording method provided by any embodiment of the invention. As shown in fig. 4, the apparatus includes:
the interface projection module 41 is used for projecting the acquired interface of the application program to be tested to a projection area in the interface of the recorder;
an operation information sending module 42, configured to send corresponding operation information to the recording server according to an operation performed by a user in the projection area;
a control information receiving module 43, configured to receive control information returned by the recording server according to the operation information;
and the configuration data determining module 44 is configured to determine configuration data according to the control information, and record the operation information and the corresponding configuration data in the script.
According to the technical scheme provided by the embodiment of the invention, the acquired interface of the application program to be tested is projected to the projection area in the interface of the recorder, then the operation information and the corresponding configuration data are automatically determined according to the operation of the user in the projection area, and the operation information and the corresponding configuration data are recorded in the script for the automatic test of the APP. The problem of recording efficiency is low because manual design and script writing configuration are still needed due to recording operation at a mobile phone end in the existing script recording scheme is solved, automatic configuration of script actions is realized, and the use of a user is facilitated.
Optionally, the apparatus further comprises:
the configuration item set setting module is used for setting a configuration item set and a preset configuration data set corresponding to the configuration item for the recorder before determining the configuration data according to the control information;
correspondingly, the configuration data determining module is specifically configured to:
and selecting a configuration item required to be carried out according to the control information, and determining corresponding configuration data from a preset configuration data set.
Optionally, the apparatus further comprises:
the configuration data display module is used for displaying the operation information and the corresponding configuration data in the recorder interface after determining the configuration data according to the control information and recording the operation information and the corresponding configuration data in the script;
and the configuration data updating module is used for updating the name and the configuration data of the modified operation information to the script and displaying the script in the interface of the recorder according to the received modification operation of the name and the configuration data of the operation information by the user.
Optionally, the operation information sending module 42 includes:
the framing operation submodule is used for taking the framing area as an image comparison area for judging the correctness of the result of the response operation of the application program to be tested if the operation is framing operation, and recording the coordinates of the framing area in the script;
and the control screenshot operation sub-module is used for taking the control screenshot as a basis for positioning the control when the application program to be tested responds to the operation during the playback of the script if the operation is the control screenshot operation, and recording the control screenshot in the script.
Optionally, the apparatus further comprises:
the performance verification data setting module is used for setting performance verification data of the previous non-frame selection or screenshot operation according to the control information and the image corresponding to the image comparison area before the operation of the application program to be tested after receiving the control information returned by the recording server according to the operation information;
correspondingly, the device also comprises:
the test action conversion module is used for converting the operation into a test action of a corresponding coordinate in the application program to be tested after receiving the control information returned by the recording server according to the operation information;
and the image acquisition module is used for acquiring a corresponding image in the application program to be tested according to the coordinates of the frame selection area.
Optionally, the apparatus further comprises:
and the configuration item text string recording module is used for recording the configuration items contained in the configuration item text strings in the configuration item set according to the received configuration item text strings input by the user and recording the preset configuration data corresponding to the configuration items contained in the configuration item text strings in the preset configuration data set after setting the configuration item set and the preset configuration data set corresponding to the configuration items for the recorder.
The script recording device provided by the embodiment of the invention can execute the script recording method provided by any embodiment of the invention, and has corresponding functional modules and beneficial effects of the execution method.
It should be noted that, in the embodiment of the script recording apparatus, the included units and modules are only divided according to the functional logic, but are not limited to the above division as long as the corresponding functions can be implemented; in addition, specific names of the functional units are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present invention.
EXAMPLE five
Fig. 5 is a schematic structural diagram of a terminal according to a fifth embodiment of the present invention, which shows a block diagram of an exemplary terminal suitable for implementing the embodiment of the present invention. The terminal shown in fig. 5 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present invention. As shown in fig. 5, the terminal includes a processor 51, a memory 52, an input device 53 and an output device 54; the number of the processors 51 in the terminal may be one or more, one processor 51 is taken as an example in fig. 5, the processor 51, the memory 52, the input device 53 and the output device 54 in the terminal may be connected by a bus or other means, and the connection by the bus is taken as an example in fig. 5.
The memory 52 is a computer-readable storage medium, and can be used for storing software programs, computer-executable programs, and modules, such as program instructions/modules corresponding to the script recording method in the embodiment of the present invention (for example, the interface projection module 41, the operation information sending module 42, the control information receiving module 43, and the configuration data determining module 44 in the script recording apparatus). The processor 51 executes various functional applications of the terminal and data processing by running software programs, instructions, and modules stored in the memory 52, that is, implements the above-described script recording method.
The memory 52 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to the use of the terminal, and the like. Further, the memory 52 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some examples, the memory 52 may further include memory located remotely from the processor 51, which may be connected to the terminal over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input device 53 may be used to receive related information transmitted from the smart terminal and to generate key signal inputs related to user settings and function control of the terminal. The output device 54 may include a display device such as a display screen, and may be used to send the test action signal to the smart terminal.
EXAMPLE six
An embodiment of the present invention further provides a storage medium containing computer-executable instructions, which when executed by a computer processor, perform a method for recording a script, the method including:
projecting the acquired interface of the application program to be tested to a projection area in the interface of the recorder;
according to the operation of the user in the projection area, sending the corresponding operation information to a recording server;
receiving control information returned by the recording server according to the operation information;
and determining configuration data according to the control information, and recording the operation information and the corresponding configuration data in the script.
Storage medium-any of various types of memory devices or storage devices. The term "storage medium" is intended to include: mounting media such as CD-ROM, floppy disk, or tape devices; computer system memory or random access memory such as DRAM, DDR RAM, SRAM, EDO RAM, Lanbas (Rambus) RAM, etc.; non-volatile memory such as flash memory, magnetic media (e.g., hard disk or optical storage); registers or other similar types of memory elements, etc. The storage medium may also include other types of memory or combinations thereof. In addition, the storage medium may be located in the computer system in which the program is executed, or may be located in a different second computer system connected to the computer system through a network (such as the internet). The second computer system may provide the program instructions to the computer for execution. The term "storage medium" may include two or more storage media that may reside in different locations, such as in different computer systems that are connected by a network. The storage medium may store program instructions (e.g., embodied as a computer program) that are executable by one or more processors.
Of course, the storage medium provided by the embodiment of the present invention contains computer-executable instructions, and the computer-executable instructions are not limited to the method operations described above, and may also perform related operations in the script recording method provided by any embodiment of the present invention.
From the above description of the embodiments, it is obvious for those skilled in the art that the present invention can be implemented by software and necessary general hardware, and certainly, can also be implemented by hardware, but the former is a better embodiment in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which may be stored in a computer-readable storage medium, such as a floppy disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a FLASH Memory (FLASH), a hard disk or an optical disk of a computer, and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device) to execute the methods according to the embodiments of the present invention.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (10)

1. A script recording method, comprising:
projecting the acquired interface of the application program to be tested to a projection area in the interface of the recorder;
according to the operation of the user in the projection area, sending corresponding operation information to a recording server;
receiving control information returned by the recording server according to the operation information;
and determining configuration data according to the control information, and recording the operation information and the corresponding configuration data in a script.
2. The method for recording scripts according to claim 1, before determining configuration data according to the control information, further comprising:
setting a configuration item set and a preset configuration data set corresponding to the configuration items for the recorder;
correspondingly, the determining the configuration data according to the control information includes:
and selecting the configuration items required to be carried out according to the control information, and determining the corresponding configuration data from the preset configuration data set.
3. The method for recording scripts according to claim 1, after determining configuration data according to the control information and recording the operation information and the corresponding configuration data in a script, further comprising:
displaying the operation information and the corresponding configuration data in the recorder interface;
and updating the modified name of the operation information and the modified configuration data to the script and displaying the script in the recorder interface according to the received modification operation of the user on the name of the operation information and the configuration data.
4. The script recording method according to claim 1, wherein the sending the corresponding operation information to the recording server according to the operation performed by the user in the projection area comprises:
if the operation is a framing operation, taking a framing area as an image comparison area for judging the correctness of the result of the application program to be tested responding to the operation, and recording the coordinates of the framing area in the script;
and if the operation is a control screenshot operation, taking the control screenshot as a basis for positioning the control when the application program to be tested responds to the operation during script playback, and recording the control screenshot in the script.
5. The script recording method according to claim 4, after receiving the control information returned by the recording server according to the operation information, further comprising:
setting performance verification data of the operation of the last non-frame selection or screenshot according to the control information and the image of the application program to be tested corresponding to the image comparison area before the operation;
correspondingly, after receiving the control information returned by the recording server according to the operation information, the method further includes:
converting the operation into a test action of a corresponding coordinate in the application program to be tested;
and acquiring a corresponding image in the application program to be tested according to the coordinates of the frame selection area.
6. The method for recording scripts according to claim 2, further comprising, after the setting of the configuration item set and the preset configuration data set corresponding to the configuration items for the recorder, the following steps:
according to a received configuration item text string input by a user, recording the configuration items contained in the configuration item text string in the configuration item set, and recording preset configuration data corresponding to the configuration items contained in the configuration item text string in the preset configuration data set.
7. A script recording apparatus, comprising:
the interface projection module is used for projecting the acquired interface of the application program to be tested to a projection area in the interface of the recorder;
the operation information sending module is used for sending corresponding operation information to the recording server according to the operation of the user in the projection area;
the control information receiving module is used for receiving control information returned by the recording server according to the operation information;
and the configuration data determining module is used for determining configuration data according to the control information and recording the operation information and the corresponding configuration data in a script.
8. The script recording apparatus of claim 7, further comprising:
a configuration item set setting module, configured to set a configuration item set and a preset configuration data set corresponding to a configuration item for the recorder before determining configuration data according to the control information;
correspondingly, the configuration data determining module is specifically configured to:
and selecting the configuration items required to be carried out according to the control information, and determining the corresponding configuration data from the preset configuration data set.
9. A terminal, comprising:
one or more processors;
a memory for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement the script recording method of any of claims 1-6.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, implements the script recording method according to any one of claims 1 to 6.
CN201911107059.XA 2019-11-13 2019-11-13 Script recording method, device, terminal and storage medium Pending CN110837474A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911107059.XA CN110837474A (en) 2019-11-13 2019-11-13 Script recording method, device, terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911107059.XA CN110837474A (en) 2019-11-13 2019-11-13 Script recording method, device, terminal and storage medium

Publications (1)

Publication Number Publication Date
CN110837474A true CN110837474A (en) 2020-02-25

Family

ID=69576335

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911107059.XA Pending CN110837474A (en) 2019-11-13 2019-11-13 Script recording method, device, terminal and storage medium

Country Status (1)

Country Link
CN (1) CN110837474A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111400175A (en) * 2020-03-06 2020-07-10 广东电网有限责任公司 Recording and replaying system, method and equipment for web operation event
CN111538661A (en) * 2020-04-24 2020-08-14 北京思特奇信息技术股份有限公司 Method for recording, arranging and executing visual script based on appium
CN111666024A (en) * 2020-05-28 2020-09-15 维沃移动通信(杭州)有限公司 Screen recording method and device and electronic equipment
CN112328861A (en) * 2020-11-24 2021-02-05 郑州航空工业管理学院 News dissemination method based on big data processing
CN113448820A (en) * 2020-03-25 2021-09-28 中移(成都)信息通信科技有限公司 Webpage testing method and device
CN113835996A (en) * 2020-06-24 2021-12-24 北京字节跳动网络技术有限公司 Method and device for generating test script

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150135169A1 (en) * 2013-11-12 2015-05-14 Institute For Information Industry Testing device and testing method thereof
CN104866414A (en) * 2014-02-24 2015-08-26 腾讯科技(深圳)有限公司 Method, device and system for testing application program
CN107193750A (en) * 2017-07-04 2017-09-22 北京云测信息技术有限公司 A kind of script method for recording and device
CN108763086A (en) * 2018-05-31 2018-11-06 康键信息技术(深圳)有限公司 Script method for recording, terminal and computer readable storage medium based on remote real machine

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150135169A1 (en) * 2013-11-12 2015-05-14 Institute For Information Industry Testing device and testing method thereof
CN104866414A (en) * 2014-02-24 2015-08-26 腾讯科技(深圳)有限公司 Method, device and system for testing application program
CN107193750A (en) * 2017-07-04 2017-09-22 北京云测信息技术有限公司 A kind of script method for recording and device
CN108763086A (en) * 2018-05-31 2018-11-06 康键信息技术(深圳)有限公司 Script method for recording, terminal and computer readable storage medium based on remote real machine

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111400175A (en) * 2020-03-06 2020-07-10 广东电网有限责任公司 Recording and replaying system, method and equipment for web operation event
CN111400175B (en) * 2020-03-06 2023-08-18 广东电网有限责任公司 Recording and playback system, method and equipment for web operation event
CN113448820A (en) * 2020-03-25 2021-09-28 中移(成都)信息通信科技有限公司 Webpage testing method and device
CN111538661A (en) * 2020-04-24 2020-08-14 北京思特奇信息技术股份有限公司 Method for recording, arranging and executing visual script based on appium
CN111666024A (en) * 2020-05-28 2020-09-15 维沃移动通信(杭州)有限公司 Screen recording method and device and electronic equipment
CN113835996A (en) * 2020-06-24 2021-12-24 北京字节跳动网络技术有限公司 Method and device for generating test script
CN112328861A (en) * 2020-11-24 2021-02-05 郑州航空工业管理学院 News dissemination method based on big data processing

Similar Documents

Publication Publication Date Title
CN110837474A (en) Script recording method, device, terminal and storage medium
US11929097B2 (en) Method and apparatus of editing multimedia file, electronic device, and storage medium
US9317413B2 (en) Testing device and testing method thereof
US9161238B2 (en) Mobile device monitoring and testing
TWI509409B (en) Methods and systems for viewing log data recorded during execution of a program
CN110134600B (en) Test script recording method, device and storage medium
CN109446025B (en) Operation behavior playback method and device, electronic equipment and readable medium
CN112882953B (en) Automatic demonstration method and system of application program based on android debug bridge
CN110716853A (en) Test script recording method, application program testing method and related device
CN110515854B (en) Application program abnormality reproduction method and device and electronic equipment
CN112416775B (en) Software automatic test method and device based on artificial intelligence and electronic equipment
CN110784753A (en) Interactive video playing method and device, storage medium and electronic equipment
CN111930703A (en) Automatic log file capturing method and device and computer equipment
US10901984B2 (en) Enhanced batch updates on records and related records system and method
CN111212227B (en) Method, device and equipment for configuring video resolution of camera and storage medium
US10831634B1 (en) Replication of user interface events
CN109753437B (en) Test program generation method and device, storage medium and electronic equipment
CN108334429A (en) Method, apparatus and system for investigating front end page problem
CN111817916B (en) Test method, device, equipment and storage medium based on mobile terminal cluster
CN113485909A (en) Test method, test device, computing device, and medium
CN111475423A (en) Data entry method and device, electronic equipment and readable storage medium
US20140282426A1 (en) Divide and conquer approach to scenario timeline activity attribution
CN111651308A (en) Method and device for acquiring debugging data of DP-to-HDMI chip and intelligent device
CN110837467A (en) Software testing method, device and system
CN114328180A (en) Interface automation test method, system, electronic equipment and storage medium

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20200225