WO2019037406A1 - 应用程序中h5页面的测试方法、装置和计算机设备 - Google Patents

应用程序中h5页面的测试方法、装置和计算机设备 Download PDF

Info

Publication number
WO2019037406A1
WO2019037406A1 PCT/CN2018/078328 CN2018078328W WO2019037406A1 WO 2019037406 A1 WO2019037406 A1 WO 2019037406A1 CN 2018078328 W CN2018078328 W CN 2018078328W WO 2019037406 A1 WO2019037406 A1 WO 2019037406A1
Authority
WO
WIPO (PCT)
Prior art keywords
page
tested
test
mobile terminal
generate
Prior art date
Application number
PCT/CN2018/078328
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 WO2019037406A1 publication Critical patent/WO2019037406A1/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/3688Test management for test execution, e.g. scheduling of test suites
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3696Methods or tools to render software testable

Definitions

  • the present application relates to the field of computer technology, and in particular, to a test method, apparatus, and computer device for an H5 page in an application.
  • H5 pages appear in the application more and more. Testing the H5 page in the application before the application was released became an important task. In the traditional way, the tester tests the H5 page in the application in the browser of the test terminal. Since the test environment is not tested in the real application Webview (network view), you need to additionally handle the operations in the H5 page, for example, logging in the H5 page, so that the data interaction in the H5 page is not complete, resulting in The test data is not accurate enough.
  • a test method for an H5 page in an application including:
  • the Har file is parsed to generate a test report corresponding to the H5 page to be tested.
  • test device for an H5 page in an application comprising:
  • test control module configured to acquire a test command corresponding to the H5 page to be tested, and generate the test command corresponding to the H5 page to be tested; and generate the test command to the mobile terminal, so that the application running by the mobile terminal tests the H5 according to the test command.
  • the page is tested, and the corresponding test data is recorded through the Webview kernel; the test data returned by the mobile terminal is received;
  • the test data conversion module is configured to convert the test data to generate a Har file; parse the Har file to generate a test report corresponding to the H5 page to be tested.
  • a computer apparatus comprising a memory and a processor, the memory storing computer readable instructions, the instructions being executed by the processor to cause the processor to perform the steps of the method.
  • One or more computer readable non-volatile storage media storing computer readable instructions, when executed by one or more processors, cause one or more processors to perform the steps of the methods described above.
  • test method, device, computer device and storage medium of the H5 page in the above application after receiving the test command, the application running in the mobile terminal tests the H5 page according to the test command, and reflects the test through the Webview kernel record.
  • Test data for H5 page performance The test terminal receives the test data returned by the mobile terminal, and converts the test data to generate a Har file, so that the test file corresponding to the H5 page to be tested can be obtained by using the Har file.
  • the H5 page to be tested is tested in a real Webview environment, and the data interaction between the H5 page and the server to be tested is complete, the accuracy of the test data can be effectively improved.
  • there is no need to build an additional test environment and the H5 page can be directly tested, thereby making the H5 page test easier to operate.
  • 1 is an application scenario diagram of a test method of an H5 page in an application in an embodiment
  • FIG. 2 is a block diagram of the test terminal of FIG. 1;
  • FIG. 3 is a flow chart of a test method of an H5 page in an application in an embodiment
  • FIG. 4 is a block diagram of a test apparatus for an H5 page in an application in one embodiment.
  • the test method of the H5 (5th generation HTML (HyperText Markup Language)) page in the application provided in the embodiment of the present application can be applied to the application scenario as shown in FIG. 1 .
  • the test terminal 102 and the mobile terminal 104 are connected by a USB (Universal Serial Bus) interface and a data line.
  • An application is installed in the mobile terminal 104, and an H5 page can be run in the application.
  • a test tool is installed in the test terminal 102. After the test terminal 102 establishes a connection with the mobile terminal 104, the test tool and the application can communicate via a browser remote protocol.
  • the test tool running in the test terminal 102 obtains the H5 page to be tested.
  • the tester can generate test commands for the H5 page to be tested in the test tool.
  • the test tool generates test commands to the application running in the mobile terminal 104 via a browser remote protocol.
  • the application receives the test command, tests the H5 page to be tested according to the test command, and records the corresponding test data through the Webview (network view) kernel.
  • the mobile terminal 104 returns the test data to the test terminal 102 through the application.
  • the test terminal 102 converts the received unreadable test data into a readable Har file by using a test tool, and parses the Har file to generate a test report corresponding to the H5 page to be tested.
  • the test terminal includes a processor coupled through a system bus, a non-volatile storage medium, an internal memory and a USB interface, a display screen, and an input device. Among them, the processor of the test terminal is used to provide calculation and control capabilities.
  • the memory of the test terminal includes a non-volatile storage medium and an internal memory.
  • the non-volatile storage medium of the test terminal stores an operating system and computer readable instructions, the internal memory of the test terminal providing an environment for operating the operating system and computer readable instructions in the non-volatile storage medium.
  • the computer readable instructions are executed by the processor to implement a test method for an H5 page in an application.
  • the USB interface is used to connect with the mobile terminal.
  • the display screen of the test terminal may be a liquid crystal display or an electronic ink display screen.
  • the input device may be a touch layer covered on the display screen, or may be a button, a trackball or a touchpad provided on the terminal housing, or may be an external connection. Keyboard, trackpad or mouse.
  • the test terminal can be a desktop computer, a notebook computer, a mobile phone or a tablet computer.
  • FIG. 2 A person skilled in the art can understand that the structure shown in FIG. 2 is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation of the test terminal to which the solution of the present application is applied.
  • the specific test terminal can be It includes more or fewer components than those shown in the figures, or some components are combined, or have different component arrangements.
  • a test method for an H5 page in an application is provided.
  • the method is applied to the test terminal as an example, and specifically includes:
  • Step 302 Acquire an H5 page to be tested, and generate a test command corresponding to the H5 page to be tested.
  • Step 304 The test command is generated to the mobile terminal, so that the application running by the mobile terminal tests the H5 page to be tested according to the test command, and records the corresponding test data through the Webview kernel.
  • An application is installed in the mobile terminal, and the H5 page can be run in the application.
  • a mobile terminal can also be referred to as a terminal under test.
  • the test terminal and the mobile terminal can establish a local connection or establish a remote connection.
  • the test terminal can establish a local connection with the mobile terminal and the data line through the USB interface.
  • the test terminal can also establish a remote connection with the mobile terminal by accessing the mobile terminal management platform running in the server.
  • the method further includes: accessing the mobile terminal management platform in the server; obtaining the mobile terminal identifier by using the mobile terminal management platform; and remotely testing the H5 page to be tested of the application in the mobile terminal according to the mobile terminal identifier.
  • the mobile terminal management platform running in the server can be connected to multiple mobile terminals to be tested.
  • remote testing can be considered.
  • the tester can access the mobile terminal management platform through the web page displayed in the test terminal to obtain a plurality of mobile terminals that are currently connected to the mobile terminal management platform.
  • the tester can select one or more mobile terminals in the web page by using the test terminal.
  • the tester can operate the selected mobile terminal through a web page, such as installing an application.
  • test tool is installed in the test terminal. After the test terminal establishes a connection with the mobile terminal, the test tool in the test terminal and the application in the mobile terminal can communicate through a browser remote protocol.
  • the tester can open the H5 page of the application to be tested in the mobile terminal.
  • the tester can open the H5 page of the application to be tested through the web page.
  • the test tool running in the test terminal obtains the H5 page to be tested.
  • the tester can click the "Start" button in the test interface displayed by the test tool, and the test tool responds to the tester's operation to generate a test command for the H5 page to be tested.
  • the test tool generates test commands to the application running in the mobile terminal through a browser remote protocol.
  • the application receives the test command and tests the H5 page to be tested according to the test command.
  • the application clears the cached content in the current H5 page to be tested according to the test command. After clearing, refresh the H5 page to be tested and send a request to the server.
  • the server responds to the request from the H5 page to be tested, and returns corresponding data to the H5 page to be tested.
  • the application receives the data returned by the server and loads the received data to the H5 page to be tested.
  • Debug information can also be called test data, including: total number of requests, request type, request response time, request content length, request content format, page response time, page load time, and request response status.
  • the test data reflects the page performance of the H5 page to be tested.
  • the Webview kernel can accurately record the page performance data of the H5 page to be tested after the H5 page to be tested is refreshed.
  • Step 306 Receive test data returned by the mobile terminal.
  • step 308 the test data is converted to generate a Har file.
  • Step 310 Parse the Har file to generate a test report corresponding to the H5 page to be tested.
  • the application After the Webview kernel records the test data corresponding to the H5 page to be tested, the application sends the test data to the test tool running in the test terminal. Specifically, the application reads the test data, generates a binary data stream according to the Websocket protocol (a network protocol), and sends the binary data stream to the testing tool through a browser remote protocol.
  • the test tool receives the binary data stream and converts the binary data stream to generate a Har (a common file format for storing HTTP (HyperText Transfer Protocol) requests and responses) files.
  • Har a common file format for storing HTTP (HyperText Transfer Protocol) requests and responses
  • the test terminal uses the test tool to parse the Har file and read the test data in the Json (JavaScript Object Notation) format, including: page load time, total number of requests, request method, requested url, and response.
  • the test tool generates a test report corresponding to the H5 page to be tested based on the test data.
  • the application running in the mobile terminal tests the H5 page to be tested according to the test command, and records the test data reflecting the performance of the H5 page to be tested through the Webview kernel.
  • the test terminal receives the test data returned by the mobile terminal, and converts the test data to generate a Har file, so that the test file corresponding to the H5 page to be tested can be obtained by using the Har file.
  • the accuracy of the test data can be effectively improved.
  • the step of converting the test data to generate a Har file includes: converting the binary test data into a Json file; the Json file includes multiple requests initiated in the H5 page to be tested and multiple received Responses, requests and responses are arranged out of order; parsing multiple requests and responses out of order, generating a Har file.
  • the test tool converts the binary test data into a readable text format, which is converted into a readable string.
  • the test tool converts the test data in readable text format into Json format and generates the corresponding Json file.
  • the H5 page to be tested can send multiple requests to the server, and the server will respond to multiple requests and return corresponding data.
  • the binary test data is converted to a Json file, the requests and responses in the Json file are out of order.
  • the test tool needs to adjust the out-of-order requests and responses to generate HTTP requests.
  • the Json file includes at least two H5 page requests and responses.
  • the test tool needs to extract the corresponding request and response in the Json file according to the page identifier corresponding to the H5 page to be tested.
  • the step of parsing the multiple requests and responses in an out-of-order manner to generate a Har file includes: obtaining a page identifier corresponding to the H5 page to be tested, and querying the corresponding multiple chaos in the Json file according to the page identifier. Requesting and responding; obtaining a request identifier, identifying a response identifier corresponding to the query according to the request identifier; obtaining a one-to-one correspondence request and response by using the request identifier and the corresponding response identifier; generating an HTTP request according to the one-to-one corresponding request and response; utilizing Multiple HTTP requests generate Har files.
  • the test tool queries the Json file for the corresponding multiple out-of-order requests and responses by using the page identifier corresponding to the H5 page to be tested.
  • the page identifier of the H5 page to be tested is A
  • the page identifier of the jump page is B
  • the request identifier of the H5 page to be tested is A10
  • the identifier of the response corresponding to the one-to-one is A20.
  • the request identifier in the jump page is B10
  • the identifier of the one-to-one response is B20.
  • the test tool queries the corresponding request and response according to the page identifier of the H5 page to be tested, and generates a complete HTTP request by using the one-to-one corresponding request and response, for example, using the request of A10 and the response of A20 to generate a complete HTTP request.
  • the test tool obtains the format of the Har file, and reads the data in the plurality of HTTP requests according to the format of the Har file to generate a Har file.
  • the Harson file can record test data in Json format, including: page load time, total number of requests, request method, requested url, and response.
  • the method further includes: marking the H5 page to be tested as the tested H5 page according to the test report; obtaining the score item and the scoring rule corresponding to the tested H5 page; using the Har file, the scoring item, and the scoring rule pair The H5 page has been tested for scoring.
  • the test tool after the test tool generates a test report corresponding to the H5 page to be tested, the H5 page to be tested is marked as the tested H5 page. This prompts the tester to complete the corresponding test work for the H5 page.
  • the test tool can also use the test data in the test report to score the measured H5 page.
  • the test tool obtains the score items corresponding to the tested H5 page, including: page load time, page request number, page traffic, page presence or absence of HTTP request error, page presence or absence of js or css file compression, and the like.
  • Each rating item is configured with a corresponding rating rule, and the testing tool can score according to the rating rule. For example, if the page load time is greater than 5 seconds, the page request is greater than 30, and the page traffic exceeds 1 MB and directly returns a fail.
  • the total score is 100, 100 points is excellent, 100 to 90 points are good, 80 to 70 points are average, 70 to 60 points are considered pass, and less than 60 points are evaluated as poor.
  • the present application further provides a testing device for an H5 page in an application, and the internal structure of the device may correspond to the structure shown in FIG. 2, and each of the following modules may pass through software, in whole or in part. Hardware or a combination thereof is implemented.
  • the apparatus includes a test control module 402 and a test data conversion module 404, wherein:
  • the test control module 402 is configured to obtain a test command corresponding to the H5 page to be tested, and generate a test command corresponding to the H5 page to be tested; the test command is generated to the mobile terminal, so that the application running by the mobile terminal tests the H5 page to be tested according to the test command, and The corresponding test data is recorded through the Webview kernel; and the test data returned by the mobile terminal is received.
  • the test data conversion module 404 is configured to convert the test data to generate a Har file; parse the Har file to generate a test report corresponding to the H5 page to be tested.
  • the test data conversion module 404 is further configured to convert the binary test data into a Json file; the Json file includes multiple requests initiated in the H5 page to be tested and multiple responses received, requests and responses. Out-of-order arrangement; parsing multiple requests and responses out of order to generate a Har file.
  • the test data conversion module 404 is further configured to obtain a page identifier corresponding to the H5 page to be tested, query a corresponding multiple out-of-order request and response in the Json file according to the page identifier, and obtain the request identifier according to the request. Identifying a response identifier corresponding to the query; obtaining a one-to-one correspondence request and response by using the request identifier and the corresponding response identifier; generating an HTTP request according to the one-to-one corresponding request and response; and generating a Har file by using multiple HTTP requests.
  • the device further includes a remote connection module 406 for accessing the mobile terminal management platform in the server; acquiring the mobile terminal identifier by the mobile terminal management platform; and the H5 to be tested for the application in the mobile terminal according to the mobile terminal identifier The page is tested remotely.
  • a remote connection module 406 for accessing the mobile terminal management platform in the server; acquiring the mobile terminal identifier by the mobile terminal management platform; and the H5 to be tested for the application in the mobile terminal according to the mobile terminal identifier The page is tested remotely.
  • the apparatus further includes a scoring module 408, configured to mark the H5 page to be tested as the tested H5 page according to the test report; obtain the score item and the scoring rule corresponding to the measured H5 page; use the Har file, score Items and scoring rules score the measured H5 page.
  • a scoring module 408 configured to mark the H5 page to be tested as the tested H5 page according to the test report; obtain the score item and the scoring rule corresponding to the measured H5 page; use the Har file, score Items and scoring rules score the measured H5 page.
  • the present application further provides a computer device, including a memory and a processor, wherein the memory stores computer readable instructions, and when the instructions are executed by the processor, the processor performs the following steps:
  • the processor also performs the following steps when executing the computer readable instructions:
  • the Json file includes multiple requests initiated in the H5 page to be tested and multiple responses received, and the requests and responses are out of order;
  • the processor also performs the following steps when executing the computer readable instructions:
  • the processor also performs the following steps when executing the computer readable instructions:
  • the processor also performs the following steps when executing the computer readable instructions:
  • the tested H5 pages were scored using Har files, scoring items, and scoring rules.
  • the present application also provides one or more computer readable non-volatile storage media storing computer readable instructions that are executed by one or more processors such that one or more The processors perform the following steps:
  • the computer readable instructions when executed by the processor, also perform the following steps:
  • the Json file includes multiple requests initiated in the H5 page to be tested and multiple responses received, and the requests and responses are out of order;
  • the computer readable instructions when executed by the processor, also perform the following steps:
  • the computer readable instructions when executed by the processor, also perform the following steps:
  • the computer readable instructions when executed by the processor, also perform the following steps:
  • the tested H5 pages were scored using Har files, scoring items, and scoring rules.
  • the readable storage medium which when executed, may include the flow of an embodiment of the methods as described above.
  • the storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), or the like.

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

