CN110543429A - Test case debugging method, device and storage medium - Google Patents
Test case debugging method, device and storage medium Download PDFInfo
- Publication number
- CN110543429A CN110543429A CN201910857347.0A CN201910857347A CN110543429A CN 110543429 A CN110543429 A CN 110543429A CN 201910857347 A CN201910857347 A CN 201910857347A CN 110543429 A CN110543429 A CN 110543429A
- Authority
- CN
- China
- Prior art keywords
- step code
- code
- target step
- target
- test case
- 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.)
- Granted
Links
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
-
- 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/3688—Test management for test execution, e.g. scheduling of test suites
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
本发明公开了一种测试用例调试方法、装置及存储介质,该方法通过确定当前测试用例中的第一目标步骤代码;将第一目标步骤代码添加至阻塞队列,并在第一目标步骤代码可执行时执行第一目标步骤代码;判断第一目标步骤代码是否执行成功并输出执行结果。本发明通过确定用例中的第一目标步骤代码,使得测试人员定位到当前测试用例中的任一步骤,提升了用户体验;通过判断第一目标步骤代码是否可执行,使得测试人员可事先设置跳过步骤代码;通过单独执行可执行的第一目标步骤代码,减少了执行时间;通过判断并输出执行单一步骤的执行结果,使得直接获取到单个步骤的执行结果,提高了调试效率。
The invention discloses a test case debugging method, a device and a storage medium. The method determines the first target step code in the current test case; adds the first target step code to the blocking queue, and the first target step code Execute the first target step code during execution; determine whether the first target step code is successfully executed and output the execution result. By determining the first target step code in the use case, the present invention enables the tester to locate any step in the current test case, thereby improving the user experience; by judging whether the first target step code is executable, the tester can set jumps in advance. By executing the executable first target step code separately, the execution time is reduced; by judging and outputting the execution result of executing a single step, the execution result of a single step can be directly obtained, which improves the debugging efficiency.
Description
技术领域technical field
本发明涉及金融科技(Fintech)技术领域,尤其涉及测试用例调试方法、装置及计算机可读存储介质。The present invention relates to the technical field of financial technology (Fintech), and in particular, to a test case debugging method, device and computer-readable storage medium.
背景技术Background technique
随着计算机技术的发展,越来越多的技术(大数据、分布式、区块链Blockchain、人工智能等)应用在金融领域,传统金融业正在逐步向金融科技(Fintech)转变,但由于金融行业的安全性、实时性要求,也对技术提出了更高的要求。对于银行的软件产品测试系统,目前,测试人员通常是在编写完测试用例之后,执行整个用例来检验用例的步骤是否准确。如果出现错误步骤,测试人员需要在对错误步骤进行修改之后再重复执行整个用例,并判断修改后的步骤是否能够成功执行,直至整个用例成功执行。在对用例中的问题进行定位分析的过程中,测试人员需要重复执行用例,而实际上大部分执行的步骤对问题的定位分析并没有帮助,只有关键的几个步骤才能发现问题,从而导致了在对整个用例的调试过程中调试效率低的问题。With the development of computer technology, more and more technologies (big data, distributed, blockchain, artificial intelligence, etc.) are applied in the financial field, and the traditional financial industry is gradually transforming into financial technology (Fintech). The security and real-time requirements of the industry also put forward higher requirements for technology. For the bank's software product testing system, at present, the tester usually executes the entire use case after writing the test case to check whether the steps of the use case are accurate. If there is an error step, the tester needs to repeat the execution of the entire use case after modifying the error step, and judge whether the modified step can be executed successfully until the entire use case is successfully executed. In the process of locating and analyzing the problem in the use case, the tester needs to execute the use case repeatedly. In fact, most of the steps performed are not helpful for the localization and analysis of the problem. Only a few key steps can find the problem, which leads to Debug inefficient issues during debugging of the entire use case.
发明内容SUMMARY OF THE INVENTION
本发明的主要目的在于提出一种测试用例调试方法、装置及计算机可读存储介质,旨在解决在对整个用例的调试过程中调试效率低的技术问题。The main purpose of the present invention is to propose a test case debugging method, device and computer-readable storage medium, aiming at solving the technical problem of low debugging efficiency in the debugging process of the entire use case.
为实现上述目的,本发明提供一种测试用例调试方法,所述测试用例调试方法包括如下步骤:In order to achieve the above object, the present invention provides a test case debugging method, the test case debugging method includes the following steps:
在接收到用例调试指令时,基于所述用例调试指令中的相关参数,确定当前测试用例中的第一目标步骤代码,其中,所述相关参数至少包括操作类型参数与页面元素定位路径;When receiving the use case debugging instruction, determine the first target step code in the current test case based on the relevant parameters in the use case debugging instruction, wherein the relevant parameters at least include the operation type parameter and the page element positioning path;
将所述第一目标步骤代码添加至预设阻塞队列,并判断所述第一目标步骤代码是否可执行;adding the first target step code to a preset blocking queue, and judging whether the first target step code is executable;
若所述第一目标步骤代码可执行,则从所述阻塞队列中获取并执行所述第一目标步骤代码;If the first target step code is executable, obtain and execute the first target step code from the blocking queue;
根据预设校验方式,验证所述第一目标步骤代码是否执行成功,并输出所述第一目标步骤代码的执行结果。According to the preset verification method, verify whether the first target step code is successfully executed, and output the execution result of the first target step code.
可选地,所述根据预设校验方式,验证所述第一目标步骤代码是否执行成功,并输出所述第一目标步骤代码的执行结果的步骤之后,还包括:Optionally, after the step of verifying whether the first target step code is successfully executed according to a preset verification method, and outputting the execution result of the first target step code, the method further includes:
若所述执行结果显示所述第一目标步骤代码执行失败,则接收用户输入的修改后的第一目标步骤代码,以对所述第一目标步骤代码进行更新;If the execution result shows that the execution of the first target step code fails, receiving the modified first target step code input by the user to update the first target step code;
执行所述修改后的第一目标步骤代码,并返回执行所述根据预设校验方式,验证所述第一目标步骤代码是否执行成功,并输出所述第一目标步骤代码的执行结果的步骤,直至所述修改后的第一目标步骤代码执行成功。Execute the modified first target step code, and return to executing the step of verifying whether the first target step code is successfully executed according to the preset verification method, and outputting the execution result of the first target step code , until the modified first target step code is successfully executed.
可选地,所述根据预设校验方式,验证所述第一目标步骤代码是否执行成功,并输出所述第一目标步骤代码的执行结果的步骤之后,还包括:Optionally, after the step of verifying whether the first target step code is successfully executed according to a preset verification method, and outputting the execution result of the first target step code, the method further includes:
若所述执行结果显示所述第一目标步骤代码执行成功,则获取所述当前测试用例中的待判断步骤代码,作为第二目标步骤代码,并判断所述第二目标步骤代码是否可执行,其中,所述待判断步骤代码为执行成功的第一目标步骤代码的下一步骤代码。If the execution result shows that the first target step code is successfully executed, the step code to be judged in the current test case is obtained as the second target step code, and it is judged whether the second target step code is executable, Wherein, the to-be-determined step code is the next step code of the successfully executed first target step code.
可选地,所述将所述第一目标步骤代码添加至预设阻塞队列,并判断所述第一目标步骤代码是否可执行的步骤之前,还包括:Optionally, before the step of adding the first target step code to a preset blocking queue and judging whether the first target step code is executable, the method further includes:
创建并循环监听所述阻塞队列,判断所述阻塞队列是否为空;Create and cyclically monitor the blocking queue to determine whether the blocking queue is empty;
若所述阻塞队列为空,则执行步骤:将所述第一目标步骤代码添加至预设阻塞队列,并判断所述第一目标步骤代码是否可执行。If the blocking queue is empty, perform the steps of: adding the first target step code to a preset blocking queue, and judging whether the first target step code is executable.
可选地,所述创建并循环监听所述阻塞队列,并判断所述阻塞队列是否为满的步骤之后,还包括:Optionally, after the step of creating and cyclically monitoring the blocking queue, and judging whether the blocking queue is full, the method further includes:
若所述阻塞队列非空,则等待所述阻塞队列中的已有步骤代码执行完成之后,执行步骤:将所述第一目标步骤代码添加至预设阻塞队列,并判断所述第一目标步骤代码是否可执行。If the blocking queue is not empty, wait for the execution of the existing step code in the blocking queue to complete, and execute the steps: add the first target step code to the preset blocking queue, and determine the first target step Whether the code is executable.
可选地,所述创建并循环监听所述阻塞队列,判断所述阻塞队列是否为空的步骤之前,还包括:Optionally, before the step of creating and cyclically monitoring the blocking queue and judging whether the blocking queue is empty, the method further includes:
与浏览器建立连接,生成时域会话,并获取所述时域会话的ID值,以便在所述浏览器中显示步骤代码的运行过程;Establish a connection with the browser, generate a time domain session, and obtain the ID value of the time domain session, so as to display the running process of the step code in the browser;
将所述ID值添加至所述当前测试用例的统一资源定位符中,根据所述统一资源定位符,获取并显示所述浏览器的步骤代码调试页面。The ID value is added to the uniform resource locator of the current test case, and according to the uniform resource locator, the step code debugging page of the browser is acquired and displayed.
可选地,所述将所述第一目标步骤代码添加至预设阻塞队列,并判断所述第一目标步骤代码是否可执行的步骤之后,还包括:Optionally, after the step of adding the first target step code to a preset blocking queue and judging whether the first target step code is executable, the method further includes:
若所述第一目标步骤代码不可执行,则生成并显示所述第一目标步骤代码对应的不可执行提示信息,以便提示用户所述第一目标步骤代码预设不可执行;If the first target step code is not executable, generating and displaying the non-executable prompt information corresponding to the first target step code, so as to prompt the user that the first target step code is preset to be unexecutable;
将所述第一目标步骤代码从所述阻塞队列中删除,并获取所述当前测试用例中的待执行步骤代码,作为第三目标步骤代码,其中,所述待执行步骤代码为不可执行的第一目标步骤代码的下一步骤代码;Delete the first target step code from the blocking queue, and obtain the to-be-executed step code in the current test case as the third target step code, wherein the to-be-executed step code is the non-executable step code. The next step code of a target step code;
将所述第三目标步骤代码添加至所述阻塞队列,并判断所述第三目标步骤代码是否可执行。Adding the third target step code to the blocking queue, and determining whether the third target step code is executable.
如上述的测试用例调试方法,所述测试用例调试方法还包括:若检测到所述当前测试用例中的全部可执行步骤代码均已执行成功,则生成并显示所述当前测试用例的调试完成信息。According to the above test case debugging method, the test case debugging method further includes: if it is detected that all executable step codes in the current test case have been successfully executed, generating and displaying the debugging completion information of the current test case .
此外,为实现上述目的,本发明还提供一种测试用例调试装置,所述测试用例调试装置包括:In addition, in order to achieve the above purpose, the present invention also provides a test case debugging device, and the test case debugging device includes:
目标代码确定模块,用于在接收到用例调试指令时,基于所述用例调试指令中的相关参数,确定当前测试用例中的第一目标步骤代码,其中,所述相关参数至少包括操作类型参数与页面元素定位路径;The target code determination module is used to determine the first target step code in the current test case based on the relevant parameters in the use case debugging instruction when receiving the use case debugging instruction, wherein the relevant parameters at least include the operation type parameter and the page element positioning path;
目标代码判断模块,用于将所述第一目标步骤代码添加至预设阻塞队列,并判断所述第一目标步骤代码是否可执行;A target code judgment module, for adding the first target step code to a preset blocking queue, and judging whether the first target step code is executable;
目标代码执行模块,用于若所述第一目标步骤代码可执行,则从所述阻塞队列中获取并执行所述第一目标步骤代码;a target code execution module, configured to acquire and execute the first target step code from the blocking queue if the first target step code is executable;
目标代码校验模块,用于根据预设校验方式,验证所述第一目标步骤代码是否执行成功,并输出所述第一目标步骤代码的执行结果。The target code verification module is configured to verify whether the first target step code is successfully executed according to a preset verification method, and output the execution result of the first target step code.
可选地,所述测试用例调试装置还包括:Optionally, the test case debugging device further includes:
目标代码修改模块,用于若所述执行结果显示所述第一目标步骤代码执行失败,则接收用户输入的修改后的第一目标步骤代码,以对所述第一目标步骤代码进行更新;a target code modification module, configured to receive the modified first target step code input by the user if the execution result shows that the first target step code fails to be executed, so as to update the first target step code;
目标代码调试模块,用于执行所述修改后的第一目标步骤代码,并返回执行所述根据预设校验方式,验证所述第一目标步骤代码是否执行成功,并输出所述第一目标步骤代码的执行结果的步骤,直至所述修改后的第一目标步骤代码执行成功。The target code debugging module is used to execute the modified first target step code, and return to execute the according to the preset verification method, verify whether the first target step code is successfully executed, and output the first target Steps of the execution result of the step code until the modified first target step code is executed successfully.
可选地,所述测试用例调试装置还包括:Optionally, the test case debugging device further includes:
代码获取判断模块,用于若所述执行结果显示所述第一目标步骤代码执行成功,则获取所述当前测试用例中的待判断步骤代码,作为第二目标步骤代码,并判断所述第二目标步骤代码是否可执行,其中,所述待判断步骤代码为执行成功的第一目标步骤代码的下一步骤代码。A code acquisition and judgment module, configured to acquire the to-be-judged step code in the current test case as the second target step code, and judge the second target step code if the execution result shows that the first target step code is successfully executed. Whether the target step code is executable, wherein the to-be-determined step code is the next step code of the successfully executed first target step code.
可选地,所述目标代码执行模块还用于:Optionally, the target code execution module is also used for:
创建并循环监听所述阻塞队列,判断所述阻塞队列是否为空;Create and cyclically monitor the blocking queue to determine whether the blocking queue is empty;
若所述阻塞队列为空,则执行步骤:将所述第一目标步骤代码添加至预设阻塞队列,并判断所述第一目标步骤代码是否可执行。If the blocking queue is empty, perform the steps of: adding the first target step code to a preset blocking queue, and judging whether the first target step code is executable.
可选地,所述目标代码执行模块还用于:Optionally, the target code execution module is also used for:
若所述阻塞队列非空,则等待所述阻塞队列中的已有步骤代码执行完成之后,执行步骤:将所述第一目标步骤代码添加至预设阻塞队列,并判断所述第一目标步骤代码是否可执行。If the blocking queue is not empty, wait for the execution of the existing step code in the blocking queue to complete, and execute the steps: add the first target step code to the preset blocking queue, and determine the first target step Whether the code is executable.
可选地,所述测试用例调试装置还包括:Optionally, the test case debugging device further includes:
时域会话生成模块,用于与浏览器建立连接,生成时域会话,并获取所述时域会话的ID值,以便在所述浏览器中显示步骤代码的运行过程;a time domain session generation module, used to establish a connection with a browser, generate a time domain session, and obtain the ID value of the time domain session, so as to display the running process of the step code in the browser;
调试页面获取模块,用于将所述ID值添加至所述当前测试用例的统一资源定位符中,根据所述统一资源定位符,获取并显示所述浏览器的步骤代码调试页面。A debugging page obtaining module, configured to add the ID value to the uniform resource locator of the current test case, and obtain and display the step code debugging page of the browser according to the uniform resource locator.
此外,为实现上述目的,本发明还提供一种测试用例调试装置,所述测试用例调试装置包括:存储器、处理器及存储在所述存储器上并可在所述处理器上运行的测试用例调试程序,所述测试用例调试程序被所述处理器执行时实现如上所述的测试用例调试方法的步骤。In addition, in order to achieve the above object, the present invention also provides a test case debugging device, the test case debugging device includes: a memory, a processor, and a test case debugging device stored on the memory and running on the processor A program, when the test case debugging program is executed by the processor, implements the steps of the above test case debugging method.
此外,为实现上述目的,本发明还提供一种计算机可读存储介质,所述计算机可读存储介质上存储有测试用例调试程序,所述测试用例调试程序被处理器执行时实现如上所述的测试用例调试方法的步骤。In addition, in order to achieve the above object, the present invention also provides a computer-readable storage medium, where a test case debugging program is stored on the computer-readable storage medium, and when the test case debugging program is executed by a processor, the above-mentioned Steps of the test case debugging method.
本发明提供一种测试用例调试方法、装置及计算机可读存储介质。所述测试用例调试方法通过在接收到用例调试指令时,基于所述用例调试指令中的相关参数,确定当前测试用例中的第一目标步骤代码;将所述第一目标步骤代码添加至预设阻塞队列,并判断所述第一目标步骤代码是否可执行;若所述第一目标步骤代码可执行,则从所述阻塞队列中获取并执行所述第一目标步骤代码。通过上述方式,本发明根据相关参数,确定用例中的第一目标步骤代码,使得测试人员能够精准定位到当前测试用例中的任一步骤,提升了用户体验;通过将第一目标步骤代码放入阻塞队列,使得当前优先执行第一目标步骤代码,避免了其他步骤代码插队执行的情况;通过判断第一目标步骤代码是否可执行,使得测试人员可以事先将一些步骤代码设置为跳过,减少了执行步骤代码的时间,通过执行可执行的第一目标步骤代码,使得测试人员能够对第一目标步骤代码进行调试,提高了调试效率,从而解决了在对整个用例的调试过程中调试效率低的技术问题。The present invention provides a test case debugging method, device and computer-readable storage medium. The test case debugging method determines the first target step code in the current test case based on the relevant parameters in the use case debugging instruction when receiving the use case debugging instruction; adding the first target step code to the preset Block the queue, and determine whether the first target step code is executable; if the first target step code is executable, acquire and execute the first target step code from the blocking queue. Through the above method, the present invention determines the first target step code in the use case according to the relevant parameters, so that the tester can accurately locate any step in the current test case, and the user experience is improved; by putting the first target step code in the test case Block the queue, so that the first target step code is currently executed preferentially, avoiding the situation of other step codes being interrupted for execution; by judging whether the first target step code is executable, the tester can set some step codes to skip in advance, reducing the When the step code is executed, by executing the executable first target step code, the tester can debug the first target step code, which improves the debugging efficiency, thereby solving the problem of low debugging efficiency in the debugging process of the entire use case. technical problem.
附图说明Description of drawings
图1是本发明实施例方案涉及的硬件运行环境的装置结构示意图;1 is a schematic diagram of a device structure of a hardware operating environment involved in an embodiment of the present invention;
图2为本发明测试用例调试方法第一实施例的流程示意图;FIG. 2 is a schematic flowchart of the first embodiment of the test case debugging method of the present invention;
图3为图2中本发明第一实施例的步骤的细化流程示意图。FIG. 3 is a schematic diagram of a detailed flow chart of the steps of the first embodiment of the present invention in FIG. 2 .
本发明目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。The realization, functional characteristics and advantages of the present invention will be further described with reference to the accompanying drawings in conjunction with the embodiments.
具体实施方式Detailed ways
应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。It should be understood that the specific embodiments described herein are only used to explain the present invention, but not to limit the present invention.
如图1所示,图1是本发明实施例方案涉及的硬件运行环境的装置结构示意图。As shown in FIG. 1 , FIG. 1 is a schematic diagram of an apparatus structure of a hardware operating environment involved in the solution of an embodiment of the present invention.
本发明实施例测试用例调试装置可以是PC机或服务器设备,其上运行有Java虚拟机。The device for debugging a test case in the embodiment of the present invention may be a PC or a server device, on which a Java virtual machine runs.
如图1所示,该测试用例调试装置可以包括:处理器1001,例如CPU,网络接口1004,用户接口1003,存储器1005,通信总线1002。其中,通信总线1002用于实现这些组件之间的连接通信。用户接口1003可以包括显示屏(Display)、输入单元比如键盘(Keyboard),可选用户接口1003还可以包括标准的有线接口、无线接口。网络接口1004可选的可以包括标准的有线接口、无线接口(如WI-FI接口)。存储器1005可以是高速RAM存储器,也可以是稳定的存储器(non-volatile memory),例如磁盘存储器。存储器1005可选的还可以是独立于前述处理器1001的存储装置。As shown in FIG. 1 , the test case debugging apparatus may include: a processor 1001 , such as a CPU, a network interface 1004 , a user interface 1003 , a memory 1005 , and a communication bus 1002 . Among them, the communication bus 1002 is used to realize the connection and communication between these components. The user interface 1003 may include a display screen (Display), an input unit such as a keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface and a wireless interface. Optionally, the network interface 1004 may include a standard wired interface and a wireless interface (eg, a WI-FI interface). The memory 1005 may be high-speed RAM memory, or may be non-volatile memory, such as disk memory. Optionally, the memory 1005 may also be a storage device independent of the aforementioned processor 1001 .
本领域技术人员可以理解,图1中示出的结构并不构成对本方案的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。Those skilled in the art can understand that the structure shown in FIG. 1 does not constitute a limitation to the present solution, and may include more or less components than the one shown, or combine some components, or arrange different components.
如图1所示,作为一种计算机存储介质的存储器1005中可以包括操作系统、网络通信模块、用户接口模块以及测试用例调试程序。As shown in FIG. 1 , the memory 1005 as a computer storage medium may include an operating system, a network communication module, a user interface module, and a test case debugging program.
在图1所示的装置中,网络接口1004主要用于连接后台服务器,与后台服务器进行数据通信;用户接口1003主要用于连接客户端(用户端),与客户端进行数据通信;而处理器1001可以用于调用存储器1005中存储的测试用例调试程序,并执行下述测试用例调试方法中的操作。In the device shown in FIG. 1 , the network interface 1004 is mainly used to connect to the background server and perform data communication with the background server; the user interface 1003 is mainly used to connect the client (client) and perform data communication with the client; and the processor 1001 can be used to call the test case debugging program stored in the memory 1005, and perform the operations in the test case debugging method described below.
基于上述硬件结构,提出本发明测试用例调试方法实施例。Based on the above hardware structure, an embodiment of the test case debugging method of the present invention is proposed.
参照图2,图2为本发明测试用例调试方法第一实施例的流程示意图,所述测试用例调试方法包括:Referring to FIG. 2, FIG. 2 is a schematic flowchart of the first embodiment of the test case debugging method of the present invention. The test case debugging method includes:
步骤S10,在接收到用例调试指令时,基于所述用例调试指令中的相关参数,确定当前测试用例中的第一目标步骤代码,其中,所述相关参数至少包括操作类型参数与页面元素定位路径;Step S10, when receiving the use case debugging instruction, determine the first target step code in the current test case based on the relevant parameters in the use case debugging instruction, wherein the relevant parameters at least include the operation type parameter and the page element positioning path ;
目前,测试人员在调试程序时,通常是在编写完测试用例之后,执行整个用例来检验用例的步骤是否准确。如果出现错误步骤,测试人员需要在对错误步骤进行修改之后再重复执行整个用例,并判断修改后的步骤是否能够成功执行,直至整个用例成功执行。在对用例中的问题进行定位分析的过程中,测试人员需要重复执行用例,而实际上大部分执行的步骤对问题的定位分析并没有帮助,只有关键的几个步骤才能复现问题,从而导致了在对整个用例的调试过程中调试效率低的问题。例如,测试人员在执行一个包括10个步骤代码的UI自动化测试用例,在第一次执行完这一测试用例后,第一次执行结果显示第三步骤代码报错。测试人员对第三步骤代码进行第一次修改,随后第二次执行这一测试用例,发现第一次修改后的第三步骤代码依然报错。直到测试人员对第三步骤代码进行第五次修改后,第五次执行整个测试用例,发现第五次执行结果显示第三步骤代码执行成功,但第七步骤代码开始报错。上述具体问题就表明了为了修改成功单个步骤代码的问题而重复执行多车整个用例,整个调试过程的效率非常低。Currently, when a tester debugs a program, usually after writing a test case, he executes the entire use case to verify that the steps of the use case are accurate. If there is an error step, the tester needs to repeat the execution of the entire use case after modifying the error step, and judge whether the modified step can be executed successfully until the entire use case is successfully executed. In the process of locating and analyzing the problem in the use case, the tester needs to execute the use case repeatedly. In fact, most of the steps executed are not helpful for the localization and analysis of the problem. Only a few key steps can reproduce the problem, which leads to It solves the problem of low debugging efficiency in the debugging process of the entire use case. For example, when a tester executes a UI automation test case that includes 10 steps of code, after the test case is executed for the first time, the result of the first execution shows that the code of the third step reports an error. The tester made the first modification to the code of the third step, and then executed the test case for the second time, and found that the code of the third step after the first modification still reported an error. After the tester made the fifth modification to the code of the third step, and executed the entire test case for the fifth time, it was found that the result of the fifth execution showed that the code of the third step was executed successfully, but the code of the seventh step began to report an error. The above specific problems show that the efficiency of the entire debugging process is very low by repeatedly executing the entire use case of multiple vehicles in order to modify the successful single-step code.
在本实施例中,为解决上述问题,本发明提供一种测试用例调试方法,即根据相关参数,确定用例中的第一目标步骤代码,使得测试人员能够精准定位到当前测试用例中的任一步骤,提升了用户体验;通过将第一目标步骤代码放入阻塞队列,使得当前优先执行第一目标步骤代码,避免了其他步骤代码插队执行的情况;通过判断第一目标步骤代码是否可执行,使得测试人员可以事先将一些步骤代码设置为跳过,减少了执行步骤代码的时间,通过执行可执行的第一目标步骤代码,使得测试人员能够对第一目标步骤代码进行调试,提高了调试效率,从而解决了在对整个用例的调试过程中调试效率低的技术问题。所述测试用例调试方法应用于服务器端与用户端,并采用生产者-消费者模式,通过生产者与消费者两个线程以及阻塞队列来实现所述测试用例调试方法。生产者—消费者模式为一种设计模式。生产者和消费者在同一时间段内共用同一个存储空间,生产者往存储空间中添加产品,消费者从存储空间中取走产品,当存储空间为空时,消费者阻塞;当存储空间满时,生产者阻塞。在本发明中,生产者与消费者两个线程共用一个阻塞队列。生产者线程往阻塞队列里添加步骤代码,消费者线程从阻塞队列里取出步骤代码执行。具体地,用例调试指令包括调试启动指令和步骤选择指令,调试启动指令为开启调试模式的指令,步骤选择指令为测试人员选择当前测试用例中某一步骤代码的指令。测试人员在用户端的代码调试页面点击开始调试,设置调试模式为真,用户端接收到测试人员触发的调试启动指令,启动调试模式。测试人员在用户端启动服务器上的用户浏览器,用户端向服务器端发起一个时域Session会话请求,服务器端接收这一会话请求,并存储这一Session会话,使得用户浏览器与用户端之间维持这一Session会话。用户端检测到当前准备调试的测试用例,获取当前测试用例的统一资源定位符(URL,Uniform Resource Locator)。用户端根据这一URL,打开与当前测试用例对应的浏览器页面。用户端启动调试执行器,并确定当前测试用例中的第一目标步骤代码。其中,第一目标步骤代码为当前需要进行调试的步骤代码,若在当前测试用例中第一目标步骤代码之前存在其他步骤代码,则第一目标步骤代码与其他步骤代码不存在关联。用户端接收到步骤选择指令,并根据上述相关参数,在当前测试用例中确定上述相关参数对应的第一目标步骤代码。其中,相关参数至少包括第一目标步骤代码的操作类型参数、页面元素定位的路径,还可包括第一目标步骤代码对应的输入值和变量,操作类型参数可为延时、点击、鼠标悬停等。第一目标步骤代码的确定方式可以是测试人员手动在步骤代码相关参数页面添加第一目标步骤代码对应的相关参数,也可以是用户端根据自动跳转规则,从上一步骤代码跳转到第一目标步骤时,直接获取到第一目标步骤代码对应的相关参数。具体实施例中,若第一目标步骤代码为当前测试用例中第四步骤代码,测试人员在浏览器的调试页面中输入第四步骤代码对应的操作类型参数“鼠标悬停”,定位路径“//div[@class=”menu-root”]/div”与输入值“3”,用户端即可根据测试人员输入的这三项参数确定到当前测试用例中的第四步骤代码。In this embodiment, in order to solve the above problems, the present invention provides a test case debugging method, that is, according to relevant parameters, the first target step code in the test case is determined, so that the tester can accurately locate any one of the current test cases. step, the user experience is improved; by putting the first target step code into the blocking queue, the first target step code is currently executed preferentially, avoiding the situation of other step codes interrupting the execution of the queue; by judging whether the first target step code is executable, The tester can set some step codes to skip in advance, which reduces the time for executing the step code. By executing the executable first target step code, the tester can debug the first target step code, which improves the debugging efficiency. , so as to solve the technical problem of low debugging efficiency in the debugging process of the entire use case. The test case debugging method is applied to the server side and the user side, and the producer-consumer mode is adopted to realize the test case debugging method through two threads of the producer and the consumer and a blocking queue. The producer-consumer pattern is a design pattern. The producer and the consumer share the same storage space in the same time period. The producer adds products to the storage space, and the consumer removes the product from the storage space. When the storage space is empty, the consumer blocks; when the storage space is full , the producer blocks. In the present invention, two threads of the producer and the consumer share a blocking queue. The producer thread adds the step code to the blocking queue, and the consumer thread takes the step code from the blocking queue and executes it. Specifically, the use case debugging command includes a debugging start command and a step selection command. The debugging start command is an command to enable the debugging mode, and the step selection command is an command for the tester to select a certain step code in the current test case. The tester clicks to start debugging on the code debugging page of the client, and sets the debugging mode to true. The client receives the debugging start command triggered by the tester and starts the debugging mode. The tester starts the user browser on the server on the client side, the client side initiates a time domain session session request to the server side, the server side receives the session request, and stores the session session, so that the user browser and the client side can communicate with each other. Maintain this Session session. The user terminal detects the test case currently ready to be debugged, and obtains the Uniform Resource Locator (URL, Uniform Resource Locator) of the current test case. According to this URL, the client opens the browser page corresponding to the current test case. The client starts the debug executor and determines the first target step code in the current test case. Wherein, the first target step code is the step code that needs to be debugged currently. If other step codes exist before the first target step code in the current test case, the first target step code is not associated with other step codes. The user terminal receives the step selection instruction, and according to the above-mentioned relevant parameters, determines the first target step code corresponding to the above-mentioned relevant parameters in the current test case. Among them, the relevant parameters include at least the operation type parameter of the first target step code, the path of the page element positioning, and can also include the input value and variable corresponding to the first target step code, and the operation type parameter can be delay, click, mouse hover Wait. The method for determining the first target step code can be that the tester manually adds the relevant parameters corresponding to the first target step code on the step code related parameter page, or the user terminal jumps from the previous step code to the first step code according to the automatic jump rule. When there is a target step, the relevant parameters corresponding to the code of the first target step are directly obtained. In a specific embodiment, if the first target step code is the fourth step code in the current test case, the tester enters the operation type parameter "mouseover" corresponding to the fourth step code in the debugging page of the browser, and the positioning path "/ /div[@class="menu-root"]/div" and the input value "3", the user terminal can determine the fourth step code in the current test case according to the three parameters input by the tester.
步骤S20,将所述第一目标步骤代码添加至预设阻塞队列,并判断所述第一目标步骤代码是否可执行;Step S20, adding the first target step code to a preset blocking queue, and judging whether the first target step code is executable;
在本实施例中,用户端从当前测试用例中获取第一目标步骤代码,并将第一目标步骤代码添加到预设的阻塞队列中。其中,阻塞队列是一个在队列基础上又支持了两个附加操作的队列。当队列满时,队列会阻塞生产者线程,直到队列不满;队列空时,消费者线程会等待队列变为非空。阻塞队列刚好适用于存储的队列,执行调试的步骤代码都存储到该队列中来。用户端判断第一目标步骤代码是否为可执行代码。具体地,用户端在本地数据库中预先设置跳过字段,根据第一目标步骤中是否存在跳过字段,判断第一目标步骤代码是否为可执行步骤代码。在上述过程中,生产者线程用于将获取的第一目标步骤代码添加到阻塞队列。In this embodiment, the client obtains the first target step code from the current test case, and adds the first target step code to the preset blocking queue. Among them, the blocking queue is a queue that supports two additional operations on the basis of the queue. When the queue is full, the queue blocks the producer thread until the queue is full; when the queue is empty, the consumer thread waits for the queue to become non-empty. The blocking queue is just suitable for the stored queue, and the step code for executing the debugging is stored in the queue. The user terminal determines whether the first target step code is executable code. Specifically, the user terminal presets a skip field in the local database, and judges whether the first target step code is an executable step code according to whether there is a skip field in the first target step. In the above process, the producer thread is used to add the acquired first target step code to the blocking queue.
步骤S30,若所述第一目标步骤代码可执行,则从所述阻塞队列中获取并执行所述第一目标步骤代码;Step S30, if the first target step code is executable, obtain and execute the first target step code from the blocking queue;
本实施例中,若用户端判断第一目标步骤代码为可执行代码,则用户端从阻塞队列中获取第一目标步骤代码,并通过当前调试模式下的调试执行器,驱动服务器执行第一目标步骤代码。其中,调试执行器是在调试模式下执行用例步骤代码的一个模块。具体判断情况可为:若第一目标步骤代码中不存在跳过字段,则用户端判断第一目标步骤代码为可执行代码。在执行过程中,浏览器同步显示第一目标步骤代码的相关操作,例如点击按钮、输入用户名等。服务器端记录执行第一目标步骤代码的日志与执行结果,截取并保存第一目标步骤代码执行过程的页面截图。在上述过程中,消费者线程用于从阻塞队列中获取并执行第一目标步骤代码。In this embodiment, if the client determines that the first target step code is executable code, the client obtains the first target step code from the blocking queue, and drives the server to execute the first target through the debug executor in the current debugging mode. step code. Among them, the debug executor is a module that executes the use case step code in debug mode. The specific judgment situation may be: if there is no skip field in the first target step code, the user terminal determines that the first target step code is executable code. During the execution process, the browser synchronously displays the relevant operations of the code of the first target step, such as clicking a button, entering a user name, and the like. The server side records the log and execution result of executing the code of the first target step, and intercepts and saves a screenshot of the page of the execution process of the code of the first target step. In the above process, the consumer thread is used to obtain and execute the first target step code from the blocking queue.
步骤S40,根据预设校验方式,验证所述第一目标步骤代码是否执行成功,并输出所述第一目标步骤代码的执行结果。Step S40 , according to a preset verification method, verify whether the first target step code is successfully executed, and output the execution result of the first target step code.
在本实施例中,测试人员在第一目标步骤代码执行前先在预设校验方式中选择一种或多种校验方式,用户端接收到测试人员触发的校验方式选择指令,根据所选择的校验方式,验证第一目标步骤代码是否执行成功,并在页面上输出第一目标步骤代码的执行结果。其中,预设校验方式可为:通过图像识别算法,判断第一目标步骤的执行页面截图是否与预设图片相匹配;判断第一目标步骤代码对应的页面元素值是否与预设值相匹配;通过硒元素框架网页内驱动软件Selenium WebDriver提供的接口查看第一目标步骤代码对应的页面元素的标记属性,判断页面元素是否可编辑;判断第一目标步骤代码对应的页面元素值是否包含预设字符等。具体地,用户端通过Selenium WebDriver框架提供的接口查看第一目标步骤代码对应的页面元素的可编辑editable属性值是否为true。在上述过程中,消费者线程用于判断第一目标步骤代码是否执行成功。In this embodiment, the tester selects one or more verification methods from the preset verification methods before the code of the first target step is executed, and the user terminal receives the verification method selection instruction triggered by the tester, according to the The selected verification method verifies whether the first target step code is successfully executed, and outputs the execution result of the first target step code on the page. Wherein, the preset verification method may be: using an image recognition algorithm, judging whether the screenshot of the execution page of the first target step matches the preset picture; judging whether the page element value corresponding to the code of the first target step matches the preset value ; Check the markup attribute of the page element corresponding to the first target step code through the interface provided by the driver software Selenium WebDriver in the selenium element framework web page, and determine whether the page element is editable; determine whether the page element value corresponding to the first target step code contains a preset characters, etc. Specifically, the user side checks whether the editable attribute value of the page element corresponding to the first target step code is true through the interface provided by the Selenium WebDriver framework. In the above process, the consumer thread is used to judge whether the first target step code is successfully executed.
本发明提供一种测试用例调试方法、装置及计算机可读存储介质。所述测试用例调试方法通过在接收到用例调试指令时,基于所述用例调试指令中的相关参数,确定当前测试用例中的第一目标步骤代码,其中,所述相关参数至少包括操作类型参数与页面元素定位路径;将所述第一目标步骤代码添加至预设阻塞队列,并判断所述第一目标步骤代码是否可执行;若所述第一目标步骤代码可执行,则从所述阻塞队列中获取并执行所述第一目标步骤代码;根据预设校验方式,验证所述第一目标步骤代码是否执行成功,并输出所述第一目标步骤代码的执行结果。通过上述方式,本发明根据相关参数,确定用例中的第一目标步骤代码,使得测试人员能够精准定位到当前测试用例中的任一步骤,提升了用户体验;通过将第一目标步骤代码放入阻塞队列,使得当前优先执行第一目标步骤代码,避免了其他步骤代码插队执行的情况;通过判断第一目标步骤代码是否可执行,使得测试人员可以事先将一些步骤代码设置为跳过,减少了执行步骤代码的时间,通过执行可执行的第一目标步骤代码,使得测试人员能够对第一目标步骤代码进行调试,提高了调试效率;通过对第一目标步骤代码的执行情况进行判断,并输出对应的执行结果,使得测试人员能够直接获得第一目标步骤代码的执行结果,而不需要花费时间执行当前实施例中的其他步骤,提高了测试人员的调试效率,从而解决了在对整个用例的调试过程中调试效率低的技术问题。The present invention provides a test case debugging method, device and computer-readable storage medium. The test case debugging method determines the first target step code in the current test case based on the relevant parameters in the use case debugging instruction when receiving the use case debugging instruction, wherein the relevant parameters at least include an operation type parameter and an operation type parameter. page element positioning path; add the first target step code to the preset blocking queue, and determine whether the first target step code is executable; if the first target step code is executable, from the blocking queue Acquire and execute the first target step code in the system; verify whether the first target step code is successfully executed according to a preset verification method, and output the execution result of the first target step code. Through the above method, the present invention determines the first target step code in the use case according to the relevant parameters, so that the tester can accurately locate any step in the current test case, and the user experience is improved; by putting the first target step code in the test case Block the queue, so that the first target step code is currently executed preferentially, avoiding the situation of other step codes being interrupted for execution; by judging whether the first target step code is executable, the tester can set some step codes to skip in advance, reducing the When the step code is executed, by executing the executable first target step code, the tester can debug the first target step code, which improves the debugging efficiency; by judging the execution of the first target step code, and outputting The corresponding execution result enables the tester to directly obtain the execution result of the code of the first target step without spending time executing other steps in the current embodiment, which improves the debugging efficiency of the tester and thus solves the problem of the entire use case. Debugging technical problems with low efficiency during debugging.
参照图3,图3为本发明第一实施例的细化流程示意图。Referring to FIG. 3 , FIG. 3 is a schematic diagram of a refinement process according to the first embodiment of the present invention.
基于上述图2所示的第一实施例,提出本发明测试用例调试方法的第二实施例。在本实施例中,所述步骤S40之后,还包括:Based on the first embodiment shown in FIG. 2 above, a second embodiment of the test case debugging method of the present invention is proposed. In this embodiment, after the step S40, it further includes:
步骤S50,若所述执行结果显示所述第一目标步骤代码执行失败,则接收用户输入的修改后的第一目标步骤代码,以对所述第一目标步骤代码进行更新;Step S50, if the execution result shows that the execution of the first target step code fails, receive the modified first target step code input by the user to update the first target step code;
在本实施例中,用户端通过时域会话身份识别码SessionID维持与服务器端的连接,服务器端将第一目标步骤代码对应的执行结果显示在浏览器的页面上。用户端根据预设校验方式判断第一目标步骤代码执行失败后,在浏览器的页面上修改第一目标步骤代码。用户端将相关修改数据保存至本地数据库中。其中,修改后的第一目标步骤代码可为测试人员即时在浏览器的页面上重新编辑后的第一目标步骤代码;或是在第一目标步骤代码前添加新的步骤代码后,新的步骤代码与第一目标步骤代码的结合。In this embodiment, the client maintains the connection with the server through the time domain session identification code SessionID, and the server displays the execution result corresponding to the first target step code on the browser page. After judging that the execution of the first target step code fails according to the preset verification method, the user terminal modifies the first target step code on the page of the browser. The client saves the relevant modified data to the local database. The modified first target step code may be the first target step code that the tester re-edited on the browser page in real time; or after adding a new step code before the first target step code, the new step The combination of the code and the first target step code.
步骤S60,执行所述修改后的第一目标步骤代码,并返回执行所述根据预设校验方式,验证所述第一目标步骤代码是否执行成功,并输出所述第一目标步骤代码的执行结果的步骤,直至所述修改后的第一目标步骤代码执行成功。Step S60, execute the modified first target step code, and return to execute the pre-set verification method to verify whether the first target step code is successfully executed, and output the execution of the first target step code The resulting steps until the modified first target step code is executed successfully.
在本实施例中,调试模块通过上述SessionID维持的服务器端与用户端间的连接,驱动服务器端执行修改后的第一目标步骤代码。服务器端将修改后的第一目标步骤代码的执行过程与结果显示在浏览器的页面上。若第一次修改后的第一目标步骤代码的执行结果还是显示执行失败,测试人员会再次修改第一目标步骤代码并执行,直至经多次修改后的第一目标步骤代码能够成功执行并输出执行成功结果。其中,修改后的第一目标代码可能是修改一次后的第一目标步骤代码,也可能是修改多次后的第一目标步骤代码,具体修改次数根据具体情况而定,但修改后的第一目标步骤代码一定是能够成功运行的修改后的第一目标步骤代码。In this embodiment, the debugging module drives the server to execute the modified first target step code through the connection between the server and the client maintained by the SessionID. The server side displays the execution process and result of the modified first target step code on the page of the browser. If the execution result of the code of the first target step after the first modification still shows that the execution fails, the tester will modify the code of the first target step again and execute it until the code of the first target step that has been modified several times can be successfully executed and output Execute successful result. Wherein, the modified first target code may be the first target step code after modification once, or may be the first target step code after modification multiple times. The target step code must be the modified first target step code to run successfully.
进一步地,在步骤S40之后,还包括:Further, after step S40, it also includes:
步骤S01,若所述执行结果显示所述第一目标步骤代码执行成功,则获取所述当前测试用例中的待判断步骤代码,作为第二目标步骤代码,并判断所述第二目标步骤代码是否可执行,其中,所述待判断步骤代码为执行成功的第一目标步骤代码的下一步骤代码。Step S01, if the execution result shows that the first target step code is successfully executed, obtain the to-be-determined step code in the current test case as the second target step code, and determine whether the second target step code is not. Executable, wherein the to-be-determined step code is the next step code of the successfully executed first target step code.
在本实施例中,用户端通过上述SessionID维持与服务器端的连接,服务器端将第一目标步骤代码对应的执行结果显示在浏览器的页面上。若用户端根据预设校验方式判断第一目标步骤代码执行成功,服务器端的调试页面页面同步显示第一目标步骤代码执行成功结果,则完成对第一目标步骤的调试。用户端获取当前测试用例中的待判断步骤代码作为第二目标步骤代码。其中,第二目标步骤代码为当前测试用例中执行成功的第一目标步骤代码的下一步骤代码。消费者线程在本实施例中用于驱动服务器显示第一目标步骤代码执行结果以及执行修改后的第一目标步骤代码。In this embodiment, the client maintains the connection with the server through the SessionID, and the server displays the execution result corresponding to the code of the first target step on the browser page. If the client determines that the code of the first target step is successfully executed according to the preset verification method, and the debugging page of the server side synchronously displays the result of the successful execution of the code of the first target step, the debugging of the first target step is completed. The client obtains the to-be-determined step code in the current test case as the second target step code. The second target step code is the next step code of the successfully executed first target step code in the current test case. In this embodiment, the consumer thread is used to drive the server to display the execution result of the first target step code and execute the modified first target step code.
本发明提供一种测试用例调试方法、装置及计算机可读存储介质。所述测试用例调试方法进一步通过通过将执行失败的第一目标步骤代码直至调试成功,使得测试人员完成了单独对第一目标步骤代码的调试,提高了调试效率,并提升了用户体验;通过在第一目标步骤代码执行成功后自动跳转到下一步骤,简化了测试人员的操作,并提升了用户体验。The present invention provides a test case debugging method, device and computer-readable storage medium. The test case debugging method further enables the tester to complete the debugging of the first target step code independently by passing the first target step code that fails to be executed until the debugging is successful, thereby improving the debugging efficiency and improving the user experience; After the first target step code is successfully executed, it automatically jumps to the next step, which simplifies the tester's operation and improves the user experience.
图中未示的,基于上述图2所示的第一实施例,提出本发明测试用例调试方法的第三实施例。Not shown in the figure, based on the first embodiment shown in FIG. 2 above, a third embodiment of the test case debugging method of the present invention is proposed.
在本实施例中,在步骤S20之前,还包括:In this embodiment, before step S20, it further includes:
步骤a,创建并循环监听所述阻塞队列,判断所述阻塞队列是否空;Step a, creating and cyclically monitoring the blocking queue, and judging whether the blocking queue is empty;
在本实施例中,用户端创建阻塞队列,并循环监听这一阻塞队列。用户端判断这一阻塞队列中的步骤代码是否为空。其中,阻塞队列的步骤代码存储空间预设为一次只可添加一个步骤代码。具体实施例中,为判断阻塞队列是否为空,每当阻塞队列中步骤代码添加或者删除时,用户端都会生成对应的返回值。用户端根据获取到的当前返回值,判断当前返回值与预设返回值是否匹配。In this embodiment, the client creates a blocking queue, and cyclically monitors the blocking queue. The client determines whether the step code in this blocking queue is empty. Among them, the step code storage space of the blocking queue is preset so that only one step code can be added at a time. In a specific embodiment, in order to determine whether the blocking queue is empty, the user terminal will generate a corresponding return value whenever step codes in the blocking queue are added or deleted. The user terminal determines whether the current return value matches the preset return value according to the obtained current return value.
步骤b,若所述阻塞队列为空,则执行步骤:将所述第一目标步骤代码添加至预设阻塞队列,并判断所述第一目标步骤代码是否可执行。Step b, if the blocking queue is empty, perform the steps of: adding the first target step code to a preset blocking queue, and judging whether the first target step code is executable.
在本实施例中,若用户端经判断后,获取到上述阻塞队列中步骤代码为空的信息,用户端则将第一目标步骤代码添加到上述阻塞队列中,并判断所述第一目标步骤代码是否可执行。具体实施例中,若当前返回值与预设返回值相匹配,则用户端判断上述阻塞队列中步骤代码为空。In this embodiment, if the user terminal obtains the information that the step code in the above-mentioned blocking queue is empty after judgment, the user terminal adds the first target step code to the above-mentioned blocking queue, and judges the first target step Whether the code is executable. In a specific embodiment, if the current return value matches the preset return value, the user terminal determines that the step code in the blocking queue is empty.
步骤c,若所述阻塞队列非空,则等待所述阻塞队列中的已有步骤代码执行完成之后,执行步骤:将所述第一目标步骤代码添加至预设阻塞队列,并判断所述第一目标步骤代码是否可执行。Step c, if the blocking queue is not empty, wait for the execution of the existing step code in the blocking queue to be completed, and execute the step: add the first target step code to the preset blocking queue, and determine the first target step code. Whether a target step code is executable.
在本实施例中,若用户端经判断后,获取到上述阻塞队列中步骤代码非空的信息,用户端则等待阻塞队列中的原始步骤代码取出并执行。用户端在原始步骤代码调试完成后,判断当前阻塞队列是否为空。由于阻塞队列预先设定为只可缓存一个步骤代码,且原始步骤代码已获取执行,故用户端获取到当前阻塞队列为空的信息。用户端将第一目标步骤代码添加到当前为空的阻塞队列中,并判断第一步骤代码是否可执行。In this embodiment, if the user terminal obtains the information that the step code in the blocking queue is not empty after judgment, the user terminal waits for the original step code in the blocking queue to be fetched and executed. After the debugging of the original step code is completed, the user terminal determines whether the current blocking queue is empty. Since the blocking queue is preset so that only one step code can be cached, and the original step code has been obtained and executed, the client obtains the information that the current blocking queue is empty. The client adds the first target step code to the currently empty blocking queue, and determines whether the first step code is executable.
进一步地,在本实施例中,在步骤a之前,还包括:Further, in this embodiment, before step a, it also includes:
步骤d,与浏览器建立连接,生成时域会话,并获取所述时域会话的ID值,以便在所述浏览器中显示步骤代码的运行过程;Step d, establish a connection with the browser, generate a time domain session, and obtain the ID value of the time domain session, so as to display the running process of the step code in the browser;
在本实施例中,测试人员启动服务器上的用户浏览器,用户端向服务器端发起一个时域Session会话请求,服务器端接收这一会话请求,获取并存储这一会话请求对应的SessionID,以便通过这一SessionID维持用户端与服务器端的用户浏览器之间的连接,驱动服务器中的浏览器执行步骤代码并显示步骤代码的运行过程。In this embodiment, the tester starts the user browser on the server, the client initiates a time-domain session session request to the server, and the server receives the session request, obtains and stores the SessionID corresponding to the session request, so as to pass the session request. This SessionID maintains the connection between the user's browser on the client side and the server side, drives the browser in the server to execute the step code and displays the running process of the step code.
步骤e,将所述ID值添加至所述当前测试用例的统一资源定位符中,根据所述统一资源定位符,获取并显示所述浏览器的步骤代码调试页面。Step e, adding the ID value to the uniform resource locator of the current test case, and acquiring and displaying the step code debugging page of the browser according to the uniform resource locator.
在本实施例中,用户端检测到当前准备调试的测试用例,获取当前测试用例的统一资源定位符(URL,Uniform Resource Locator)。用户端将这一ID值添加到当前测试用例的URL中,并根据这一URL,获取与当前测试用例对应的步骤代码调试页面。消费者线程在本实施例中用于循环监听阻塞队列。In this embodiment, the user terminal detects the test case currently to be debugged, and obtains the Uniform Resource Locator (URL, Uniform Resource Locator) of the current test case. The client adds this ID value to the URL of the current test case, and according to this URL, obtains the step code debugging page corresponding to the current test case. In this embodiment, the consumer thread is used to cyclically monitor the blocking queue.
本发明提供一种测试用例调试方法、装置及计算机可读存储介质。所述测试用例调试方法进一步通过监听阻塞队列是否为空,并只在阻塞队列已满时等待阻塞队列重新为空时再放入第一目标步骤代码,使得当前在当前测试用例中只可单独执行第一目标步骤代码,避免了阻塞队列外的步骤代码的干扰;通过时域会话中的ID值与服务器维持连接,使得单个步骤代码在执行失败后不会立即断开连接,而是能够不断修改并执行这一步骤代码直到调试成功,提高了调试效率。The present invention provides a test case debugging method, device and computer-readable storage medium. The test case debugging method further monitors whether the blocking queue is empty, and only waits for the blocking queue to be empty again when the blocking queue is full, and then puts the first target step code, so that the current test case can only be executed independently The first target step code avoids the interference of the step code outside the blocking queue; maintains the connection with the server through the ID value in the time domain session, so that the single step code will not be disconnected immediately after the execution fails, but can be continuously modified And execute the code of this step until the debugging is successful, which improves the debugging efficiency.
图中未示的,基于上述图2所示的第一实施例,提出本发明测试用例调试方法的第四实施例。Not shown in the figure, based on the first embodiment shown in FIG. 2 above, a fourth embodiment of the test case debugging method of the present invention is proposed.
在本实施例中,步骤S20之后,还包括:In this embodiment, after step S20, it further includes:
步骤f,若所述第一目标步骤代码不可执行,则生成并显示所述第一目标步骤代码对应的不可执行提示信息,以便提示用户所述第一目标步骤代码预设不可执行;Step f, if the first target step code is not executable, generate and display the non-executable prompt information corresponding to the first target step code, so as to prompt the user that the first target step code is preset to be unexecutable;
在本实施例中,若用户端判断第一目标步骤代码为不可执行代码,则生成与第一目标步骤代码对应的不可执行提示信息。具体实施例中,若第一目标步骤代码被测试人员认为是可跳过步骤,并在对当前测试用例进行调试之前,将第一目标步骤代码添加不可执行字段,则用户端从阻塞队列中获取到第一目标步骤时,检测到这一不可执行字段,生成并向测试人员显示对应的不可执行提示信息。测试人员从这一提示信息中就可得知第一目标步骤代码为可跳过的步骤代码。In this embodiment, if the user terminal determines that the first target step code is an unexecutable code, it generates unexecutable prompt information corresponding to the first target step code. In a specific embodiment, if the first target step code is considered by the tester as a skippable step, and before debugging the current test case, the first target step code is added to the non-executable field, then the client obtains the code from the blocking queue. When the first target step is reached, this non-executable field is detected, and corresponding non-executable prompt information is generated and displayed to the tester. From this prompt message, the tester can know that the first target step code is a skippable step code.
步骤g,将所述第一目标步骤代码从所述阻塞队列中删除,并获取所述当前测试用例中的待执行步骤代码,作为第三目标步骤代码,其中,所述待执行步骤代码为不可执行的第一目标步骤代码的下一步骤代码;Step g, delete the first target step code from the blocking queue, and obtain the to-be-executed step code in the current test case as the third target step code, wherein the to-be-executed step code is unavailable. the next step code of the executed first target step code;
在本实施例中,用户端将第一目标步骤代码从阻塞队列中删除,并在当前测试用例中获取第三目标步骤代码。其中,第三目标步骤代码为当前测试用例中不可执行的第一目标步骤代码的下一步骤代码。上述过程也即是跳过第一目标步骤代码后自动顺序执行下一个步骤代码。In this embodiment, the user terminal deletes the first target step code from the blocking queue, and obtains the third target step code in the current test case. Wherein, the third target step code is the next step code of the unexecutable first target step code in the current test case. The above process is to automatically execute the next step code in sequence after skipping the first target step code.
步骤h,将所述第三目标步骤代码添加至所述阻塞队列,并判断所述第三目标步骤代码是否可执行。Step h, adding the third target step code to the blocking queue, and determining whether the third target step code is executable.
在本实施例中,用户端将第三目标步骤代码添加到阻塞队列之前,先判断阻塞队列是否为满,若未满,则用户端将第三步骤代码添加到阻塞队列;若已满,则用户端等待阻塞队列至未满时,再将第三步骤代码添加到阻塞队列,并判断第三目标步骤代码是否可执行。In this embodiment, before adding the third target step code to the blocking queue, the client first determines whether the blocking queue is full, if not, the client adds the third step code to the blocking queue; if it is full, then When the user terminal waits for the blocking queue to be less than full, it adds the third step code to the blocking queue, and judges whether the third target step code is executable.
进一步地,本发明测试用例调试方法还包括:Further, the test case debugging method of the present invention also includes:
步骤i,若检测到所述当前测试用例中的全部可执行步骤代码均已执行成功,则生成并显示所述当前测试用例的调试完成信息。In step i, if it is detected that all executable step codes in the current test case have been successfully executed, the debugging completion information of the current test case is generated and displayed.
在本实施例中,当用户端检测到当前测试用例中的所有的预设设置为可执行时,生成对应的调试完成信息,并向测试人员显示。具体检测方式可为:预先在当前测试用例的最后一个步骤代码中添加标识字段,若用户端在阻塞队列中检测到标识字段,并接收到最后一个步骤代码的执行成功信息或是不可执行信息时,生成并显示当前测试用例对应的调试完成信息。在步骤S1之后,测试人员看到这一调试完成信息,得知当前测试用例已执行成功,则点击结束调试,设置调试模式为假false,并关闭浏览器。用户端则退出当前调试模式,并关闭上述Session会话。In this embodiment, when the user terminal detects that all the preset settings in the current test case are executable, the corresponding debugging completion information is generated and displayed to the tester. The specific detection method can be: adding an identification field to the last step code of the current test case in advance, if the user side detects the identification field in the blocking queue and receives the execution success information or unexecutable information of the last step code to generate and display the debugging completion information corresponding to the current test case. After step S1, the tester sees the debugging completion information and knows that the current test case has been successfully executed, clicks to end debugging, sets the debugging mode to false, and closes the browser. The client exits the current debug mode and closes the above session.
本发明提供一种测试用例调试方法、装置及计算机可读存储介质。所述测试用例调试方法进一步通过向用户显示不可执行提示信息,使得用户可知这一步骤代码之前设置为跳过,提升了用户体验;通过在第一目标步骤代码不可执行时自动跳转到下一步骤代码,简化了测试人员的操作。The present invention provides a test case debugging method, device and computer-readable storage medium. The test case debugging method further improves the user experience by displaying the unexecutable prompt information to the user, so that the user knows that the code of this step is set to be skipped before, and the user experience is improved; by automatically jumping to the next step when the code of the first target step is not executable. Step code that simplifies the operation of the tester.
本发明还提供一种测试用例调试装置,所述测试用例调试装置包括:The present invention also provides a test case debugging device, and the test case debugging device includes:
目标代码确定模块,用于在接收到用例调试指令时,基于所述用例调试指令中的相关参数,确定当前测试用例中的第一目标步骤代码,其中,所述相关参数至少包括操作类型参数与页面元素定位路径;The target code determination module is used to determine the first target step code in the current test case based on the relevant parameters in the use case debugging instruction when receiving the use case debugging instruction, wherein the relevant parameters at least include the operation type parameter and the page element positioning path;
目标代码判断模块,用于将所述第一目标步骤代码添加至预设阻塞队列,并判断所述第一目标步骤代码是否可执行;A target code judgment module, for adding the first target step code to a preset blocking queue, and judging whether the first target step code is executable;
目标代码执行模块,用于若所述第一目标步骤代码可执行,则从所述阻塞队列中获取并执行所述第一目标步骤代码;a target code execution module, configured to acquire and execute the first target step code from the blocking queue if the first target step code is executable;
目标代码校验模块,用于根据预设校验方式,验证所述第一目标步骤代码是否执行成功,并输出所述第一目标步骤代码的执行结果。The target code verification module is configured to verify whether the first target step code is successfully executed according to a preset verification method, and output the execution result of the first target step code.
所述测试用例调试装置还包括:The test case debugging device further includes:
目标代码修改模块,用于若所述执行结果显示所述第一目标步骤代码执行失败,则接收用户输入的修改后的第一目标步骤代码,以对所述第一目标步骤代码进行更新;a target code modification module, configured to receive the modified first target step code input by the user if the execution result shows that the first target step code fails to be executed, so as to update the first target step code;
目标代码调试模块,用于执行所述修改后的第一目标步骤代码,并返回执行所述根据预设校验方式,验证所述第一目标步骤代码是否执行成功,并输出所述第一目标步骤代码的执行结果的步骤,直至所述修改后的第一目标步骤代码执行成功。The target code debugging module is used to execute the modified first target step code, and return to execute the according to the preset verification method, verify whether the first target step code is successfully executed, and output the first target Steps of the execution result of the step code until the modified first target step code is executed successfully.
所述测试用例调试装置还包括:The test case debugging device further includes:
代码获取判断模块,用于用于若所述执行结果显示所述第一目标步骤代码执行成功,则获取所述当前测试用例中的待判断步骤代码,作为第二目标步骤代码,并判断所述第二目标步骤代码是否可执行,其中,所述待判断步骤代码为执行成功的第一目标步骤代码的下一步骤代码。A code acquisition and judgment module, configured to acquire the to-be-judged step code in the current test case as the second target step code if the execution result shows that the first target step code is successfully executed, and judge the Whether the second target step code is executable, wherein the to-be-determined step code is the next step code of the successfully executed first target step code.
所述目标代码执行模块还用于:The target code execution module is also used for:
创建并循环监听所述阻塞队列,判断所述阻塞队列是否为空;Create and cyclically monitor the blocking queue to determine whether the blocking queue is empty;
若所述阻塞队列为空,则执行步骤:将所述第一目标步骤代码添加至预设阻塞队列,并判断所述第一目标步骤代码是否可执行。If the blocking queue is empty, perform the steps of: adding the first target step code to a preset blocking queue, and judging whether the first target step code is executable.
所述目标代码执行模块还用于:The target code execution module is also used for:
若所述阻塞队列非空,则等待所述阻塞队列中的已有步骤代码执行完成之后,执行步骤:将所述第一目标步骤代码添加至预设阻塞队列,并判断所述第一目标步骤代码是否可执行。If the blocking queue is not empty, wait for the execution of the existing step code in the blocking queue to complete, and execute the steps: add the first target step code to the preset blocking queue, and determine the first target step Whether the code is executable.
所述测试用例调试装置还包括:The test case debugging device further includes:
时域会话生成模块,用于与浏览器建立连接,生成时域会话,并获取所述时域会话的ID值,以便在所述浏览器中显示步骤代码的运行过程;a time domain session generation module, used to establish a connection with a browser, generate a time domain session, and obtain the ID value of the time domain session, so as to display the running process of the step code in the browser;
调试页面获取模块,用于将所述ID值添加至所述当前测试用例的统一资源定位符中,根据所述统一资源定位符,获取并显示所述浏览器的步骤代码调试页面。A debugging page obtaining module, configured to add the ID value to the uniform resource locator of the current test case, and obtain and display the step code debugging page of the browser according to the uniform resource locator.
所述测试用例调试装置还包括信息提示模块,所述信息提示模块用于:The test case debugging device further includes an information prompt module, and the information prompt module is used for:
若所述第一目标步骤代码不可执行,则生成并显示所述第一目标步骤代码对应的不可执行提示信息,以便提示用户所述第一目标步骤代码预设不可执行;If the first target step code is not executable, generating and displaying the non-executable prompt information corresponding to the first target step code, so as to prompt the user that the first target step code is preset to be unexecutable;
将所述第一目标步骤代码从所述阻塞队列中删除,并获取所述当前测试用例中的待执行步骤代码,作为第三目标步骤代码,其中,所述待执行步骤代码为不可执行的第一目标步骤代码的下一步骤代码;Delete the first target step code from the blocking queue, and obtain the to-be-executed step code in the current test case as the third target step code, wherein the to-be-executed step code is the non-executable step code. The next step code of a target step code;
将所述第三目标步骤代码添加至所述阻塞队列,并判断所述第三目标步骤代码是否可执行。Adding the third target step code to the blocking queue, and determining whether the third target step code is executable.
所述测试用例调试装置还包括:The test case debugging device further includes:
检测单元,用于若检测到所述当前测试用例中的全部可执行步骤代码均已执行成功,则生成并显示所述当前测试用例的调试完成信息。The detection unit is configured to generate and display debugging completion information of the current test case if it is detected that all executable step codes in the current test case have been successfully executed.
上述各程序模块所执行的方法可参照本发明业务的异常处理方法各个实施例,此处不再赘述。For the methods executed by the above program modules, reference may be made to the various embodiments of the service exception handling method of the present invention, which will not be repeated here.
本发明还提供一种计算机可读存储介质。The present invention also provides a computer-readable storage medium.
本发明计算机可读存储介质上存储有测试用例调试程序,所述测试用例调试程序被处理器执行时实现如上所述的测试用例调试方法的步骤。A test case debugging program is stored on the computer-readable storage medium of the present invention, and when the test case debugging program is executed by the processor, the steps of the above-mentioned test case debugging method are implemented.
其中,所述测试用例调试程序被执行时所实现的方法可参照本发明测试用例调试方法各个实施例,此处不再赘述。Wherein, for the method implemented when the test case debugging program is executed, reference may be made to the various embodiments of the test case debugging method of the present invention, which will not be repeated here.
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者系统不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者系统所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者系统中还存在另外的相同要素。It should be noted that, herein, the terms "comprising", "comprising" or any other variation thereof are intended to encompass non-exclusive inclusion, such that a process, method, article or system comprising a series of elements includes not only those elements, It also includes other elements not expressly listed or inherent to such a process, method, article or system. Without further limitation, an element qualified by the phrase "comprising a..." does not preclude the presence of additional identical elements in the process, method, article or system that includes the element.
上述本发明实施例序号仅仅为了描述,不代表实施例的优劣。The above-mentioned serial numbers of the embodiments of the present invention are only for description, and do not represent the advantages or disadvantages of the embodiments.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在如上所述的一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本发明各个实施例所述的方法。From the description of the above embodiments, those skilled in the art can clearly understand that the method of the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is better implementation. Based on such understanding, the technical solutions of the present invention can be embodied in the form of software products in essence or the parts that make contributions to the prior art, and the computer software products are stored in a storage medium (such as ROM/RAM) as described above. , magnetic disk, optical disk), including several instructions to make a terminal device (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) execute the methods described in the various embodiments of the present invention.
以上仅为本发明的优选实施例,并非因此限制本发明的专利范围,凡是利用本发明说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本发明的专利保护范围内。The above are only preferred embodiments of the present invention, and are not intended to limit the scope of the present invention. Any equivalent structure or equivalent process transformation made by using the contents of the description and drawings of the present invention, or directly or indirectly applied in other related technical fields , are similarly included in the scope of patent protection of the present invention.
Claims (16)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201910857347.0A CN110543429B (en) | 2019-09-10 | 2019-09-10 | Test case debugging method, device and storage medium |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201910857347.0A CN110543429B (en) | 2019-09-10 | 2019-09-10 | Test case debugging method, device and storage medium |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN110543429A true CN110543429A (en) | 2019-12-06 |
| CN110543429B CN110543429B (en) | 2023-05-16 |
Family
ID=68713290
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201910857347.0A Active CN110543429B (en) | 2019-09-10 | 2019-09-10 | Test case debugging method, device and storage medium |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN110543429B (en) |
Cited By (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN111897724A (en) * | 2020-07-21 | 2020-11-06 | 国云科技股份有限公司 | A kind of automatic testing method and device suitable for cloud platform |
| CN113377650A (en) * | 2021-06-09 | 2021-09-10 | 重庆紫光华山智安科技有限公司 | Automatic test case running method and device, test equipment and storage medium |
| CN114416518A (en) * | 2021-12-03 | 2022-04-29 | 北京罗克维尔斯科技有限公司 | Test case index verification method and device, electronic equipment and storage medium |
| CN115145333A (en) * | 2022-07-26 | 2022-10-04 | 珠海格力电器股份有限公司 | Debugging method, debugging device, processor and debugging system of cooking equipment |
Citations (10)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102449563A (en) * | 2009-05-27 | 2012-05-09 | 三菱电机株式会社 | Sequence program debugging device, debugging method, and program |
| US20130042222A1 (en) * | 2011-08-08 | 2013-02-14 | Computer Associates Think, Inc. | Automating functionality test cases |
| CN106445818A (en) * | 2016-09-13 | 2017-02-22 | 郑州云海信息技术有限公司 | Debug method and device for automated scripts based on model driving |
| CN106970870A (en) * | 2016-01-14 | 2017-07-21 | 腾讯科技(北京)有限公司 | Webpage test platform, webpage method of testing and webpage test system |
| CN107463500A (en) * | 2017-08-09 | 2017-12-12 | 网易(杭州)网络有限公司 | Adjustment method, medium, system and the computing device of test script |
| US20180150385A1 (en) * | 2016-11-30 | 2018-05-31 | International Business Machines Corporation | Enabling non-blocking runtime application debugging for a single threaded server environment |
| US20180189165A1 (en) * | 2015-10-26 | 2018-07-05 | Hitachi, Ltd. | Method for assisting with debugging, and computer system |
| CN108763085A (en) * | 2018-05-31 | 2018-11-06 | 平安科技(深圳)有限公司 | On-line debugging device, method and the computer readable storage medium of test cases |
| CN109800159A (en) * | 2018-12-27 | 2019-05-24 | 百富计算机技术(深圳)有限公司 | Program debugging method, program debugging device, terminal device and storage medium |
| CN109857642A (en) * | 2018-12-30 | 2019-06-07 | 贝壳技术有限公司 | A kind of the block type adjustment method and debugging tool of UI automatized script |
-
2019
- 2019-09-10 CN CN201910857347.0A patent/CN110543429B/en active Active
Patent Citations (10)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102449563A (en) * | 2009-05-27 | 2012-05-09 | 三菱电机株式会社 | Sequence program debugging device, debugging method, and program |
| US20130042222A1 (en) * | 2011-08-08 | 2013-02-14 | Computer Associates Think, Inc. | Automating functionality test cases |
| US20180189165A1 (en) * | 2015-10-26 | 2018-07-05 | Hitachi, Ltd. | Method for assisting with debugging, and computer system |
| CN106970870A (en) * | 2016-01-14 | 2017-07-21 | 腾讯科技(北京)有限公司 | Webpage test platform, webpage method of testing and webpage test system |
| CN106445818A (en) * | 2016-09-13 | 2017-02-22 | 郑州云海信息技术有限公司 | Debug method and device for automated scripts based on model driving |
| US20180150385A1 (en) * | 2016-11-30 | 2018-05-31 | International Business Machines Corporation | Enabling non-blocking runtime application debugging for a single threaded server environment |
| CN107463500A (en) * | 2017-08-09 | 2017-12-12 | 网易(杭州)网络有限公司 | Adjustment method, medium, system and the computing device of test script |
| CN108763085A (en) * | 2018-05-31 | 2018-11-06 | 平安科技(深圳)有限公司 | On-line debugging device, method and the computer readable storage medium of test cases |
| CN109800159A (en) * | 2018-12-27 | 2019-05-24 | 百富计算机技术(深圳)有限公司 | Program debugging method, program debugging device, terminal device and storage medium |
| CN109857642A (en) * | 2018-12-30 | 2019-06-07 | 贝壳技术有限公司 | A kind of the block type adjustment method and debugging tool of UI automatized script |
Non-Patent Citations (6)
| Title |
|---|
| FRANZ WOTAWA等: "Debugging and test case generation using constraints and mutations" * |
| 吴寒冰: "Selenium自动化测试系统的设计与实现", 《中国优秀硕士学位论文全文数据库 信息科技辑》 * |
| 林科学: "软件测试/调试技术应用研究", 《中国优秀硕士学位论文全文数据库 信息科技辑》 * |
| 胡静红: "基于TestComplete的Web应用自动化测试平台的设计与实现" * |
| 葛晋鹏: "物流软件自动化测试用例管理和执行调度的设计与实现" * |
| 蒋宇阳: "自动化测试系统远程调试子系统的设计与实现" * |
Cited By (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN111897724A (en) * | 2020-07-21 | 2020-11-06 | 国云科技股份有限公司 | A kind of automatic testing method and device suitable for cloud platform |
| CN111897724B (en) * | 2020-07-21 | 2022-12-06 | 国云科技股份有限公司 | Automatic testing method and device suitable for cloud platform |
| CN113377650A (en) * | 2021-06-09 | 2021-09-10 | 重庆紫光华山智安科技有限公司 | Automatic test case running method and device, test equipment and storage medium |
| CN113377650B (en) * | 2021-06-09 | 2022-06-21 | 重庆紫光华山智安科技有限公司 | Automatic test case operation method and device, test equipment and storage medium |
| CN114416518A (en) * | 2021-12-03 | 2022-04-29 | 北京罗克维尔斯科技有限公司 | Test case index verification method and device, electronic equipment and storage medium |
| CN115145333A (en) * | 2022-07-26 | 2022-10-04 | 珠海格力电器股份有限公司 | Debugging method, debugging device, processor and debugging system of cooking equipment |
| CN115145333B (en) * | 2022-07-26 | 2023-04-28 | 珠海格力电器股份有限公司 | Method and device for debugging cooking equipment, processor and debugging system |
Also Published As
| Publication number | Publication date |
|---|---|
| CN110543429B (en) | 2023-05-16 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US7877681B2 (en) | Automatic context management for web applications with client side code execution | |
| US9003423B1 (en) | Dynamic browser compatibility checker | |
| CN110543429B (en) | Test case debugging method, device and storage medium | |
| CN106815141A (en) | A kind of method for testing software and device | |
| CN108509344B (en) | Daily cutting batch test method, equipment and readable storage medium | |
| CN106294094A (en) | The method of testing of game server, client, server and system | |
| CN112423135B (en) | Information processing method, device, computer equipment and storage medium for video playback | |
| CN106815142A (en) | A kind of method for testing software and system | |
| CN113296653B (en) | Simulation interaction model construction method, interaction method and related equipment | |
| US20220229767A1 (en) | Test script generation apparatus, test script generation method and program | |
| KR20150025106A (en) | Verification apparatus, terminal device, system, method and computer-readable medium for monitoring of application verification result | |
| US11169910B2 (en) | Probabilistic software testing via dynamic graphs | |
| US20170161181A1 (en) | Testing support system, and testing support method | |
| CN115617780A (en) | Data import method, device, equipment and storage medium | |
| WO2016188101A1 (en) | Service system test method and device | |
| CN111857679B (en) | Method and device for generating script program and script program processing system | |
| US10083108B1 (en) | Automated stack-based computerized application crawler | |
| CN113094281B (en) | Test method and device for hybrid App | |
| CN119669074A (en) | Web application testing method, device, computer equipment, readable storage medium and program product | |
| CN112199229A (en) | Data processing method, device, equipment and storage medium | |
| CN114691486A (en) | Program debugging method and device and computer equipment | |
| US20140245159A1 (en) | Transport script generation based on a user interface script | |
| CN116594867A (en) | Interface testing method, system, device and electronic equipment | |
| CN111124915B (en) | Coverage rate detection method, coverage rate detection device, and storage medium | |
| JP2001306358A (en) | GUI program test apparatus, GUI program test method, and recording medium used in the method |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |