WO2020233053A1 - 一种制作测试页面脚本的方法、装置、设备及存储介质 - Google Patents

一种制作测试页面脚本的方法、装置、设备及存储介质 Download PDF

Info

Publication number
WO2020233053A1
WO2020233053A1 PCT/CN2019/120807 CN2019120807W WO2020233053A1 WO 2020233053 A1 WO2020233053 A1 WO 2020233053A1 CN 2019120807 W CN2019120807 W CN 2019120807W WO 2020233053 A1 WO2020233053 A1 WO 2020233053A1
Authority
WO
WIPO (PCT)
Prior art keywords
page
tested
control
test
information
Prior art date
Application number
PCT/CN2019/120807
Other languages
English (en)
French (fr)
Inventor
王自挺
Original Assignee
深圳壹账通智能科技有限公司
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 深圳壹账通智能科技有限公司 filed Critical 深圳壹账通智能科技有限公司
Publication of WO2020233053A1 publication Critical patent/WO2020233053A1/zh

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/3684Test management for test design, e.g. generating new test cases
    • 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

Definitions

  • This application relates to the field of front-end performance testing, and in particular to methods, devices, equipment and storage media for making test page scripts.
  • test scripts such as testing the space in the web page; or automated testing through the coordinates of the tested page elements in the display screen.
  • the test script is run by controlling the mouse to the coordinate position To test the control.
  • the inventor realizes that since the coordinates of the control on the display screen are limited by the size or resolution of the display screen, once the display screen changes, the actual coordinates of the control on the display screen cannot be located by the mouse, and the control cannot be located. Perform tests to reduce test efficiency.
  • This application provides a method, device, equipment and storage medium for making test page scripts, which can solve the problem of low page test efficiency in the prior art.
  • this application provides a method for making a test page script, the method including:
  • test configuration information includes a website page, a browser page, an application page, or a web page;
  • test configuration information includes test description information, tested page element information, and expectations Performance standard
  • the page elements include at least controls, pages, process nodes, and icons , Button and one item in the input box;
  • test script is used to identify the position information of each control on the page;
  • Input the address information of the page to be tested to be recorded, and after the page to be tested is loaded according to the address information, record the test script of the page to be tested to obtain an automated script.
  • the present application provides a device for testing pages, which has the function of implementing the method corresponding to the method for making test page scripts provided in the first aspect.
  • the function can be realized by hardware, or by hardware executing corresponding software.
  • the hardware or software includes one or more modules corresponding to the above functions, and the modules may be software and/or hardware.
  • the device includes:
  • the processing module is used to configure the page to be tested and generate test configuration information; wherein, the page to be tested includes a website page, a browser page, an application page, or a web page; the test configuration information includes test description information, and test configuration information. Page element information and expected performance standards;
  • the page elements include at least controls, pages, process nodes, and icons , Button and one item in the input box;
  • test script is used to identify the position information of each control on the page;
  • An input and output module for receiving a first test instruction for the target element on the page to be tested
  • the processing module is further configured to execute the test script according to the first test instruction to identify the first position information of the target element on the page to be tested; preview the current test script according to the first position information
  • the preview page records the behavior data of the mouse on the preview page; wherein the behavior data includes the track data of the mouse on the preview page, and the text input and click operations of the mouse on the preview page;
  • the behavior data tracks and records the second position information of the target element on the preview page;
  • the address information of the page to be tested is input through the input and output module, and when the address information is loaded according to the address information After the page to be tested is described, the test script of the page to be tested is recorded to obtain an automated script.
  • Another aspect of the present application provides a computer storage medium in which computer instructions are stored, and when the computer instructions are executed on a computer, the computer executes the method described in the first aspect.
  • the page to be tested is configured to generate test configuration information; before the application is loaded, the page elements of the page to be tested are configured and laid out according to the configuration information read from the H5 page;
  • the configuration information generates a test script, receives the first test instruction for the target element on the page to be tested, and executes the test script according to the first test instruction to identify the first position information of the target element on the page to be tested; according to the first position information Preview the currently tested preview page, track and record the second position information of the target element on the preview page according to the mouse behavior data on the preview page; when the page to be tested is loaded according to the address information of the page to be tested to be recorded, Record the test script to record and get the automated script.
  • Using this solution can improve the accuracy and efficiency of the controls on the positioning page, and realize the purpose of quickly updating the automated script through the configurable feature of the page, thereby avoiding the problem that the automated script update cannot keep up with the page change.
  • FIG. 1 is a schematic flowchart of a method for making a test page script in an embodiment of the application
  • FIG. 2 is a schematic diagram of a structure of an apparatus for testing pages in an embodiment of the application
  • FIG. 3 is a schematic diagram of a structure of a computer device in an embodiment of the application.
  • a process, method, system, product or device that includes a series of steps or modules is not necessarily limited to the clearly listed Those steps or modules may include other steps or modules that are not clearly listed or are inherent to these processes, methods, products, or equipment.
  • the division of modules in this application is only a logical division In actual applications, there may be other divisions in implementation. For example, multiple modules may be combined or integrated in another system, or some features may be ignored or not implemented.
  • This application provides a method, device, equipment and storage medium for making test page scripts, which can be used for page configuration and page testing.
  • this application mainly provides the following technical solutions:
  • the test controller dynamically configures the tested page, stores the configuration information in the database according to the json format, and performs page layout on the 5th Generation HyperText Markup Language (HTML5) page according to the read configuration information.
  • the automated test tool assembles an automated script according to the configuration information, and recognizes the position information of the page controls according to the automated script, instead of manually positioning the controls.
  • the automated testing tool previews the tested page according to the position information of the page controls, and records mouse clicks, text input and other operations on the preview page to achieve the recording of the test script.
  • FIG. 1 Please refer to FIG. 1, the following describes a method for making a test page script in an embodiment of the present application, and the method includes:
  • the page to be tested may be a website page, a browser page, an application page or a web page.
  • the page to be tested may include information such as static display text, dynamic operable text, images, sounds, and controls.
  • static display text refers to text that is only used for display and reference on the page to be tested, such as the content of a news article.
  • Dynamic operable text refers to a button with similar functions in the text part of the page to be tested. In addition to displaying the content, it can also be operated by dynamically operable text in the page to be tested, such as the title of news, which not only displays the content, When you click on it, you can also start to enter the next page to display the content corresponding to the title.
  • the configuration information includes test description information, tested page element information and expected performance standards.
  • the configuration information can be stored in the database according to the Object Notation (JavaScript Object Notation, JSON) format.
  • JSON is a lightweight data exchange format. It is based on a subset of ECMAScript and uses a text format completely independent of programming language to store and represent data.
  • JSON is a string representation of a JS object. It uses text to represent the information of a JS object, which is essentially a string.
  • the page element includes at least one of controls, pages, process nodes, icons, buttons, and input boxes.
  • test script is used to identify the position information of each control on the page.
  • the testing script refers to a series of instructions for a specific test, and these instructions can be executed by automated testing tools.
  • Test scripts are maintainable and reusable. For example, some operations will appear in several test process nodes. The targets of these operations should be determined purposefully. These operations should be constructed before the test scripts are executed so that they can be These operations are reused in different test procedures.
  • Test scripts are computer-readable instructions that automatically execute test process nodes (or part of test process nodes). Test scripts can be created (recorded) or automatically generated using test automation tools, or completed by programming in a programming language, or can be completed by combining the first three methods.
  • test process node and the test script have greater resilience to changes in the page to be tested.
  • the test script is for a test process node, and a test process node requires a lot of data to test.
  • control information includes control type and control components. Controls include drop-down boxes, square boxes or round boxes.
  • different controls and control information of different controls can be obtained from the Dom Tree by traversing the Dom Tree of the page to be tested. For example, traversing the Dom Tree of the page to be tested, obtains the controls contained in the page to be tested from Dom Tree; traversing the Dom Tree of the page to be tested, obtains from the Dom Tree to the page to be tested
  • the control information of the included control wherein, the control information includes the control type and the components of the control. Controls include drop-down boxes, square boxes or round boxes.
  • identifying the target location information of the target element on the page to be tested through the test script can replace the operation of manually locating the page element and improve the test efficiency.
  • the target element is a target control
  • the execution of the test script to identify the first position information of the target element on the page to be tested includes:
  • the attributes of the image area with the Euclidean distance greater than the preset threshold are tested to identify that the target element is in the waiting Measure the first position information on the page.
  • mapping relationship between control attributes and image identifiers which are specifically as follows:
  • the behavior data includes track data of the mouse on the preview page, and text input and click operations of the mouse on the preview page.
  • the second location information may also be called location information, and may be in xpath format, and subsequent automated scripts will locate the page element according to the location information of xpath.
  • the process of recording the test script includes: business process, recording tool, and test script production.
  • Recording controllers for recording test scripts include Badboy tools and JMeter, using ports and recording controllers to manage recording scripts.
  • test script production number of threads created, number of cycles, start time, end time and start delay.
  • the number of threads indicates the number of users, that is, the number of users during the test.
  • the start time indicates the time when the script started. Duration represents the time the script continues to run, in seconds.
  • the start delay indicates the time for the script to delay the start. After clicking Start, if the start time has arrived, but the start delay time has not yet reached, then the start delay will cover the start time. Wait until the start delay time arrives before running the system .
  • the recording the test script of the page to be tested to obtain an automated script includes:
  • the number of threads indicates the number of users when testing the page;
  • the startup time indicates the time when the test script starts to start;
  • the duration indicates the time that the script continues to run;
  • the startup delay indicates the delayed start of the test script time;
  • the page to be tested is configured to generate test configuration information; before the application is loaded, the page elements of the page to be tested are configured and laid out according to the configuration information read from the H5 page;
  • the information generates a test script, receives the first test instruction for the target element on the page to be tested, executes the test script according to the first test instruction to identify the first position information of the target element on the page to be tested; preview according to the first position information
  • the preview page currently being tested track and record the second position information of the target element on the preview page according to the mouse behavior data on the preview page; when the page to be tested is loaded according to the address information of the page to be tested, it is recorded
  • the test script is recorded and an automated script is obtained.
  • the second location information is control location information in xpath format.
  • the method further includes:
  • the test configuration information is in a json format; the locating the controls on the page to be tested according to the control positioning information in the xpath format includes:
  • test configuration information includes test description information, test control information of the page to be tested, and expected performance standards.
  • the above describes a method for making a test page script in this application, and the following describes a device for executing the above method for making a test page script.
  • FIG. 2 a schematic structural diagram of a device 20 for testing pages, which can be applied to page configuration and testing.
  • the device 20 in the embodiment of the present application can implement the steps corresponding to the method for producing a test page script executed in the embodiment corresponding to FIG. 1.
  • the functions implemented by the device 20 can be implemented by hardware, or implemented by hardware executing corresponding software.
  • the hardware or software includes one or more modules corresponding to the above functions, and the modules may be software and/or hardware.
  • the device 20 may include an input/output module 201 and a processing module 202.
  • the processing module 202 can be used to control the acquisition and receiving and sending operations of the input and output module 201.
  • the processing module 202 can be used to configure the page to be tested to generate test configuration information; wherein the page to be tested includes a website page, a browser page, an application page, or a web page; the test configuration information includes Test description information, tested page element information and expected performance standards;
  • the page elements include at least controls, pages, process nodes, and icons , Button and one item in the input box;
  • test script is used to identify the position information of each control on the page;
  • the input and output module 201 may be used to receive a first test instruction for the target element on the page to be tested;
  • the processing module 202 is further configured to execute the test script according to the first test instruction to identify the first position information of the target element on the page to be tested; preview the current target element according to the first position information
  • the preview page of the test records the behavior data of the mouse on the preview page; wherein the behavior data includes the track data of the mouse on the preview page, and the text input and click operations of the mouse on the preview page; Track and record the second location information of the target element on the preview page according to the behavior data; input the address information of the page to be tested to be recorded through the input and output module 201, and when the address information is After the page to be tested is loaded, the test script of the page to be tested is recorded to obtain an automated script.
  • the processing module 202 at any time configures the page to be tested to generate test configuration information; before loading the application, configures and layouts the page elements of the page to be tested according to the configuration information read from the H5 page; generates tests based on the configuration information Script, the input and output module 201 at any time receives the first test instruction for the target element on the page to be tested, and executes the test script according to the first test instruction to identify the first position information of the target element on the page to be tested; according to the first position Information previews the preview page currently being tested, and tracks and records the second position information of the target element on the preview page according to the mouse behavior data on the preview page; when the page to be tested is loaded according to the address information of the page to be tested to be recorded , Record the test script to record, get the automated script.
  • Using this solution can improve the accuracy and efficiency of the controls on the positioning page, and realize the purpose of quickly updating the automated script through the configurable feature of the page, thereby avoiding the problem that the automated script update cannot keep
  • the processing module 202 is specifically configured to:
  • the attributes of the image area with the Euclidean distance greater than the preset threshold are tested to identify that the target element is in the waiting Measure the target location information on the page.
  • the target element is a control, and before the processing module 202 executes the test script, it is also used to:
  • Controls include drop-down boxes, square boxes or round boxes.
  • the processing module 202 is specifically configured to:
  • the number of threads indicates the number of users when testing the page;
  • the startup time indicates the time when the test script starts to start;
  • the duration indicates the time that the script continues to run;
  • the startup delay indicates the delayed start of the test script time;
  • the second location information is control location information in xpath format.
  • test configuration information of the page to be tested through the input and output module 201, where the test configuration information includes test description information, information about the tested controls of the page to be tested, and expected performance standards;
  • a page performance test report of the page to be tested is generated according to the test result data and the expected performance standard.
  • test configuration information is in json format; the processing module 202 is specifically configured to:
  • the processing module 202 determines the target image identifier that matches the control attribute of the target control according to the mapping relationship between the control attribute and the image identifier, it is further used to:
  • the device 20 for testing pages in the embodiments of the present application is separately introduced above from the perspective of modular functional entities.
  • the following describes a computer device from the perspective of hardware, as shown in FIG. 3, which includes: a processor, a memory, and an input An output unit (which may also be a transceiver, not identified in Figure 3) and a computer program stored in the memory and running on the processor.
  • the computer program may be a program corresponding to the method of making a test page script in the embodiment corresponding to FIG. 1.
  • the processor executes the computer program to implement the method for making a test page script executed by the apparatus 20 in the embodiment corresponding to FIG.
  • the computer program may be a program corresponding to the method of making a test page script in the embodiment corresponding to FIG. 1.
  • the so-called processor can be a central processing unit (Central Processing Unit, CPU), other general-purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), ready-made Field-Programmable Gate Array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc.
  • the general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.
  • the processor is the control center of the computer equipment, and various interfaces and lines are used to connect various parts of the entire computer equipment.
  • the physical device corresponding to the processing module 202 in FIG. 2 may be the processor in FIG. 3.
  • the memory may be used to store the computer program and/or module, and the processor implements the computer by running or executing the computer program and/or module stored in the memory, and calling data stored in the memory.
  • the memory may mainly include a storage program area and a storage data area, where the storage program area may store an operating system, an application program required by at least one function (such as a sound playback function, an image playback function, etc.); the storage data area may store Data created based on the use of mobile phones (such as audio data, video data, etc.), etc.
  • the memory may include high-speed random access memory, and may also include non-volatile memory, such as hard disks, memory, plug-in hard disks, smart media cards (SMC), and secure digital (SD) cards , Flash Card, at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device.
  • non-volatile memory such as hard disks, memory, plug-in hard disks, smart media cards (SMC), and secure digital (SD) cards , Flash Card, at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device.
  • the input and output units can also be replaced by input units and output units, and they can be the same or different physical entities. When they are the same physical entity, they can be collectively referred to as input and output units.
  • the input and output unit may also be called a transceiver.
  • the physical device corresponding to the input/output module 201 in FIG. 2 may be the input/output unit in FIG. 3.
  • the memory may be integrated in the processor, or may be provided separately from the processor.
  • the application also provides a computer-readable storage medium.
  • the computer-readable storage medium may be a non-volatile computer-readable storage medium, or may be a volatile computer-readable storage medium.
  • the computer-readable storage medium stores computer instructions, and when the computer instructions are executed on the computer, the computer executes the following steps:
  • Obtain the data in the main storage volume calculate the first check value of the data according to the digest check algorithm, and store the first check value in the data, where the data includes: the main All data in the storage volume or data to be backed up, where the first check value is used to verify the integrity of the data after being backed up to the backup storage volume;
  • the method of the above embodiments can be implemented by means of software plus the necessary general hardware platform. Of course, it can also be implemented by hardware, but in many cases the former is better. ⁇
  • the technical solution of this application essentially or the part that contributes to the existing technology can be embodied in the form of a software product.
  • the computer software product is stored in a storage medium (such as ROM/RAM), including Several instructions are used to make a terminal (which may be a mobile phone, a computer, a server, or a network device, etc.) execute the method described in each embodiment of the present application.

Abstract

本申请涉及前端性能测试领域,提供一种制作测试页面脚本的方法、装置、设备及存储介质,方法包括:对待测页面进行配置,生成测试配置信息;加载应用之前,根据H5页面读取的配置信息对待测页面的页面元素进行配置和布局;根据配置信息生成测试脚本,接收针对待测页面上的目标元素的第一测试指令,根据第一测试指令执行测试脚本,以识别目标元素在待测页面上的第一位置信息;根据第一位置信息预览当前被测试的预览页面,根据鼠标在预览页面上的行为数据跟踪并记录目标元素在预览页面上的第二位置信息;当根据输入待录制的待测页面的地址信息加载待测页面后,对测试脚本进行录制,得到自动化脚本。采用本方案能够提高定位页面上控件的精确度和效率。

Description

一种制作测试页面脚本的方法、装置、设备及存储介质
本申请要求于2019年5月22日提交中国专利局、申请号为201910427421.5、发明名称为“一种制作测试页面脚本的方法、装置、设备及存储介质”的中国专利申请的优先权,其全部内容通过引用结合在申请中。
技术领域
本申请涉及前端性能测试领域,尤其涉及制作测试页面脚本的方法、装置、设备及存储介质。
背景技术
网站的内容在加载显示时,需要大量的后台脚本制程,但是脚本在运行时,可能因为硬件或软件等原因导致网站的页面在显示时出现错误。因此,需要在发布网站之前对网站进行测试,以保证网站正常运行。
目前主要通过测试脚本对网页进行测试,例如对网页中的空间进行测试;或者通过被测页面元素在显示屏中的坐标进行自动化测试,该方式中,是通过控制鼠标到坐标位置来运行测试脚本以对该控件进行测试的。发明人意识到由于控件在显示屏上的坐标受显示屏尺寸或分辨率的限制,所以一旦显示屏发生变化,就无法通过鼠标定位到控件在显示屏上的实际坐标,最终导致无法对该控件进行测试,降低测试效率。
此外,由于被测页面会不定期或定期更新,若被测页面更新时,也需要自动化脚本对应更新。当被测页面变化频繁时,则会导致自动化脚本失效或者来不及更新,最终导致测试效率降低,增加大量的维护成本。
发明内容
本申请提供了一种制作测试页面脚本的方法、装置、设备及存储介质,能够解决现有技术中的页面测试效率较低问题。
第一方面,本申请提供一种制作测试页面脚本的方法,所述方法包括:
对待测页面进行配置,生成测试配置信息;其中,所述待测页面包括网站页面、浏览器页面、应用页面或web页面;所述测试配置信息包括测试描述信息、被测的页面元素信息和预期性能标准;
在加载应用之前,基于H5页面读取所述配置信息,根据所述配置信息对所述待测页面的页面元素进行配置和布局;其中,所述页面元素至少包括控件、页面、流程节点、图标、按钮和输入框中的一项;
根据所述配置信息生成测试脚本,所述测试脚本用于识别页面上各控件的位置信息;
接收针对所述待测页面上的目标元素的第一测试指令,根据所述第一测试指令执行所述测试脚本,以识别所述目标元素在所述待测页面上的第一位置信息;
根据所述第一位置信息预览当前被测试的预览页面,记录鼠标在所述预览页面上的行为数据;其中,所述行为数据包括鼠标在所述预览页面上的轨迹数据、以及鼠标在所述预览页面上的文本输入和点击操作;
根据所述行为数据跟踪并记录所述目标元素在所述预览页面上的第二位置信息;
输入待录制的所述待测页面的地址信息,当根据所述地址信息加载所述待测页面后,对所述待测页面的测试脚本进行录制,得到自动化脚本。
第二方面,本申请提供一种用于测试页面的装置,具有实现对应于上述第一方面提供的制作测试页面脚本的方法的功能。所述功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。硬件或软件包括一个或多个与上述功能相对应的模块,所述模块可以是软件和/或硬件。
一种可能的设计中,所述装置包括:
处理模块,用于对待测页面进行配置,生成测试配置信息;其中,所述待测页面包括网站页面、浏览器页面、应用页面或web页面;所述测试配置信息包括测试描述信息、被测的页面元素信息和预期性能标准;
在加载应用之前,基于H5页面读取所述配置信息,根据所述配置信息对所述待测页面的页面元素进行配置和布局;其中,所述页面元素至少包括控件、页面、流程节点、图标、按钮和输入框中的一项;
根据所述配置信息生成测试脚本,所述测试脚本用于识别页面上各控件的位置信息;
输入输出模块,用于接收针对所述待测页面上的目标元素的第一测试指令;
所述处理模块还用于根据所述第一测试指令执行所述测试脚本,以识别所述目标元素在所述待测页面上的第一位置信息;根据所述第一位置信息预览当前被测试的预览页面,记录鼠标在所述预览页面上的行为数据;其中,所述行为数据包括鼠标在所述预览页面上的轨迹数据、以及鼠标在所述预览页面上的文本输入和点击操作;根据所述行为数据跟踪 并记录所述目标元素在所述预览页面上的第二位置信息;通过所述输入输出模块输入待录制的所述待测页面的地址信息,当根据所述地址信息加载所述待测页面后,对所述待测页面的测试脚本进行录制,得到自动化脚本。
本申请又一方面提供了一种计算机设备,其包括至少一个连接的处理器、存储器和输入输出单元,其中,所述存储器用于存储程序代码,所述处理器用于调用所述存储器中的程序代码来执行上述第一方面所述的方法。
本申请又一方面提供了一种计算机存储介质,所述计算机可读存储介质中存储有计算机指令,当所述计算机指令在计算机上运行时,使得计算机执行上述第一方面所述的方法。
相较于现有技术,本申请提供的方案中,对待测页面进行配置,生成测试配置信息;在加载应用之前,根据H5页面读取的配置信息对待测页面的页面元素进行配置和布局;根据配置信息生成测试脚本,接收针对待测页面上的目标元素的第一测试指令,根据第一测试指令执行测试脚本,以识别目标元素在待测页面上的第一位置信息;根据第一位置信息预览当前被测试的预览页面,根据鼠标在预览页面上的行为数据跟踪并记录目标元素在预览页面上的第二位置信息;当根据输入待录制的待测页面的地址信息加载待测页面后,录制测试脚本进行录制,得到自动化脚本。采用本方案能够提高定位页面上控件的精确度和效率,以及通过页面的可配置化特性实现迅速更新自动化脚本的目的,从而避免自动化脚本更新跟不上页面变化所导致的问题。
附图说明
图1为本申请实施例中制作测试页面脚本的方法的一种流程示意图;
图2为本申请实施例中用于测试页面的装置的一种结构示意图;
图3为本申请实施例中计算机设备的一种结构示意图。
具体实施方式
应当理解,此处所描述的具体实施例仅用以解释本申请,并不用于限定本申请。本申请的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互 换,以便这里描述的实施例能够以除了在这里图示或描述的内容以外的顺序实施。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或模块的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或模块,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或模块,本申请中所出现的模块的划分,仅仅是一种逻辑上的划分,实际应用中实现时可以有另外的划分方式,例如多个模块可以结合成或集成在另一个系统中,或一些特征可以忽略,或不执行。
本申请提供一种制作测试页面脚本的方法、装置、设备及存储介质,可用于页面配置和页面测试。
为解决上述技术问题,本申请主要提供以下技术方案:
测试控制器对被测页面进行动态配置,将配置信息按照json格式存入数据库,由第五代超文本标记语言(5rd Generation HyperText Markup Language,HTML5)页面根据读取的配置信息进行页面布局。自动化测试工具根据配置信息组装成自动化脚本,根据自动化脚本识别页面控件的位置信息,替代人工定位控件的操作。自动化测试工具根据页面控件的位置信息,预览被测页面,并在预览页面上记录鼠标点击、文本输入等操作,以此实现测试脚本的录制。能够解决上述背景技术中的技术问题。
请参照图1,以下介绍本申请实施例中的一种制作测试页面脚本的方法,所述方法包括:
101、对待测页面进行配置,生成配置信息。
其中,所述待测页面可以是网站页面、浏览器页面、应用页面或web页面。所述待测页面可包括静态显示文字、动态可操作文字、图像、声音和控件等信息。其中,静态显示文字是指在待测页面中仅用来显示且供查阅的文字,例如一篇新闻的内容。动态可操作文字是指在待测页面中该文字部分的功能类似按钮,除了显示内容之外,还可通过对待测页面中动态可操作的文字进行操作,例如新闻的标题,其不仅显示内容,当对其进行点击操作候,还可以启动进入下一页,以显示标题对应的内容。
所述配置信息包括测试描述信息、被测的页面元素信息和预期性能标准。所述配置信息可按照对象简谱(JavaScript Object Notation,JSON)格式存入数据库。其中,JSON是一种轻量级的数据交换格式。它基于ECMAScript的一个子集,采用完全独立于编程语言的文本格式来存储和表示数据。JSON是JS对象的字符串表示法,它使用文本表示一个JS对象的信息,本质是一个字符串。
102、在加载应用之前,基于H5页面读取所述配置信息,根据所述配置信息对所述待测页面的页面元素进行配置和布局。
其中,所述页面元素至少包括控件、页面、流程节点、图标、按钮和输入框中的一项。
103、根据所述配置信息生成测试脚本。
其中,所述测试脚本用于识别页面上各控件的位置信息。所述测试脚本(Testing script)是指一个特定测试的一系列指令,这些指令可以被自动化测试工具执行。测试脚本具备可维护性和可复用性,例如,有的操作将出现在几个测试流程节点中,应有目的地确定这些操作的目标,在执行测试脚本之前对这些操作进行构建,以便在不同测试流程中复用这些操作。测试脚本是自动执行测试流程节点(或部分测试流程节点)的计算机可读指令。测试脚本可以被创建(记录)或使用测试自动化工具自动生成,或用编程语言编程来完成,也可综合前三种方法来完成。
本申请实施例中,在更改应用的功能时,需要对该应用中的测试流程节点进行局部的可控制的变更,使得测试流程节点和测试脚本对待测页面的变化有更大的应变能力。例如,假设软件的登录控件已经改变,在遍历该登录控件的所有测试用例中,只有关于登录的测试流程节点和测试脚本需要进行改变。测试脚本是针对一个测试流程节点的,一个测试流程节点需要众多的数据来测试。通过自动录制得到的自动化脚本,所有的输入数据都是常数且固定。如果需要使用一个测试脚本测试多组数据,就需要对脚本进行参数化,把固定的常数修改为来自数据源变量。
104、接收针对所述待测页面上的目标元素的第一测试指令,根据所述第一测试指令执行所述测试脚本,以识别所述目标元素在所述待测页面上的第一位置信息。
一些实施方式中,所述目标元素为控件时,运行所述测试脚本之前,先确定所述待测页面中包含的控件,以及确定控件的控件信息。所述控件的信息包括控件类型和控件的组件。控件包括下拉框、方形框或圆形框。
在执行所述测试脚本之前,可以通过遍历待测试页面的Dom Tree,从Dom Tree中获取到不同控件,以及不同控件的控件信息。例如,遍历所述待测试页面的Dom Tree,从Dom Tree中获取到所述待测页面中包含的控件;遍历所述待测试页面的Dom Tree,从Dom Tree中获取到所述待测页面中包含的控件的控件信息;其中,所述控件的信息包括控件类型和控件的组件。控件包括下拉框、方形框或圆形框。
可见,通过所述测试脚本识别所述目标元素在所述待测页面上的目标位置信息,能够代替人工定位页面元素的操作,提高测试效率。
一些实施方式中,所述目标元素为目标控件,所述执行所述测试脚本,以识别所述目标元素在所述待测页面上的第一位置信息,包括:
扫描所述待测页面,得到所述待测页面的多个图像区域,获取每个图像区域的图像标识,每个图像区域对应一个控件;
获取目标控件的控件属性,根据控件属性与图像标识的映射关系确定与所述目标控件的控件属性匹配的目标图像标识;
若确定与所述目标图像标识对应的图像区域的欧氏距离大于预设阈值,则对欧氏距离大于所述预设阈值的图像区域的属性进行测试,以识别所述目标元素在所述待测页面上的第一位置信息。
一些实施方式中,下面介绍建立控件属性与图像标识的映射关系,具体如下:
针对每个控件,根据控件的控件信息计算控件在所述待测页面对应在显示屏上的坐标数据;
根据各控件的坐标数据在所述显示屏中截取控件的图像标识;
根据控件类型确定控件的控件属性,建立控件属性与图像标识之间的映射关系。
105、根据所述第一位置信息预览当前被测试的预览页面,记录鼠标在所述预览页面上的行为数据。
其中,所述行为数据包括鼠标在所述预览页面上的轨迹数据、以及鼠标在所述预览页面上的文本输入和点击操作。
106、根据所述行为数据跟踪并记录所述目标元素在所述预览页面上的第二位置信息。
其中,第二位置信息也可以称为定位信息,可以是xpath格式,后续自动化脚本会根据xpath的定位信息去定位这个页面元素。
107、输入待录制的所述待测页面的地址信息,当所述待测页面加载完成后,对所述待测页面的测试脚本进行录制,得到自动化脚本。
本申请实施例中,录制所述测试脚本的流程包括:业务流程、录制工具和测试脚本制作。用于录制测试脚本的录制控制器包括Badboy工具和JMeter,使用端口和录制控制器来管理录制脚本。
其中,测试脚本制作:创建线程数、循环次数、启动时间、结束时间和启动延迟。其中,线程数:表示多少个用户,即测试时的用户数量。启动时间表示脚本开始启动的时间。持续时间表示脚本持续运行的时间,以秒为单位。启动延迟表示脚本延迟启动的时间,在点击启动后,如果启动时间已经到达,但是还没有到启动延迟的时间,那么,启动延迟将 会覆盖启动时间,等到启动延迟的时间到达后,再运行系统。
一些实施方式中,所述对所述待测页面的测试脚本进行录制,得到自动化脚本,包括:
为所述待测页面创建线程数、循环次数、启动时间、持续时间、结束时间和启动延迟;
其中,所述线程数表示测试页面时的用户数量;所述启动时间表示所述测试脚本开始启动的时间;所述持续时间表示脚本持续运行的时间;所述启动延迟表示所述测试脚本延迟启动的时间;
使用端口和录制控制器对所述待测页面的测试脚本进行录制,得到自动化脚本。
与现有机制相比,本申请实施例中,对待测页面进行配置,生成测试配置信息;在加载应用之前,根据H5页面读取的配置信息对待测页面的页面元素进行配置和布局;根据配置信息生成测试脚本,接收针对待测页面上的目标元素的第一测试指令,根据第一测试指令执行测试脚本,以识别目标元素在待测页面上的第一位置信息;根据第一位置信息预览当前被测试的预览页面,根据鼠标在预览页面上的行为数据跟踪并记录目标元素在预览页面上的第二位置信息;当根据输入待录制的待测页面的地址信息加载待测页面后,录制测试脚本进行录制,得到自动化脚本。采用本方案能够提高定位页面上控件的精确度和效率,以及通过页面的可配置化特性实现迅速更新自动化脚本的目的,从而避免自动化脚本更新跟不上页面变化所导致的问题。
可选的,本申请的一些实施例中,所述第二位置信息为xpath格式的控件定位信息,所述得到自动化脚本之后,所述方法还包括:
(1接收针对所述待测页面上的目标元素的第二测试指令,根据所述第二测试指令执行所述自动化脚本。
(2根据所述xpath格式的控件定位信息定位所述待测页面上的控件。
一些些实施方式中,所述测试配置信息为json格式;所述根据所述xpath格式的控件定位信息定位所述待测页面上的控件,包括:
读取json格式的所述测试配置信息;
将json格式的所述测试配置信息转换为所述xpath格式的控件定位信息;
根据转换得到的所述xpath格式的控件定位信息定位所述待测页面上的控件。
(3)获取所述待测页面的所述测试配置信息,所述测试配置信息包括测试描述信息、所述待测页面的被测控件信息和预期性能标准。
(4)根据所述测试描述信息和所述待测页面的被测控件信息对所述目标元素进行测试,得到所述待测页面的测试结果,根据所述测试结果数据和所述预期性能标准生成所述 待测页面的页面性能测试报告。
上述图1所对应的实施例或实施方式中所提及的技术特征也同样适用于本申请中的图2和图3所对应的实施例,后续类似之处不再赘述。
以上对本申请中一种制作测试页面脚本的方法进行说明,以下对执行上述制作测试页面脚本的方法的装置进行描述。
如图2所示的一种用于测试页面的装置20的结构示意图,其可应用于页面配置和测试。本申请实施例中的装置20能够实现对应于上述图1所对应的实施例中所执行的制作测试页面脚本的方法的步骤。装置20实现的功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。硬件或软件包括一个或多个与上述功能相对应的模块,所述模块可以是软件和/或硬件。所述装置20可包括输入输出模块201和处理模块202,所述处理模块202和输入输出模块201的功能实现可参考图1所对应的实施例中所执行的操作,此处不作赘述。所述处理模块202可用于控制所述输入输出模块201的获取和收发操作。
一些实施方式中,所述处理模块202可用于对待测页面进行配置,生成测试配置信息;其中,所述待测页面包括网站页面、浏览器页面、应用页面或web页面;所述测试配置信息包括测试描述信息、被测的页面元素信息和预期性能标准;
在加载应用之前,基于H5页面读取所述配置信息,根据所述配置信息对所述待测页面的页面元素进行配置和布局;其中,所述页面元素至少包括控件、页面、流程节点、图标、按钮和输入框中的一项;
根据所述配置信息生成测试脚本,所述测试脚本用于识别页面上各控件的位置信息;
所述输入输出模块201可用于接收针对所述待测页面上的目标元素的第一测试指令;
所述处理模块202还用于根据所述第一测试指令执行所述测试脚本,以识别所述目标元素在所述待测页面上的第一位置信息;根据所述第一位置信息预览当前被测试的预览页面,记录鼠标在所述预览页面上的行为数据;其中,所述行为数据包括鼠标在所述预览页面上的轨迹数据、以及鼠标在所述预览页面上的文本输入和点击操作;根据所述行为数据跟踪并记录所述目标元素在所述预览页面上的第二位置信息;通过所述输入输出模块201输入待录制的所述待测页面的地址信息,当根据所述地址信息加载所述待测页面后,对所述待测页面的测试脚本进行录制,得到自动化脚本。
本申请实施例中,随时处理模块202对待测页面进行配置,生成测试配置信息;在加载应用之前,根据H5页面读取的配置信息对待测页面的页面元素进行配置和布局;根据 配置信息生成测试脚本,随时输入输出模块201接收针对待测页面上的目标元素的第一测试指令,根据第一测试指令执行测试脚本,以识别目标元素在待测页面上的第一位置信息;根据第一位置信息预览当前被测试的预览页面,根据鼠标在预览页面上的行为数据跟踪并记录目标元素在预览页面上的第二位置信息;当根据输入待录制的待测页面的地址信息加载待测页面后,录制测试脚本进行录制,得到自动化脚本。采用本方案能够提高定位页面上控件的精确度和效率,以及通过页面的可配置化特性实现迅速更新自动化脚本的目的,从而避免自动化脚本更新跟不上页面变化所导致的问题。
一些实施方式中,所述处理模块202具体用于:
扫描所述待测页面,得到所述待测页面的多个图像区域,获取每个图像区域的图像标识,每个图像区域对应一个控件;
通过所述输入输出模块201获取目标控件的控件属性,根据控件属性与图像标识的映射关系确定与所述目标控件的控件属性匹配的目标图像标识;
若确定与所述目标图像标识对应的图像区域的欧氏距离大于预设阈值,则对欧氏距离大于所述预设阈值的图像区域的属性进行测试,以识别所述目标元素在所述待测页面上的目标位置信息。
一些实施方式中,所述目标元素为控件,所述处理模块202执行所述测试脚本之前,还用于:
遍历所述待测试页面的Dom Tree,从Dom Tree中获取到所述待测页面中包含的控件;
遍历所述待测试页面的Dom Tree,从Dom Tree中获取到所述待测页面中包含的控件的控件信息;其中,所述控件的信息包括控件类型和控件的组件。控件包括下拉框、方形框或圆形框。
一些实施方式中,所述处理模块202具体用于:
为所述待测页面创建线程数、循环次数、启动时间、持续时间、结束时间和启动延迟;
其中,所述线程数表示测试页面时的用户数量;所述启动时间表示所述测试脚本开始启动的时间;所述持续时间表示脚本持续运行的时间;所述启动延迟表示所述测试脚本延迟启动的时间;
使用端口和录制控制器对所述待测页面的测试脚本进行录制,得到自动化脚本。
一些实施方式中,所述第二位置信息为xpath格式的控件定位信息,所述处理模块202得到自动化脚本之后,还用于:
通过所述输入输出模块201接收针对所述待测页面上的目标元素的第二测试指令;
根据所述第二测试指令执行所述自动化脚本;
根据所述xpath格式的控件定位信息定位所述待测页面上的控件;
通过所述输入输出模块201获取所述待测页面的所述测试配置信息,所述测试配置信息包括测试描述信息、所述待测页面的被测控件信息和预期性能标准;
根据所述测试描述信息和所述待测页面的被测控件信息对所述目标元素进行测试,得到所述待测页面的测试结果;
根据所述测试结果数据和所述预期性能标准生成所述待测页面的页面性能测试报告。
一些实施方式中,所述测试配置信息为json格式;所述处理模块202具体用于:
读取json格式的所述测试配置信息;
将json格式的所述测试配置信息转换为所述xpath格式的控件定位信息;
根据转换得到的所述xpath格式的控件定位信息定位所述待测页面上的控件。
一些实施方式中,所述处理模块202根据控件属性与图像标识的映射关系确定与所述目标控件的控件属性匹配的目标图像标识之前,还用于:
针对每个控件,根据控件的控件信息计算控件在所述待测页面对应在显示屏上的坐标数据;
根据各控件的坐标数据在所述显示屏中截取控件的图像标识;
根据控件类型确定控件的控件属性,建立控件属性与图像标识之间的映射关系。
上面从模块化功能实体的角度分别介绍了本申请实施例中的用于测试页面的装置20,以下从硬件角度介绍一种计算机设备,如图3所示,其包括:处理器、存储器、输入输出单元(也可以是收发器,图3中未标识出)以及存储在所述存储器中并可在所述处理器上运行的计算机程序。例如,该计算机程序可以为图1所对应的实施例中制作测试页面脚本的方法对应的程序。例如,当计算机设备实现如图2所示的装置20的功能时,所述处理器执行所述计算机程序时实现上述图2所对应的实施例中由装置20执行的制作测试页面脚本的方法中的各步骤;或者,所述处理器执行所述计算机程序时实现上述图2所对应的实施例的装置20中各模块的功能。又例如,该计算机程序可以为图1所对应的实施例中制作测试页面脚本的方法对应的程序。
所称处理器可以是中央处理单元(Central Processing Unit,CPU),还可以是其他通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现成可编程门阵列(Field-Programmable Gate Array, FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等,所述处理器是所述计算机设备的控制中心,利用各种接口和线路连接整个计算机设备的各个部分。图2中的处理模块202对应的实体设备可以是图3中的处理器。
所述存储器可用于存储所述计算机程序和/或模块,所述处理器通过运行或执行存储在所述存储器内的计算机程序和/或模块,以及调用存储在存储器内的数据,实现所述计算机设备的各种功能。所述存储器可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据手机的使用所创建的数据(比如音频数据、视频数据等)等。此外,存储器可以包括高速随机存取存储器,还可以包括非易失性存储器,例如硬盘、内存、插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(Flash Card)、至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。
所述输入输出单元也可以用输入单元和输出单元代替,可以为相同或者不同的物理实体。为相同的物理实体时,可以统称为输入输出单元。该输入输出单元也可称为收发器。图2中的输入输出模块201对应的实体设备可以是图3中的输入输出单元。
所述存储器可以集成在所述处理器中,也可以与所述处理器分开设置。
本申请还提供一种计算机可读存储介质。该计算机可读存储介质可以为非易失性计算机可读存储介质,也可以为易失性计算机可读存储介质。计算机可读存储介质存储有计算机指令,当所述计算机指令在计算机上运行时,使得计算机执行如下步骤:
获取主存储卷中的数据,并根据摘要校验算法计算所述数据的第一校验值以及将所述第一校验值存储于所述数据中,其中,所述数据包括:所述主存储卷中的所有数据或待备份的数据,所述第一校验值用于对所述数据备份至备存储卷后的完整性进行校验;
获取备存储卷中的备份数据,并根据所述摘要校验算法计算所述备份数据的第二校验值;
基于所述第一校验值和所述第二校验值,确定所述备存储卷中的备份数据是否存在异常,其中,所述异常为所述备存储卷中的数据与所述主存储卷中的数据不一致;
若确定所述备存储卷中的备份数据存在异常,则启动所述数据的备份程序将所述主存储卷中的数据发送至所述备存储卷,并删除所述备存储卷中原始的备份数据。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM)中,包括若干指令用以使得一台终端(可以是手机,计算机,服务器或者网络设备等)执行本申请各个实施例所述的方法。
上面结合附图对本申请的实施例进行了描述,但是本申请并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本申请的启示下,在不脱离本申请宗旨和权利要求所保护的范围情况下,还可做出很多形式,凡是利用本申请说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,这些均属于本申请的保护之内。

Claims (20)

  1. 一种制作测试页面脚本的方法,所述方法包括:
    对待测页面进行配置,生成测试配置信息;其中,所述待测页面包括网站页面、浏览器页面、应用页面或web页面;所述测试配置信息包括测试描述信息、被测的页面元素信息和预期性能标准;
    在加载应用之前,基于超文本标记语言H5页面读取所述配置信息,根据所述配置信息对所述待测页面的页面元素进行配置和布局;其中,所述页面元素至少包括控件、页面、流程节点、图标、按钮和输入框中的一项;
    根据所述配置信息生成测试脚本,所述测试脚本用于识别页面上各控件的位置信息;
    接收针对所述待测页面上的目标元素的第一测试指令,根据所述第一测试指令执行所述测试脚本,以识别所述目标元素在所述待测页面上的第一位置信息;
    根据所述第一位置信息预览当前被测试的预览页面,记录鼠标在所述预览页面上的行为数据;其中,所述行为数据包括鼠标在所述预览页面上的轨迹数据、以及鼠标在所述预览页面上的文本输入和点击操作;
    根据所述行为数据跟踪并记录所述目标元素在所述预览页面上的第二位置信息;
    输入待录制的所述待测页面的地址信息,当根据所述地址信息加载所述待测页面后,对所述待测页面的测试脚本进行录制,得到自动化脚本。
  2. 根据权利要求1所述的方法,所述执行所述测试脚本,以识别所述目标元素在所述待测页面上的第一位置信息,包括:
    扫描所述待测页面,得到所述待测页面的多个图像区域,获取每个图像区域的图像标识,每个图像区域对应一个控件;
    获取目标控件的控件属性,根据控件属性与图像标识的映射关系确定与所述目标控件的控件属性匹配的目标图像标识;
    若确定与所述目标图像标识对应的图像区域的欧氏距离大于预设阈值,则对欧氏距离大于所述预设阈值的图像区域的属性进行测试,以识别所述目标元素在所述待测页面上的第一位置信息。
  3. 根据权利要求1或2所述的方法,所述目标元素为控件,所述执行所述测试脚本之前,所述方法还包括:
    遍历所述待测试页面的Dom Tree,从Dom Tree中获取到所述待测页面中包含的控件;
    遍历所述待测试页面的Dom Tree,从Dom Tree中获取到所述待测页面中包含的控件 的控件信息;其中,所述控件的信息包括控件类型和控件的组件。控件包括下拉框、方形框或圆形框。
  4. 根据权利要求3所述的方法,所述对所述待测页面的测试脚本进行录制,得到自动化脚本,包括:
    为所述待测页面创建线程数、循环次数、启动时间、持续时间、结束时间和启动延迟;
    其中,所述线程数表示测试页面时的用户数量;所述启动时间表示所述测试脚本开始启动的时间;所述持续时间表示脚本持续运行的时间;所述启动延迟表示所述测试脚本延迟启动的时间;
    使用端口和录制控制器对所述待测页面的测试脚本进行录制,得到自动化脚本。
  5. 根据权利要求4所述的方法,所述第二位置信息为xpath格式的控件定位信息,所述得到自动化脚本之后,所述方法还包括:
    接收针对所述待测页面上的目标元素的第二测试指令;
    根据所述第二测试指令执行所述自动化脚本;
    根据所述xpath格式的控件定位信息定位所述待测页面上的控件;
    获取所述待测页面的所述测试配置信息,所述测试配置信息包括测试描述信息、所述待测页面的被测控件信息和预期性能标准;
    根据所述测试描述信息和所述待测页面的被测控件信息对所述目标元素进行测试,得到所述待测页面的测试结果;
    根据所述测试结果数据和所述预期性能标准生成所述待测页面的页面性能测试报告。
  6. 根据权利要求5所述的方法,所述测试配置信息为json格式;所述根据所述xpath格式的控件定位信息定位所述待测页面上的控件,包括:
    读取json格式的所述测试配置信息;
    将json格式的所述测试配置信息转换为所述xpath格式的控件定位信息;
    根据转换得到的所述xpath格式的控件定位信息定位所述待测页面上的控件。
  7. 根据权利要求2所述的方法,所述根据控件属性与图像标识的映射关系确定与所述目标控件的控件属性匹配的目标图像标识之前,所述方法还包括:
    针对每个控件,根据控件的控件信息计算控件在所述待测页面对应在显示屏上的坐标数据;
    根据各控件的坐标数据在所述显示屏中截取控件的图像标识;
    根据控件类型确定控件的控件属性,建立控件属性与图像标识之间的映射关系。
  8. 一种用于测试页面的装置,所述装置包括:
    处理模块,用于对待测页面进行配置,生成测试配置信息;其中,所述待测页面包括网站页面、浏览器页面、应用页面或web页面;所述测试配置信息包括测试描述信息、被测的页面元素信息和预期性能标准;
    在加载应用之前,基于超文本标记语言H5页面读取所述配置信息,根据所述配置信息对所述待测页面的页面元素进行配置和布局;其中,所述页面元素至少包括控件、页面、流程节点、图标、按钮和输入框中的一项;
    根据所述配置信息生成测试脚本,所述测试脚本用于识别页面上各控件的位置信息;
    输入输出模块,用于接收针对所述待测页面上的目标元素的第一测试指令;
    所述处理模块还用于根据所述第一测试指令执行所述测试脚本,以识别所述目标元素在所述待测页面上的第一位置信息;根据所述第一位置信息预览当前被测试的预览页面,记录鼠标在所述预览页面上的行为数据;其中,所述行为数据包括鼠标在所述预览页面上的轨迹数据、以及鼠标在所述预览页面上的文本输入和点击操作;根据所述行为数据跟踪并记录所述目标元素在所述预览页面上的第二位置信息;通过所述输入输出模块输入待录制的所述待测页面的地址信息,当根据所述地址信息加载所述待测页面后,对所述待测页面的测试脚本进行录制,得到自动化脚本。
  9. 根据权利要求8所述的装置,所述处理模块具体用于:
    扫描所述待测页面,得到所述待测页面的多个图像区域,获取每个图像区域的图像标识,每个图像区域对应一个控件;
    通过所述输入输出模块获取目标控件的控件属性,根据控件属性与图像标识的映射关系确定与所述目标控件的控件属性匹配的目标图像标识;
    若确定与所述目标图像标识对应的图像区域的欧氏距离大于预设阈值,则对欧氏距离大于所述预设阈值的图像区域的属性进行测试,以识别所述目标元素在所述待测页面上的第一位置信息。
  10. 根据权利要求8或9所述的装置,所述目标元素为控件,所述处理模块执行所述测试脚本之前,还用于:
    遍历所述待测试页面的Dom Tree,从Dom Tree中获取到所述待测页面中包含的控件;
    遍历所述待测试页面的Dom Tree,从Dom Tree中获取到所述待测页面中包含的控件的控件信息;其中,所述控件的信息包括控件类型和控件的组件。控件包括下拉框、方形框或圆形框。
  11. 根据权利要求10所述的装置,所述处理模块具体用于:
    为所述待测页面创建线程数、循环次数、启动时间、持续时间、结束时间和启动延迟;
    其中,所述线程数表示测试页面时的用户数量;所述启动时间表示所述测试脚本开始启动的时间;所述持续时间表示脚本持续运行的时间;所述启动延迟表示所述测试脚本延迟启动的时间;
    使用端口和录制控制器对所述待测页面的测试脚本进行录制,得到自动化脚本。
  12. 根据权利要求11所述的装置,所述第二位置信息为xpath格式的控件定位信息,所述处理模块得到自动化脚本之后,还用于:
    通过所述输入输出模块接收针对所述待测页面上的目标元素的第二测试指令;
    根据所述第二测试指令执行所述自动化脚本;
    根据所述xpath格式的控件定位信息定位所述待测页面上的控件;
    通过所述输入输出模块获取所述待测页面的所述测试配置信息,所述测试配置信息包括测试描述信息、所述待测页面的被测控件信息和预期性能标准;
    根据所述测试描述信息和所述待测页面的被测控件信息对所述目标元素进行测试,得到所述待测页面的测试结果;
    根据所述测试结果数据和所述预期性能标准生成所述待测页面的页面性能测试报告。
  13. 根据权利要求12所述的装置,所述测试配置信息为json格式;所述处理模块具体用于:
    读取json格式的所述测试配置信息;
    将json格式的所述测试配置信息转换为所述xpath格式的控件定位信息;
    根据转换得到的所述xpath格式的控件定位信息定位所述待测页面上的控件。
  14. 根据权利要求9所述的装置,所述处理模块根据控件属性与图像标识的映射关系确定与所述目标控件的控件属性匹配的目标图像标识之前,还用于:
    针对每个控件,根据控件的控件信息计算控件在所述待测页面对应在显示屏上的坐标数据;
    根据各控件的坐标数据在所述显示屏中截取控件的图像标识;
    根据控件类型确定控件的控件属性,建立控件属性与图像标识之间的映射关系。
  15. 一种计算机设备,所述计算机设备包括:
    至少一个处理器、存储器和输入输出单元;
    其中,所述存储器用于存储程序代码,所述处理器用于调用所述存储器中存储的程序 代码来执行如下步骤:
    对待测页面进行配置,生成测试配置信息;其中,所述待测页面包括网站页面、浏览器页面、应用页面或web页面;所述测试配置信息包括测试描述信息、被测的页面元素信息和预期性能标准;
    在加载应用之前,基于超文本标记语言H5页面读取所述配置信息,根据所述配置信息对所述待测页面的页面元素进行配置和布局;其中,所述页面元素至少包括控件、页面、流程节点、图标、按钮和输入框中的一项;
    根据所述配置信息生成测试脚本,所述测试脚本用于识别页面上各控件的位置信息;
    接收针对所述待测页面上的目标元素的第一测试指令,根据所述第一测试指令执行所述测试脚本,以识别所述目标元素在所述待测页面上的第一位置信息;
    根据所述第一位置信息预览当前被测试的预览页面,记录鼠标在所述预览页面上的行为数据;其中,所述行为数据包括鼠标在所述预览页面上的轨迹数据、以及鼠标在所述预览页面上的文本输入和点击操作;
    根据所述行为数据跟踪并记录所述目标元素在所述预览页面上的第二位置信息;
    输入待录制的所述待测页面的地址信息,当根据所述地址信息加载所述待测页面后,对所述待测页面的测试脚本进行录制,得到自动化脚本。
  16. 如权利要求15所述的计算机设备,所述处理器调用所述存储器中存储的程序代码执行所述执行所述测试脚本,以识别所述目标元素在所述待测页面上的第一位置信息时,包括如下步骤:
    扫描所述待测页面,得到所述待测页面的多个图像区域,获取每个图像区域的图像标识,每个图像区域对应一个控件;
    获取目标控件的控件属性,根据控件属性与图像标识的映射关系确定与所述目标控件的控件属性匹配的目标图像标识;
    若确定与所述目标图像标识对应的图像区域的欧氏距离大于预设阈值,则对欧氏距离大于所述预设阈值的图像区域的属性进行测试,以识别所述目标元素在所述待测页面上的第一位置信息。
  17. 如权利要求15或16所述的计算机设备,所述目标元素为控件,所述处理器调用所述存储器中存储的程序代码执行所述执行所述测试脚本之前,还包括如下步骤:
    遍历所述待测试页面的Dom Tree,从Dom Tree中获取到所述待测页面中包含的控件;
    遍历所述待测试页面的Dom Tree,从Dom Tree中获取到所述待测页面中包含的控件 的控件信息;其中,所述控件的信息包括控件类型和控件的组件。控件包括下拉框、方形框或圆形框。
  18. 如权利要求17所述的计算机设备,所述目标元素为控件,所述处理器调用所述存储器中存储的程序代码执行对所述待测页面的测试脚本进行录制,得到自动化脚本时,包括如下步骤:
    为所述待测页面创建线程数、循环次数、启动时间、持续时间、结束时间和启动延迟;
    其中,所述线程数表示测试页面时的用户数量;所述启动时间表示所述测试脚本开始启动的时间;所述持续时间表示脚本持续运行的时间;所述启动延迟表示所述测试脚本延迟启动的时间;
    使用端口和录制控制器对所述待测页面的测试脚本进行录制,得到自动化脚本。
  19. 如权利要求18所述的计算机设备,所述第二位置信息为xpath格式的控件定位信息,所述处理器调用所述存储器中存储的程序代码得到自动化脚本之后,还包括如下步骤:
    接收针对所述待测页面上的目标元素的第二测试指令;
    根据所述第二测试指令执行所述自动化脚本;
    根据所述xpath格式的控件定位信息定位所述待测页面上的控件;
    获取所述待测页面的所述测试配置信息,所述测试配置信息包括测试描述信息、所述待测页面的被测控件信息和预期性能标准;
    根据所述测试描述信息和所述待测页面的被测控件信息对所述目标元素进行测试,得到所述待测页面的测试结果;
    根据所述测试结果数据和所述预期性能标准生成所述待测页面的页面性能测试报告。
  20. 一种计算机存储介质,所述计算机可读存储介质中存储计算机指令,当所述计算机指令在计算机上运行时,使得计算机执行如下步骤:
    对待测页面进行配置,生成测试配置信息;其中,所述待测页面包括网站页面、浏览器页面、应用页面或web页面;所述测试配置信息包括测试描述信息、被测的页面元素信息和预期性能标准;
    在加载应用之前,基于超文本标记语言H5页面读取所述配置信息,根据所述配置信息对所述待测页面的页面元素进行配置和布局;其中,所述页面元素至少包括控件、页面、流程节点、图标、按钮和输入框中的一项;
    根据所述配置信息生成测试脚本,所述测试脚本用于识别页面上各控件的位置信息;
    接收针对所述待测页面上的目标元素的第一测试指令,根据所述第一测试指令执行所述测试脚本,以识别所述目标元素在所述待测页面上的第一位置信息;
    根据所述第一位置信息预览当前被测试的预览页面,记录鼠标在所述预览页面上的行为数据;其中,所述行为数据包括鼠标在所述预览页面上的轨迹数据、以及鼠标在所述预览页面上的文本输入和点击操作;
    根据所述行为数据跟踪并记录所述目标元素在所述预览页面上的第二位置信息;
    输入待录制的所述待测页面的地址信息,当根据所述地址信息加载所述待测页面后,对所述待测页面的测试脚本进行录制,得到自动化脚本。
PCT/CN2019/120807 2019-05-22 2019-11-26 一种制作测试页面脚本的方法、装置、设备及存储介质 WO2020233053A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910427421.5 2019-05-22
CN201910427421.5A CN110297759B (zh) 2019-05-22 2019-05-22 一种制作测试页面脚本的方法、装置、设备及存储介质

Publications (1)

Publication Number Publication Date
WO2020233053A1 true WO2020233053A1 (zh) 2020-11-26

Family

ID=68027020

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/120807 WO2020233053A1 (zh) 2019-05-22 2019-11-26 一种制作测试页面脚本的方法、装置、设备及存储介质

Country Status (2)

Country Link
CN (1) CN110297759B (zh)
WO (1) WO2020233053A1 (zh)

Cited By (22)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112667519A (zh) * 2021-01-13 2021-04-16 北京字节跳动网络技术有限公司 页面测试方法及装置、电子设备和计算机可读存储介质
CN112988568A (zh) * 2021-02-04 2021-06-18 上海硬通网络科技有限公司 游戏测试方法、装置及电子设备
CN113032071A (zh) * 2021-03-25 2021-06-25 北京百度网讯科技有限公司 页面元素定位方法、页面测试方法、装置、设备和介质
CN113076257A (zh) * 2021-04-19 2021-07-06 西安闻泰信息技术有限公司 测试脚本录制方法、装置、介质及计算机设备
CN113094625A (zh) * 2021-05-10 2021-07-09 北京京东振世信息技术有限公司 页面元素定位方法、装置、电子设备及存储介质
CN113342645A (zh) * 2021-05-31 2021-09-03 北京三快在线科技有限公司 测试业务功能的方法、装置、设备及存储介质
CN113360389A (zh) * 2021-06-23 2021-09-07 平安普惠企业管理有限公司 一种性能测试方法、装置、设备及存储介质
CN113377672A (zh) * 2021-06-30 2021-09-10 中国农业银行股份有限公司 测试方法、装置及设备
CN113486264A (zh) * 2021-06-18 2021-10-08 上海众言网络科技有限公司 投放问卷的方法及装置
CN113553123A (zh) * 2021-07-21 2021-10-26 中国工商银行股份有限公司 数据处理方法、装置、电子设备及存储介质
CN113722214A (zh) * 2021-08-16 2021-11-30 上海创米科技有限公司 测试方法、测试设备及测试系统
CN113742553A (zh) * 2021-09-03 2021-12-03 上海哔哩哔哩科技有限公司 数据处理方法及装置
CN113821436A (zh) * 2021-09-23 2021-12-21 北京天融信网络安全技术有限公司 一种测试脚本的生成方法及装置
CN113836037A (zh) * 2021-10-21 2021-12-24 中国平安人寿保险股份有限公司 界面交互的测试方法、装置、设备及存储介质
CN113885774A (zh) * 2021-10-19 2022-01-04 赞同科技股份有限公司 银行柜面组件信息实时获取和处理方法、系统及电子装置
CN114185632A (zh) * 2021-12-07 2022-03-15 建信金融科技有限责任公司 一种页面配置方法、装置、计算机设备、介质及程序产品
CN114327207A (zh) * 2021-11-22 2022-04-12 北京云测信息技术有限公司 元素定位方法、装置、电子设备及存储介质
CN114833827A (zh) * 2022-04-20 2022-08-02 深圳模德宝科技有限公司 零件加工处理的方法及相关装置
CN115328817A (zh) * 2022-10-17 2022-11-11 杭州菲助科技有限公司 一种快速同步开发端和移动端的调试方法、装置及应用
CN116070046A (zh) * 2023-02-17 2023-05-05 贝壳找房(北京)科技有限公司 项目测试信息展示方法和装置、电子设备、存储介质
CN117851148A (zh) * 2024-03-08 2024-04-09 深圳闪电鸟网络科技有限公司 手柄设备的多模式测试方法、装置、设备及存储介质
CN113486264B (zh) * 2021-06-18 2024-05-10 上海众言网络科技有限公司 投放问卷的方法及装置

Families Citing this family (26)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110297759B (zh) * 2019-05-22 2022-04-12 深圳壹账通智能科技有限公司 一种制作测试页面脚本的方法、装置、设备及存储介质
CN112702597A (zh) * 2019-10-22 2021-04-23 北京奇艺世纪科技有限公司 一种测试方法、测试装置、电视终端及测试系统
CN110968513B (zh) * 2019-11-29 2023-05-23 北京云测信息技术有限公司 一种测试脚本的录制方法及装置
CN111026667B (zh) * 2019-12-09 2023-05-05 北京乐学帮网络技术有限公司 脚本执行方法、装置和电子设备
CN111177009A (zh) * 2019-12-31 2020-05-19 五八有限公司 一种脚本生成方法、装置、电子设备及存储介质
CN111258899A (zh) * 2020-01-16 2020-06-09 北京奇艺世纪科技有限公司 用例生成方法、装置、电子设备和计算机可读存储介质
CN111274156B (zh) * 2020-02-25 2023-06-06 中信银行股份有限公司 兼容多框架页面的自动识别方法及装置
CN111444103B (zh) * 2020-03-31 2024-04-26 腾讯音乐娱乐科技(深圳)有限公司 一种Web页面自动化测试方法及相关设备
CN111462725B (zh) * 2020-04-17 2021-01-12 北京灵伴即时智能科技有限公司 录音编辑管理方法及系统
CN113626301A (zh) * 2020-05-06 2021-11-09 北京字节跳动网络技术有限公司 生成测试脚本的方法和装置
CN111522752B (zh) * 2020-05-26 2023-04-25 北京大米未来科技有限公司 程序测试方法、程序测试装置、存储介质和电子设备
CN111694735B (zh) * 2020-05-28 2023-07-21 北京城市网邻信息技术有限公司 一种页面性能测试方法、装置、电子设备及存储介质
CN111752827A (zh) * 2020-06-04 2020-10-09 武汉迎风聚智科技有限公司 一种测试脚本的生成方法以及装置
CN111666220B (zh) * 2020-06-30 2022-12-02 成都新潮传媒集团有限公司 一种生成Web页面对象测试文件的方法及装置
CN111930616B (zh) * 2020-07-27 2024-03-19 北京大米未来科技有限公司 数据处理方法、装置、电子设备和可读存储介质
CN114090139A (zh) * 2020-07-29 2022-02-25 北京字节跳动网络技术有限公司 页面处理方法、装置、电子设备及计算机可读存储介质
CN112163174B (zh) * 2020-09-29 2024-01-09 广州博冠信息科技有限公司 消息的显示方法、装置、存储介质及计算机设备
CN112231206A (zh) * 2020-09-30 2021-01-15 广州掌动智能科技有限公司 应用程序测试的脚本编辑方法、计算机可读存储介质及测试平台
CN112231207A (zh) * 2020-09-30 2021-01-15 广州掌动智能科技有限公司 应用程序测试的多机测试方法、计算机可读存储介质及测试平台
CN112631933A (zh) * 2020-12-30 2021-04-09 上海中通吉网络技术有限公司 页面跟踪测试覆盖范围的方法、装置及设备
CN112882933A (zh) * 2021-02-09 2021-06-01 京东数科海益信息科技有限公司 脚本录制方法、装置、设备及存储介质
CN113094617B (zh) * 2021-03-30 2022-07-19 厦门立林科技有限公司 一种web元素定位方法及其应用和存储介质
CN114490202B (zh) * 2021-12-21 2023-06-23 北京密码云芯科技有限公司 一种密码设备测试方法、装置、电子设备及存储介质
CN114911698B (zh) * 2022-05-05 2024-04-05 西安交通大学 一种自动测试方法、装置、电子设备及存储介质
CN115396343B (zh) * 2022-09-09 2023-11-10 深圳复临科技有限公司 前端页面性能检测方法、装置、计算机设备及存储介质
CN117389664A (zh) * 2023-09-28 2024-01-12 北京城建智控科技股份有限公司 唯一性控件区域划分方法、装置、电子设备和存储介质

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103729285A (zh) * 2012-10-11 2014-04-16 腾讯科技(深圳)有限公司 一种网页测试方法、设备及系统
CN104461855A (zh) * 2013-09-22 2015-03-25 腾讯科技(北京)有限公司 一种Web自动化测试方法、系统及装置
US20170046254A1 (en) * 2015-08-13 2017-02-16 Spirent Communications, Inc. Method to configure monitoring thresholds using output of load or resource loadings
CN109783355A (zh) * 2018-12-14 2019-05-21 深圳壹账通智能科技有限公司 页面元素获取方法、系统、计算机设备及可读存储介质
CN110297759A (zh) * 2019-05-22 2019-10-01 深圳壹账通智能科技有限公司 一种制作测试页面脚本的方法、装置、设备及存储介质

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100185930A1 (en) * 2009-01-22 2010-07-22 Automated Resources Group, Llc Method and apparatus for incorporating application functionality into a web page
CN105279076B (zh) * 2014-06-17 2019-05-07 腾讯科技(深圳)有限公司 一种网页测试方法及终端
CN105573746B (zh) * 2015-12-10 2019-04-26 Oppo广东移动通信有限公司 一种控件属性处理方法及装置
CN106354748A (zh) * 2016-08-15 2017-01-25 北京数码视讯科技股份有限公司 一种网页生成方法和装置
CN109254910B (zh) * 2018-08-08 2022-09-02 北京城市网邻信息技术有限公司 一种应用程序的测试方法、装置、电子设备及存储介质
CN109669873B (zh) * 2018-12-27 2022-06-21 拉扎斯网络科技(上海)有限公司 用户界面自动测试方法及装置、电子设备及存储介质

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103729285A (zh) * 2012-10-11 2014-04-16 腾讯科技(深圳)有限公司 一种网页测试方法、设备及系统
CN104461855A (zh) * 2013-09-22 2015-03-25 腾讯科技(北京)有限公司 一种Web自动化测试方法、系统及装置
US20170046254A1 (en) * 2015-08-13 2017-02-16 Spirent Communications, Inc. Method to configure monitoring thresholds using output of load or resource loadings
CN109783355A (zh) * 2018-12-14 2019-05-21 深圳壹账通智能科技有限公司 页面元素获取方法、系统、计算机设备及可读存储介质
CN110297759A (zh) * 2019-05-22 2019-10-01 深圳壹账通智能科技有限公司 一种制作测试页面脚本的方法、装置、设备及存储介质

Cited By (35)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112667519B (zh) * 2021-01-13 2023-07-21 抖音视界有限公司 页面测试方法及装置、电子设备和计算机可读存储介质
CN112667519A (zh) * 2021-01-13 2021-04-16 北京字节跳动网络技术有限公司 页面测试方法及装置、电子设备和计算机可读存储介质
CN112988568A (zh) * 2021-02-04 2021-06-18 上海硬通网络科技有限公司 游戏测试方法、装置及电子设备
CN113032071A (zh) * 2021-03-25 2021-06-25 北京百度网讯科技有限公司 页面元素定位方法、页面测试方法、装置、设备和介质
CN113032071B (zh) * 2021-03-25 2024-02-06 北京百度网讯科技有限公司 页面元素定位方法、页面测试方法、装置、设备和介质
CN113076257A (zh) * 2021-04-19 2021-07-06 西安闻泰信息技术有限公司 测试脚本录制方法、装置、介质及计算机设备
CN113094625A (zh) * 2021-05-10 2021-07-09 北京京东振世信息技术有限公司 页面元素定位方法、装置、电子设备及存储介质
CN113094625B (zh) * 2021-05-10 2023-09-05 北京京东振世信息技术有限公司 页面元素定位方法、装置、电子设备及存储介质
CN113342645A (zh) * 2021-05-31 2021-09-03 北京三快在线科技有限公司 测试业务功能的方法、装置、设备及存储介质
CN113486264A (zh) * 2021-06-18 2021-10-08 上海众言网络科技有限公司 投放问卷的方法及装置
CN113486264B (zh) * 2021-06-18 2024-05-10 上海众言网络科技有限公司 投放问卷的方法及装置
CN113360389A (zh) * 2021-06-23 2021-09-07 平安普惠企业管理有限公司 一种性能测试方法、装置、设备及存储介质
CN113377672A (zh) * 2021-06-30 2021-09-10 中国农业银行股份有限公司 测试方法、装置及设备
CN113377672B (zh) * 2021-06-30 2024-04-30 中国农业银行股份有限公司 测试方法、装置及设备
CN113553123A (zh) * 2021-07-21 2021-10-26 中国工商银行股份有限公司 数据处理方法、装置、电子设备及存储介质
CN113553123B (zh) * 2021-07-21 2024-05-14 中国工商银行股份有限公司 数据处理方法、装置、电子设备及存储介质
CN113722214B (zh) * 2021-08-16 2024-05-03 上海创米数联智能科技发展股份有限公司 测试方法、测试设备及测试系统
CN113722214A (zh) * 2021-08-16 2021-11-30 上海创米科技有限公司 测试方法、测试设备及测试系统
CN113742553B (zh) * 2021-09-03 2024-03-19 上海哔哩哔哩科技有限公司 数据处理方法及装置
CN113742553A (zh) * 2021-09-03 2021-12-03 上海哔哩哔哩科技有限公司 数据处理方法及装置
CN113821436A (zh) * 2021-09-23 2021-12-21 北京天融信网络安全技术有限公司 一种测试脚本的生成方法及装置
CN113821436B (zh) * 2021-09-23 2023-08-29 北京天融信网络安全技术有限公司 一种测试脚本的生成方法及装置
CN113885774A (zh) * 2021-10-19 2022-01-04 赞同科技股份有限公司 银行柜面组件信息实时获取和处理方法、系统及电子装置
CN113885774B (zh) * 2021-10-19 2023-07-18 赞同科技股份有限公司 银行柜面组件信息实时获取和处理方法、系统及电子装置
CN113836037B (zh) * 2021-10-21 2024-04-05 中国平安人寿保险股份有限公司 界面交互的测试方法、装置、设备及存储介质
CN113836037A (zh) * 2021-10-21 2021-12-24 中国平安人寿保险股份有限公司 界面交互的测试方法、装置、设备及存储介质
CN114327207A (zh) * 2021-11-22 2022-04-12 北京云测信息技术有限公司 元素定位方法、装置、电子设备及存储介质
CN114185632B (zh) * 2021-12-07 2023-06-02 建信金融科技有限责任公司 一种页面配置方法、装置、计算机设备、介质及程序产品
CN114185632A (zh) * 2021-12-07 2022-03-15 建信金融科技有限责任公司 一种页面配置方法、装置、计算机设备、介质及程序产品
CN114833827B (zh) * 2022-04-20 2023-12-26 深圳模德宝科技有限公司 零件加工处理的方法及相关装置
CN114833827A (zh) * 2022-04-20 2022-08-02 深圳模德宝科技有限公司 零件加工处理的方法及相关装置
CN115328817A (zh) * 2022-10-17 2022-11-11 杭州菲助科技有限公司 一种快速同步开发端和移动端的调试方法、装置及应用
CN116070046A (zh) * 2023-02-17 2023-05-05 贝壳找房(北京)科技有限公司 项目测试信息展示方法和装置、电子设备、存储介质
CN117851148A (zh) * 2024-03-08 2024-04-09 深圳闪电鸟网络科技有限公司 手柄设备的多模式测试方法、装置、设备及存储介质
CN117851148B (zh) * 2024-03-08 2024-05-14 深圳闪电鸟网络科技有限公司 手柄设备的多模式测试方法、装置、设备及存储介质

Also Published As

Publication number Publication date
CN110297759A (zh) 2019-10-01
CN110297759B (zh) 2022-04-12

Similar Documents

Publication Publication Date Title
WO2020233053A1 (zh) 一种制作测试页面脚本的方法、装置、设备及存储介质
CN110515683B (zh) 一种前端Vue页面可视化配置的方法、装置及存储介质
US20190303269A1 (en) Methods and systems for testing visual aspects of a web page
US9076072B2 (en) System and method for web page rendering test automation suite
CN110688600A (zh) 基于html页面的在线编辑方法、装置、设备及存储介质
CN110209386B (zh) 数据埋点的设置方法、埋点数据的获取方法及装置
US9459780B1 (en) Documenting interactive graphical designs
US20180165179A1 (en) Determining incompatibilities of automated test cases with modified user interfaces
WO2019056494A1 (zh) 图表生成方法、装置、计算机设备和存储介质
CN112269799A (zh) 一种数据查询方法、装置、设备和介质
CN112882933A (zh) 脚本录制方法、装置、设备及存储介质
US10585678B2 (en) Insertion of custom activities in an orchestrated application suite
CN115658529A (zh) 用户页面的自动化测试方法以及相关设备
CN112817817B (zh) 埋点信息查询方法、装置、计算机设备和存储介质
WO2016131308A1 (zh) web界面生成控制方法及装置
US11106571B2 (en) Identification of input object in a graphical user interface
CN116384295B (zh) 一种顶层文件生成方法、装置、计算机设备及存储介质
KR102635847B1 (ko) 애플리케이션 테스트 자동화 장치 및 방법
WO2020119551A1 (zh) 基于日志文件的服务性能分析方法、装置及电子设备
CN114564856B (zh) 一种基于fmea的数据共享方法及电子设备
CN111522749A (zh) 页面测试方法、装置、可读存储介质及电子设备
US20230060213A1 (en) System and method for generating automation test scripts dynamically for human machine interface testing
CN114936152A (zh) 应用测试方法及设备
CN114217715A (zh) 富媒体播放页面控制方法、装置、电子设备及存储介质
JP6781688B2 (ja) プログラム、情報処理装置及び画面テストシステム

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 19929233

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 19929233

Country of ref document: EP

Kind code of ref document: A1

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205 DATED 21/03/2022)

122 Ep: pct application non-entry in european phase

Ref document number: 19929233

Country of ref document: EP

Kind code of ref document: A1