一种应用程序中H5页面的测试方法、测试装置和计算机设备,包括:获取待测H5页面,生成所述待测H5页面对应的测试命令(302);将所述测试命令发生至移动终端(104),以使得移动终端(104)运行的应用程序根据所述测试命令对待测H5页面进行测试,并通过Webview内核记录相应的测试数据(304);接收移动终端(104)返回的测试数据(306);对所述测试数据进行转换,生成Har文件(308);对所述Har文件进行解析,生成待测H5页面对应的测试报告(310)。采用上述方法能够在应用程序中H5页面测试时有效提高测试准确性。

Description

应用程序中H5页面的测试方法、装置和计算机设备
本申请申明享有2017年8月25日递交的申请号为201710744860.X、名称为“应用程序中H5页面的测试方法、装置和计算机设备”的中国专利申请的优先权,该中国专利申请的整体内容以参考的方式结合在本申请中。
技术领域
本申请涉及计算机技术领域,特别是涉及一种应用程序中H5页面的测试方法、装置和计算机设备。
背景技术
随着移动终端中应用程序的增多,应用程序中H5页面出现的也越来越多。在应用程序发布之前,对应用程序中H5页面的测试也成为一项重要工作。在传统的方式中,测试人员是在测试终端的浏览器中模拟应用程序中的H5页面进行测试。由于测试环境不是在真实的应用程序Webview(网络视图)中进行测试的,需要另外处理H5页面中的操作,例如,在H5页面中登录等,使得H5页面中的数据交互不够完整,由此导致测试数据不够准确。
发明内容
基于此,有必要针对上述技术问题,提供一种在应用程序中H5页面测试时有效提高测试准确性的应用程序中H5页面的测试方法、装置、计算机设备和存储介质。
一种应用程序中H5页面的测试方法,包括:
获取待测H5页面,生成所述待测H5页面对应的测试命令;
将所述测试命令发生至移动终端,以使得移动终端运行的应用程序根据所述测试命令对待测H5页面进行测试,并通过Webview内核记录相应的测 试数据;
接收移动终端返回的测试数据;
对所述测试数据进行转换,生成Har文件;
对所述Har文件进行解析,生成待测H5页面对应的测试报告。
一种应用程序中H5页面的测试装置,所述装置包括:
测试控制模块,用于获取待测H5页面,生成所述待测H5页面对应的测试命令;将所述测试命令发生至移动终端,以使得移动终端运行的应用程序根据所述测试命令对待测H5页面进行测试,并通过Webview内核记录相应的测试数据;接收移动终端返回的测试数据;
测试数据转换模块,用于对所述测试数据进行转换,生成Har文件;对所述Har文件进行解析,生成待测H5页面对应的测试报告。
一种计算机设备,包括存储器及处理器,所述存储器中储存有计算机可读指令,所述指令被所述处理器执行时,使得所述处理器执行上述方法的步骤。
一个或多个存储有计算机可读指令的计算机可读非易失性存储介质,计算机可读指令被一个或多个处理器执行时,使得一个或多个处理器执行上述方法的步骤。
上述应用程序中H5页面的测试方法、装置、计算机设备和存储介质,移动终端中运行的应用程序在接收到测试命令后,根据测试命令对待测H5页面进行测试,并通过Webview内核记录反映待测H5页面性能的测试数据。测试终端接收移动终端返回的测试数据,对测试数据进行转换生成Har文件,从而可以利用Har文件得到待测H5页面对应的测试报告。在这个过程中,由于待测H5页面是在真实的Webview环境中进行测试的,而且待测H5页面与服务器的数据交互是完整的,能够有效提高测试数据的准确性。在测试过程中也不需要额外搭建测试环境,可以对待测H5页面直接进行测试,由此使得H5页面的测试变得更容易操作。
附图说明
图1为一个实施例中应用程序中H5页面的测试方法的应用场景图;
图2为图1中测试终端的框图;
图3为一个实施例中应用程序中H5页面的测试方法的流程图;
图4为一个实施例中应用程序中H5页面的测试装置的框图。
具体实施方式
为了使本申请的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请进行进一步详细说明。应当理解,此处描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。
本申请实施例中所提供的应用程序中H5(第5代HTML(HyperText Markup Language,超文本标记语言))页面的测试方法可以应用于如图1所示的应用场景中。其中,测试终端102与移动终端104通过USB(Universal Serial Bus,通用串行总线)接口和数据线进行连接。移动终端104中安装了应用程序,应用程序中可以运行H5页面。测试终端102中安装了测试工具,在测试终端102与移动终端104建立连接之后,测试工具与应用程序可以通过浏览器远程协议进行通信。测试终端102中运行的测试工具获取待测H5页面。测试人员可以在测试工具生成待测H5页面的测试命令。测试工具通过浏览器远程协议将测试命令发生至移动终端104中运行的应用程序。应用程序接收测试命令,根据测试命令对待测H5页面进行测试,并且通过Webview(网络视图)内核记录相应的测试数据。移动终端104通过应用程序将测试数据返回至测试终端102。测试终端102利用测试工具对接收到的不可读的测试数据进行转换生成可读的Har文件,通过对Har文件进行解析,生成待测H5页面对应的测试报告。
图2为一个实施例中测试终端的内部框图。该测试终端包括通过系统总 线连接的处理器、非易失性存储介质、内存储器和USB接口、显示屏和输入装置。其中,测试终端的处理器用于提供计算和控制能力。该测试终端的存储器包括非易失性存储介质、内存储器。该测试终端的非易失性存储介质存储有操作系统和和计算机可读指令,该测试终端的内存储器为非易失性存储介质中的操作系统和计算机可读指令的运行提供环境。该计算机可读指令被处理器执行时以实现一种应用程序中H5页面的测试方法。USB接口用于与移动终端进行连接。测试终端的显示屏可以是液晶显示屏或者电子墨水显示屏等,输入装置可以是显示屏上覆盖的触摸层,也可以是终端外壳上设置的按键、轨迹球或触控板,也可以是外接的键盘、触控板或鼠标等。该测试终端可以是台式电脑、笔记本电脑、手机或者平板电脑等。本领域技术人员可以理解,图2中示出的结构,仅仅是与本申请方案相关的部分结构的框图,并不构成对本申请方案所应用于其上的测试终端的限定,具体的测试终端可以包括比图中所示更多或更少的部件,或者组合某些部件,或者具有不同的部件布置。
在一个实施例中,如图3所示,提供了一种应用程序中H5页面的测试方法,以该方法应用于测试终端为例进行说明,具体包括:
步骤302,获取待测H5页面,生成待测H5页面对应的测试命令。
步骤304,将测试命令发生至移动终端,以使得移动终端运行的应用程序根据测试命令对待测H5页面进行测试,并通过Webview内核记录相应的测试数据。
移动终端中安装了应用程序,应用程序中可以运行H5页面。移动终端也可以称为被测终端。测试终端与移动终端可以建立本地连接,也可以建立远程连接。具体的,测试终端可以通过USB接口与数据线与移动终端建立本地连接。测试终端也可以通过访问服务器中运行的移动终端管理平台与移动终端建立远程连接。
在其中一个实施例中,该方法还包括:访问服务器中的移动终端管理平 台;通过移动终端管理平台获取移动终端标识;根据移动终端标识对移动终端中应用程序的待测H5页面进行远程测试。
服务器中运行的移动终端管理平台可以与多台待测的移动终端进行连接。当测试人员身边暂时没有待测的移动终端,而又需要通过待测的移动终端对应用程序中的H5页面进行测试时,可以考虑远程测试。测试人员可以通过测试终端中展示的Web(网络)页面访问移动终端管理平台,获取到移动终端管理平台当前已连接的多个移动终端。测试人员利用测试终端可以在Web页面中选择一个或多个移动终端。测试人员可以通过Web页面对已选择的移动终端进行操作,例如安装应用程序等。
测试终端中安装了测试工具,在测试终端与移动终端建立连接之后,测试终端中的测试工具与移动终端中的应用程序可以通过浏览器远程协议进行通信。
当测试终端与移动终端之间是本地连接时,测试人员可以在移动终端中打开应用程序的待测H5页面。当测试终端与移动之间是远程连接时,测试人员可以通过Web页面打开应用程序的待测H5页面。测试终端中运行的测试工具获取待测H5页面。测试人员可以在测试工具展示的测试界面中点击“开始”按键,测试工具响应测试人员的操作,生成待测H5页面的测试命令。测试工具通过浏览器远程协议将测试命令发生至移动终端中运行的应用程序。应用程序接收测试命令,根据测试命令对待测H5页面进行测试。
具体的,应用程序根据测试命令,清空当前待测H5页面中的缓存内容。清空之后,刷新待测H5页面,向服务器发送请求。服务器响应来自待测H5页面的请求,向待测H5页面返回相应数据。应用程序接收服务器返回的数据,将接收到的数据加载至待测H5页面。
在应用程序根据测试命令对待测H5页面进行测试时,应用程序通过Webview内核记录相应的调试信息。调试信息也可以称为测试数据,包括:请求总数、请求类型、请求响应时间、请求内容长度、请求内容格式、页面 响应时间、页面加载时间以及请求响应状态等。测试数据反映了待测H5页面的页面性能。
由于应用程序根据测试命令对待测H5页面中的缓存内容进行了清空,由此在待测H5页面刷新之后,Webview内核能够准确记录待测H5页面中页面性能数据。
步骤306,接收移动终端返回的测试数据。
步骤308,对测试数据进行转换,生成Har文件。
步骤310,对Har文件进行解析,生成待测H5页面对应的测试报告。
Webview内核记录完待测H5页面对应的测试数据之后,应用程序将测试数据发送至测试终端中运行的测试工具。具体的,应用程序读取测试数据,按照Websocket协议(一种网络协议)将测试数据生成二进制数据流,将二进制数据流通过浏览器远程协议发送至测试工具。测试工具接收二进制数据流,对二进制数据流进行转换,生成Har(一种用来储存HTTP(HyperText Transfer Protocol,超文本传输协议)请求和响应的通用文件格式)文件。
测试终端利用测试工具对Har文件进行解析,读取Json(JavaScript Object Notation,JavaScript对象标记)格式的测试数据,包括:页面加载时间、请求总数、请求方式、请求的url以及响应等。测试工具根据测试数据生成待测H5页面对应的测试报告。
本实施例中,移动终端中运行的应用程序在接收到测试命令后,根据测试命令对待测H5页面进行测试,并通过Webview内核记录反映待测H5页面性能的测试数据。测试终端接收移动终端返回的测试数据,对测试数据进行转换生成Har文件,从而可以利用Har文件得到待测H5页面对应的测试报告。在这个过程中,由于待测H5页面是在真实的Webview环境中进行测试的,而且待测H5页面与服务器的数据交互是完整的,能够有效提高测试数据的准确性。在测试过程中也不需要额外搭建测试环境,可以对待测H5页面直接进行测试,由此使得H5页面的测试变得更容易操作。
在一个实施例中,对测试数据进行转换,生成Har文件的步骤,包括:将二进制的测试数据转换为Json文件;Json文件中包括待测H5页面中发起的多个请求以及接收到的多个响应,请求与响应乱序排列;对乱序的多个请求和响应进行解析,生成Har文件。
本实施例中,由于移动终端中运行的应用程序将测试数据生成二进制数据流之后,使得二进制数据流变得不可读,因此测试终端在接收到二进制数据流之后,需要对二进制的测试数据进行转换。具体的,测试工具将二进制的测试数据转换为可读文本格式,即转换为可读字符串。测试工具将可读文本格式的测试数据转换为Json格式,生成相应的Json文件。
待测H5页面可以向服务器发送多个请求,服务器会响应多个请求,返回对应的数据。在二进制的测试数据转换为Json文件后,Json文件中的请求与响应是乱序排列的。测试工具需要将乱序的请求与响应进行调整,以便生成HTTP请求。
如果待测H5页面中存在页面跳转,那么Json文件中至少包括两个H5页面的请求和响应。为了能够准确获取到待测H5页面的请求与响应,测试工具需要根据待测H5页面对应的页面标识在Json文件中提取相应的请求和响应。
在其中一个实施例中,对乱序的多个请求和响应进行解析,生成Har文件的步骤,包括:获取待测H5页面对应的页面标识,根据页面标识在Json文件中查询对应的多个乱序的请求和响应;获取请求标识,根据请求标识查询对应的响应标识;利用请求标识与对应的响应标识获取一一对应的请求和响应;根据一一对应的请求和响应生成一个HTTP请求;利用多个HTTP请求生成Har文件。
测试工具利用待测H5页面对应的页面标识在Json文件中查询对应的多个乱序的请求和响应。例如,待测H5页面的页面标识为A,跳转页面的页面标识为B,待测H5页面中的请求标识为A10,一一对应的响应的标识为 A20。跳转页面中的请求标识为B10,一一对应的响应的标识为B20。测试工具根据待测H5页面的页面标识查询对应请求和响应,利用一一对应的请求和响应生成一个完整的HTTP请求,例如,利用A10的请求与A20的响应生成一个完整的HTTP请求。测试工具获取Har文件的格式,根据Har文件的格式,读取多个HTTP请求中的数据,生成Har文件。Har文件中可以采用Json格式记录测试数据,包括:页面加载时间、请求总数、请求方式、请求的url以及响应等。通过对Har文件进行解析,读取Json格式的测试数据,由此可以快速生成待测H5页面对应的测试报告。
在一个实施例中,该方法还包括:根据测试报告,将待测H5页面标记为已测H5页面;获取已测H5页面对应的评分项和评分规则;利用Har文件、评分项和评分规则对已测H5页面进行评分。
本实施例中,测试工具生成待测H5页面对应的测试报告之后,将待测H5页面标记为已测H5页面。以此提示测试人员已对该H5页面完成了相应的测试工作。为了便于测试人员对该H5页面的性能有直观了解,测试工具还可以利用测试报告中的测试数据对已测H5页面进行评分。
具体的,测试工具获取已测H5页面对应的评分项,包括:页面加载时间、页面请求数、页面流量、页面有无HTTP请求错误、页面有无js或css文件压缩等。每一项评分项都配置了对应的评分规则,测试工具根据评分规则可以进行评分。例如,如果页面加载时间大于5秒钟,页面请求书大于30个,页面流量超过1MB直接返回不及格。总分为100,100分评价为优,100到90分评价为良好,80到70分评价为一般,70到60分评价为及格,小于60分评价为差。通过对已测H5页面进行评分,能够使得测试人员根据分数高低直观了解H5页面的性能优劣,为测试人员提供了方便。
如图4所示,本申请还提供了一种应用程序中H5页面的测试装置,该装置的内部结构可对应于如图2所示的结构,下述每个模块可全部或部分通过软件、硬件或其组合来实现。在一个实施例中,该装置包括:测试控制模 块402和测试数据转换模块404,其中:
测试控制模块402,用于获取待测H5页面,生成待测H5页面对应的测试命令;将测试命令发生至移动终端,以使得移动终端运行的应用程序根据测试命令对待测H5页面进行测试,并通过Webview内核记录相应的测试数据;接收移动终端返回的测试数据。
测试数据转换模块404,用于对测试数据进行转换,生成Har文件;对Har文件进行解析,生成待测H5页面对应的测试报告。
在其中一个实施例中,测试数据转换模块404还用于将二进制的测试数据转换为Json文件;Json文件中包括待测H5页面中发起的多个请求以及接收到的多个响应,请求与响应乱序排列;对乱序的多个请求和响应进行解析,生成Har文件。
在其中一个实施例中,测试数据转换模块404还用于获取待测H5页面对应的页面标识,根据页面标识在Json文件中查询对应的多个乱序的请求和响应;获取请求标识,根据请求标识查询对应的响应标识;利用请求标识与对应的响应标识获取一一对应的请求和响应;根据一一对应的请求和响应生成一个HTTP请求;利用多个HTTP请求生成Har文件。
在一个实施例中,该装置还包括远程连接模块406,用于访问服务器中的移动终端管理平台;通过移动终端管理平台获取移动终端标识;根据移动终端标识对移动终端中应用程序的待测H5页面进行远程测试。
在一个实施例中,该装置还包括评分模块408,用于根据测试报告,将待测H5页面标记为已测H5页面;获取已测H5页面对应的评分项和评分规则;利用Har文件、评分项和评分规则对已测H5页面进行评分。
在一个实施例中,本申请还提供了一种计算机设备,包括存储器及处理器,存储器中储存有计算机可读指令,指令被处理器执行时,使得处理器执行以下步骤:
获取待测H5页面,生成待测H5页面对应的测试命令;
将测试命令发生至移动终端,以使得移动终端运行的应用程序根据测试命令对待测H5页面进行测试,并通过Webview内核记录相应的测试数据;
接收移动终端返回的测试数据;
对测试数据进行转换,生成Har文件;
对Har文件进行解析,生成待测H5页面对应的测试报告。
在一个实施例中,处理器执行计算机可读指令时还执行以下步骤:
将二进制的测试数据转换为Json文件;Json文件中包括待测H5页面中发起的多个请求以及接收到的多个响应,请求与响应乱序排列;
对乱序的多个请求和响应进行解析,生成Har文件。
在一个实施例中,处理器执行计算机可读指令时还执行以下步骤:
获取待测H5页面对应的页面标识,根据页面标识在Json文件中查询对应的多个乱序的请求和响应;
获取请求标识,根据请求标识查询对应的响应标识;
利用请求标识与对应的响应标识获取一一对应的请求和响应;
根据一一对应的请求和响应生成一个HTTP请求;
利用多个HTTP请求生成Har文件。
在一个实施例中,处理器执行计算机可读指令时还执行以下步骤:
访问服务器中的移动终端管理平台;
通过移动终端管理平台获取移动终端标识;
根据移动终端标识对移动终端中应用程序的待测H5页面进行远程测试。
在一个实施例中,处理器执行计算机可读指令时还执行以下步骤:
根据测试报告,将待测H5页面标记为已测H5页面;
获取已测H5页面对应的评分项和评分规则;
利用Har文件、评分项和评分规则对已测H5页面进行评分。
在一个实施例中,本申请还提供了一个或多个存储有计算机可读指令的 计算机可读非易失性存储介质,计算机可读指令被一个或多个处理器执行时,使得一个或多个处理器执行以下步骤:
获取待测H5页面,生成待测H5页面对应的测试命令;
将测试命令发生至移动终端,以使得移动终端运行的应用程序根据测试命令对待测H5页面进行测试,并通过Webview内核记录相应的测试数据;
接收移动终端返回的测试数据;
对测试数据进行转换,生成Har文件;
对Har文件进行解析,生成待测H5页面对应的测试报告。
在一个实施例中,计算机可读指令被处理器执行时还执行以下步骤:
将二进制的测试数据转换为Json文件;Json文件中包括待测H5页面中发起的多个请求以及接收到的多个响应,请求与响应乱序排列;
对乱序的多个请求和响应进行解析,生成Har文件。
在一个实施例中,计算机可读指令被处理器执行时还执行以下步骤:
获取待测H5页面对应的页面标识,根据页面标识在Json文件中查询对应的多个乱序的请求和响应;
获取请求标识,根据请求标识查询对应的响应标识;
利用请求标识与对应的响应标识获取一一对应的请求和响应;
根据一一对应的请求和响应生成一个HTTP请求;
利用多个HTTP请求生成Har文件。
在一个实施例中,计算机可读指令被处理器执行时还执行以下步骤:
访问服务器中的移动终端管理平台;
通过移动终端管理平台获取移动终端标识;
根据移动终端标识对移动终端中应用程序的待测H5页面进行远程测试。
在一个实施例中,计算机可读指令被处理器执行时还执行以下步骤:
根据测试报告,将待测H5页面标记为已测H5页面;
获取已测H5页面对应的评分项和评分规则;
利用Har文件、评分项和评分规则对已测H5页面进行评分。
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机可读指令来指令相关的硬件来完成,所述的计算机可读指令可存储于一非易失性计算机可读取存储介质中,该计算机可读指令在执行时,可包括如上述各方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储记忆体(Read-Only Memory,ROM)等。
以上所述实施例的各技术特征可以进行任意的组合,为使描述简洁,未对上述实施例中的各个技术特征所有可能的组合都进行描述,然而,只要这些技术特征的组合不存在矛盾,都应当认为是本说明书记载的范围。
以上所述实施例仅表达了本申请的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对发明专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本申请构思的前提下,还可以做出若干变形和改进,这些都属于本申请的保护范围。因此,本申请专利的保护范围应以所附权利要求为准。

