WO2019109553A1 - Functional and performance test script creation method, device, apparatus and storage medium - Google Patents
Functional and performance test script creation method, device, apparatus and storage medium Download PDFInfo
- Publication number
- WO2019109553A1 WO2019109553A1 PCT/CN2018/080828 CN2018080828W WO2019109553A1 WO 2019109553 A1 WO2019109553 A1 WO 2019109553A1 CN 2018080828 W CN2018080828 W CN 2018080828W WO 2019109553 A1 WO2019109553 A1 WO 2019109553A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- function
- test script
- block
- performance test
- performance
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Ceased
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Prevention of errors by analysis, debugging or testing of software
- G06F11/3668—Testing of software
- G06F11/3672—Test management
- G06F11/3684—Test management for test design, e.g. generating new test cases
Definitions
- the present application relates to the field of software testing technologies, and in particular, to a method, device, device, and storage medium for creating a function and performance test script.
- Functional tests focus on whether the system functions normally.
- Performance tests focus on the response speed and resource consumption when the system performs functions. For example, a system has a login function. The functional test focuses on whether the user can log in successfully after entering the user name and password, or whether the wrong password will be rejected. The performance test focuses on whether the system will crash if many users log in, or The maximum number of users supported is different. Because the functional test and the performance test are different, the test script of the functional test and the test script of the performance test are usually written separately, resulting in a longer development time of the test script and lowering the test efficiency.
- the purpose of the present application is to provide a method, an apparatus, a device, and a storage medium for creating a function and performance test script, so as to solve the problems in the prior art and the problem that the performance test script has a long development time and low test efficiency.
- the application is implemented in this way.
- the first aspect of the present application provides a method for creating a function and a performance test script, where the method includes the following steps:
- the second aspect of the present application further provides a device for creating a function and performance test script, where the function and performance test script creation device includes:
- a sub-function function block generating module configured to obtain function test script code, package the function test script code into a plurality of sub-function function blocks, and establish a sub-function function library;
- a function operation function block generating module configured to combine the sub function function blocks in the function function library to generate a function operation function block
- a function test script generating module configured to combine the function operation function blocks according to a preset function operation sequence to generate a function test script, and perform a function test according to the function test script;
- the function test script generating module is configured to obtain a performance test function block, combine the function operation function block in the function test script with the performance test function block to generate a performance test script, and perform performance test.
- a third aspect of the present application provides a terminal device including a memory, a processor, and computer readable instructions stored in the memory and executable on the processor, the processor executing the computer readable instructions Implement the following steps:
- a fourth aspect of the present application provides one or more non-transitory readable storage mediums storing computer readable instructions, the computer readable instructions being executed by one or more processors such that the one or more processes Perform the following steps:
- FIG. 1 is a flowchart of a method for creating a function and performance test script according to an embodiment of the present application
- step S20 is a specific flowchart of step S20 in a method for creating a function and a performance test script according to an embodiment of the present application
- step S30 is a specific flowchart of step S30 in a method for creating a function and a performance test script according to an embodiment of the present application
- FIG. 4 is a schematic structural diagram of a device for creating a function and performance test script according to another embodiment of the present application.
- FIG. 5 is a schematic structural diagram of a terminal device according to another embodiment of the present application.
- An embodiment of the present application provides a method for creating a function and performance test script. As shown in FIG. 1 , the method includes the following steps:
- Step S10 Acquire a function test script code, package the function test script code into a plurality of sub-function function blocks, and establish a sub-function function library.
- the function test script code may be obtained by reading the test case database, acquiring the function test script code in the test case database, or acquiring the function test script code written by the user through the test function tool, and performing the function.
- the test script code is encapsulated into a plurality of sub-function function blocks, and the code corresponding to the execution action in the function test script is encapsulated to obtain a sub-function function block based on completing an execution action, that is, multiple sub-function functions are acquired according to different execution actions.
- Block for example, verifying the login function in the function test script, and writing the login function test step with the test tool function includes: inputting a user name, entering a password, and clicking login, by writing a code to indicate each execution action, therefore, The code corresponding to the execution action is divided into different modules, so that each module forms a movable block on the screen and is named by a keyword.
- Step S20 combining the sub-function function blocks in the function function library to generate a function operation function block.
- the function block can be generated by arranging and combining the movable blocks according to the user's drag operation on the sub-function function block, and when the user detects the drag operation of the movable block, for example, detecting the user using the mouse
- the movable block is moved according to the location dragged by the user, and the process of generating a new function by reorganizing the movable block for the user's drag behavior.
- the user can create a login function operation function block by dragging and dropping the movable part of the input user name, input password, and click login, and can also package the function operation function block. Move the block and display it as a keyword.
- step S20 includes:
- Step S201 Acquire a sub-function function block name, and find a sub-function function block in the sub-function function library according to the sub-function function block name.
- Step S202 Combine the found sub-function function blocks to generate a function operation function block.
- the tester can also input the sub-function function block name into the automated test system through the browser. Specifically, the tester only needs to perform the function operation according to the keyword corresponding to the current test requirement.
- the function block can be used.
- the browser is used to provide an interactive interface for the tester. The tester inputs keywords into the automated test system through the browser.
- the browser can use a browser and a server (Browser/Server, B/S for short). In the browser.
- the interface of the browser can be divided into two parts, one part defines the module and the layout according to the requirements of each module in the system, and the other part can display the combined function operation function module.
- the process of implementing the login function operation function block may be: selecting the user name sub-function function block, inputting the password sub-function function block, clicking the login sub-function function block combination to generate the login function operation function block.
- the function operation block code combined by the sub-function function block is as follows:
- Step S30 combining the function operation function blocks according to a preset function operation sequence to generate a function test script, and performing function tests according to the function test script.
- step S30 a plurality of function operation function blocks are generated by combining different sub-function function blocks, and then different function operation function blocks are combined according to specific execution steps to generate a function test script, and each function operation function block is A movable block is formed on the screen and named by a keyword.
- the function test script can input the function operation name into the automated test system by the tester through the browser, and the system uses the functional operation function block corresponding to the requirement to form a functional test case. can.
- test procedure of the functional test script is:
- This function test script is used to check whether it can log in normally, whether it can be queried normally, and whether it can exit the interface normally.
- the sub-function function block corresponding to each test step is obtained, and the user name sub-function function block, the input co-function function block, and the login sub-function function block are combined to generate a login function.
- the operation function block combines the input query condition sub-function function block and the click query button sub-function function block to generate a query function operation function block, and the exit sub-function function block constitutes an exit function operation function block, and then the login function operation function block,
- the query function operation function block and the exit function operation function block are combined to generate a function test script, and the function test is performed according to the function test script, and the steps of generating the function test script are made simple and quick by combining the function operation function blocks.
- step S30 further includes:
- Step S301 Acquire a function checking module corresponding to the function operation function block.
- Step S302. Combine the function operation function blocks according to a preset function operation sequence.
- Step S303 Add a corresponding function check module to generate a function test script after each function operation function block.
- step S301 to step S303 in order to check whether the function operation function block is correctly executed, a function check module is further provided, and the function check module can be generated and named by the user through the test function tool, and the position of the function check module is usually located in the function operation function.
- the function operation function block is successfully completed after the execution of the function operation function block is completed. For example, when the function operation function block is a login function function block, the corresponding login function check function block is used to check whether the login is successful. If the login is successful, it can be displayed in the test results.
- Step S40 Acquire a performance test function block, combine the function operation function block in the function test script with the performance test function block to generate a performance test script, and perform performance test.
- step S40 when the function test script is completed, the performance test script can be formed by modifying the function test script to add a performance test function block, for example, the step operation function step for the login query system performance test script:
- the steps of logging in the query system performance test script are compared with the steps of the login query system function test script in step S30, steps 2.1 to 2.6 in the login query system performance test script and steps 1.1 to 1.6 in the login query system function test script. The same, therefore, you can share the function modules in the login query system function test script, and then add the performance test function block corresponding to step 2.7 in the login query system performance test to form a performance test script.
- step S40 specifically includes:
- Step S401 Acquire a performance test function block, where the performance test function block includes a performance test data function block and a performance data statistics function block.
- the performance test data function block may be determined according to the selection instruction input by the user in the interface, and the data generation performance test data function block in the performance test data function block is replaced according to the performance test data input by the user, according to the user input.
- Statistical requirements Select performance data statistics function blocks.
- Step S402. Set the performance test data function block and the performance data statistics function block to a preset location in the function test script to generate a performance test script.
- step S402 After determining the performance test data function block and the performance data statistics function block in step S402, setting the performance test data function block to the function module in the function test script, and setting the performance data statistical function block to the function test After the functional modules in the script, a performance test script is generated.
- Step S403. Execute the performance test script to obtain test data corresponding to the performance parameter in the performance data statistics function block.
- step S403 the function operation function block is executed according to the test data in the performance test data function block to perform data statistics on the performance parameters in the performance data statistics function block. For example, at the same time, 100 users repeatedly execute the function operation function block step 1000 times to check whether the system is crashed, whether the CPU usage rate is up to standard, and the like.
- test process data of the performance test is assigned to the test script for testing, after the test process is executed, the test data is saved, the test data is compared with the target verification standard, the test data is output, and the system CPU usage and memory usage are met. Whether the rate meets the requirements, and obtains intuitive and specific test data.
- the function test script For example, to set the function test script to detect successful login and successful exit, obtain the input user name sub-function block, input the password sub-function block, click the login sub-function block and generate the login function block to obtain the login function block.
- the login check function block obtain the exit sub-function block to form the exit function block, obtain the exit check function block corresponding to the exit function block, and log the function block, the login check function block, the exit function block, and exit. Check the function block to combine the function test scripts.
- the functional test script is:
- the performance test function block includes a performance test data function block and a performance data statistics function block, and setting the performance test data function block before the user login function operation function block in the function test script, A performance test script is generated after the performance data statistics function block is set to the exit check sub-function block in the above function test script.
- the generated performance test script is:
- the technical idea of the embodiment of the present application is to write a test case according to the same steps in the function test and the performance test, and when the performance test script is written, the functional function block in the test case of the function test will be completed, and some external devices are combined.
- the performance test function block can complete the performance test case, which reduces the development time and test cost in the script development phase, avoids repetitive work and improves test efficiency.
- the function and performance test script creation device 40 includes:
- the sub-function function block generating module 401 is configured to obtain function test script code, package the function test script code into a plurality of sub-function function blocks, and establish a sub-function function library;
- the function operation function block generating module 402 is configured to combine the sub function function blocks in the function function library to generate a function operation function block;
- the function test script generating module 403 is configured to combine the function operation function blocks according to a preset function operation sequence to generate a function test script, and perform function test according to the function test script;
- the performance test script generating module 404 is configured to obtain a performance test function block, combine the function operation function block in the function test script with the performance test function block to generate a performance test script, and perform performance test.
- the function operation function block generating module 402 is specifically configured to:
- the function test script generating module 403 is specifically configured to:
- the performance test script generation module 404 is specifically configured to:
- the performance test function block includes a performance test data function block and a performance data statistics function block;
- Another embodiment of the present application provides one or more non-volatile readable storage media storing computer readable instructions, the non-readable readable storage medium storing the computer readable instructions storing computer readable storage
- the instructions when executed by one or more processors, cause one or more processors to perform a function of the above-described embodiments and a method for creating a performance test script. To avoid repetition, no further details are provided herein.
- the computer readable instructions when executed by one or more processors, the functions of the modules/units in the device for creating a function and performance test script in the above embodiments are implemented. To avoid repetition, details are not described herein again.
- non-volatile readable storage media storing computer readable instructions may comprise: any entity or device capable of carrying the computer readable instructions, a recording medium, a USB flash drive, a mobile hard drive, a magnetic Discs, optical discs, computer memories, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier signals, and telecommunications signals.
- FIG. 5 is a schematic diagram of a terminal device in this embodiment.
- the terminal device 6 includes a processor 60, a memory 61, and computer readable instructions 62 stored in the memory 61 and operable on the processor 60.
- the processor 60 executes the computer readable instructions 62 to implement various steps of a method for retrieving an institution name in the above-described embodiments, such as steps S10, S20, S30, and S40 shown in FIG.
- the processor 60 executes the computer readable instructions 62
- the functions of each module/unit of the retrieval device of the mechanism name in the above embodiment are implemented, as shown in FIG. 4, the sub-function function block generation module 401, the function operation function block generation module 402, The functions of the function test script generation module 403 and the performance test script generation module 404.
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
Description
本申请以2017年12月8日提交的申请号为201711291862.4,名称为“功能及性能测试脚本的创建方法、装置、设备及存储介质”的中国发明专利申请为基础,并要求其优先权。This application is based on the Chinese Patent Application No. 201711291862.4, filed on Dec. 8, 2017, entitled "Creation Method, Apparatus, Equipment, and Storage Medium for Function and Performance Test Scripts", and requires priority.
本申请涉及软件测试技术领域,尤其涉及一种功能及性能测试脚本的创建方法、装置、设备及存储介质。The present application relates to the field of software testing technologies, and in particular, to a method, device, device, and storage medium for creating a function and performance test script.
在对软件系统进行测试时,通常进行功能测试和性能测试,功能测试关注系统的功能是否正常运行,性能测试关注系统执行功能时的响应速度和对资源的消耗,例如,一个系统具有登录的功能,功能测试关注的是用户输入用户名密码后是否能够登录成功,或者输入错误的密码是否会被拒绝登录,性能测试关注的是在很多用户都进行登录的情况下系统会不会崩溃,或者得出一个所支持的最多的用户数,由于功能测试与性能测试的关注点不同,功能测试的测试脚本与性能测试的测试脚本通常分开编写,导致测试脚本的开发时间较长,降低了测试效率。When testing software systems, functional tests and performance tests are usually performed. Functional tests focus on whether the system functions normally. Performance tests focus on the response speed and resource consumption when the system performs functions. For example, a system has a login function. The functional test focuses on whether the user can log in successfully after entering the user name and password, or whether the wrong password will be rejected. The performance test focuses on whether the system will crash if many users log in, or The maximum number of users supported is different. Because the functional test and the performance test are different, the test script of the functional test and the test script of the performance test are usually written separately, resulting in a longer development time of the test script and lowering the test efficiency.
发明内容Summary of the invention
本申请的目的在于提供一种功能及性能测试脚本的创建方法、装置、设备及存储介质,以解决现有技术中存在的功能以及性能测试脚本开发时间较长以及测试效率低的问题。The purpose of the present application is to provide a method, an apparatus, a device, and a storage medium for creating a function and performance test script, so as to solve the problems in the prior art and the problem that the performance test script has a long development time and low test efficiency.
本申请是这样实现的,本申请第一方面提供一种功能及性能测试脚本的创建方法,所述创建方法包括以下步骤:The application is implemented in this way. The first aspect of the present application provides a method for creating a function and a performance test script, where the method includes the following steps:
获取功能测试脚本代码,将所述功能测试脚本代码封装成多个子功能函数块并建立子功能函数库;Obtaining a function test script code, packaging the function test script code into a plurality of sub-function function blocks and establishing a sub-function function library;
将所述功能函数库中的子功能函数块进行组合生成功能操作函数块;Combining the sub-function function blocks in the function function library to generate a function operation function block;
将所述功能操作函数块按照预设功能操作顺序进行组合生成功能测试脚本,并根据所述功能测试脚本进行功能测试;Combining the function operation function blocks according to a preset function operation sequence to generate a function test script, and performing function tests according to the function test script;
获取性能测试函数块,将所述功能测试脚本中的功能操作函数块与所述性能测试函数块进行组合生成性能测试脚本,并进行性能测试。Obtaining a performance test function block, combining the function operation function block in the function test script with the performance test function block to generate a performance test script, and performing performance test.
本申请第二方面还提供一种功能及性能测试脚本的创建装置,所述功能及性能测试脚本的创建装置包括:The second aspect of the present application further provides a device for creating a function and performance test script, where the function and performance test script creation device includes:
子功能函数块生成模块,用于获取功能测试脚本代码,将所述功能测试脚本代码封装成多个子功能函数块并建立子功能函数库;a sub-function function block generating module, configured to obtain function test script code, package the function test script code into a plurality of sub-function function blocks, and establish a sub-function function library;
功能操作函数块生成模块,用于将所述功能函数库中的子功能函数块进行组合生成功能操作函数块;a function operation function block generating module, configured to combine the sub function function blocks in the function function library to generate a function operation function block;
功能测试脚本生成模块,用于将所述功能操作函数块按照预设功能操作顺序进行组合生成功能测试脚本,并根据所述功能测试脚本进行功能测试;a function test script generating module, configured to combine the function operation function blocks according to a preset function operation sequence to generate a function test script, and perform a function test according to the function test script;
功能测试脚本生成模块,用于获取性能测试函数块,将所述功能测试脚本中的功能操作函数块与所述性能测试函数块进行组合生成性能测试脚本,并进行性能测试。The function test script generating module is configured to obtain a performance test function block, combine the function operation function block in the function test script with the performance test function block to generate a performance test script, and perform performance test.
本申请第三方面提供一种终端设备,包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机可读指令,所述处理器执行所述计算机可读指令时实现如下步骤:A third aspect of the present application provides a terminal device including a memory, a processor, and computer readable instructions stored in the memory and executable on the processor, the processor executing the computer readable instructions Implement the following steps:
获取功能测试脚本代码,将所述功能测试脚本代码封装成多个子功能函数块并建立子功能函数库;Obtaining a function test script code, packaging the function test script code into a plurality of sub-function function blocks and establishing a sub-function function library;
将所述功能函数库中的子功能函数块进行组合生成功能操作函数块;Combining the sub-function function blocks in the function function library to generate a function operation function block;
将所述功能操作函数块按照预设功能操作顺序进行组合生成功能测试脚本,并根据所述功能测试脚本进行功能测试;Combining the function operation function blocks according to a preset function operation sequence to generate a function test script, and performing function tests according to the function test script;
获取性能测试函数块,将所述功能测试脚本中的功能操作函数块与所述性能测试函数块进行组合生成性能测试脚本,并进行性能测试。Obtaining a performance test function block, combining the function operation function block in the function test script with the performance test function block to generate a performance test script, and performing performance test.
本申请第四方面提供一个或多个存储有计算机可读指令的非易失性可读存储介质,所述计算机可读指令被一个或多个处理器执行时,使得所述一个或多个处理器执行如下步骤:A fourth aspect of the present application provides one or more non-transitory readable storage mediums storing computer readable instructions, the computer readable instructions being executed by one or more processors such that the one or more processes Perform the following steps:
获取功能测试脚本代码,将所述功能测试脚本代码封装成多个子功能函数块并建立子功能函数库;Obtaining a function test script code, packaging the function test script code into a plurality of sub-function function blocks and establishing a sub-function function library;
将所述功能函数库中的子功能函数块进行组合生成功能操作函数块;Combining the sub-function function blocks in the function function library to generate a function operation function block;
将所述功能操作函数块按照预设功能操作顺序进行组合生成功能测试脚本,并根据所述功能测试脚本进行功能测试;Combining the function operation function blocks according to a preset function operation sequence to generate a function test script, and performing function tests according to the function test script;
获取性能测试函数块,将所述功能测试脚本中的功能操作函数块与所述性能测试函数块进行组合生成性能测试脚本,并进行性能测试。Obtaining a performance test function block, combining the function operation function block in the function test script with the performance test function block to generate a performance test script, and performing performance test.
本申请的一个或多个实施例的细节在下面的附图及描述中提出。本申请的其他特征和优点将从说明书、附图以及权利要求书变得明显。Details of one or more embodiments of the present application are set forth in the accompanying drawings and description below. Other features and advantages of the present invention will be apparent from the description, drawings and claims.
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings used in the embodiments or the prior art description will be briefly described below. Obviously, the drawings in the following description are only the present application. For some embodiments, other drawings may be obtained from those of ordinary skill in the art in light of the inventive workability.
图1是本申请一种实施例提供的一种功能及性能测试脚本的创建方法的流程图;1 is a flowchart of a method for creating a function and performance test script according to an embodiment of the present application;
图2是本申请一种实施例提供的一种功能及性能测试脚本的创建方法中的步骤S20的具体流程图;2 is a specific flowchart of step S20 in a method for creating a function and a performance test script according to an embodiment of the present application;
图3是本申请一种实施例提供的一种功能及性能测试脚本的创建方法中的步骤S30的具体流程图;3 is a specific flowchart of step S30 in a method for creating a function and a performance test script according to an embodiment of the present application;
图4是本申请另一种实施例提供的一种功能及性能测试脚本的创建装置的结构示意图;4 is a schematic structural diagram of a device for creating a function and performance test script according to another embodiment of the present application;
图5是本申请另一种实施例提供的终端设备的结构示意图。FIG. 5 is a schematic structural diagram of a terminal device according to another embodiment of the present application.
为了使本申请的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。In order to make the objects, technical solutions, and advantages of the present application more comprehensible, the present application will be further described in detail below with reference to the accompanying drawings and embodiments. It is understood that the specific embodiments described herein are merely illustrative of the application and are not intended to be limiting.
本申请一种实施例提供一种功能及性能测试脚本的创建方法,如图1所示,所述创建方法包括以下步骤:An embodiment of the present application provides a method for creating a function and performance test script. As shown in FIG. 1 , the method includes the following steps:
步骤S10,获取功能测试脚本代码,将所述功能测试脚本代码封装成多个子功能函数块并建立子功能函数库。Step S10: Acquire a function test script code, package the function test script code into a plurality of sub-function function blocks, and establish a sub-function function library.
在步骤S10中,获取功能测试脚本代码可以是通过读取测试用例数据库,获取测试用例数据库中的功能测试脚本代码,也可以是获取用户通过测试函数工具编写的功能测试脚本代码,将所述功能测试脚本代码封装成多个子功能函数块是指以完成一个执行动作为基准将功能测试脚本中的执行动作所对应的代码进行封装获取子功能函数块,即根据执行动作的不同获取多个子功能函数块,例如,功能测试脚本中验证登录功能,用测试工具函数编写登录功能测试步骤所对应的执行动作包括:输入用户名、输入密码以及点击登录,通过编写代码表示每个执行动作,因此,可以将执行动作所对应的代码分成不同模块,使每个模块在屏幕上形成可移动块并通过关键字进行命名。In step S10, the function test script code may be obtained by reading the test case database, acquiring the function test script code in the test case database, or acquiring the function test script code written by the user through the test function tool, and performing the function. The test script code is encapsulated into a plurality of sub-function function blocks, and the code corresponding to the execution action in the function test script is encapsulated to obtain a sub-function function block based on completing an execution action, that is, multiple sub-function functions are acquired according to different execution actions. Block, for example, verifying the login function in the function test script, and writing the login function test step with the test tool function includes: inputting a user name, entering a password, and clicking login, by writing a code to indicate each execution action, therefore, The code corresponding to the execution action is divided into different modules, so that each module forms a movable block on the screen and is named by a keyword.
步骤S20,将所述功能函数库中的子功能函数块进行组合生成功能操作函数块。Step S20, combining the sub-function function blocks in the function function library to generate a function operation function block.
在步骤S20中,可以根据用户对子功能函数块的拖拽操作对可移动块进行排列组合生成功能操作函数块,当检测到用户对可移动块的拖拽操作,例如,检测到用户用鼠标拉动某个可移动块时,使该可移动块按照用户拖动的地点进行移动,对于用户的拖拽行为,通过对可移动块的重组生成新的功能的过程。例如,用户通过拖拽关键字为“输入用户名”、“输入密码”以及“点击登录”的可移动块,即可创建一个登录功能操作函数块,也可以对功能操作函数块进行封装形成可移动块并以关键字的形式进行显示。In step S20, the function block can be generated by arranging and combining the movable blocks according to the user's drag operation on the sub-function function block, and when the user detects the drag operation of the movable block, for example, detecting the user using the mouse When a movable block is pulled, the movable block is moved according to the location dragged by the user, and the process of generating a new function by reorganizing the movable block for the user's drag behavior. For example, the user can create a login function operation function block by dragging and dropping the movable part of the input user name, input password, and click login, and can also package the function operation function block. Move the block and display it as a keyword.
作为另一种实施方式,如图2所示,步骤S20包括:As another implementation manner, as shown in FIG. 2, step S20 includes:
步骤S201.获取子功能函数块名称,根据所述子功能函数块名称在所述子功能函数库中查找子功能函数块。Step S201. Acquire a sub-function function block name, and find a sub-function function block in the sub-function function library according to the sub-function function block name.
步骤S202.将查找到的子功能函数块进行组合生成功能操作函数块。Step S202. Combine the found sub-function function blocks to generate a function operation function block.
在步骤S201至步骤S202中,测试人员还可以通过浏览器向自动化测试系统中输入子功能函数块名称,具体地,测试人员只需要根据当前的测试需求,采用该需求对应的关键字组成功能操作函数块即可,浏览器用于为测试人员提供交互界面,测试人员通过该浏览器向该自动化测试系统输入关键字,该浏览器可以采用浏览器和服务器(Browser/Server,简称B/S)架构中的浏览器。该浏览器的界面可以分为两部分,其中,一部分根据系统中各个模块的需求定义模块和布局,另一部分可以显示组合后的功能操作函数模块。In step S201 to step S202, the tester can also input the sub-function function block name into the automated test system through the browser. Specifically, the tester only needs to perform the function operation according to the keyword corresponding to the current test requirement. The function block can be used. The browser is used to provide an interactive interface for the tester. The tester inputs keywords into the automated test system through the browser. The browser can use a browser and a server (Browser/Server, B/S for short). In the browser. The interface of the browser can be divided into two parts, one part defines the module and the layout according to the requirements of each module in the system, and the other part can display the combined function operation function module.
以创建登录功能操作函数块为例,实现登录功能操作函数块的过程可以为:选择获取用户名子功能函数块、输入密码子功能函数块、点击登录子功能函数块组合生成登录功能操作函数块,由子功能函数块组合而成的功能操作函数块代码如下:Taking the creation of the login function operation function block as an example, the process of implementing the login function operation function block may be: selecting the user name sub-function function block, inputting the password sub-function function block, clicking the login sub-function function block combination to generate the login function operation function block. The function operation block code combined by the sub-function function block is as follows:
Action_ots_用户登录功能操作函数块Action_ots_user login function operation function block
....[Arguments]....${USERNAME}....${PASSWORD}....[Arguments]....${USERNAME}....${PASSWORD}
Wait.Until.Element.Is.Visible....${ele_ots_login_input_longinID}输入用户名子功能函数块Wait.Until.Element.Is.Visible....${ele_ots_login_input_longinID}Enter the username subfunction block
....Input.Text....${ele_ots_login_input_longinID}....${USERNAME}....Input.Text....${ele_ots_login_input_longinID}....${USERNAME}
输入密码子功能函数块Enter the password sub-function block
....Input.Password....${ele_ots_login_input_longinID}....${PASSWORD}....Input.Password....${ele_ots_login_input_longinID}....${PASSWORD}
点击登录子功能函数块Click on the login sub-function block
....Click.Element....${ele_ots_login_button_longin}........Click.Element....${ele_ots_login_button_longin}....
....action_ots_after....用户登录....action_ots_after....user login
步骤S30,将所述功能操作函数块按照预设功能操作顺序进行组合生成功能测试脚本,并根据功能测试脚本进行功能测试。Step S30, combining the function operation function blocks according to a preset function operation sequence to generate a function test script, and performing function tests according to the function test script.
在步骤S30中,通过对不同的子功能函数块进行组合生成多个功能操作函数块,再将不同的功能操作函数块根据具体的执行步骤进行组合生成功能测试脚本,每个功能操作函数块在屏幕上形成可移动块并以关键字进行命名,该功能测试脚本可以由测试人员通过浏览器向自动化测试系统中依次输入功能操作名称,系统采用该需求对应的功能操作函数块组成功能测试用例即可。In step S30, a plurality of function operation function blocks are generated by combining different sub-function function blocks, and then different function operation function blocks are combined according to specific execution steps to generate a function test script, and each function operation function block is A movable block is formed on the screen and named by a keyword. The function test script can input the function operation name into the automated test system by the tester through the browser, and the system uses the functional operation function block corresponding to the requirement to form a functional test case. can.
以验证登录、查询以及退出的功能为例,功能测试脚本的测试步骤为:Taking the function of verifying login, query, and exit as an example, the test procedure of the functional test script is:
1.1输入用户名;1.1 Enter the username;
1.2输入密码;1.2 Enter the password;
1.3点击登录;1.3 Click to log in;
1.4输入查询条件;1.4 Enter the query conditions;
1.5点击查询按钮;1.5 Click the Query button;
1.6点击退出;1.6 Click to exit;
该功能测试脚本用于检查是否能正常登录、是否能正常进行查询以及是否能正常退出界面。This function test script is used to check whether it can log in normally, whether it can be queried normally, and whether it can exit the interface normally.
根据所提供的功能测试脚本的测试步骤获取每个测试步骤所对应的子功能函数块,将输入用户名子功能函数块、输入密码子功能函数块、点击登录子功能函数块进行组合生成登录功能操作函数块,将输入查询条件子功能函数块、点击查询按钮子功能函数块进行组合生成查询功能操作函数块,将退出子功能函数块构成退出功能操作函数块,再将登录功能操作函数块、查询功能操作函数块以及退出功能操作函数块进行组合即可生成功能测试脚本,根据该功能测试脚本进行功能测试,通过对功能操作函数块进行组合,使生成功能测试脚本的步骤简单快捷。According to the test step of the provided function test script, the sub-function function block corresponding to each test step is obtained, and the user name sub-function function block, the input co-function function block, and the login sub-function function block are combined to generate a login function. The operation function block combines the input query condition sub-function function block and the click query button sub-function function block to generate a query function operation function block, and the exit sub-function function block constitutes an exit function operation function block, and then the login function operation function block, The query function operation function block and the exit function operation function block are combined to generate a function test script, and the function test is performed according to the function test script, and the steps of generating the function test script are made simple and quick by combining the function operation function blocks.
作为另一种实施方式,如图3所示,步骤S30还包括:As another implementation manner, as shown in FIG. 3, step S30 further includes:
步骤S301.获取功能操作函数块对应的功能检查模块。Step S301. Acquire a function checking module corresponding to the function operation function block.
步骤S302.将所述功能操作函数块按照预设功能操作顺序进行组合。Step S302. Combine the function operation function blocks according to a preset function operation sequence.
步骤S303.在每个功能操作函数块后增加相对应的功能检查模块生成功能测试脚本。Step S303. Add a corresponding function check module to generate a function test script after each function operation function block.
在步骤S301至步骤S303中,为了检查功能操作函数块是否正确执行,还设有功能检查模块,功能检查模块可以为用户通过测试函数工具编写生成并命名,通常功能检查模块的位置位于功能操作函数块之后,用于功能操作函数块执行完成后检查该功能操作函数块是否成功完成,例如,功能操作函数块为登录功能函数块时,其对应的登录功能检查函数块用于检查登录是否成功,如果登录成功,可以在测试结果中进行显示。In step S301 to step S303, in order to check whether the function operation function block is correctly executed, a function check module is further provided, and the function check module can be generated and named by the user through the test function tool, and the position of the function check module is usually located in the function operation function. After the block is executed, it is checked whether the function operation function block is successfully completed after the execution of the function operation function block is completed. For example, when the function operation function block is a login function function block, the corresponding login function check function block is used to check whether the login is successful. If the login is successful, it can be displayed in the test results.
步骤S40,获取性能测试函数块,将所述功能测试脚本中的功能操作函数块与所述性能测试函数块进行组合生成性能测试脚本,并进行性能测试。Step S40: Acquire a performance test function block, combine the function operation function block in the function test script with the performance test function block to generate a performance test script, and perform performance test.
在步骤S40中,当完成功能测试脚本时,可以通过对该功能测试脚本进行修改,增加性能测试函数块即可形成性能测试脚本,例如,对于登录查询系统性能测试脚本的步骤操作函数步骤:In step S40, when the function test script is completed, the performance test script can be formed by modifying the function test script to add a performance test function block, for example, the step operation function step for the login query system performance test script:
2.1输入用户名;2.1 Enter the username;
2.2输入密码;2.2 Enter the password;
2.3点击登录;2.3 Click to log in;
2.4输入查询条件;2.4 Enter the query conditions;
2.5点击查询按钮;2.5 Click the Query button;
2.6点击退出;2.6 Click to exit;
2.7同时100个用户重复执行以上步骤1000次,检查系统是否崩溃、CPU的使用率是否达标等。2.7 At the same time, 100 users repeatedly perform the above steps 1000 times to check whether the system crashes and the CPU usage is up to standard.
将登录查询系统性能测试脚本的步骤与步骤S30中的登录查询系统功能测试脚本的步骤相比,登录查询系统性能测试脚本中的步骤2.1至2.6与登录查询系统功能测试脚本中的步骤1.1至1.6相同,因此,可以将登录查询系统功能测试脚本中的功能模块进行共用,再增加登录查询系统性能测试中步骤2.7所对应的性能测试函数块即可形成性能测试脚本。The steps of logging in the query system performance test script are compared with the steps of the login query system function test script in step S30, steps 2.1 to 2.6 in the login query system performance test script and steps 1.1 to 1.6 in the login query system function test script. The same, therefore, you can share the function modules in the login query system function test script, and then add the performance test function block corresponding to step 2.7 in the login query system performance test to form a performance test script.
具体的,作为一种实施方式,步骤S40具体包括:Specifically, as an implementation manner, step S40 specifically includes:
步骤S401.获取性能测试函数块,所述性能测试函数块包括性能测试数据函数块和性能数据统计函数块。Step S401. Acquire a performance test function block, where the performance test function block includes a performance test data function block and a performance data statistics function block.
在步骤S401中,可以根据用户在界面中输入的选择指令确定性能测试数据函数块,并根据用户输入的性能测试数据替换性能测试数据函数块中的数据生成性能测试数据函数块,根据用户输入的统计需求选择性能数据统计函数块。In step S401, the performance test data function block may be determined according to the selection instruction input by the user in the interface, and the data generation performance test data function block in the performance test data function block is replaced according to the performance test data input by the user, according to the user input. Statistical requirements Select performance data statistics function blocks.
步骤S402.将所述性能测试数据函数块和所述性能数据统计函数块设置于所述功能测试脚本中的预设位置生成性能测试脚本。Step S402. Set the performance test data function block and the performance data statistics function block to a preset location in the function test script to generate a performance test script.
在步骤S402中,确定性能测试数据函数块和性能数据统计函数块后,将所述性能测试数据函数块设置于功能测试脚本中的功能模块之前,将所述性能数据统计函数块设置于功能测试脚本中的功能模块之后,生成性能测试脚本。After determining the performance test data function block and the performance data statistics function block in step S402, setting the performance test data function block to the function module in the function test script, and setting the performance data statistical function block to the function test After the functional modules in the script, a performance test script is generated.
步骤S403.执行所述性能测试脚本以得到所述性能数据统计函数块中的性能参数对应的测试数据。Step S403. Execute the performance test script to obtain test data corresponding to the performance parameter in the performance data statistics function block.
在步骤S403中,按照所述性能测试数据函数块中的测试数据执行所述功能操作函数块,以对所述性能数据统计函数块中的性能参数进行数据统计。例如,同时100个用户重复执行功能操作函数块步骤1000次,检查系统是否崩溃、CPU的使用率是否达标等。In step S403, the function operation function block is executed according to the test data in the performance test data function block to perform data statistics on the performance parameters in the performance data statistics function block. For example, at the same time, 100 users repeatedly execute the function operation function block step 1000 times to check whether the system is crashed, whether the CPU usage rate is up to standard, and the like.
进一步的,将性能测试的测试过程数据赋给测试脚本进行测试,测试过程执行完后,保存检测数据,将检测数据与目标验证标准进行对比,输出检测数据以及是否符合系统CPU使用率、内存使用率等是否达到要求,得到直观而具体的测试数据。Further, the test process data of the performance test is assigned to the test script for testing, after the test process is executed, the test data is saved, the test data is compared with the target verification standard, the test data is output, and the system CPU usage and memory usage are met. Whether the rate meets the requirements, and obtains intuitive and specific test data.
下面通过分别编写功能测试脚本和性能测试脚本对本申请技术方案进行具体说明:The following describes the technical solution of the present application by separately writing a functional test script and a performance test script:
以设置功能测试脚本为检测成功登录以及成功退出为例,获取输入用户名子功能函数块、输入密码子功能函数块、点击登录子功能函数块并生成登录功能函数块,获取登录功能函数块对应的登录检查功能函数块,获取退出子功能函数块构成退出功能函数块,获取退出功能函数块对应的退出检查功能函数块,将登录功能函数块、登录检查功能函数块、退出功能函数块以及退出检查功能函数块进行组合生成功能测试脚本。For example, to set the function test script to detect successful login and successful exit, obtain the input user name sub-function block, input the password sub-function block, click the login sub-function block and generate the login function block to obtain the login function block. The login check function block, obtain the exit sub-function block to form the exit function block, obtain the exit check function block corresponding to the exit function block, and log the function block, the login check function block, the exit function block, and exit. Check the function block to combine the function test scripts.
具体的,功能测试脚本为:Specifically, the functional test script is:
Action_ots_用户登录功能操作函数块Action_ots_user login function operation function block
....[Arguments]....${USERNAME}....${PASSWORD}....${MESSAGE}....[Arguments]....${USERNAME}....${PASSWORD}....${MESSAGE}
....Wait.Until.Element.Is.Visible....${ele_ots_login_input_longinID}....Wait.Until.Element.Is.Visible....${ele_ots_login_input_longinID}
输入用户名子功能函数块Enter the user name sub-function block
....Input.Text....${ele_ots_login_input_longinID}....${USERNAME}....Input.Text....${ele_ots_login_input_longinID}....${USERNAME}
输入密码子功能函数块Enter the password sub-function block
....Input.Password....${ele_ots_login_input_longinID}....${PASSWORD}....Input.Password....${ele_ots_login_input_longinID}....${PASSWORD}
点击登录子功能函数块Click on the login sub-function block
....Click.Element....${ele_ots_login_button_longin}........Click.Element....${ele_ots_login_button_longin}....
....action_ots_after....用户登录....action_ots_after....user login
登录检查功能函数块Login check function block
<Verification name=“登录检查”description=“检查登录是否成功”><Verification name="Login check" description= "Check if login is successful" >
<CheckPoint action=“CheckLogon”><CheckPoint action=“CheckLogon”>
</Verification>退出子功能函数块</Verification>Exit sub-function block
<Step action=“logoff”description=“退出”><Step action=“logoff” description=“Exit” >
<TestDataFile path==“C:\TMP\login\data\loginoff.data”/><TestDataFile path=="C:\TMP\login\data\loginoff.data"/>
</Step></Step>
退出检查子功能函数块Exit check subfunction block
<Verification name=“退出检查”description=“检查登录是否成功”><Verification name=“Exit check” description=“Check if login is successful” >
<CheckPoint action=“CheckLogoff”><CheckPoint action=“CheckLogoff”>
</Verification></Verification>
以性能测试脚本为100个用户同时重复执行登录及退出步骤200次为例,设置性能测试结果验证标准为:CPU平均占用率<50%;20%<CPU峰值占用率<50%;CPU平均最小占用率<30%;内存平均占用率<60%。Take the performance test script for 100 users to repeat the login and exit steps 200 times as an example. Set the performance test result verification criteria: CPU average occupancy <50%; 20% <CPU peak occupancy <50%; CPU average minimum Occupancy <30%; average memory occupancy <60%.
根据上述性能测试需求获取性能测试函数块,性能测试函数块包括性能测试数据函数块和性能数据统计函数块,将性能测试数据函数块设置于上述功能测试脚本中的用户登录功能操作函数块之前,将性能数据统计函数块设置于上述功能测试脚本中的退出检查子功能函数块之后即生成性能测试脚本。Obtaining a performance test function block according to the performance test requirement, the performance test function block includes a performance test data function block and a performance data statistics function block, and setting the performance test data function block before the user login function operation function block in the function test script, A performance test script is generated after the performance data statistics function block is set to the exit check sub-function block in the above function test script.
具体的,生成的性能测试脚本为:Specifically, the generated performance test script is:
性能测试数据函数块Performance test data function block
<!--测试性能:使用100个用户同时登录登出200次--><! --Test performance: Use 100 users to log in and log out 200 times at the same time -->
<Performance Executions=“200”Threads=“100”><Performance Executions=“200” Threads=“100”>
<Step action=“login”description=“登录”><Step action=“login” description=“Login” >
<TestDataFile path==“C:\TMP\login\data\login100.data”/><TestDataFile path=="C:\TMP\login\data\login100.data"/>
<!--<TestData username=“TestUser”><TestData password=“password”>--><! --<TestData username=“TestUser”><TestData password=“password”>-->
</Step></Step>
Action_ots_用户登录功能操作函数块Action_ots_user login function operation function block
....[Arguments]....${USERNAME}....${PASSWORD}....${MESSAGE}....[Arguments]....${USERNAME}....${PASSWORD}....${MESSAGE}
....Wait.Until.Element.Is.Visible....${ele_ots_login_input_longinID}....Wait.Until.Element.Is.Visible....${ele_ots_login_input_longinID}
输入用户名子功能函数块Enter the user name sub-function block
....Input.Text....${ele_ots_login_input_longinID}....${USERNAME}....Input.Text....${ele_ots_login_input_longinID}....${USERNAME}
输入密码子功能函数块Enter the password sub-function block
....Input.Password....${ele_ots_login_input_longinID}....${PASSWORD}....Input.Password....${ele_ots_login_input_longinID}....${PASSWORD}
点击登录子功能函数块Click on the login sub-function block
....Click.Element....${ele_ots_login_button_longin}........Click.Element....${ele_ots_login_button_longin}....
....action_ots_after....用户登录....action_ots_after....user login
登录检查子功能函数块Login check subfunction block
<Verification name=“登录检查”description=“检查登录是否成功”><Verification name="Login check" description= "Check if login is successful" >
<CheckPoint action=“CheckLogon”><CheckPoint action=“CheckLogon”>
</Verification>退出子功能函数块</Verification>Exit sub-function block
<Step action=“logoff”description=“退出”><Step action=“logoff” description=“Exit” >
<TestDataFile path==“C:\TMP\login\data\loginoff.data”/><TestDataFile path=="C:\TMP\login\data\loginoff.data"/>
</Step></Step>
退出检查子功能函数块Exit check subfunction block
<Verification name=“退出检查”description=“检查登录是否成功”><Verification name=“Exit check” description=“Check if login is successful” >
<CheckPoint action=“CheckLogoff”><CheckPoint action=“CheckLogoff”>
</Verification></Verification>
性能数据统计函数块Performance data statistics function block
<Statistics name=“登录性能数据统计”description=“登录性能数据统计”><Statistics name=“Login performance statistics” description=“Login performance statistics” >
<Item name=“CPU”method=“average”Target=“lt50%”><Item name=“CPU” method=“average” Target=“lt50%”>
<Item name=“CPU”method=“peak”Target=“lg20%|lt50”><Item name=“CPU” method=“peak”Target=”lg20%|lt50”>
<Item name=“MEP”method=“average”Target=“lt60%”><Item name=“MEP” method=“average” Target=“lt60%”>
<Item name=“CPU”method=“min”Target=“lt30%”><Item name=“CPU” method=“min” Target=“lt30%”>
</Statistics></Statistics>
</Performance></Performance>
本申请实施例的技术构思为根据功能测试和性能测试中的相同步骤编写测试用例,进行性能测试脚本编写时,将完成功能测试的测试用例中的功能函数块的基础上,再结合一些外置的性能测试函数块,就可以完成性能测试用例编写了,减少了在脚本开发阶段的开发时间和测试成本,避免了了重复性工作,提高了测试效率。The technical idea of the embodiment of the present application is to write a test case according to the same steps in the function test and the performance test, and when the performance test script is written, the functional function block in the test case of the function test will be completed, and some external devices are combined. The performance test function block can complete the performance test case, which reduces the development time and test cost in the script development phase, avoids repetitive work and improves test efficiency.
本申请另一种实施例提供一种功能及性能测试脚本的创建装置40,如图4所示,所述功能及性能测试脚本的创建装置40包括:Another embodiment of the present application provides a function and performance test
子功能函数块生成模块401,用于获取功能测试脚本代码,将所述功能测试脚本代码封装成多个子功能函数块并建立子功能函数库;The sub-function function
功能操作函数块生成模块402,用于将所述功能函数库中的子功能函数块进行组合生成功能操作函数块;The function operation function
功能测试脚本生成模块403,用于将所述功能操作函数块按照预设功能操作顺序进行组合生成功能测试脚本,并根据所述功能测试脚本进行功能测试;The function test
性能测试脚本生成模块404,用于获取性能测试函数块,将所述功能测试脚本中的功能操作函数块与所述性能测试函数块进行组合生成性能测试脚本,并进行性能测试。The performance test
所述功能操作函数块生成模块402具体用于:The function operation function
获取子功能函数块名称,根据所述子功能函数块名称在所述子功能函数库中查找子功能函数块,将查找到的子功能函数块进行组合生成功能操作函数块。Obtaining a sub-function function block name, searching for a sub-function function block in the sub-function function library according to the sub-function function block name, and combining the found sub-function function blocks to generate a function operation function block.
所述功能测试脚本生成模块403具体用于:The function test
获取每个功能操作函数块对应的功能检查模块;Obtaining a function checking module corresponding to each function operation function block;
将所述功能操作函数块按照预设功能操作顺序进行组合;Combining the function operation function blocks according to a preset function operation sequence;
在每个功能操作函数块后增加相对应的功能检查模块生成功能测试脚本。After each function operation function block, the corresponding function check module is added to generate a function test script.
性能测试脚本生成模块404,具体用于:The performance test
获取性能测试函数块,所述性能测试函数块包括性能测试数据函数块和性能数据统计函数块;Obtaining a performance test function block, where the performance test function block includes a performance test data function block and a performance data statistics function block;
将所述性能测试数据函数块和所述性能数据统计函数块设置于所述功能测试脚本中的预设位置生成性能测试脚本;Setting the performance test data function block and the performance data statistics function block to a preset location in the function test script to generate a performance test script;
执行所述性能测试脚本以得到所述性能数据统计函数块中的性能参数对应的测试数据。Executing the performance test script to obtain test data corresponding to performance parameters in the performance data statistics function block.
上述终端设备中模块的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。For the specific working process of the module in the foregoing terminal device, reference may be made to the corresponding process in the foregoing method embodiment, and details are not described herein again.
本申请另一种实施例提供一个或多个存储有计算机可读指令的非易失性可读存储介质,该存储有计算机可读指令的非易失性可读存储介质上存储有计算机可读指令,该计算机可读指令被一个或多个处理器执行时,使得一个或多个处理器执行上述实施例中的一种功能及性能测试脚本的创建方法,为避免重复,这里不再赘述。或者,该计算机可读指令被一个或多个处理器执行时实现上述实施例中一种功能及性能测试脚本的创建装置中各模块/单元的功能,为避免重复,这里不再赘述。Another embodiment of the present application provides one or more non-volatile readable storage media storing computer readable instructions, the non-readable readable storage medium storing the computer readable instructions storing computer readable storage The instructions, when executed by one or more processors, cause one or more processors to perform a function of the above-described embodiments and a method for creating a performance test script. To avoid repetition, no further details are provided herein. Alternatively, when the computer readable instructions are executed by one or more processors, the functions of the modules/units in the device for creating a function and performance test script in the above embodiments are implemented. To avoid repetition, details are not described herein again.
可以理解地,一个或多个存储有计算机可读指令的非易失性可读存储介质可以包括:能够携带所述计算机可读指令的任何实体或装置、记录介质、U盘、移动硬盘、磁碟、光盘、计算机存储器、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、电载波信号和电信信号等。It will be understood that one or more non-volatile readable storage media storing computer readable instructions may comprise: any entity or device capable of carrying the computer readable instructions, a recording medium, a USB flash drive, a mobile hard drive, a magnetic Discs, optical discs, computer memories, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier signals, and telecommunications signals.
图5是本实施例中终端设备的示意图。如图5所示,终端设备6包括处理器60、存储器61以及存储在存储器61中并可在处理器60上运行的计算机可读指令62。处理器60执行计算机可读指令62时实现上述实施例中一种机构名称的检索方法的各个步骤,例如图1所示的步骤S10、S20、S30和S40。或者,处理器60执行计算机可读指令62时实现上述实施例中机构名称的检索装置各模块/单元的功能,如图4所示子功能函数块生成模块401、功能操作函数块生成模块402、功能测试脚本生成模块403以及性能测试脚本生成模块404的功能。FIG. 5 is a schematic diagram of a terminal device in this embodiment. As shown in FIG. 5, the
所属领域的技术人员可以清楚地了解到,为了描述的方便和简洁,仅以上述各功能单元、模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能单元、 模块完成,即将装置的内部结构划分成不同的功能单元或模块,以完成以上描述的全部或者部分功能。It will be apparent to those skilled in the art that, for convenience and brevity of description, only the division of each functional unit and module described above is exemplified. In practical applications, the above functions may be assigned to different functional units as needed. The module is completed, dividing the internal structure of the device into different functional units or modules to perform all or part of the functions described above.
以上所述实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围,均应包含在本申请的保护范围之内。The above-mentioned embodiments are only used to explain the technical solutions of the present application, and are not limited thereto; although the present application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that they can still implement the foregoing embodiments. The technical solutions described in the examples are modified or equivalently replaced with some of the technical features; and the modifications or substitutions do not deviate from the spirit and scope of the technical solutions of the embodiments of the present application, and should be included in Within the scope of protection of this application.
Claims (20)
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201711291862.4 | 2017-12-08 | ||
| CN201711291862.4A CN108459958A (en) | 2017-12-08 | 2017-12-08 | The creation method of function and performance test script, device, equipment and storage medium |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2019109553A1 true WO2019109553A1 (en) | 2019-06-13 |
Family
ID=63221038
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2018/080828 Ceased WO2019109553A1 (en) | 2017-12-08 | 2018-03-28 | Functional and performance test script creation method, device, apparatus and storage medium |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN108459958A (en) |
| WO (1) | WO2019109553A1 (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN116185848A (en) * | 2023-01-20 | 2023-05-30 | 中国工商银行股份有限公司 | Functional testing method and device for development system |
Families Citing this family (10)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN109270439A (en) * | 2018-11-05 | 2019-01-25 | 郑州云海信息技术有限公司 | A kind of chip detecting method, device, equipment and medium |
| CN110334005A (en) * | 2019-05-24 | 2019-10-15 | 平安普惠企业管理有限公司 | Graph database screening method and device, storage medium, electronic equipment |
| CN110460497A (en) * | 2019-08-20 | 2019-11-15 | 迈普通信技术股份有限公司 | A kind of automated testing method, apparatus and system |
| CN111459795A (en) * | 2020-02-27 | 2020-07-28 | 平安科技(深圳)有限公司 | Cluster stress testing method and device, computer equipment and storage medium |
| CN111625446B (en) * | 2020-04-30 | 2023-05-23 | 库卡机器人制造(上海)有限公司 | Software testing method and device, computer readable medium and electronic equipment |
| CN112527662A (en) * | 2020-12-17 | 2021-03-19 | 中国农业银行股份有限公司 | Test script generation method and device |
| CN112256595B (en) * | 2020-12-22 | 2021-03-12 | 成都新希望金融信息有限公司 | Heterogeneous system testing method and device and electronic equipment |
| CN114900569B (en) * | 2022-05-17 | 2024-05-03 | 中国银行股份有限公司 | Test script acquisition method and device |
| CN115437947A (en) * | 2022-09-19 | 2022-12-06 | 青岛海尔空调电子有限公司 | Test case generation method, device, electronic device and storage medium |
| CN116166525A (en) * | 2022-11-16 | 2023-05-26 | 超聚变数字技术有限公司 | Method and device for generating test script |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1735252A (en) * | 2004-08-12 | 2006-02-15 | 华为技术有限公司 | Universal automatization testing device and method |
| CN102393831A (en) * | 2011-07-28 | 2012-03-28 | 南京中兴软创科技股份有限公司 | SAAS service testing engine based on JAVASCRIPT |
| KR101674787B1 (en) * | 2015-01-05 | 2016-11-10 | 삼성에스디에스 주식회사 | System and method for measuring performance of program |
| CN106201810A (en) * | 2016-06-30 | 2016-12-07 | 乐视控股(北京)有限公司 | A kind of method of testing, device |
| CN106201854A (en) * | 2015-05-04 | 2016-12-07 | 北京畅游天下网络技术有限公司 | A kind of server load method of testing based on socket and system |
Family Cites Families (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN100589420C (en) * | 2007-05-23 | 2010-02-10 | 中兴通讯股份有限公司 | Method and device for realizing automated test script based on functional operation encapsulation |
| CN104461898B (en) * | 2014-12-19 | 2019-02-15 | 北京奇虎科技有限公司 | Application testing method, central control server, testing terminal and system |
-
2017
- 2017-12-08 CN CN201711291862.4A patent/CN108459958A/en active Pending
-
2018
- 2018-03-28 WO PCT/CN2018/080828 patent/WO2019109553A1/en not_active Ceased
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1735252A (en) * | 2004-08-12 | 2006-02-15 | 华为技术有限公司 | Universal automatization testing device and method |
| CN102393831A (en) * | 2011-07-28 | 2012-03-28 | 南京中兴软创科技股份有限公司 | SAAS service testing engine based on JAVASCRIPT |
| KR101674787B1 (en) * | 2015-01-05 | 2016-11-10 | 삼성에스디에스 주식회사 | System and method for measuring performance of program |
| CN106201854A (en) * | 2015-05-04 | 2016-12-07 | 北京畅游天下网络技术有限公司 | A kind of server load method of testing based on socket and system |
| CN106201810A (en) * | 2016-06-30 | 2016-12-07 | 乐视控股(北京)有限公司 | A kind of method of testing, device |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN116185848A (en) * | 2023-01-20 | 2023-05-30 | 中国工商银行股份有限公司 | Functional testing method and device for development system |
Also Published As
| Publication number | Publication date |
|---|---|
| CN108459958A (en) | 2018-08-28 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| WO2019109553A1 (en) | Functional and performance test script creation method, device, apparatus and storage medium | |
| US20250004935A1 (en) | System and method for automated generation of mobile device application testing sequences | |
| US20240037020A1 (en) | System and Method for Automated Software Testing | |
| US10552301B2 (en) | Completing functional testing | |
| US10853232B2 (en) | Adaptive system for mobile device testing | |
| US9830254B2 (en) | Online application testing across browser environments | |
| US10430324B2 (en) | System and method for automated intelligent mobile application testing | |
| US20150058826A1 (en) | Systems and methods for efficiently and effectively detecting mobile app bugs | |
| WO2015039566A1 (en) | Method and system for facilitating automated web page testing | |
| US20190079854A1 (en) | Systems and methods for executing tests | |
| Lin et al. | Improving the accuracy of automated GUI testing for embedded systems | |
| Ongkosit et al. | Responsiveness analysis tool for android application | |
| CN103984626A (en) | Method and device for generating test-case script | |
| JP2018532169A (en) | Method and apparatus for generating, collecting, storing, and loading debug information about failed test scripts | |
| Ma et al. | Paladin: Automated generation of reproducible test cases for android apps | |
| US11055205B1 (en) | Regression testing using automation technologies | |
| Li et al. | ADAutomation: An activity diagram based automated GUI testing framework for smartphone applications | |
| CA2811617C (en) | Commit sensitive tests | |
| Lee et al. | User interaction-based profiling system for android application tuning | |
| CN114328062B (en) | Method, device and storage medium for checking cache consistency | |
| CN117707982A (en) | Test method, apparatus, device, medium and program product | |
| US11281561B2 (en) | Determining user behavior with a user interface using user interface log records | |
| CN111522737A (en) | Automatic testing and checking method and device for front-end interface and storage medium | |
| Konduru et al. | Automated Testing to Detect Status Data Loss in Android Applications | |
| Lin et al. | On the Accuracy of Automated GUI Testing for Embedded Systems |
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: 18886069 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 16.09.2020) |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 18886069 Country of ref document: EP Kind code of ref document: A1 |