Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Script recording method and apparatus

A technology for script recording and user interface, which is applied to instruments, error detection/correction, calculation, etc. It can solve the problems of narrow script application scope and low recording efficiency, and achieve the effect of improving recording efficiency.

Active Publication Date: 2017-09-22
BEIJING YUNCE INFORMATION TECH CO LTD
View PDF4 Cites 26 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The embodiment of the present application provides a script recording method and device to solve the problems of low recording efficiency and narrow scope of script application in existing script recording schemes

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Script recording method and apparatus
  • Script recording method and apparatus
  • Script recording method and apparatus

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0072] figure 1 For a schematic flowchart of the script recording method provided in Embodiment 1 of the present application, see figure 1 , the method can be executed by the PC, and specifically includes the following steps:

[0073] Step 11, obtain the user interface screenshot and control information of the application program to be tested in the mobile terminal, the control information is used to describe the controls in the user interface screenshot;

[0074] It should be noted that before recording the script, the mobile terminal needs to be connected to the PC via USB or wireless.

[0075] Then, the user starts the script recording software installed on the PC, and the script recording software automatically detects the mobile terminal connected to the PC, and displays the detection results on the operation interface for the user to operate, wherein the operation interface is used for display Recording function options and recording parameter adjustment options, etc. ...

Embodiment 2

[0107] image 3 The schematic flow chart of the script recording method provided in Embodiment 2 of the present application is different from Embodiment 1 in that the application program to be tested in this embodiment can be an unreleased test version. Therefore, before recording the script, it is necessary to The application program and specific testing tool are installed in the mobile terminal, wherein the testing tool is used to collect user interface screenshots and control information.

[0108] The method can be implemented jointly by the PC end and the mobile terminal, and specifically includes the following steps:

[0109] Step 31, establishing a communication connection between the PC terminal and the mobile terminal

[0110] Wherein, the manner of communication connection includes USB connection and wireless connection.

[0111] Step 32, the PC side obtains the identification information of the test application program

[0112] It should be noted that, after a tes...

Embodiment 3

[0136] Figure 4 For a schematic structural diagram of the script recording device provided in Embodiment 3 of the present application, see Figure 4 , the device includes: an acquisition module 41, a determination module 42 and an entry module 43, wherein:

[0137] Obtaining module 41, is used for obtaining the user interface screenshot and control information of the application program to be tested in the mobile terminal, and described control information is used for describing the control in described user interface screenshot;

[0138] A determination module 42, configured to determine the operation information of the test operation performed on the screenshot of the user interface during the script recording process;

[0139] The input module 43 is configured to determine the control corresponding to the test operation according to the operation information and the control information, and input the control information of the determined control and the operation informat...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a script recording method and apparatus. The method comprises the steps of obtaining a user interface screenshot and control information of a to-be-tested application in a mobile terminal, wherein the control information is used for describing a control in the user interface screenshot; determining operation information of test operation executed for the user interface screenshot in a script recording process; and determining the control corresponding to the test operation according to the operation information and the control information, and inputting the control information of the determined control and the operation information of the test operation to a script. According to the script recording method and apparatus provided by embodiments of the invention, the control which a user wants to execute is determined based on the test operation of the user, and the control and related information are input to the script, so that the script recording efficiency can be improved and the application range of the recorded script can be expanded.

Description

technical field [0001] The present application relates to the technical field of software testing, in particular to a script recording method and device. Background technique [0002] A script is simply a series of text commands, which can be seen (for example, you can use Notepad to open it for viewing and editing). In the process of testing the application program, it can be temporarily called and executed to reduce the coding difficulty of the programmer and improve the convenience of use. For example, when the email address on the web page is clicked, it can automatically invoke email software such as Outlook Express or Foxmail. [0003] At present, script recording generally adopts an injection method, that is, the purpose of monitoring certain messages is realized by setting a hook program in the application program to be tested. However, this method changes the application under test itself, and there are two problems: one is to increase the coding workload, and the ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06F11/36
CPCG06F11/3684G06F11/3688
Inventor 蒋晓海谢春鸿
Owner BEIJING YUNCE INFORMATION TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products