Claims (18)

  1. 一种应用程序中H5页面的测试方法,包括:
    获取待测H5页面,生成所述待测H5页面对应的测试命令;
    将所述测试命令发生至移动终端,以使得移动终端运行的应用程序根据所述测试命令对待测H5页面进行测试,并通过Webview内核记录相应的测试数据;
    接收移动终端返回的测试数据;
    对所述测试数据进行转换,生成Har文件;
    对所述Har文件进行解析,生成待测H5页面对应的测试报告。
  2. 根据权利要求1所述的方法,其特征在于,所述对所述测试数据进行转换,生成Har文件的步骤,包括:
    将二进制的测试数据转换为Json文件;所述Json文件中包括待测H5页面中发起的多个请求以及接收到的多个响应,请求与响应乱序排列;
    对乱序的多个请求和响应进行解析,生成Har文件。
  3. 根据权利要求2所述的方法,其特征在于,所述对乱序的多个请求和响应进行解析,生成Har文件的步骤,包括:
    获取待测H5页面对应的页面标识,根据页面标识在Json文件中查询对应的多个乱序的请求和响应;
    获取请求标识,根据请求标识查询对应的响应标识;
    利用请求标识与对应的响应标识获取一一对应的请求和响应;
    根据一一对应的请求和响应生成一个HTTP请求;
    利用多个HTTP请求生成Har文件。
  4. 根据权利要求1所述的方法,其特征在于,所述方法还包括:
    访问服务器中的移动终端管理平台;
    通过所述移动终端管理平台获取移动终端标识;
    根据所述移动终端标识对移动终端中应用程序的待测H5页面进行远程测试。
  5. 根据权利要求1所述的方法,其特征在于,所述方法还包括:
    根据测试报告,将待测H5页面标记为已测H5页面;
    获取已测H5页面对应的评分项和评分规则;
    利用所述Har文件、评分项和评分规则对已测H5页面进行评分。
  6. 一种应用程序中H5页面的测试装置,其特征在于,所述装置包括:
    测试控制模块,用于获取待测H5页面,生成所述待测H5页面对应的测试命令;将所述测试命令发生至移动终端,以使得移动终端运行的应用程序根据所述测试命令对待测H5页面进行测试,并通过Webview内核记录相应的测试数据;接收移动终端返回的测试数据;
    测试数据转换模块,用于对所述测试数据进行转换,生成Har文件;对所述Har文件进行解析,生成待测H5页面对应的测试报告。
  7. 根据权利要求6所述的装置,其特征在于,所述测试数据转换模块还用于将二进制的测试数据转换为Json文件;所述Json文件中包括待测H5页面中发起的多个请求以及接收到的多个响应,请求与响应乱序排列;对乱序的多个请求和响应进行解析,生成Har文件。
  8. 根据权利要求6所述的装置,其特征在于,所述装置还包括远程连接模块,用于访问服务器中的移动终端管理平台;通过所述移动终端管理平台获取移动终端标识;根据所述移动终端标识对移动终端中应用程序的待测H5页面进行远程测试。
  9. 一种计算机设备,包括存储器及处理器,所述存储器中储存有计算机可读指令,所述指令被所述处理器执行时实现以下步骤:
    获取待测H5页面,生成所述待测H5页面对应的测试命令;
    将所述测试命令发生至移动终端,以使得移动终端运行的应用程序根据所述测试命令对待测H5页面进行测试,并通过Webview内核记录相应的测 试数据;
    接收移动终端返回的测试数据;
    对所述测试数据进行转换,生成Har文件;
    对所述Har文件进行解析,生成待测H5页面对应的测试报告。
  10. 根据权利要求9所述的计算机设备,其特征在于,所述对所述测试数据进行转换,生成Har文件的步骤,包括:
    将二进制的测试数据转换为Json文件;所述Json文件中包括待测H5页面中发起的多个请求以及接收到的多个响应,请求与响应乱序排列;
    对乱序的多个请求和响应进行解析,生成Har文件。
  11. 根据权利要求10所述的计算机设备,其特征在于,所述对乱序的多个请求和响应进行解析,生成Har文件的步骤,包括:
    获取待测H5页面对应的页面标识,根据页面标识在Json文件中查询对应的多个乱序的请求和响应;
    获取请求标识,根据请求标识查询对应的响应标识;
    利用请求标识与对应的响应标识获取一一对应的请求和响应;
    根据一一对应的请求和响应生成一个HTTP请求;
    利用多个HTTP请求生成Har文件。
  12. 根据权利要求9所述的计算机设备,其特征在于,所述指令被所述处理器执行时还实现以下步骤:
    访问服务器中的移动终端管理平台;
    通过所述移动终端管理平台获取移动终端标识;
    根据所述移动终端标识对移动终端中应用程序的待测H5页面进行远程测试。
  13. 根据权利要求9所述的计算机设备,其特征在于,所述指令被所述处理器执行时还实现以下步骤:
    根据测试报告,将待测H5页面标记为已测H5页面;
    获取已测H5页面对应的评分项和评分规则;
    利用所述Har文件、评分项和评分规则对已测H5页面进行评分。
  14. 一个或多个存储有计算机可读指令的计算机可读非易失性存储介质,计算机可读指令被一个或多个处理器执行时,使得一个或多个处理器执行以下步骤:
    获取待测H5页面,生成所述待测H5页面对应的测试命令;
    将所述测试命令发生至移动终端,以使得移动终端运行的应用程序根据所述测试命令对待测H5页面进行测试,并通过Webview内核记录相应的测试数据;
    接收移动终端返回的测试数据;
    对所述测试数据进行转换,生成Har文件;
    对所述Har文件进行解析,生成待测H5页面对应的测试报告。
  15. 根据权利要求14所述的存储介质,其特征在于,所述对所述测试数据进行转换,生成Har文件的步骤,包括:
    将二进制的测试数据转换为Json文件;所述Json文件中包括待测H5页面中发起的多个请求以及接收到的多个响应,请求与响应乱序排列;
    对乱序的多个请求和响应进行解析,生成Har文件。
  16. 根据权利要求15所述的存储介质,其特征在于,所述对乱序的多个请求和响应进行解析,生成Har文件的步骤,包括:
    获取待测H5页面对应的页面标识,根据页面标识在Json文件中查询对应的多个乱序的请求和响应;
    获取请求标识,根据请求标识查询对应的响应标识;
    利用请求标识与对应的响应标识获取一一对应的请求和响应;
    根据一一对应的请求和响应生成一个HTTP请求;
    利用多个HTTP请求生成Har文件。
  17. 根据权利要求14所述的存储介质,其特征在于,一个或多个处理 器还执行以下步骤:
    访问服务器中的移动终端管理平台;
    通过所述移动终端管理平台获取移动终端标识;
    根据所述移动终端标识对移动终端中应用程序的待测H5页面进行远程测试。
  18. 根据权利要求14所述的存储介质,其特征在于,一个或多个处理器还执行以下步骤:
    根据测试报告,将待测H5页面标记为已测H5页面;
    获取已测H5页面对应的评分项和评分规则;
    利用所述Har文件、评分项和评分规则对已测H5页面进行评分。
PCT/CN2018/078328 2017-08-25 2018-03-07 应用程序中h5页面的测试方法、装置和计算机设备 WO2019037406A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710744860.XA CN107783899B (zh) 2017-08-25 2017-08-25 应用程序中h5页面的测试方法、装置和计算机设备
CN201710744860.X 2017-08-25

Publications (1)

Publication Number Publication Date
WO2019037406A1 true WO2019037406A1 (zh) 2019-02-28

Family

ID=61438205

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/078328 WO2019037406A1 (zh) 2017-08-25 2018-03-07 应用程序中h5页面的测试方法、装置和计算机设备

Country Status (2)

Country Link
CN (1) CN107783899B (zh)
WO (1) WO2019037406A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110597584A (zh) * 2019-08-15 2019-12-20 香港乐蜜有限公司 一种页面适配的测试方法、装置、电子设备及存储介质

Families Citing this family (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108874674A (zh) * 2018-06-21 2018-11-23 北京金山安全软件有限公司 页面调试方法及装置
CN109240912B (zh) * 2018-08-14 2024-02-23 深圳市兴海物联科技有限公司 一种基于大数据分析的网页应用的性能评估方法及终端
CN109117379A (zh) * 2018-09-21 2019-01-01 四川长虹电器股份有限公司 一种web端性能测试数据自动收集系统及方法
CN109460264A (zh) * 2018-09-26 2019-03-12 深圳壹账通智能科技有限公司 应用程序中h5页面的获取方法、装置和计算机设备
CN109766256B (zh) * 2018-12-21 2023-02-07 中国平安财产保险股份有限公司 应用程序中h5页面性能测试方法、装置和计算机设备
CN109739754B (zh) * 2018-12-25 2022-03-11 北京仁科互动网络技术有限公司 基于微信开发的应用程序自动化测试方法及系统
CN109815089A (zh) * 2019-01-16 2019-05-28 中国平安财产保险股份有限公司 H5页面监控方法、装置、计算机设备和存储介质
CN109977027A (zh) * 2019-04-04 2019-07-05 广州市百果园信息技术有限公司 一种性能测试的方法、装置、系统、设备和存储介质
CN110245068A (zh) * 2019-04-25 2019-09-17 深圳壹账通智能科技有限公司 H5页面的自动化测试方法、装置及计算机设备
CN110232021A (zh) * 2019-05-21 2019-09-13 深圳壹账通智能科技有限公司 页面测试的方法及装置
CN110245078B (zh) * 2019-05-24 2020-11-13 平安国际智慧城市科技股份有限公司 一种软件的压力测试方法、装置、存储介质和服务器
CN110727576B (zh) * 2019-08-22 2024-04-26 中国平安财产保险股份有限公司 一种web页面测试方法、装置、设备及存储介质
CN110750463B (zh) * 2019-10-29 2023-06-23 百度在线网络技术(北京)有限公司 一种小程序测试方法、装置、系统、设备及介质
CN113449227B (zh) * 2020-03-24 2023-09-19 北京新氧科技有限公司 一种页面信息处理方法及终端设备
CN113495838B (zh) * 2020-04-08 2024-01-09 阿里巴巴集团控股有限公司 一种页面测试方法及装置
CN112597054B (zh) * 2020-12-30 2023-04-11 深圳市世强元件网络有限公司 移动终端h5页面应用测试装置、测试方法和电脑终端
CN114064513B (zh) * 2022-01-12 2022-06-21 北京新氧科技有限公司 页面流畅性能检测方法、装置、设备及系统

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080127097A1 (en) * 2006-11-28 2008-05-29 International Business Machines Corporation Method and devices for url command testing and for scenario testing
CN104461903A (zh) * 2014-12-26 2015-03-25 北京奇虎科技有限公司 基于浏览器的测试客户端的方法和装置
CN104933174A (zh) * 2015-07-01 2015-09-23 北京博睿宏远科技发展有限公司 基于控件自动化遍历解决手机app机型适配问题的方法

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107040609B (zh) * 2017-05-25 2020-09-04 腾讯科技(深圳)有限公司 一种网络请求处理方法和装置

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080127097A1 (en) * 2006-11-28 2008-05-29 International Business Machines Corporation Method and devices for url command testing and for scenario testing
CN104461903A (zh) * 2014-12-26 2015-03-25 北京奇虎科技有限公司 基于浏览器的测试客户端的方法和装置
CN104933174A (zh) * 2015-07-01 2015-09-23 北京博睿宏远科技发展有限公司 基于控件自动化遍历解决手机app机型适配问题的方法

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
CHEN CHENG: "From 0 to 1: Build a Mobile H5 Performance Test Platform Nuggets", 11 May 2017 (2017-05-11), pages 1 - 7, XP055578823, Retrieved from the Internet <URL:https://juejin.im/post/59130263128fe100586bf406> *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110597584A (zh) * 2019-08-15 2019-12-20 香港乐蜜有限公司 一种页面适配的测试方法、装置、电子设备及存储介质

Also Published As

Publication number Publication date
CN107783899A (zh) 2018-03-09
CN107783899B (zh) 2020-11-24

Similar Documents

Publication Publication Date Title
WO2019037406A1 (zh) 应用程序中h5页面的测试方法、装置和计算机设备
US8326922B2 (en) Method for server-side logging of client browser state through markup language
WO2021088724A1 (zh) 一种测试方法及装置
US9130975B2 (en) Generation of macros
US8713368B2 (en) Methods for testing OData services
US20180131779A1 (en) Recording And Triggering Web And Native Mobile Application Events With Mapped Data Fields
CN110633219B (zh) 页面测试方法与装置、存储介质、电子设备
US7877736B2 (en) Computer language interpretation and optimization for server testing
US11042529B2 (en) System of migration and validation
CN106776318A (zh) 一种测试脚本录制方法及系统
CN105637488A (zh) 追踪源代码用于末端用户监控
US20190138433A1 (en) Evaluation of library test suites using mutation testing
CN109408502A (zh) 一种数据标准处理方法、装置及其存储介质
CN111966587A (zh) 数据采集方法、装置和设备
US9104573B1 (en) Providing relevant diagnostic information using ontology rules
WO2020252880A1 (zh) 反向图灵验证方法及装置、存储介质、电子设备
US10382311B2 (en) Benchmarking servers based on production data
US20230065492A1 (en) Method for obtaining browser running data, electronic device, and storage medium
CN107797917B (zh) 性能测试脚本生成方法及装置
US20210397635A1 (en) Information processing device, information processing system, and computer-readable recording medium storing information processing program
CN111459793B (zh) 一种全生命周期的软件自动化测试方法和装置
WO2015062003A1 (en) User interface tester
CN108629012B (zh) 取证数据解析准确性的智能校验方法和系统
US10171588B2 (en) Web operation playback
CN109828913A (zh) 一种测试报告生成方法及装置

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: 18847806

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

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 1205A DATED 08.09.2020)

122 Ep: pct application non-entry in european phase

Ref document number: 18847806

Country of ref document: EP

Kind code of ref document: A1