WO2020024408A1 - Test device, test method and storage medium - Google Patents

Test device, test method and storage medium Download PDF

Info

Publication number
WO2020024408A1
WO2020024408A1 PCT/CN2018/107712 CN2018107712W WO2020024408A1 WO 2020024408 A1 WO2020024408 A1 WO 2020024408A1 CN 2018107712 W CN2018107712 W CN 2018107712W WO 2020024408 A1 WO2020024408 A1 WO 2020024408A1
Authority
WO
WIPO (PCT)
Prior art keywords
test
script
page
request
editing
Prior art date
Application number
PCT/CN2018/107712
Other languages
French (fr)
Chinese (zh)
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 WO2020024408A1 publication Critical patent/WO2020024408A1/en

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

Definitions

  • the present application relates to the field of communication technologies, and in particular, to a test device, a test method, and a storage medium.
  • Jmeter tools are generally used for performance testing, and inner tools or other similar tools are used for interface testing. For the same request, you may need to perform both performance testing and interface testing. For requests that require both performance testing and interface testing, due to the limitations of the testing tools, the data and configuration between the two tests cannot be shared, so developers need to develop the corresponding testing tools separately, which results in testing workload Large, low test efficiency.
  • the purpose of this application is to provide a test device, a test method, and a storage medium, which are intended to reduce test workload and improve test efficiency.
  • the present application provides a test device, the test device includes a memory and a processor connected to the memory, and the memory stores a processing system operable on the processor, and the processing When the system is executed by the processor, the following steps are implemented:
  • test step including a web request, a request address, and request parameters
  • test template after writing the request address and the request parameters is used to generate a corresponding script object, and a corresponding test script is generated according to the script object.
  • the test step and the test script are associated in a predetermined association manner and stored in a pre-established manner.
  • Script library
  • test step corresponding to the web request selected on the page
  • test script associated with the test step in the script library based on the test step
  • the present application further provides a test method, and the test method includes:
  • test step input on a page, where the test step includes a web request, a request address, and request parameters;
  • test step corresponding to the web request selected on the page
  • test script associated with the test step in the script library based on the test step.
  • the present application also provides a computer-readable storage medium, where the computer-readable storage medium stores a processing system, and the processing system implements steps when executed by a processor:
  • test step including a web request, a request address, and request parameters
  • test template after writing the request address and the request parameters is used to generate a corresponding script object, and a corresponding test script is generated according to the script object.
  • the test step and the test script are associated in a predetermined association manner and stored in a pre-established manner.
  • Script library
  • test step corresponding to the web request selected on the page
  • test script associated with the test step in the script library based on the test step
  • a web request is used as a minimum granularity, and a web request corresponds to a corresponding test step.
  • the test step generates a script object and saves it in the script library.
  • the interface test script and the performance test script in the script library are directly associated with the test steps according to the business logic during the test, so that the performance test and the interface test script can be implemented. Reuse.
  • test scripts and configurations are also managed on the same platform and can be shared, which can reduce test workload and improve test efficiency.
  • FIG. 1 is a schematic diagram of a hardware architecture of an embodiment of a test device of the present application
  • FIG. 2 is a schematic flowchart of a first embodiment of a method for testing in this application
  • FIG. 3 is a schematic flowchart of a second embodiment of a method for testing in this application.
  • the test device 1 is a device capable of automatically performing numerical calculation and / or information processing according to an instruction set or stored in advance.
  • the test device 1 may be a computer, a single network server, a server group composed of multiple network servers, or a cloud composed of a large number of hosts or network servers based on cloud computing.
  • Cloud computing is a type of distributed computing.
  • a super virtual computer consisting of a loosely coupled set of computers.
  • the test apparatus 1 may include, but is not limited to, a memory 11, a processor 12, and a network interface 13 that can be communicatively connected to each other through a system bus.
  • the memory 11 stores a processing system that can run on the processor 12. It should be noted that FIG. 1 only shows the test device 1 with components 11-13, but it should be understood that it is not required to implement all the illustrated components, and more or fewer components may be implemented instead.
  • the memory 11 includes a memory and at least one type of readable storage medium.
  • the memory provides a cache for the operation of the test device 1;
  • the readable storage medium may be, for example, a flash memory, a hard disk, a multimedia card, a card-type memory (for example, SD or DX memory, etc.), a random access memory (RAM), a static random access memory (SRAM ), Read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read-only memory (PROM), magnetic memory, magnetic disks, optical disks and other non-volatile storage media.
  • ROM Read-only memory
  • EEPROM electrically erasable programmable read-only memory
  • PROM programmable read-only memory
  • the readable storage medium may be an internal storage unit of the test device 1, such as a hard disk of the test device 1; in other embodiments, the non-volatile storage medium may also be external to the test device 1.
  • the storage device is, for example, a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) card, a flash memory card (Flash Card), etc. provided on the test device 1.
  • the readable storage medium of the memory 11 is generally used to store an operating system and various types of application software installed in the test device 1, for example, program codes of a processing system in an embodiment of the present application.
  • the memory 11 can also be used to temporarily store various types of data that have been output or will be output.
  • the processor 12 may be a central processing unit (CPU), a controller, a microcontroller, a microprocessor, or another data processing chip.
  • the processor 12 is generally used to control the overall operation of the test apparatus 1, for example, to perform control and processing related to data interaction or communication with other devices.
  • the processor 12 is configured to run program code or process data stored in the memory 11, for example, to run a processing system.
  • the network interface 13 may include a wireless network interface or a wired network interface.
  • the network interface 13 is generally used to establish a communication connection between the test apparatus 1 and other electronic devices.
  • the processing system is stored in the memory 11 and includes at least one computer-readable instruction stored in the memory 11, which can be executed by the processor 12 to implement the methods of the embodiments of the present application; and
  • the at least one computer-readable instruction may be divided into different logic modules according to different functions implemented by each part thereof.
  • test step including a web request, a request address, and a request parameter
  • each test step includes a web request (that is, a web page request), a request address, and request parameters.
  • a web request that is, a web page request
  • request address that is, a request address
  • request parameters that is, a request address
  • the types of web requests include POST requests and GET requests.
  • a GET request requests data from a specified resource, and a POST request submits data to be processed to a specified resource.
  • the POST request corresponds to the test template of the POST request, and the GET request corresponds to the test template of the GET request.
  • the request parameters are appended to the URL as a sequence of key or value pairs (that is, the query string); for POST requests, the request parameters are transmitted in a different part of the http header (named entitybody).
  • the pattern matching includes finding the location of the request address and the location of the request parameter in the test template by matching keywords.
  • test template after writing the request address and the request parameters is used to generate a corresponding script object, and a corresponding test script is generated according to the script object.
  • the test step and the test script are associated in a predetermined association manner and stored in a pre-established manner.
  • Script library
  • test step corresponding to the web request selected on the page
  • test script associated with the test step in the script library based on the test step
  • the predetermined association method associates the test script with a specified name (for example, a class name + method name) for each test step.
  • test script corresponding to the test step has been generated in the script library, each test step passes The aforementioned predetermined association method is associated with the test script in the script library, that is, the test script for the executable interface test can be obtained, and the test can be executed by executing the test script;
  • test steps of the performance test When performing a performance test on a web request, select one or more test steps of the performance test corresponding to the web request on the page. Since a test script corresponding to the test step has been generated in the script library, each test step passes The foregoing predetermined association manner is associated with the test script in the script library, that is, the test script for the executable performance test can be obtained, and the test can be performed by executing the test script.
  • test scenario parameters and scenarios on the page Parameters include the number of concurrent users, test duration, and then test based on test scripts and scenario parameters.
  • the information entered by the user such as web requests, request addresses, is actually stored in the database in the form of data, which is only taken out from the database when executed, and assembled into test cases, so users cannot view the tests that are actually executed Scripts cannot be modified, and developers need to modify the code before they can be implemented.
  • the development workload is heavy.
  • Gatling that supports the DSL language can be used as the execution engine, and the page on the web side is the platform page for the visual editing of the script that Gatling is used as the execution engine to improve the convenience and flexibility of the test.
  • the processor 12 executes, it also implements the following steps: when an editing instruction is received, the test steps on the page are edited and saved after the editing is completed.
  • the platform page of the script visual editing includes at least a test case library area and an edit box area.
  • a control in the test case library area can be associated with the corresponding test step in the script library.
  • the corresponding Drag the test steps to the edit box area for visual editing. Editing includes modifying, copying, reordering, deleting, etc. After editing is completed, save them.
  • the edited test steps generate corresponding test scripts in order. This test script can be executed directly by the Gatling execution engine.
  • a page switching control is provided on a platform page of the script visual editing.
  • the processing system is executed by the processor 12, the following steps are also implemented:
  • the visual editing page of the predetermined code editor is, for example, the ACEEditor visual editing page to implement user-defined script code. Visual editing to further improve the convenience and flexibility of the test.
  • the Gatling execution engine supports the domain-specific language DSL, based on the fixed characteristics of the domain-specific language DSL keywords, users can highlight the script code when editing the script code.
  • the gatling keyword can be associated with hints and assisted editing, which can easily identify the validity of the script code.
  • this application proposes the concept of establishing a script library.
  • One web request is used as the minimum granularity.
  • One web request corresponds to the corresponding test step.
  • the test step generates a script object and stores it in the script library.
  • the interface test script and the performance test script in the script library are directly associated with the test steps according to the business logic during the test, so that the performance test and the interface test script can be implemented. Reuse.
  • test scripts and configurations are also managed on the same platform and can be shared, which can reduce test workload and improve test efficiency.
  • FIG. 2 is a schematic flowchart of an embodiment of a test method of the present application.
  • the test method includes the following steps:
  • Step S1 receiving a test step input on the page
  • test step includes a web request, a request address, and a request parameter.
  • the operation of automatically generating a test script is performed in the background.
  • Step S2 Obtain the type of the web request, obtain the corresponding test template according to the type of the web request, and obtain the position of the request address and the position of the request parameter in the test template by pattern matching. Write the request address in the test step at the location of the address, and write the request parameter in the test step at the location of the request parameter;
  • the types of web requests include POST requests and GET requests.
  • a GET request requests data from a specified resource, and a POST request submits data to be processed to a specified resource.
  • the POST request corresponds to the test template of the POST request, and the GET request corresponds to the test template of the GET request.
  • the request parameters are appended to the URL as a sequence of key or value pairs (that is, the query string); for POST requests, the request parameters are transmitted in a different part of the http header (named entitybody).
  • the pattern matching includes finding the location of the request address and the location of the request parameter in the test template by matching keywords.
  • Step S3 Generate a corresponding script object from the test template written with the request address and the request parameters, generate a corresponding test script according to the script object, and associate the test step with the test script in a predetermined association manner and store it.
  • a pre-built script library In a pre-built script library;
  • Step S4 When performing an interface test and / or performance test on a web request, obtain a test step corresponding to the web request selected on the page, and obtain a test associated with the test step in the script library based on the test step. A script for testing based on the test script.
  • the predetermined association method associates the test script with a specified name (for example, a class name + method name) for each test step.
  • test script corresponding to the test step has been generated in the script library, each test step passes The aforementioned predetermined association method is associated with the test script in the script library, that is, the test script for the executable interface test can be obtained, and the test can be executed by executing the test script;
  • test steps of the performance test When performing a performance test on a web request, select one or more test steps of the performance test corresponding to the web request on the page. Since a test script corresponding to the test step has been generated in the script library, each test step passes The foregoing predetermined association manner is associated with the test script in the script library, that is, the test script for the executable performance test can be obtained, and the test can be performed by executing the test script.
  • test scenario parameters and scenarios on the page Parameters include the number of concurrent users, test duration, and then test based on test scripts and scenario parameters.
  • the information entered by the user such as web requests, request addresses, is actually stored in the database in the form of data, which is only taken out from the database when executed, and assembled into test cases, so users cannot view the tests that are actually executed Scripts cannot be modified, and developers need to modify the code before they can be implemented.
  • the development workload is heavy.
  • Gatling that supports the DSL language can be used as the execution engine, and the page on the web end is the platform page for visual editing of the script that Gatling is used as the execution engine to improve the convenience and flexibility of the test, as shown in FIG. 3,
  • the method further includes step S5.
  • step S5 When an editing instruction is received, the test steps on the page are edited and saved after the editing is completed.
  • the platform page of the script visual editing includes at least a test case library area and an edit box area.
  • a control in the test case library area can be associated with the corresponding test step in the script library.
  • the corresponding Drag the test steps to the edit box area for visual editing. Editing includes modifying, copying, reordering, deleting, etc. After editing is completed, save them.
  • the edited test steps generate corresponding test scripts in order. This test script can be executed directly by the Gatling execution engine.
  • a page switching control is provided on a platform page of the script visual editing.
  • it further includes: when receiving a switching instruction issued based on the page switching control, it may include a case library area from the current The page in the edit box area is switched to the visual editing page of the predetermined code editor.
  • the visual editing page of the predetermined code editor is, for example, the ACEEditor visual editing page, which realizes the visual editing of user-defined script code and further improves the test. Convenience and flexibility.
  • the Gatling execution engine supports the domain-specific language DSL, based on the fixed characteristics of the domain-specific language DSL keywords, users can highlight the script code when editing the script code.
  • the gatling keyword can be associated with hints and assisted editing, which can easily identify the validity of the script code.
  • a web request is used as the minimum granularity.
  • a web request corresponds to the corresponding test steps.
  • a script object is generated in the test step and stored in the script library.
  • For web requests when testing, according to the business logic, directly use the test step association to get the interface test script and the performance test script in the script library, so that the performance test and the interface test script can be reused.
  • the test script Management and configuration are also managed on the same platform and can be shared, which can reduce testing workload and improve testing efficiency.
  • the present application also provides a computer-readable storage medium on which a processing system is stored.
  • a processing system is executed by a processor, the steps of the above-mentioned test method are implemented.
  • the methods in the above embodiments can be implemented by means of software plus a necessary universal hardware platform, and of course, also by hardware, but in many cases the former is better.
  • Implementation Based on such an understanding, the technical solution of this application that is essentially or contributes to the existing technology can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, The optical disc) includes several instructions for causing a terminal device (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in the embodiments of the present application.
  • a terminal device which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.

Abstract

A test device (1), a test method and a storage medium, the method comprising: receiving a test step inputted on a page (S1); acquiring the type of a web request, acquiring a corresponding test template according to said type, respectively acquiring the location of a request address and the location of a request parameter in the test template, writing a request address in the test step at the location of the request address, and writing a request parameter in the test step at the location of the request parameter (S2); generating a corresponding script object for the test template, generating a corresponding test script according to the script object, associating the test step with the test script, and then storing the same in a script library (S3); and when an interface test and/or a performance test are carried out for the web request, acquiring the test step corresponding to the web request, obtaining the associated test script in the script library on the basis of the test step, and carry out testing on the basis of the test script (S4). The present method may reduce test workloads, and improve testing efficiency.

Description

测试装置、测试的方法及存储介质Test device, test method and storage medium
优先权申明Declaration of priority
本申请基于巴黎公约申明享有2018年08月03日递交的申请号为CN201810876143.7、名称为“测试装置、测试的方法及存储介质”中国专利申请的优先权,该中国专利申请的整体内容以参考的方式结合在本申请中。This application is based on the Paris Convention claiming the priority of a Chinese patent application with an application number of CN201810876143.7 and a name of "test device, test method and storage medium" filed on August 3, 2018. The overall content of this Chinese patent application is based on The reference is incorporated in this application.
技术领域Technical field
本申请涉及通信技术领域,尤其涉及一种测试装置、测试的方法及存储介质。The present application relates to the field of communication technologies, and in particular, to a test device, a test method, and a storage medium.
背景技术Background technique
目前,在测试基于http的web请求时,一般用Jmeter工具进行性能测试、用inner工具或其他类似工具进行接口测试。对于同一个请求,可能既需要进行性能测试、又需要进行接口测试。对于既需要进行性能测试、又需要进行接口测试的请求,由于测试工具的限制,两种测试间的数据、配置等无法共用,因此需要开发人员单独开发相应的测试工具,这样导致测试的工作量大,测试效率低。At present, when testing http-based web requests, Jmeter tools are generally used for performance testing, and inner tools or other similar tools are used for interface testing. For the same request, you may need to perform both performance testing and interface testing. For requests that require both performance testing and interface testing, due to the limitations of the testing tools, the data and configuration between the two tests cannot be shared, so developers need to develop the corresponding testing tools separately, which results in testing workload Large, low test efficiency.
发明内容Summary of the invention
本申请的目的在于提供一种测试装置、测试的方法及存储介质,旨在减少测试工作量,提高测试效率。The purpose of this application is to provide a test device, a test method, and a storage medium, which are intended to reduce test workload and improve test efficiency.
为实现上述目的,本申请提供一种测试装置,所述测试装置包括存储器及与所述存储器连接的处理器,所述存储器中存储有可在所述处理器上运行的处理系统,所述处理系统被所述处理器执行时实现如下步骤:In order to achieve the above object, the present application provides a test device, the test device includes a memory and a processor connected to the memory, and the memory stores a processing system operable on the processor, and the processing When the system is executed by the processor, the following steps are implemented:
接收在页面上输入的测试步骤,所述测试步骤包括web请求、请求地址及请求参数;Receiving a test step entered on a page, the test step including a web request, a request address, and request parameters;
获取所述web请求的类型,根据所述web请求的类型获取对应的测试模板,通过模式匹配的方式分别获取所述测试模板中请求地址的位置及请求参数的位置,在所述请求地址的位置写入所述测试步骤中的请求地址,并在所述请求参数的位置写入所述测试步骤中的的请求参数;Obtain the type of the web request, obtain the corresponding test template according to the type of the web request, and obtain the location of the request address and the location of the request parameter in the test template by pattern matching. Write the request address in the test step, and write the request parameter in the test step at the position of the request parameter;
将写入请求地址及请求参数后的测试模板生成对应的脚本对象,根据所述脚本对象生成对应的测试脚本,将所述测试步骤与该测试脚本通过预定的关联方式进行关联后存储在预先建立的脚本库中;The test template after writing the request address and the request parameters is used to generate a corresponding script object, and a corresponding test script is generated according to the script object. The test step and the test script are associated in a predetermined association manner and stored in a pre-established manner. Script library;
在对web请求进行接口测试和/或性能测试时,获取在页面上选择的所述web请求对应的测试步骤,基于该测试步骤获取在该脚本库中与所述测试步骤关联的测试脚本,基于所述测试脚本进行测试。When performing an interface test and / or performance test on a web request, obtaining a test step corresponding to the web request selected on the page, and obtaining a test script associated with the test step in the script library based on the test step, based on The test script performs testing.
为实现上述目的,本申请还提供一种测试的方法,所述测试的方法包括:To achieve the above purpose, the present application further provides a test method, and the test method includes:
S1,接收在页面上输入的测试步骤,所述测试步骤包括web请求、请求地址及请求参数;S1. Receive a test step input on a page, where the test step includes a web request, a request address, and request parameters;
S2,获取所述web请求的类型,根据所述web请求的类型获取对应的测试模板,通过模式匹配的方式分别获取所述测试模板中请求地址的位置及请求参数的位置,在所述请求地址的位置写入所述测试步骤中的请求地址,并在所述请求参数的位置写入所述测试步骤中的的请求参数;S2. Obtain the type of the web request, obtain the corresponding test template according to the type of the web request, and obtain the position of the request address and the position of the request parameter in the test template by pattern matching. Write the request address in the test step at the location of, and write the request parameter in the test step at the location of the request parameter;
S3,将写入请求地址及请求参数后的测试模板生成对应的脚本对象,根据所述脚本对象生成对应的测试脚本,将所述测试步骤与该测试脚本通过预定的关联方式进行关联后存储在预先建立的脚本库中;S3. Generate a corresponding script object from the test template after writing the request address and request parameters, generate a corresponding test script according to the script object, and associate the test step with the test script in a predetermined association manner and store the In a pre-built script library;
S4,在对web请求进行接口测试和/或性能测试时,获取在页面上选择的所述web请求对应的测试步骤,基于该测试步骤获取在该脚本库中与所述测试步骤关联的测试脚本,基于所述测试脚本进行测试。S4. When performing an interface test and / or performance test on a web request, obtain a test step corresponding to the web request selected on the page, and obtain a test script associated with the test step in the script library based on the test step. , Testing based on the test script.
本申请还提供一种计算机可读存储介质,所述计算机可读存储介质上存储有处理系统,所述处理系统被处理器执行时实现步骤:The present application also provides a computer-readable storage medium, where the computer-readable storage medium stores a processing system, and the processing system implements steps when executed by a processor:
接收在页面上输入的测试步骤,所述测试步骤包括web请求、请求地址及请求参数;Receiving a test step entered on a page, the test step including a web request, a request address, and request parameters;
获取所述web请求的类型,根据所述web请求的类型获取对应的测试模板,通过模式匹配的方式分别获取所述测试模板中请求地址的位置及请求参数的位置,在所述请求地址的位置写入所述测试步骤中的请求地址,并在所述请求参数的位置写入所述测试步骤中的的请求参数;Obtain the type of the web request, obtain the corresponding test template according to the type of the web request, and obtain the location of the request address and the location of the request parameter in the test template by pattern matching. Write the request address in the test step, and write the request parameter in the test step at the position of the request parameter;
将写入请求地址及请求参数后的测试模板生成对应的脚本对象,根据所述脚本对象生成对应的测试脚本,将所述测试步骤与该测试脚本通过预定的关联方式进行关联后存储在预先建立的脚本库中;The test template after writing the request address and the request parameters is used to generate a corresponding script object, and a corresponding test script is generated according to the script object. The test step and the test script are associated in a predetermined association manner and stored in a pre-established manner. Script library;
在对web请求进行接口测试和/或性能测试时,获取在页面上选择的所述web请求对应的测试步骤,基于该测试步骤获取在该脚本库中与所述测试步骤关联的测试脚本,基于所述测试脚本进行测试。When performing an interface test and / or performance test on a web request, obtaining a test step corresponding to the web request selected on the page, and obtaining a test script associated with the test step in the script library based on the test step, based on The test script performs testing.
本申请的有益效果是:本申请提出了建立脚本库的概念,以一个web请求作为最小粒度,一个web请求对应相应的测试步骤,测试步骤生成一个脚本对象保存在脚本库中,对于既需要进行接口测试又需要进行性能测试的web请求而言,在测试时,根据业务逻辑直接使用测试步骤关联得到脚本库中的接口测试脚本和性能测试脚本,这样就可以实现性能测试和接口测试的脚本的复用,同时,测试脚本和配置也在同一个平台上进行管理,可以共用,能够减少测试工作量,提高测试效率。The beneficial effect of this application is: the concept of establishing a script library is proposed in this application. A web request is used as a minimum granularity, and a web request corresponds to a corresponding test step. The test step generates a script object and saves it in the script library. For web requests that require performance testing for the interface test, the interface test script and the performance test script in the script library are directly associated with the test steps according to the business logic during the test, so that the performance test and the interface test script can be implemented. Reuse. At the same time, test scripts and configurations are also managed on the same platform and can be shared, which can reduce test workload and improve test efficiency.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
图1为本申请测试装置一实施例的硬件架构的示意图;FIG. 1 is a schematic diagram of a hardware architecture of an embodiment of a test device of the present application; FIG.
图2为本申请测试的方法第一实施例的流程示意图;2 is a schematic flowchart of a first embodiment of a method for testing in this application;
图3为本申请测试的方法第二实施例的流程示意图。FIG. 3 is a schematic flowchart of a second embodiment of a method for testing in this application.
具体实施方式detailed description
为了使本申请的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请进行进一步详细说明。应当理解,此处所描述的具体实施例仅用以解释本申请,并不用于限定本申请。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。In order to make the purpose, technical solution, and advantages of the present application clearer, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the application, and are not used to limit the application. Based on the embodiments in the present application, all other embodiments obtained by a person of ordinary skill in the art without creative efforts shall fall within the protection scope of the present application.
需要说明的是,在本申请中涉及“第一”、“第二”等的描述仅用于描述目的,而不能理解为指示或暗示其相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括至少一个该特征。另外,各个实施例之间的技术方案可以相互结合,但是必须是以本领域普通技术人员能够实现为基础,当技术方案的结合出现相互矛盾或无法实现时应当认为这种技术方案的结合不存在,也不在本申请要求的保护范围之内。It should be noted that the descriptions related to "first" and "second" in this application are only for descriptive purposes, and cannot be understood as indicating or implying their relative importance or implicitly indicating the number of technical features indicated. . Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In addition, the technical solutions between the various embodiments can be combined with each other, but must be based on those that can be realized by a person of ordinary skill in the art. When the combination of technical solutions conflicts or cannot be achieved, it should be considered that such a combination of technical solutions does not exist. Is not within the scope of protection claimed in this application.
参阅图1所示,是本申请测试装置一实施例的硬件架构的示意图。所述测试装置1是一种能够按照事先设定或者存储的指令,自动进行数值计算和/或信息处理的设备。所述测试装置1可以是计算机、也可以是单个网络服务器、多个网络服务器组成的服务器组或者基于云计算的由大量主机或者网络服务器构成的云,其中云计算是分布式计算的一种,由一群松散耦合的计算机集组成的一个超级虚拟计算机。Referring to FIG. 1, it is a schematic diagram of a hardware architecture of an embodiment of a test device of the present application. The test device 1 is a device capable of automatically performing numerical calculation and / or information processing according to an instruction set or stored in advance. The test device 1 may be a computer, a single network server, a server group composed of multiple network servers, or a cloud composed of a large number of hosts or network servers based on cloud computing. Cloud computing is a type of distributed computing. A super virtual computer consisting of a loosely coupled set of computers.
在本实施例中,测试装置1可包括,但不仅限于,可通过系统总线相互通信连接的存储器11、处理器12、网络接口13,存储器11存储有可在处理器12上运行的处理系统。需要指出的是,图1仅示出了具有组件11-13的测试装置1,但是应理解的是,并不要求实施所有示出的组件,可以替代的实施更多或者更少的组件。In this embodiment, the test apparatus 1 may include, but is not limited to, a memory 11, a processor 12, and a network interface 13 that can be communicatively connected to each other through a system bus. The memory 11 stores a processing system that can run on the processor 12. It should be noted that FIG. 1 only shows the test device 1 with components 11-13, but it should be understood that it is not required to implement all the illustrated components, and more or fewer components may be implemented instead.
其中,存储器11包括内存及至少一种类型的可读存储介质。内存为测 试装置1的运行提供缓存;可读存储介质可为如闪存、硬盘、多媒体卡、卡型存储器(例如,SD或DX存储器等)、随机访问存储器(RAM)、静态随机访问存储器(SRAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、可编程只读存储器(PROM)、磁性存储器、磁盘、光盘等的非易失性存储介质。在一些实施例中,可读存储介质可以是测试装置1的内部存储单元,例如该测试装置1的硬盘;在另一些实施例中,该非易失性存储介质也可以是测试装置1的外部存储设备,例如测试装置1上配备的插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(Flash Card)等。本实施例中,存储器11的可读存储介质通常用于存储安装于测试装置1的操作系统和各类应用软件,例如存储本申请一实施例中的处理系统的程序代码等。此外,存储器11还可以用于暂时地存储已经输出或者将要输出的各类数据。The memory 11 includes a memory and at least one type of readable storage medium. The memory provides a cache for the operation of the test device 1; the readable storage medium may be, for example, a flash memory, a hard disk, a multimedia card, a card-type memory (for example, SD or DX memory, etc.), a random access memory (RAM), a static random access memory (SRAM ), Read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read-only memory (PROM), magnetic memory, magnetic disks, optical disks and other non-volatile storage media. In some embodiments, the readable storage medium may be an internal storage unit of the test device 1, such as a hard disk of the test device 1; in other embodiments, the non-volatile storage medium may also be external to the test device 1. The storage device is, for example, a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) card, a flash memory card (Flash Card), etc. provided on the test device 1. In this embodiment, the readable storage medium of the memory 11 is generally used to store an operating system and various types of application software installed in the test device 1, for example, program codes of a processing system in an embodiment of the present application. In addition, the memory 11 can also be used to temporarily store various types of data that have been output or will be output.
所述处理器12在一些实施例中可以是中央处理器(Central Processing Unit,CPU)、控制器、微控制器、微处理器、或其他数据处理芯片。该处理器12通常用于控制所述测试装置1的总体操作,例如执行与其他设备进行数据交互或者通信相关的控制和处理等。本实施例中,所述处理器12用于运行所述存储器11中存储的程序代码或者处理数据,例如运行处理系统等。In some embodiments, the processor 12 may be a central processing unit (CPU), a controller, a microcontroller, a microprocessor, or another data processing chip. The processor 12 is generally used to control the overall operation of the test apparatus 1, for example, to perform control and processing related to data interaction or communication with other devices. In this embodiment, the processor 12 is configured to run program code or process data stored in the memory 11, for example, to run a processing system.
所述网络接口13可包括无线网络接口或有线网络接口,该网络接口13通常用于在所述测试装置1与其他电子设备之间建立通信连接。The network interface 13 may include a wireless network interface or a wired network interface. The network interface 13 is generally used to establish a communication connection between the test apparatus 1 and other electronic devices.
所述处理系统存储在存储器11中,包括至少一个存储在存储器11中的计算机可读指令,该至少一个计算机可读指令可被处理器器12执行,以实现本申请各实施例的方法;以及,该至少一个计算机可读指令依据其各部分所实现的功能不同,可被划为不同的逻辑模块。The processing system is stored in the memory 11 and includes at least one computer-readable instruction stored in the memory 11, which can be executed by the processor 12 to implement the methods of the embodiments of the present application; and The at least one computer-readable instruction may be divided into different logic modules according to different functions implemented by each part thereof.
在一实施例中,上述处理系统被所述处理器12执行时实现如下步骤:In an embodiment, when the processing system is executed by the processor 12, the following steps are implemented:
接收在页面上输入的测试步骤,所述测试步骤包括web请求、请求地址 及请求参数;Receiving a test step entered on a page, the test step including a web request, a request address, and a request parameter;
其中,用户在页面上录入一个或多个测试步骤,每一个测试步骤中包括web请求(即网页请求)、请求地址、请求参数。在保存测试步骤后,在后台执行自动生成测试脚本的操作。The user enters one or more test steps on the page, and each test step includes a web request (that is, a web page request), a request address, and request parameters. After saving the test step, the operation of automatically generating a test script is performed in the background.
获取所述web请求的类型,根据所述web请求的类型获取对应的测试模板,通过模式匹配的方式分别获取所述测试模板中请求地址的位置及请求参数的位置,在所述请求地址的位置写入所述测试步骤中的请求地址,并在所述请求参数的位置写入所述测试步骤中的的请求参数;Obtain the type of the web request, obtain the corresponding test template according to the type of the web request, and obtain the location of the request address and the location of the request parameter in the test template by pattern matching. Write the request address in the test step, and write the request parameter in the test step at the position of the request parameter;
其中,web请求的类型包括POST请求及GET请求,GET请求为从指定的资源处请求数据,POST请求向指定的资源处提交要被处理的数据。POST请求对应POST请求的测试模板,GET请求对应GET请求的测试模板。The types of web requests include POST requests and GET requests. A GET request requests data from a specified resource, and a POST request submits data to be processed to a specified resource. The POST request corresponds to the test template of the POST request, and the GET request corresponds to the test template of the GET request.
对于GET请求,请求参数是作为一个key或value对的序列(即查询字符串)附加到URL上的;对于POST请求,请求参数是在http标题的一个不同部分(名为entitybody)传输的。POST请求设计用来支持web窗体上的用户字段,其请求参数也是作为key或value对传输。例如:http://www.taobao.com?itemId=123是GET请求,http://www.taobao.com是POST请求。即GET请求的尾部带有参数,POST请求的参数携带在http协议中。For GET requests, the request parameters are appended to the URL as a sequence of key or value pairs (that is, the query string); for POST requests, the request parameters are transmitted in a different part of the http header (named entitybody). POST requests are designed to support user fields on web forms, and their request parameters are also transmitted as key or value pairs. For example: http://www.taobao.com? itemId = 123 is a GET request, and http://www.taobao.com is a POST request. That is, the tail of the GET request has parameters, and the parameters of the POST request are carried in the http protocol.
其中,模式匹配的方式包括通过匹配关键字的方式找到测试模板中请求地址的位置及请求参数的位置,例如请求地址的匹配关键字为“*http*”、请求参数的匹配关键字为“*itemId=*”。The pattern matching includes finding the location of the request address and the location of the request parameter in the test template by matching keywords. For example, the match keyword of the request address is “* http *” and the match keyword of the request parameter is “* itemId = * ".
将写入请求地址及请求参数后的测试模板生成对应的脚本对象,根据所述脚本对象生成对应的测试脚本,将所述测试步骤与该测试脚本通过预定的关联方式进行关联后存储在预先建立的脚本库中;The test template after writing the request address and the request parameters is used to generate a corresponding script object, and a corresponding test script is generated according to the script object. The test step and the test script are associated in a predetermined association manner and stored in a pre-established manner. Script library;
在对web请求进行接口测试和/或性能测试时,获取在页面上选择的所 述web请求对应的测试步骤,基于该测试步骤获取在该脚本库中与所述测试步骤关联的测试脚本,基于所述测试脚本进行测试。When performing an interface test and / or performance test on a web request, obtaining a test step corresponding to the web request selected on the page, and obtaining a test script associated with the test step in the script library based on the test step, based on The test script performs testing.
其中,为了便于快速在脚本库中查找到测试步骤关联的测试脚本,预定的关联方式为每个测试步骤通过指定名称(例如,类名+方法名)关联测试脚本。Among them, in order to quickly find the test script associated with the test step in the script library, the predetermined association method associates the test script with a specified name (for example, a class name + method name) for each test step.
在对web请求进行接口测试时,在页面上选择该web请求对应的接口测试的一个或多个测试步骤,由于在脚本库中已经生成了测试步骤对应的测试脚本,因此,每个测试步骤通过前述预定的关联方式关联到脚本库中的测试脚本,即可以得到可执行的接口测试的测试脚本,执行测试脚本即可测试;When performing an interface test on a web request, select one or more test steps of the interface test corresponding to the web request on the page. Since the test script corresponding to the test step has been generated in the script library, each test step passes The aforementioned predetermined association method is associated with the test script in the script library, that is, the test script for the executable interface test can be obtained, and the test can be executed by executing the test script;
在对web请求进行性能测试时,在页面上选择该web请求对应的性能测试的一个或多个测试步骤,由于在脚本库中已经生成了测试步骤对应的测试脚本,因此,每个测试步骤通过前述预定的关联方式关联到脚本库中的测试脚本,即可以得到可执行的性能测试的测试脚本,执行测试脚本即可测试。When performing a performance test on a web request, select one or more test steps of the performance test corresponding to the web request on the page. Since a test script corresponding to the test step has been generated in the script library, each test step passes The foregoing predetermined association manner is associated with the test script in the script library, that is, the test script for the executable performance test can be obtained, and the test can be performed by executing the test script.
进一步地,为了提高测试的灵活性,在对web请求进行性能测试时,在基于该测试步骤获取该脚本库中与测试步骤关联的测试脚本之后,用户可以在页面上设置测试的场景参数,场景参数包括并发用户数、测试持续时间,然后基于测试脚本及场景参数进行测试。Further, in order to improve the flexibility of the test, when performing a performance test on a web request, after obtaining the test script associated with the test step in the script library based on the test step, the user can set the test scenario parameters and scenarios on the page Parameters include the number of concurrent users, test duration, and then test based on test scripts and scenario parameters.
其中,目前用户录入的信息,例如web请求、请求地址等,实际上是以数据的形式存放在数据库中,在执行时才从数据库中取出,组装成测试案例,因此用户无法查看真正执行的测试脚本,无法进行修改,需要开发人员修改代码才可以实现,开发工作量大。Among them, the information entered by the user, such as web requests, request addresses, is actually stored in the database in the form of data, which is only taken out from the database when executed, and assembled into test cases, so users cannot view the tests that are actually executed Scripts cannot be modified, and developers need to modify the code before they can be implemented. The development workload is heavy.
在一优选实施例中,可使用支持DSL语言的Gatling作为执行引擎,在web端的页面为Gatling作为执行引擎的脚本可视化编辑的平台页面,提高测试的便利性及灵活性,所述处理系统被所述处理器12执行时,还实现如下步骤:在接收到编辑指令时,对所述页面上的测试步骤进行编辑,并在编 辑完成后进行保存。In a preferred embodiment, Gatling that supports the DSL language can be used as the execution engine, and the page on the web side is the platform page for the visual editing of the script that Gatling is used as the execution engine to improve the convenience and flexibility of the test. When the processor 12 executes, it also implements the following steps: when an editing instruction is received, the test steps on the page are edited and saved after the editing is completed.
其中,脚本可视化编辑的平台页面上至少包括测试案例库区域及编辑框区域,可通过在测试案例库区域中的一个控件关联对应脚本库中的测试步骤,对于简单的编辑,可以通过控件将对应的测试步骤拖拽至编辑框区域中进行可视化的编辑,其中,编辑包括修改、复制、调顺序、删除等,在编辑完成后,进行保存,编辑后的测试步骤按照顺序生成对应的测试脚本,该测试脚本可供Gatling执行引擎直接执行。The platform page of the script visual editing includes at least a test case library area and an edit box area. A control in the test case library area can be associated with the corresponding test step in the script library. For simple editing, the corresponding Drag the test steps to the edit box area for visual editing. Editing includes modifying, copying, reordering, deleting, etc. After editing is completed, save them. The edited test steps generate corresponding test scripts in order. This test script can be executed directly by the Gatling execution engine.
进一步地,对于复杂的编辑,脚本可视化编辑的平台页面上提供页面切换控件,处理系统被所述处理器12执行时,还实现如下步骤:在接收到基于该页面切换控件发出的切换指令时,可以从当前包含案例库区域、编辑框区域的页面切换至预定的代码编辑器的可视化编辑页面,该预定的代码编辑器的可视化编辑页面例如为ACE Editor可视化编辑页面,实现用户自定义的脚本代码的可视化编辑,进一步提高测试的便利性及灵活性。Further, for complex editing, a page switching control is provided on a platform page of the script visual editing. When the processing system is executed by the processor 12, the following steps are also implemented: When receiving a switching instruction based on the page switching control, You can switch from the page that currently contains the case library area and the edit box area to the visual editing page of the predetermined code editor. The visual editing page of the predetermined code editor is, for example, the ACEEditor visual editing page to implement user-defined script code. Visual editing to further improve the convenience and flexibility of the test.
其中,在预定的代码编辑器的可视化编辑页面,由于Gatling执行引擎支持领域专用语言DSL,基于领域专用语言DSL关键字固定的特点,在用户编辑脚本代码时,可进行进行高亮显示,同时,gatling关键字可联想提示,辅助编辑,能够简单识别脚本代码的有效性。Among them, in the visual editing page of the predetermined code editor, because the Gatling execution engine supports the domain-specific language DSL, based on the fixed characteristics of the domain-specific language DSL keywords, users can highlight the script code when editing the script code. At the same time, The gatling keyword can be associated with hints and assisted editing, which can easily identify the validity of the script code.
与现有技术相比,本申请提出了建立脚本库的概念,以一个web请求作为最小粒度,一个web请求对应相应的测试步骤,测试步骤生成一个脚本对象保存在脚本库中,对于既需要进行接口测试又需要进行性能测试的web请求而言,在测试时,根据业务逻辑直接使用测试步骤关联得到脚本库中的接口测试脚本和性能测试脚本,这样就可以实现性能测试和接口测试的脚本的复用,同时,测试脚本和配置也在同一个平台上进行管理,可以共用,能够减少测试工作量,提高测试效率。Compared with the prior art, this application proposes the concept of establishing a script library. One web request is used as the minimum granularity. One web request corresponds to the corresponding test step. The test step generates a script object and stores it in the script library. For web requests that require performance testing for the interface test, the interface test script and the performance test script in the script library are directly associated with the test steps according to the business logic during the test, so that the performance test and the interface test script can be implemented. Reuse. At the same time, test scripts and configurations are also managed on the same platform and can be shared, which can reduce test workload and improve test efficiency.
如图2所示,图2为本申请测试的方法一实施例的流程示意图,该测试的方法包括以下步骤:As shown in FIG. 2, FIG. 2 is a schematic flowchart of an embodiment of a test method of the present application. The test method includes the following steps:
步骤S1,接收在页面上输入的测试步骤;Step S1, receiving a test step input on the page;
其中,用户在页面上录入一个或多个测试步骤,每一个测试步骤中包括web请求、请求地址、请求参数。在保存测试步骤后,在后台执行自动生成测试脚本的操作。The user enters one or more test steps on the page, and each test step includes a web request, a request address, and a request parameter. After saving the test step, the operation of automatically generating a test script is performed in the background.
步骤S2,获取所述web请求的类型,根据所述web请求的类型获取对应的测试模板,通过模式匹配的方式分别获取所述测试模板中请求地址的位置及请求参数的位置,在所述请求地址的位置写入所述测试步骤中的请求地址,并在所述请求参数的位置写入所述测试步骤中的的请求参数;Step S2: Obtain the type of the web request, obtain the corresponding test template according to the type of the web request, and obtain the position of the request address and the position of the request parameter in the test template by pattern matching. Write the request address in the test step at the location of the address, and write the request parameter in the test step at the location of the request parameter;
其中,web请求的类型包括POST请求及GET请求,GET请求为从指定的资源处请求数据,POST请求向指定的资源处提交要被处理的数据。POST请求对应POST请求的测试模板,GET请求对应GET请求的测试模板。The types of web requests include POST requests and GET requests. A GET request requests data from a specified resource, and a POST request submits data to be processed to a specified resource. The POST request corresponds to the test template of the POST request, and the GET request corresponds to the test template of the GET request.
对于GET请求,请求参数是作为一个key或value对的序列(即查询字符串)附加到URL上的;对于POST请求,请求参数是在http标题的一个不同部分(名为entitybody)传输的。POST请求设计用来支持web窗体上的用户字段,其请求参数也是作为key或value对传输。例如:http://www.taobao.com?itemId=123是GET请求,http://www.taobao.com是POST请求。即GET请求的尾部带有参数,POST请求的参数携带在http协议中。For GET requests, the request parameters are appended to the URL as a sequence of key or value pairs (that is, the query string); for POST requests, the request parameters are transmitted in a different part of the http header (named entitybody). POST requests are designed to support user fields on web forms, and their request parameters are also transmitted as key or value pairs. For example: http://www.taobao.com? itemId = 123 is a GET request, and http://www.taobao.com is a POST request. That is, the tail of the GET request has parameters, and the parameters of the POST request are carried in the http protocol.
其中,模式匹配的方式包括通过匹配关键字的方式找到测试模板中请求地址的位置及请求参数的位置,例如请求地址的匹配关键字为“*http*”、请求参数的匹配关键字为“*itemId=*”。The pattern matching includes finding the location of the request address and the location of the request parameter in the test template by matching keywords. For example, the match keyword of the request address is “* http *” and the match keyword of the request parameter is “* itemId = * ".
步骤S3,将写入请求地址及请求参数后的测试模板生成对应的脚本对象,根据所述脚本对象生成对应的测试脚本,将所述测试步骤与该测试脚本 通过预定的关联方式进行关联后存储在预先建立的脚本库中;Step S3: Generate a corresponding script object from the test template written with the request address and the request parameters, generate a corresponding test script according to the script object, and associate the test step with the test script in a predetermined association manner and store it. In a pre-built script library;
步骤S4,在对web请求进行接口测试和/或性能测试时,获取在页面上选择的所述web请求对应的测试步骤,基于该测试步骤获取在该脚本库中与所述测试步骤关联的测试脚本,基于所述测试脚本进行测试。Step S4: When performing an interface test and / or performance test on a web request, obtain a test step corresponding to the web request selected on the page, and obtain a test associated with the test step in the script library based on the test step. A script for testing based on the test script.
其中,为了便于快速在脚本库中查找到测试步骤关联的测试脚本,预定的关联方式为每个测试步骤通过指定名称(例如,类名+方法名)关联测试脚本。Among them, in order to quickly find the test script associated with the test step in the script library, the predetermined association method associates the test script with a specified name (for example, a class name + method name) for each test step.
在对web请求进行接口测试时,在页面上选择该web请求对应的接口测试的一个或多个测试步骤,由于在脚本库中已经生成了测试步骤对应的测试脚本,因此,每个测试步骤通过前述预定的关联方式关联到脚本库中的测试脚本,即可以得到可执行的接口测试的测试脚本,执行测试脚本即可测试;When performing an interface test on a web request, select one or more test steps of the interface test corresponding to the web request on the page. Since the test script corresponding to the test step has been generated in the script library, each test step passes The aforementioned predetermined association method is associated with the test script in the script library, that is, the test script for the executable interface test can be obtained, and the test can be executed by executing the test script;
在对web请求进行性能测试时,在页面上选择该web请求对应的性能测试的一个或多个测试步骤,由于在脚本库中已经生成了测试步骤对应的测试脚本,因此,每个测试步骤通过前述预定的关联方式关联到脚本库中的测试脚本,即可以得到可执行的性能测试的测试脚本,执行测试脚本即可测试。When performing a performance test on a web request, select one or more test steps of the performance test corresponding to the web request on the page. Since a test script corresponding to the test step has been generated in the script library, each test step passes The foregoing predetermined association manner is associated with the test script in the script library, that is, the test script for the executable performance test can be obtained, and the test can be performed by executing the test script.
进一步地,为了提高测试的灵活性,在对web请求进行性能测试时,在基于该测试步骤获取该脚本库中与测试步骤关联的测试脚本之后,用户可以在页面上设置测试的场景参数,场景参数包括并发用户数、测试持续时间,然后基于测试脚本及场景参数进行测试。Further, in order to improve the flexibility of the test, when performing a performance test on a web request, after obtaining the test script associated with the test step in the script library based on the test step, the user can set the test scenario parameters and scenarios on the page Parameters include the number of concurrent users, test duration, and then test based on test scripts and scenario parameters.
其中,目前用户录入的信息,例如web请求、请求地址等,实际上是以数据的形式存放在数据库中,在执行时才从数据库中取出,组装成测试案例,因此用户无法查看真正执行的测试脚本,无法进行修改,需要开发人员修改代码才可以实现,开发工作量大。Among them, the information entered by the user, such as web requests, request addresses, is actually stored in the database in the form of data, which is only taken out from the database when executed, and assembled into test cases, so users cannot view the tests that are actually executed Scripts cannot be modified, and developers need to modify the code before they can be implemented. The development workload is heavy.
在一优选实施例中,可使用支持DSL语言的Gatling作为执行引擎,在web端的页面为Gatling作为执行引擎的脚本可视化编辑的平台页面,提高 测试的便利性及灵活性,如图3所示,在步骤S4之后,还包括:步骤S5,在接收到编辑指令时,对所述页面上的测试步骤进行编辑,并在编辑完成后进行保存。In a preferred embodiment, Gatling that supports the DSL language can be used as the execution engine, and the page on the web end is the platform page for visual editing of the script that Gatling is used as the execution engine to improve the convenience and flexibility of the test, as shown in FIG. 3, After step S4, the method further includes step S5. When an editing instruction is received, the test steps on the page are edited and saved after the editing is completed.
其中,脚本可视化编辑的平台页面上至少包括测试案例库区域及编辑框区域,可通过在测试案例库区域中的一个控件关联对应脚本库中的测试步骤,对于简单的编辑,可以通过控件将对应的测试步骤拖拽至编辑框区域中进行可视化的编辑,其中,编辑包括修改、复制、调顺序、删除等,在编辑完成后,进行保存,编辑后的测试步骤按照顺序生成对应的测试脚本,该测试脚本可供Gatling执行引擎直接执行。The platform page of the script visual editing includes at least a test case library area and an edit box area. A control in the test case library area can be associated with the corresponding test step in the script library. For simple editing, the corresponding Drag the test steps to the edit box area for visual editing. Editing includes modifying, copying, reordering, deleting, etc. After editing is completed, save them. The edited test steps generate corresponding test scripts in order. This test script can be executed directly by the Gatling execution engine.
进一步地,对于复杂的编辑,脚本可视化编辑的平台页面上提供页面切换控件,在上述步骤S4之后,还包括:在接收到基于该页面切换控件发出的切换指令时,可以从当前包含案例库区域、编辑框区域的页面切换至预定的代码编辑器的可视化编辑页面,该预定的代码编辑器的可视化编辑页面例如为ACE Editor可视化编辑页面,实现用户自定义的脚本代码的可视化编辑,进一步提高测试的便利性及灵活性。Further, for complex editing, a page switching control is provided on a platform page of the script visual editing. After step S4 above, it further includes: when receiving a switching instruction issued based on the page switching control, it may include a case library area from the current The page in the edit box area is switched to the visual editing page of the predetermined code editor. The visual editing page of the predetermined code editor is, for example, the ACEEditor visual editing page, which realizes the visual editing of user-defined script code and further improves the test. Convenience and flexibility.
其中,在预定的代码编辑器的可视化编辑页面,由于Gatling执行引擎支持领域专用语言DSL,基于领域专用语言DSL关键字固定的特点,在用户编辑脚本代码时,可进行进行高亮显示,同时,gatling关键字可联想提示,辅助编辑,能够简单识别脚本代码的有效性。Among them, in the visual editing page of the predetermined code editor, because the Gatling execution engine supports the domain-specific language DSL, based on the fixed characteristics of the domain-specific language DSL keywords, users can highlight the script code when editing the script code. The gatling keyword can be associated with hints and assisted editing, which can easily identify the validity of the script code.
本申请提出了建立脚本库的概念,以一个web请求作为最小粒度,一个web请求对应相应的测试步骤,测试步骤生成一个脚本对象保存在脚本库中,对于既需要进行接口测试又需要进行性能测试的web请求而言,在测试时,根据业务逻辑直接使用测试步骤关联得到脚本库中的接口测试脚本和性能测试脚本,这样就可以实现性能测试和接口测试的脚本的复用,同时,测试脚本和配置也在同一个平台上进行管理,可以共用,能够减少测试工作量, 提高测试效率。This application proposes the concept of establishing a script library. A web request is used as the minimum granularity. A web request corresponds to the corresponding test steps. A script object is generated in the test step and stored in the script library. For both interface testing and performance testing, For web requests, when testing, according to the business logic, directly use the test step association to get the interface test script and the performance test script in the script library, so that the performance test and the interface test script can be reused. At the same time, the test script Management and configuration are also managed on the same platform and can be shared, which can reduce testing workload and improve testing efficiency.
本申请还提供一种计算机可读存储介质,所述计算机可读存储介质上存储有处理系统,所述处理系统被处理器执行时实现上述的测试的方法的步骤。The present application also provides a computer-readable storage medium on which a processing system is stored. When the processing system is executed by a processor, the steps of the above-mentioned test method are implemented.
上述本申请实施例序号仅仅为了描述,不代表实施例的优劣。The above-mentioned serial numbers of the embodiments of the present application are merely for description, and do not represent the superiority or inferiority of the embodiments.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本申请各个实施例所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the methods in the above embodiments can be implemented by means of software plus a necessary universal hardware platform, and of course, also by hardware, but in many cases the former is better. Implementation. Based on such an understanding, the technical solution of this application that is essentially or contributes to the existing technology can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, The optical disc) includes several instructions for causing a terminal device (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in the embodiments of the present application.
以上仅为本申请的优选实施例,并非因此限制本申请的专利范围,凡是利用本申请说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本申请的专利保护范围内。The above are only preferred embodiments of the present application, and thus do not limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made by using the description and drawings of the present application, or directly or indirectly used in other related technical fields Are included in the scope of patent protection of this application.

Claims (20)

  1. 一种测试装置,其特征在于,所述测试装置包括存储器及与所述存储器连接的处理器,所述存储器中存储有可在所述处理器上运行的处理系统,所述处理系统被所述处理器执行时实现如下步骤:A test device, characterized in that the test device includes a memory and a processor connected to the memory, the memory stores a processing system operable on the processor, and the processing system is described by the processor The processor executes the following steps:
    接收在页面上输入的测试步骤,所述测试步骤包括web请求、请求地址及请求参数;Receiving a test step entered on a page, the test step including a web request, a request address, and request parameters;
    获取所述web请求的类型,根据所述web请求的类型获取对应的测试模板,通过模式匹配的方式分别获取所述测试模板中请求地址的位置及请求参数的位置,在所述请求地址的位置写入所述测试步骤中的请求地址,并在所述请求参数的位置写入所述测试步骤中的的请求参数;Obtain the type of the web request, obtain the corresponding test template according to the type of the web request, and obtain the location of the request address and the location of the request parameter in the test template by pattern matching. Write the request address in the test step, and write the request parameter in the test step at the position of the request parameter;
    将写入请求地址及请求参数后的测试模板生成对应的脚本对象,根据所述脚本对象生成对应的测试脚本,将所述测试步骤与该测试脚本通过预定的关联方式进行关联后存储在预先建立的脚本库中;The test template after writing the request address and the request parameters is used to generate a corresponding script object, and a corresponding test script is generated according to the script object. The test step and the test script are associated in a predetermined association manner and stored in a pre-established manner. Script library;
    在对web请求进行接口测试和/或性能测试时,获取在页面上选择的所述web请求对应的测试步骤,基于该测试步骤获取在该脚本库中与所述测试步骤关联的测试脚本,基于所述测试脚本进行测试。When performing an interface test and / or performance test on a web request, obtaining a test step corresponding to the web request selected on the page, and obtaining a test script associated with the test step in the script library based on the test step, based on The test script performs testing.
  2. 根据权利要求1所述的测试装置,其特征在于,所述预定的关联方式为所述测试步骤通过类名+方法名关联所述测试脚本,所述在对web请求进行性能测试时,在基于该测试步骤获取该脚本库中与所述测试步骤关联的测试脚本之后,获取设置的场景参数,基于所述测试脚本及所述场景参数进行测试,所述场景参数包括并发用户数、测试持续时间。The test device according to claim 1, wherein the predetermined association mode is that the test step associates the test script with a class name + method name, and when performing a performance test on a web request, After the test step obtains the test script associated with the test step in the script library, the set scene parameters are obtained, and the test is performed based on the test script and the scene parameters. The scene parameters include the number of concurrent users and the test duration. .
  3. 根据权利要求1所述的测试装置,其特征在于,所述页面为Gatling作为执行引擎的脚本可视化编辑的平台页面,所述脚本可视化编辑的平台页面上包括测试案例库区域及编辑框区域,所述处理系统被所述处理器执行时,还实现如下步骤:在接收到编辑指令时,对所述页面上的测试步骤进行 编辑,并在编辑完成后进行保存。The test device according to claim 1, wherein the page is a platform page for visual editing of a script by Gatling as an execution engine, and the platform page for visual editing of the script includes a test case library area and an edit box area. When the processing system is executed by the processor, it also implements the following steps: when an editing instruction is received, the test steps on the page are edited and saved after the editing is completed.
  4. 根据权利要求2所述的测试装置,其特征在于,所述页面为Gatling作为执行引擎的脚本可视化编辑的平台页面,所述脚本可视化编辑的平台页面上包括测试案例库区域及编辑框区域,所述处理系统被所述处理器执行时,还实现如下步骤:在接收到编辑指令时,对所述页面上的测试步骤进行编辑,并在编辑完成后进行保存。The test device according to claim 2, wherein the page is a platform page for visual editing of a script by Gatling as an execution engine, and the platform page for visual editing of the script includes a test case library area and an edit box area. When the processing system is executed by the processor, it also implements the following steps: when an editing instruction is received, the test steps on the page are edited and saved after the editing is completed.
  5. 根据权利要求3所述的测试装置,其特征在于,所述脚本可视化编辑的平台页面上还包括页面切换控件,所述处理系统被所述处理器执行时,还实现如下步骤:The test device according to claim 3, wherein the platform page of the script visual editing further includes a page switching control, and when the processing system is executed by the processor, the following steps are further implemented:
    在接收到基于该页面切换控件发出的切换指令时,从所述脚本可视化编辑的平台页面切换至预定的代码编辑器的可视化编辑页面,以对测试脚本的代码进行编辑。When a switching instruction based on the page switching control is received, a platform page of the script visual editing is switched to a visual editing page of a predetermined code editor to edit the code of the test script.
  6. 根据权利要求4所述的测试装置,其特征在于,所述脚本可视化编辑的平台页面上还包括页面切换控件,所述处理系统被所述处理器执行时,还实现如下步骤:The test device according to claim 4, wherein the platform page of the script visual editing further comprises a page switching control, and when the processing system is executed by the processor, the following steps are further implemented:
    在接收到基于该页面切换控件发出的切换指令时,从所述脚本可视化编辑的平台页面切换至预定的代码编辑器的可视化编辑页面,以对测试脚本的代码进行编辑。When a switching instruction based on the page switching control is received, a platform page of the script visual editing is switched to a visual editing page of a predetermined code editor to edit the code of the test script.
  7. 根据权利要求5或6所述的测试装置,其特征在于,所述预定的代码编辑器的可视化编辑页面为ACE Editor可视化编辑页面。The test device according to claim 5 or 6, wherein the visual editing page of the predetermined code editor is an ACEEditor visual editing page.
  8. 一种测试的方法,其特征在于,所述测试的方法包括:A testing method, characterized in that the testing method includes:
    S1,接收在页面上输入的测试步骤,所述测试步骤包括web请求、请求地址及请求参数;S1. Receive a test step input on a page, where the test step includes a web request, a request address, and request parameters;
    S2,获取所述web请求的类型,根据所述web请求的类型获取对应的测试模板,通过模式匹配的方式分别获取所述测试模板中请求地址的位置及 请求参数的位置,在所述请求地址的位置写入所述测试步骤中的请求地址,并在所述请求参数的位置写入所述测试步骤中的的请求参数;S2. Obtain the type of the web request, obtain the corresponding test template according to the type of the web request, and obtain the position of the request address and the position of the request parameter in the test template by pattern matching. Write the request address in the test step at the location of, and write the request parameter in the test step at the location of the request parameter;
    S3,将写入请求地址及请求参数后的测试模板生成对应的脚本对象,根据所述脚本对象生成对应的测试脚本,将所述测试步骤与该测试脚本通过预定的关联方式进行关联后存储在预先建立的脚本库中;S3. Generate a corresponding script object from the test template after writing the request address and request parameters, generate a corresponding test script according to the script object, and associate the test step with the test script in a predetermined association manner and store the In a pre-built script library;
    S4,在对web请求进行接口测试和/或性能测试时,获取在页面上选择的所述web请求对应的测试步骤,基于该测试步骤获取在该脚本库中与所述测试步骤关联的测试脚本,基于所述测试脚本进行测试。S4. When performing an interface test and / or performance test on a web request, obtain a test step corresponding to the web request selected on the page, and obtain a test script associated with the test step in the script library based on the test step. , Testing based on the test script.
  9. 根据权利要求8所述的测试的方法,其特征在于,所述预定的关联方式为所述测试步骤通过类名+方法名关联所述测试脚本,所述在对web请求进行性能测试时,在基于该测试步骤获取该脚本库中与所述测试步骤关联的测试脚本之后,获取设置的场景参数,基于所述测试脚本及所述场景参数进行测试,所述场景参数包括并发用户数、测试持续时间。The test method according to claim 8, wherein the predetermined association mode is that the test step associates the test script with a class name + method name, and when performing a performance test on a web request, the After obtaining the test script associated with the test step in the script library based on the test step, the set scene parameters are obtained, and the test is performed based on the test script and the scene parameters, where the scene parameters include the number of concurrent users and the test duration time.
  10. 根据权利要求8所述的测试的方法,其特征在于,所述页面为Gatling作为执行引擎的脚本可视化编辑的平台页面,所述脚本可视化编辑的平台页面上包括测试案例库区域及编辑框区域,所述步骤S4之后,还包括:在接收到编辑指令时,对所述页面上的测试步骤进行编辑,并在编辑完成后进行保存。The test method according to claim 8, wherein the page is a platform page for visual editing of a script by Gatling as an execution engine, and the platform page for visual editing of the script includes a test case library area and an edit box area, After step S4, the method further includes: when receiving the editing instruction, editing the test steps on the page, and saving the editing steps after the editing is completed.
  11. 根据权利要求9所述的测试的方法,其特征在于,所述页面为Gatling作为执行引擎的脚本可视化编辑的平台页面,所述脚本可视化编辑的平台页面上包括测试案例库区域及编辑框区域,所述步骤S4之后,还包括:在接收到编辑指令时,对所述页面上的测试步骤进行编辑,并在编辑完成后进行保存。The test method according to claim 9, wherein the page is a platform page for visual editing of a script by Gatling as an execution engine, and the platform page for visual editing of the script includes a test case library area and an edit box area, After step S4, the method further includes: when receiving the editing instruction, editing the test steps on the page, and saving the editing steps after the editing is completed.
  12. 根据权利要求10所述的测试的方法,其特征在于,所述脚本可视化编辑的平台页面上还包括页面切换控件,所述步骤S4之后,还包括:在接 收到基于该页面切换控件发出的切换指令时,从所述脚本可视化编辑的平台页面切换至预定的代码编辑器的可视化编辑页面,以对测试脚本的代码进行编辑。The test method according to claim 10, wherein the platform page of the script visual editing further comprises a page switching control, and after step S4, further comprising: upon receiving a switch issued based on the page switching control. When instructing, switch from the platform page for visual editing of the script to the visual editing page of a predetermined code editor to edit the code of the test script.
  13. 根据权利要求11所述的测试的方法,其特征在于,所述脚本可视化编辑的平台页面上还包括页面切换控件,所述步骤S4之后,还包括:在接收到基于该页面切换控件发出的切换指令时,从所述脚本可视化编辑的平台页面切换至预定的代码编辑器的可视化编辑页面,以对测试脚本的代码进行编辑。The test method according to claim 11, wherein the platform page of the script visual editing further comprises a page switching control, and after step S4, further comprising: upon receiving a switch issued based on the page switching control When instructing, switch from the platform page for visual editing of the script to the visual editing page of a predetermined code editor to edit the code of the test script.
  14. 根据权利要求12或13所述的测试的方法,其特征在于,所述预定的代码编辑器的可视化编辑页面为ACE Editor可视化编辑页面。The test method according to claim 12 or 13, wherein the visual editing page of the predetermined code editor is an ACEEditor visual editing page.
  15. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质上存储有处理系统,所述处理系统被处理器执行时实现步骤:A computer-readable storage medium is characterized in that a processing system is stored on the computer-readable storage medium, and the processing system implements steps when the processing system is executed by a processor:
    接收在页面上输入的测试步骤,所述测试步骤包括web请求、请求地址及请求参数;Receiving a test step entered on a page, the test step including a web request, a request address, and request parameters;
    获取所述web请求的类型,根据所述web请求的类型获取对应的测试模板,通过模式匹配的方式分别获取所述测试模板中请求地址的位置及请求参数的位置,在所述请求地址的位置写入所述测试步骤中的请求地址,并在所述请求参数的位置写入所述测试步骤中的的请求参数;Obtain the type of the web request, obtain the corresponding test template according to the type of the web request, and obtain the location of the request address and the location of the request parameter in the test template by pattern matching. Write the request address in the test step, and write the request parameter in the test step at the position of the request parameter;
    将写入请求地址及请求参数后的测试模板生成对应的脚本对象,根据所述脚本对象生成对应的测试脚本,将所述测试步骤与该测试脚本通过预定的关联方式进行关联后存储在预先建立的脚本库中;The test template after writing the request address and the request parameters is used to generate a corresponding script object, and a corresponding test script is generated according to the script object. The test step and the test script are associated in a predetermined association manner and stored in a pre-established manner. Script library;
    在对web请求进行接口测试和/或性能测试时,获取在页面上选择的所述web请求对应的测试步骤,基于该测试步骤获取在该脚本库中与所述测试步骤关联的测试脚本,基于所述测试脚本进行测试。When performing an interface test and / or performance test on a web request, obtaining a test step corresponding to the web request selected on the page, and obtaining a test script associated with the test step in the script library based on the test step, based on The test script performs testing.
  16. 根据权利要求15所述的计算机可读存储介质,其特征在于,所述预 定的关联方式为所述测试步骤通过类名+方法名关联所述测试脚本,所述在对web请求进行性能测试时,在基于该测试步骤获取该脚本库中与所述测试步骤关联的测试脚本之后,获取设置的场景参数,基于所述测试脚本及所述场景参数进行测试,所述场景参数包括并发用户数、测试持续时间。The computer-readable storage medium according to claim 15, wherein the predetermined association mode is that the test step associates the test script with a class name + method name, and when performing a performance test on a web request After obtaining a test script associated with the test step in the script library based on the test step, obtain a set scene parameter, and perform a test based on the test script and the scene parameter, where the scene parameter includes the number of concurrent users, Test duration.
  17. 根据权利要求15所述的计算机可读存储介质,其特征在于,所述页面为Gatling作为执行引擎的脚本可视化编辑的平台页面,所述脚本可视化编辑的平台页面上包括测试案例库区域及编辑框区域,所述处理系统被所述处理器执行时,还实现如下步骤:在接收到编辑指令时,对所述页面上的测试步骤进行编辑,并在编辑完成后进行保存。The computer-readable storage medium according to claim 15, wherein the page is a platform page for visually editing a script by Gatling as an execution engine, and the platform page for visually editing the script includes a test case library area and an edit box Area, when the processing system is executed by the processor, the following steps are also implemented: when an editing instruction is received, the test steps on the page are edited and saved after the editing is completed.
  18. 根据权利要求16所述的计算机可读存储介质,其特征在于,所述页面为Gatling作为执行引擎的脚本可视化编辑的平台页面,所述脚本可视化编辑的平台页面上包括测试案例库区域及编辑框区域,所述处理系统被所述处理器执行时,还实现如下步骤:在接收到编辑指令时,对所述页面上的测试步骤进行编辑,并在编辑完成后进行保存。The computer-readable storage medium according to claim 16, wherein the page is a platform page for visual editing of a script by Gatling as an execution engine, and the platform page for visual editing of the script includes a test case library area and an edit box Area, when the processing system is executed by the processor, the following steps are also implemented: when an editing instruction is received, the test steps on the page are edited and saved after the editing is completed.
  19. 根据权利要求17所述的计算机可读存储介质,其特征在于,所述脚本可视化编辑的平台页面上还包括页面切换控件,所述处理系统被所述处理器执行时,还实现如下步骤:The computer-readable storage medium according to claim 17, wherein the platform page of the script visual editing further comprises a page switching control, and when the processing system is executed by the processor, the following steps are further implemented:
    在接收到基于该页面切换控件发出的切换指令时,从所述脚本可视化编辑的平台页面切换至预定的代码编辑器的可视化编辑页面,以对测试脚本的代码进行编辑。When a switching instruction based on the page switching control is received, a platform page of the script visual editing is switched to a visual editing page of a predetermined code editor to edit the code of the test script.
  20. 根据权利要求18所述的计算机可读存储介质,其特征在于,所述脚本可视化编辑的平台页面上还包括页面切换控件,所述处理系统被所述处理器执行时,还实现如下步骤:The computer-readable storage medium according to claim 18, wherein the platform page for visually editing the script further comprises a page switching control, and when the processing system is executed by the processor, the following steps are further implemented:
    在接收到基于该页面切换控件发出的切换指令时,从所述脚本可视化编辑的平台页面切换至预定的代码编辑器的可视化编辑页面,以对测试脚本的 代码进行编辑。When a switching instruction based on the page switching control is received, the script page for visual editing of the script is switched to the visual editing page of a predetermined code editor to edit the code of the test script.
PCT/CN2018/107712 2018-08-03 2018-09-26 Test device, test method and storage medium WO2020024408A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810876143.7A CN108845950A (en) 2018-08-03 2018-08-03 Test device, the method for test and storage medium
CN201810876143.7 2018-08-03

Publications (1)

Publication Number Publication Date
WO2020024408A1 true WO2020024408A1 (en) 2020-02-06

Family

ID=64195538

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/107712 WO2020024408A1 (en) 2018-08-03 2018-09-26 Test device, test method and storage medium

Country Status (2)

Country Link
CN (1) CN108845950A (en)
WO (1) WO2020024408A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113495834A (en) * 2020-04-07 2021-10-12 阿里巴巴集团控股有限公司 User acceptance test method, equipment and storage medium

Families Citing this family (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109828900A (en) * 2018-12-14 2019-05-31 深圳壹账通智能科技有限公司 Test script automatic generation method, device, electronic equipment and storage medium
CN109885473A (en) * 2018-12-14 2019-06-14 平安万家医疗投资管理有限责任公司 Automated testing method and device, terminal and computer readable storage medium
CN109815123A (en) * 2018-12-15 2019-05-28 中国平安人寿保险股份有限公司 Interface testing case script classification method, device, electronic equipment and medium
CN109710532A (en) * 2018-12-28 2019-05-03 北京金山安全软件有限公司 Test case management method and device and electronic equipment
CN109871314A (en) * 2019-01-02 2019-06-11 石化盈科信息技术有限责任公司 The automatic generation method of test script
CN109918060A (en) * 2019-01-29 2019-06-21 深圳点猫科技有限公司 A kind of switching method and device for realizing multi-tag page under single window
CN110197089A (en) * 2019-05-23 2019-09-03 深圳市创自技术有限公司 Reader detection method, equipment and computer readable storage medium
CN110399305B (en) * 2019-07-31 2023-12-08 中国工商银行股份有限公司 BTT module testing method and device
CN110704312B (en) * 2019-09-25 2023-09-12 浙江大搜车软件技术有限公司 Method, device, computer equipment and storage medium for pressure test
CN110896362B (en) * 2019-11-05 2023-01-31 泰康保险集团股份有限公司 Fault detection method and device
CN112148600A (en) * 2020-09-16 2020-12-29 上海中通吉网络技术有限公司 Software performance testing method, device, equipment and storage medium
CN113742238A (en) * 2021-09-14 2021-12-03 南方电网深圳数字电网研究院有限公司 Test case generation method and device

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7810070B2 (en) * 2004-03-29 2010-10-05 Sas Institute Inc. System and method for software testing
CN104679658A (en) * 2015-03-17 2015-06-03 百度在线网络技术(北京)有限公司 Test method and test system for WEB pages
CN107133161A (en) * 2016-02-26 2017-09-05 中国移动(深圳)有限公司 One kind generation client performance test script method and device
CN107341098A (en) * 2017-07-13 2017-11-10 携程旅游信息技术(上海)有限公司 Software performance testing method, platform, equipment and storage medium
CN107480048A (en) * 2017-07-13 2017-12-15 深圳市小牛在线互联网信息咨询有限公司 Testing tool generation method, device, storage medium and computer equipment
CN107766252A (en) * 2017-11-08 2018-03-06 平安科技(深圳)有限公司 Test script automated execution method, apparatus, equipment and storage medium
CN108197021A (en) * 2017-12-28 2018-06-22 深圳市彬讯科技有限公司 A kind of web system automated testing method, device, equipment and storage medium

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5754760A (en) * 1996-05-30 1998-05-19 Integrity Qa Software, Inc. Automatic software testing tool
CN104298589B (en) * 2013-07-16 2018-01-16 阿里巴巴集团控股有限公司 A kind of performance test methods and equipment
CN105302718A (en) * 2015-10-26 2016-02-03 浪潮电子信息产业股份有限公司 Reusable software-oriented test model design method
CN107526679A (en) * 2017-07-13 2017-12-29 深圳市小牛在线互联网信息咨询有限公司 Automated test frame, the automated testing method based on thereon, storage medium and computer equipment
CN108268377A (en) * 2018-01-23 2018-07-10 郑州云海信息技术有限公司 A kind of service test method of server, device and medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7810070B2 (en) * 2004-03-29 2010-10-05 Sas Institute Inc. System and method for software testing
CN104679658A (en) * 2015-03-17 2015-06-03 百度在线网络技术(北京)有限公司 Test method and test system for WEB pages
CN107133161A (en) * 2016-02-26 2017-09-05 中国移动(深圳)有限公司 One kind generation client performance test script method and device
CN107341098A (en) * 2017-07-13 2017-11-10 携程旅游信息技术(上海)有限公司 Software performance testing method, platform, equipment and storage medium
CN107480048A (en) * 2017-07-13 2017-12-15 深圳市小牛在线互联网信息咨询有限公司 Testing tool generation method, device, storage medium and computer equipment
CN107766252A (en) * 2017-11-08 2018-03-06 平安科技(深圳)有限公司 Test script automated execution method, apparatus, equipment and storage medium
CN108197021A (en) * 2017-12-28 2018-06-22 深圳市彬讯科技有限公司 A kind of web system automated testing method, device, equipment and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113495834A (en) * 2020-04-07 2021-10-12 阿里巴巴集团控股有限公司 User acceptance test method, equipment and storage medium
CN113495834B (en) * 2020-04-07 2022-06-14 阿里巴巴集团控股有限公司 User acceptance test method, equipment and storage medium

Also Published As

Publication number Publication date
CN108845950A (en) 2018-11-20

Similar Documents

Publication Publication Date Title
WO2020024408A1 (en) Test device, test method and storage medium
EP3678346B1 (en) Blockchain smart contract verification method and apparatus, and storage medium
CN111625452B (en) Flow playback method and system
US20190207945A1 (en) Resource access control method and device
WO2020000725A1 (en) Electronic apparatus, data migration method, and storage medium
US20170185678A1 (en) Crawler system and method
CN112256558B (en) Test case generation method and device, computer equipment and storage medium
US20140196141A1 (en) Hierarchical rule development and binding for web application server firewall
US20160034582A1 (en) Computing device and method for executing database operation command
US10331499B2 (en) Method, apparatus, and chip for implementing mutually-exclusive operation of multiple threads
TW201439792A (en) System and method for accessing database
US8799861B2 (en) Performance-testing a system with functional-test software and a transformation-accelerator
WO2019095667A1 (en) Database data collection method, application server, and computer readable storage medium
US8407713B2 (en) Infrastructure of data summarization including light programs and helper steps
JP2017519280A (en) Optimized browser rendering process
CN112416964A (en) Data processing method, device and system, computer equipment and computer readable storage medium
CN114281653B (en) Application program monitoring method and device and computing equipment
CN111782207A (en) Method, device and equipment for generating task stream code and storage medium
CN107391528B (en) Front-end component dependent information searching method and equipment
CN108900482B (en) Script execution method, server management system, and storage medium
WO2017020460A1 (en) Method and apparatus for integrating plugin
KR102132449B1 (en) Method and apparatus for testing javascript interpretation engine based on rewriting
US9537941B2 (en) Method and system for verifying quality of server
CN114553521A (en) Remote memory access method, device, equipment and medium
CN112988874A (en) Data processing method, system, computing device and readable storage medium

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

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

Country of ref document: EP

Kind code of ref document: A1