[go: up one dir, main page]

CN111930456A - Display method of test log, electronic device and storage medium - Google Patents

Display method of test log, electronic device and storage medium Download PDF

Info

Publication number
CN111930456A
CN111930456A CN202010784822.9A CN202010784822A CN111930456A CN 111930456 A CN111930456 A CN 111930456A CN 202010784822 A CN202010784822 A CN 202010784822A CN 111930456 A CN111930456 A CN 111930456A
Authority
CN
China
Prior art keywords
test
instruction
area
displaying
script
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.)
Withdrawn
Application number
CN202010784822.9A
Other languages
Chinese (zh)
Inventor
刘君
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN202010784822.9A priority Critical patent/CN111930456A/en
Publication of CN111930456A publication Critical patent/CN111930456A/en
Withdrawn legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Prevention of errors by analysis, debugging or testing of software
    • G06F11/3668Testing of software
    • G06F11/3672Test management
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45504Abstract machines for programme code execution, e.g. Java virtual machine [JVM], interpreters, emulators
    • G06F9/45508Runtime interpretation or emulation, e g. emulator loops, bytecode interpretation
    • G06F9/45512Command shells

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Human Computer Interaction (AREA)
  • Debugging And Monitoring (AREA)

Abstract

本申请公开了一种测试日志的显示方法及电子设备、存储介质。其中,测试日志的显示方法包括:在图形用户界面上的第一区域,显示与第一测试用例对应的测试脚本;在所述图形用户界面上的第二区域,至少显示与所述测试脚本中的至少一个测试指令对应的测试日志。

Figure 202010784822

The present application discloses a display method of a test log, an electronic device, and a storage medium. Wherein, the display method of the test log includes: in the first area on the graphical user interface, displaying the test script corresponding to the first test case; in the second area on the graphical user interface, displaying at least the test script corresponding to the test script The test log corresponding to at least one test instruction of .

Figure 202010784822

Description

一种测试日志的显示方法及电子设备、存储介质Method for displaying test log, electronic device, and storage medium

技术领域technical field

本申请涉及测试技术领域,尤其涉及一种测试日志的显示方法及电子设备、存储介质。The present application relates to the technical field of testing, and in particular, to a method for displaying a test log, an electronic device, and a storage medium.

背景技术Background technique

自动化测试框架里,常会提供图形用户界面(GUI,Graphical User Interface),GUI中包含用于展示测试用例的窗口和用于展示测试用例对应的测试日志的窗口等等,测试人员可以通过GUI查看测试用例的执行状态与对应的测试日志。In the automated testing framework, a graphical user interface (GUI, Graphical User Interface) is often provided. The GUI includes a window for displaying test cases and a window for displaying the test log corresponding to the test case. Testers can view the test through the GUI. The execution status of the use case and the corresponding test log.

在相关自动化测试框架技术中,在测试日志的展示窗口中查找关注的日志可能会非常耗时及繁琐。In related automated testing framework technologies, it may be time-consuming and cumbersome to find the logs of interest in the test log display window.

发明内容SUMMARY OF THE INVENTION

本申请实施例提供一种测试日志的显示方法及电子设备、存储介质,以至少解决相关技术中如何在测试日志的展示窗口中快速定位测试日志的问题。Embodiments of the present application provide a method for displaying a test log, an electronic device, and a storage medium, so as to at least solve the problem of how to quickly locate the test log in the display window of the test log in the related art.

本申请实施例的技术方案是这样实现的:The technical solutions of the embodiments of the present application are implemented as follows:

一方面,本申请实施例提供了一种测试日志的显示方法,该方法包括:On the one hand, an embodiment of the present application provides a method for displaying a test log, the method comprising:

在图形用户界面上的第一区域,显示与第一测试用例对应的测试脚本;In the first area on the graphical user interface, display the test script corresponding to the first test case;

在所述图形用户界面上的第二区域,至少显示与所述测试脚本中的至少一个测试指令对应的测试日志。In the second area on the graphical user interface, at least a test log corresponding to at least one test instruction in the test script is displayed.

另一方面,本申请实施例提供了一种电子设备,该电子设备包括:On the other hand, an embodiment of the present application provides an electronic device, and the electronic device includes:

第一显示单元,用于在图形用户界面上的第一区域,显示与第一测试用例对应的测试脚本;a first display unit, used for displaying a test script corresponding to the first test case in the first area on the graphical user interface;

第二显示单元,用于在所述图形用户界面上的第二区域,至少显示与所述测试脚本中的至少一个测试指令对应的测试日志。The second display unit is configured to display at least a test log corresponding to at least one test instruction in the test script in the second area on the graphical user interface.

再一方面,本申请实施例提供了一种电子设备,包括:处理器和用于存储能够在处理器上运行的计算机程序的存储器,其中,所述处理器用于运行所述计算机程序时,执行上述测试日志的显示方法。In another aspect, an embodiment of the present application provides an electronic device, comprising: a processor and a memory for storing a computer program that can be executed on the processor, wherein the processor is configured to execute the computer program when the processor is executed. The display method of the above test log.

再一方面,本申请实施例提供了一种存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时执行上述测试日志的显示方法。In another aspect, an embodiment of the present application provides a storage medium on which a computer program is stored, and when the computer program is executed by a processor, executes the above method for displaying a test log.

本申请实施例中,电子设备在GUI的第一区域上,显示与被调用的测试用例对应的测试脚本,测试脚本直观地展示了测试用例的测试指令细节及先后顺序,可以为测试人员定位关注的测试指令提供便利。电子设备在GUI的第二区域,至少显示与测试脚本的至少一个测试指令对应的测试日志,从而避免了相关技术中在测试日志的展示窗口耗费大量时间去查找与该至少一个测试指令对应的测试日志内容,减轻了测试人员的工作复杂度和工作量,增强了自动化测试中测试日志显示的针对性,提升了GUI的易用性。In the embodiment of the present application, the electronic device displays a test script corresponding to the called test case on the first area of the GUI, and the test script intuitively displays the details and sequence of the test instructions of the test case, which can be used for positioning and attention of testers. The test instructions are provided for convenience. In the second area of the GUI, the electronic device displays at least a test log corresponding to at least one test instruction of the test script, thereby avoiding the need to spend a lot of time in the display window of the test log to find the test corresponding to the at least one test instruction in the related art The log content reduces the work complexity and workload of testers, enhances the pertinence of test log display in automated testing, and improves the usability of GUI.

附图说明Description of drawings

图1为相关技术提供的一种自动化测试框架的GUI示意图;Fig. 1 is a GUI schematic diagram of an automated testing framework provided by the related art;

图2为本申请实施例提供的测试日志的显示方法的流程示意图;2 is a schematic flowchart of a method for displaying a test log provided by an embodiment of the present application;

图3为本申请实施例提供的一种GUI示意图与示例流程图;FIG. 3 provides a GUI schematic diagram and an example flowchart according to an embodiment of the present application;

图4为本申请实施例提供的电子设备的结构组成示意图;FIG. 4 is a schematic structural diagram of an electronic device provided by an embodiment of the present application;

图5为本申请实施例提供的一种电子设备的硬件组成结构示意图。FIG. 5 is a schematic structural diagram of a hardware composition of an electronic device according to an embodiment of the present application.

具体实施方式Detailed ways

下文中将参考附图并结合实施例来详细说明本申请。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。Hereinafter, the present application will be described in detail with reference to the accompanying drawings and in conjunction with the embodiments. It should be noted that the embodiments in the present application and the features of the embodiments may be combined with each other in the case of no conflict. Obviously, the described embodiments are some, but not all, embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present application.

需要说明的是,本申请的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。It should be noted that the terms "first", "second" and the like in the description and claims of the present application and the above drawings are used to distinguish similar objects, and are not necessarily used to describe a specific sequence or sequence.

为便于理解本申请实施例的技术方案,以下对本申请实施例涉及到的相关技术进行说明。In order to facilitate the understanding of the technical solutions of the embodiments of the present application, the related technologies involved in the embodiments of the present application are described below.

在自动化测试中,测试设计者首先将测试用例设计出来,之后测试人员根据测试用例编写测试脚本,并运行测试脚本,基于测试脚本中的测试步骤执行该测试用例,最后记录测试结果(比如测试日志)。相关技术中,在自动化测试框架里,基本都会提供GUI界面。In automated testing, the test designer first designs the test case, then the tester writes the test script according to the test case, runs the test script, executes the test case based on the test steps in the test script, and finally records the test result (such as the test log ). In related technologies, GUI interfaces are basically provided in automated testing frameworks.

请参阅图1,图1是相关技术提供的一种自动化测试框架的GUI示意图。GUI中包含测试用例窗口和测试日志窗口,测试人员可以通过测试用例窗口查看各测试用例的执行状态,通过测试日志窗口查看与测试用例对应的测试日志。Please refer to FIG. 1. FIG. 1 is a GUI schematic diagram of an automated testing framework provided by the related art. The GUI includes a test case window and a test log window. Testers can view the execution status of each test case through the test case window, and view the test log corresponding to the test case through the test log window.

在相关自动化测试框架技术中,测试人员在测试日志窗口中查找关注的测试日志,可以包括以下步骤:In related automated testing framework technologies, testers can find the concerned test logs in the test log window, which can include the following steps:

步骤A:根据显示的测试用例及其执行状态,在测试用例窗口中选中关注的测试用例。Step A: According to the displayed test case and its execution status, select the concerned test case in the test case window.

容易理解的是,关注的测试用例可以是执行状态为失败的测试用例。测试人员会想要确定执行失败的原因。It is easy to understand that the test case of interest can be the test case whose execution status is failed. Testers will want to determine why the execution failed.

步骤B:在测试框架的底层文件中,确定被选中的测试用例的测试脚本,并在该测试脚本中确定关注的测试指令,记录该测试指令的关键语句。Step B: In the underlying file of the test framework, determine the test script of the selected test case, determine the concerned test instruction in the test script, and record the key statement of the test instruction.

步骤C:根据测试指令的关键语句,在测试日志窗口中定位对应的测试日志。Step C: According to the key statement of the test instruction, locate the corresponding test log in the test log window.

举例来说,测试人员关注的测试步骤中包含的测试指令的关键语句为:“初始化用户终端”,测试人员在测试日志窗口里使用该关键语句搜索,就能定位到该测试步骤在测试日志中的详细信息位置。For example, the key statement of the test instruction contained in the test step concerned by the tester is: "Initialize the user terminal", the tester can use the key statement to search in the test log window to locate the test step in the test log. details location.

综上,在相关技术中,GUI只展示测试用例的整体执行状态,以及测试用例的测试日志全文。这存在以下问题:To sum up, in related technologies, the GUI only displays the overall execution status of the test case and the full text of the test log of the test case. This has the following problems:

测试人员想查看某测试步骤的执行情况时,需要从测试日志窗口翻阅大量的信息,去查找想看的测试步骤,或者先去后台调阅测试用例的测试脚本,利用测试脚本中的关键字,在日志窗口搜索该关键字才能找到对应位置,增加了测试人员的工作量。When a tester wants to check the execution of a test step, he needs to read a lot of information from the test log window to find the test step he wants to see, or go to the background to read the test script of the test case, and use the keywords in the test script, Searching for this keyword in the log window can only find the corresponding position, which increases the workload of testers.

基于此,提出了本申请实施例的以下技术方案,电子设备在GUI的第一区域上,显示与被调用的测试用例对应的测试脚本,测试脚本直观地展示了测试用例的测试指令细节及先后顺序,可以为测试人员定位关注的测试指令提供便利。电子设备在GUI的第二区域,至少显示与测试脚本的至少一个测试指令对应的测试日志,从而避免了相关技术中通过查找关键字的方式在测试日志窗口中查找某测试步骤的状态及在测试日志中的行号,能够减轻测试人员的工作复杂度和工作量,增强了自动化测试中测试日志显示的针对性,提升了GUI的易用性。Based on this, the following technical solutions of the embodiments of the present application are proposed. The electronic device displays a test script corresponding to the called test case on the first area of the GUI, and the test script intuitively displays the test instruction details and sequence of the test case. The sequence can provide convenience for testers to locate the test instructions of interest. In the second area of the GUI, the electronic device at least displays the test log corresponding to at least one test instruction of the test script, thereby avoiding the search for the status of a certain test step in the test log window by searching for keywords in the related art and the test log in the test log window. The line number in the log can reduce the work complexity and workload of the tester, enhance the pertinence of the test log display in the automated test, and improve the usability of the GUI.

下面介绍测试日志的显示方法的执行步骤,请参阅图2,所述方法包括以下步骤:The following describes the execution steps of the method for displaying the test log, please refer to FIG. 2 , and the method includes the following steps:

步骤201:在图形用户界面上的第一区域,显示与第一测试用例对应的测试脚本。Step 201: Display the test script corresponding to the first test case in the first area on the graphical user interface.

步骤202:在所述图形用户界面上的第二区域,至少显示与所述测试脚本中的至少一个测试指令对应的测试日志。Step 202: Display at least a test log corresponding to at least one test instruction in the test script in the second area on the graphical user interface.

在步骤201中,需要说明的是,测试脚本包括至少一个测试步骤,每个测试步骤包括至少一个测试指令。这里,容易理解的是,一个“对终端进行初始化”的测试步骤,可能需要执行多个具体的测试指令才能完成该测试步骤。在一个可能的实施方式中,测试步骤可以是测试人员预先在测试脚本中设定的,并使用注释文字标明了各测试步骤的标题。在另一个实施方式中,如果测试人员没有预先设定哪些测试指令属于一个测试步骤,则单个测试指令仍可以被理解为一个测试步骤,这时,测试步骤与测试指令是相同的概念。In step 201, it should be noted that the test script includes at least one test step, and each test step includes at least one test instruction. Here, it is easy to understand that, for a test step of "initializing the terminal", it may be necessary to execute a plurality of specific test instructions to complete the test step. In a possible implementation manner, the test steps may be pre-set by the tester in the test script, and the title of each test step is marked with comment text. In another embodiment, if the tester does not preset which test instructions belong to a test step, a single test instruction can still be understood as a test step. In this case, the test step and the test instruction are the same concept.

在一些可能的实施方式中,用于在GUI第一区域显示的第一测试用例对应的测试脚本,可以是该测试脚本的全部内容,包含了全部的测试步骤,以及全部测试步骤中每个测试步骤所包含的全部测试指令。容易理解的是,面对最完整的测试脚本,测试人员可以了解测试的更多细节,定位到测试出错时对应的最准确的测试指令。In some possible implementations, the test script corresponding to the first test case displayed in the first area of the GUI may be the entire content of the test script, including all test steps and each test in all test steps All test instructions contained in the step. It is easy to understand that, in the face of the most complete test script, the tester can understand more details of the test and locate the most accurate test instruction corresponding to the test error.

在另一些可能的实施方式中,用于在GUI第一区域显示的第一测试用例对应的测试脚本,可以是主要显示该测试脚本的测试步骤,即在显示时隐去测试步骤中全部或部分具体的测试指令。容易理解的是,在第一区域简化测试脚本的显示,并不影响测试的运行。在这种显示情况下,测试人员能更容易地确定各重要测试步骤之间的逻辑顺序,初步定位关注的测试步骤。In some other possible implementations, the test script corresponding to the first test case displayed in the first area of the GUI may mainly display the test steps of the test script, that is, hide all or part of the test steps when displayed. specific test instructions. It is easy to understand that simplifying the display of the test script in the first area does not affect the running of the test. In this display case, the tester can more easily determine the logical sequence between the important test steps, and preliminarily locate the test steps of interest.

针对步骤201,还需要说明的是,第一测试用例可以是当前正在进行的测试用例,也可以基于接收到的测试人员的选择操作而确定的测试用例。Regarding step 201, it should also be noted that the first test case may be a currently ongoing test case, or may be a test case determined based on the received selection operation of the tester.

在一个实施例中,测试日志的显示方法还包括以下流程:In one embodiment, the display method of the test log further includes the following processes:

在所述图形用户界面上的第三区域,显示至少一个测试用例。In the third area on the graphical user interface, at least one test case is displayed.

接收对所述至少一个测试用例的第二选中操作,将所述第二选中操作选中的测试用例确定为所述第一测试用例。A second selection operation for the at least one test case is received, and the test case selected by the second selection operation is determined as the first test case.

实际应用中,测试人员可以根据第三区域显示的全部测试用例及每个测试用例的执行状态,进行该第二选中操作。第二选中操作可以是单击鼠标、双击鼠标、单击触控、框选触控等等。In practical applications, the tester can perform the second selection operation according to all the test cases displayed in the third area and the execution status of each test case. The second selection operation may be a single mouse click, a double click of the mouse, a single touch touch, a frame selection touch, and the like.

在步骤202中,在一些可能的实施例中,至少显示与所述测试脚本的至少一个测试指令对应的测试日志,是指与所述测试脚本的至少一个测试指令对应的测试日志不足以填满第二显示区域的测试日志窗口时,可以显示该测试日志的上下文。In step 202, in some possible embodiments, at least displaying the test log corresponding to at least one test instruction of the test script means that the test log corresponding to at least one test instruction of the test script is not enough to fill up In the test log window of the second display area, the context of the test log can be displayed.

在另一些可能的实施例中,至少显示与所述测试脚本的至少一个测试指令对应的测试日志,可以是指显示显示与测试脚本的至少一个测试步骤对应的测试日志,该至少一个测试步骤包括上述至少一个测试指令。In some other possible embodiments, displaying at least a test log corresponding to at least one test instruction of the test script may refer to displaying and displaying a test log corresponding to at least one test step of the test script, where the at least one test step includes at least one of the above test instructions.

针对步骤202的具体执行方式,可以分为以下两种情况。The specific execution manner of step 202 can be divided into the following two cases.

情况1:步骤202包括以下具体流程:Case 1: Step 202 includes the following specific flow:

在所述第一区域,接收对所述测试脚本中的至少一个测试指令的第一选中操作;in the first area, receiving a first selection operation for at least one test instruction in the test script;

在所述第二区域,至少显示与所述第一选中操作选中的至少一个测试指令对应的测试日志。In the second area, at least a test log corresponding to at least one test instruction selected by the first selection operation is displayed.

这里,对所述测试脚本的至少一个测试指令的第一选中操作,可以是使用鼠标或触控笔或手指对显示在GUI第一区域的测试脚本的一个测试指令进行单击,也可以是框选多个相邻的测试指令,还可以是分别双击多个不相邻的测试指令。Here, the first selection operation for at least one test instruction of the test script may be to use a mouse, a stylus or a finger to click a test instruction of the test script displayed in the first area of the GUI, or it may be a frame Select multiple adjacent test instructions, or double-click multiple non-adjacent test instructions respectively.

一个实施例中,在测试脚本显示窗口单击某行测试指令,在测试日志窗口就自动定位到该测试指令对应的测试日志位置。In one embodiment, clicking a test instruction in a row in the test script display window will automatically locate the test log position corresponding to the test instruction in the test log window.

另一个实施例中,所述至少显示与所述选中操作选中的至少一个测试指令对应的测试日志,包括:In another embodiment, the at least displaying a test log corresponding to at least one test instruction selected by the selecting operation includes:

在所述第一选中操作选中了至少两个测试指令的情况下,在所述第二区域加载至少两个窗口,并在所述至少两个窗口的每个窗口中分别显示与所述第一选中操作选中的其中一个测试指令对应的测试日志。In the case that at least two test instructions are selected by the first selection operation, at least two windows are loaded in the second area, and each window of the at least two windows is displayed with the first Select the test log corresponding to one of the test commands selected by the operation.

这里,为了同时显示多个感兴趣的测试指令,可以分别双击多个测试指令,对于每个被双击的测试指令,电子设备将在GUI上第二区域跳出一个窗口,用于至少显示与被选中的测试指令对应的测试日志的详细内容。Here, in order to display multiple interesting test instructions at the same time, multiple test instructions can be double-clicked respectively. For each double-clicked test instruction, the electronic device will pop up a window in the second area on the GUI for at least displaying and selecting the test instruction. Details of the test log corresponding to the test command.

情况2:步骤202包括以下具体流程:Case 2: Step 202 includes the following specific flow:

确定所述测试脚本当前执行的至少一个测试指令。At least one test instruction currently executed by the test script is determined.

在所述图形用户界面上的第二区域,至少显示与所述测试脚本当前执行的至少一个测试指令对应的测试日志。In the second area on the graphical user interface, at least a test log corresponding to at least one test instruction currently executed by the test script is displayed.

实际应用中,在没有特别选中测试脚本中某一测试指令的情况下,在GUI第二区域可以显示与测试脚本当前执行的至少一个测试指令对应的测试日志。In practical applications, if a certain test command in the test script is not particularly selected, a test log corresponding to at least one test command currently executed by the test script may be displayed in the second area of the GUI.

一些可能的实施例中,测试日志的显示方法,还包括以下步骤:In some possible embodiments, the display method of the test log further includes the following steps:

根据测试步骤包括的至少一个测试指令中每个测试指令的执行状态,确定对应的测试步骤的执行状态。The execution state of the corresponding test step is determined according to the execution state of each test instruction in the at least one test instruction included in the test step.

在所述第一区域,实时显示对应的测试步骤的执行状态。In the first area, the execution status of the corresponding test step is displayed in real time.

需要说明的是,在第一区域显示的测试脚本包括测试中的各个测试步骤,实时显示测试脚本中各测试步骤的执行状态能让测试人员直观了解正在执行的测试用例的测试进度,并且测试人员无需复杂的查找操作即可达成该目的,有益于提高GUI的用户体验。It should be noted that the test script displayed in the first area includes each test step in the test, and the real-time display of the execution status of each test step in the test script allows the tester to intuitively understand the test progress of the test case being executed, and the tester This goal can be achieved without complicated search operations, which is beneficial to improve the user experience of the GUI.

实际应用中,电子设备可以监控测试脚本的执行情况,得到监测结果。然后基于监测结果,实时更新测试脚本中各测试步骤的执行状态。In practical applications, the electronic device can monitor the execution of the test script and obtain the monitoring result. Then, based on the monitoring results, the execution status of each test step in the test script is updated in real time.

在一些可能的实施方式中,所述实时显示对应的测试步骤的执行状态,包括以下之一:In some possible implementations, the real-time display of the execution status of the corresponding test step includes one of the following:

在测试步骤执行成功的情况下,为对应的测试步骤渲染第一标记;In the case that the test step is successfully executed, render the first mark for the corresponding test step;

在测试步骤执行失败的情况下,为对应的测试步骤渲染第二标记;In the case that the execution of the test step fails, rendering a second marker for the corresponding test step;

在测试步骤正在执行的情况下,为对应的测试步骤渲染第三标记。With the test step being executed, a third marker is rendered for the corresponding test step.

举例来说,可以使用绿色底色标记执行成功的测试步骤,使用红色底色标记执行失败的测试步骤,使用蓝色底色标记正在执行的测试步骤,使用灰色底色标记暂未执行的测试步骤。For example, successful test steps can be marked with a green background, failed test steps can be marked with a red background, ongoing test steps can be marked with a blue background, and pending test steps can be marked with a gray background .

在一些可能的实施例中,测试日志的显示方法,还包括以下步骤:In some possible embodiments, the method for displaying the test log further includes the following steps:

在所述第一区域中,为所述测试脚本中的每个测试指令加载对应的执行状态栏。In the first area, a corresponding execution status bar is loaded for each test instruction in the test script.

在所述测试脚本中的每个测试指令对应的执行状态栏中,显示对应的测试指令的执行次数及每次执行对应的执行结果。In the execution status bar corresponding to each test instruction in the test script, the execution times of the corresponding test instruction and the execution result corresponding to each execution are displayed.

需要说明的是,在测试脚本中,某些测试指令可能被配置为要执行至少两次,在这种情况下,使用渲染标记测试步骤的执行情况,可能存在无法完整记录测试执行细节的问题。对此,可以选择在测试脚本中的每个测试指令对应的执行状态栏中显示对应的测试指令的执行次数及每次执行对应的执行结果。举例来说,在执行状态栏可以使用以下显示格式:“第一次执行成功,第二次执行失败…”。It should be noted that in a test script, some test instructions may be configured to be executed at least twice. In this case, using rendering to mark the execution of test steps, there may be a problem that the details of test execution cannot be completely recorded. In this regard, you can choose to display the execution times of the corresponding test instruction and the execution result corresponding to each execution in the execution status bar corresponding to each test instruction in the test script. For example, the following display format can be used in the execution status bar: "The first execution succeeds, the second execution fails...".

在一些可能的实施例中,在至少显示与所述测试脚本中的至少一个测试指令对应的测试日志时,本申请中测试日志的显示方法还包括以下至少之一:In some possible embodiments, when at least the test log corresponding to at least one test instruction in the test script is displayed, the method for displaying the test log in this application further includes at least one of the following:

为执行成功的测试指令对应的测试日志,渲染第一标记;Render the first mark for the test log corresponding to the successfully executed test command;

为执行失败的测试指令对应的测试日志,渲染第二标记。Renders a second marker for the test log corresponding to the failed test command.

实际应用中,电子设备可以用红色渲染与执行成功的测试指令对应的测试日志,用绿色渲染与执行失败的测试指令对应的测试日志,用黄色渲染与正在执行的测试指令对应的测试日志。In practical applications, the electronic device can render the test log corresponding to the successfully executed test command in red, the test log corresponding to the failed test command in green, and the test log corresponding to the executing test command in yellow.

本申请实施例中,GUI界面增强展示测试用例脚本信息,避免了相关技术中通过查找关键字的方式在测试日志窗口中查找某测试步骤的状态及在测试日志中的行号,增加跟踪机制捕捉测试脚本的执行状态并记录,并且及时更新GUI界面中相关步骤的执行状态,方便了用户直观监控测试执行情况。GUI界面增加测试步骤自动定位测试日志功能,缩减了测试人员的工作复杂度和工作量。In the embodiment of the present application, the GUI interface is enhanced to display test case script information, which avoids searching for the status of a test step and the line number in the test log in the test log window by searching for keywords in the related art, and increases the tracking mechanism to capture The execution status of the test script is recorded, and the execution status of the relevant steps in the GUI interface is updated in time, which is convenient for users to monitor the test execution situation intuitively. The GUI interface adds the function of automatically locating test logs for test steps, reducing the work complexity and workload of testers.

下面结合图3对本申请实施例进行进一步说明。图3示出了本申请提供的一种GUI示意图与示例流程图。这里,图3示意性的展示了GUI的一种可能布局:第一区域与第三区域并列,第二区域在第一区域与第三区域下。第一区域中显示的每行信息包括以下表项:序号、测试脚本的测试指令、执行状态栏。图3还展示了本申请测试日志的显示方法的一个示例流程。具体地,该示例包括以下步骤:The embodiment of the present application will be further described below with reference to FIG. 3 . FIG. 3 shows a schematic diagram and an example flowchart of a GUI provided by the present application. Here, FIG. 3 schematically shows a possible layout of the GUI: the first area is juxtaposed with the third area, and the second area is under the first area and the third area. Each line of information displayed in the first area includes the following table items: serial number, test instruction of the test script, and execution status bar. FIG. 3 also shows an example flow of the display method of the test log of the present application. Specifically, this example includes the following steps:

步骤1:电子设备接收对测试用例二在第三区域的选中操作。Step 1: The electronic device receives the selection operation of the test case 2 in the third area.

步骤2:电子设备在第一区域显示测试用例二的测试脚本。Step 2: The electronic device displays the test script of test case 2 in the first area.

步骤3:电子设备接收对测试脚本中第二测试指令的选中操作。Step 3: The electronic device receives the selection operation for the second test instruction in the test script.

步骤4:电子设备在第二区域至少显示与第二测试指令相对应的测试日志。Step 4: The electronic device displays at least the test log corresponding to the second test instruction in the second area.

这里,选中操作可以是单击,也可以是框选、滑动等其他操作。Here, the selection operation can be a click, or other operations such as box selection and sliding.

本申请实施例中,实现了将测试人员的日常操作仅限于GUI界面上,不需要操作测试脚本等底层文件。使测试人员工作更便利,也避免了由于人工误操作导致底层文件被破坏。同时减轻了测试人员定位具体测试步骤对应的测试日志的工作难度,提升了GUI的用户体验。In the embodiment of the present application, the daily operation of the tester is limited to the GUI interface, and there is no need to operate the underlying files such as the test script. It makes the work of testers more convenient, and avoids the damage of the underlying files due to manual misoperation. At the same time, the difficulty of locating the test log corresponding to the specific test step is reduced, and the user experience of the GUI is improved.

为实现本申请实施例的测试日志的显示方法,本申请实施例还提供一种电子设备,如图4所示,该电子设备包括:In order to realize the display method of the test log according to the embodiment of the present application, the embodiment of the present application further provides an electronic device. As shown in FIG. 4 , the electronic device includes:

第一显示单元401,用于在图形用户界面上的第一区域,显示与第一测试用例对应的测试脚本;The first display unit 401 is used to display the test script corresponding to the first test case in the first area on the graphical user interface;

第二显示单元402,用于在所述图形用户界面上的第二区域,至少显示与所述测试脚本中的至少一个测试指令对应的测试日志。The second display unit 402 is configured to display at least a test log corresponding to at least one test instruction in the test script in the second area on the graphical user interface.

一实施例中,第二显示单元402,具体用于:In one embodiment, the second display unit 402 is specifically used for:

在所述第一区域,接收对所述测试脚本中的至少一个测试指令的第一选中操作;in the first area, receiving a first selection operation for at least one test instruction in the test script;

在所述第二区域,至少显示与所述第一选中操作选中的至少一个测试指令对应的测试日志。In the second area, at least a test log corresponding to at least one test instruction selected by the first selection operation is displayed.

一实施例中,在至少显示与所述选中操作选中的至少一个测试指令对应的测试日志时,第二显示单元402用于:In one embodiment, when at least displaying a test log corresponding to at least one test instruction selected by the selection operation, the second display unit 402 is configured to:

在所述第一选中操作选中了至少两个测试指令的情况下,在所述第二区域加载至少两个窗口,并在所述至少两个窗口的每个窗口中分别显示与所述第一选中操作选中的其中一个测试指令对应的测试日志。In the case that at least two test instructions are selected by the first selection operation, at least two windows are loaded in the second area, and each window of the at least two windows is displayed with the first Select the test log corresponding to one of the test commands selected by the operation.

一实施例中,第二显示单元402,具体用于:In one embodiment, the second display unit 402 is specifically used for:

确定所述测试脚本当前执行的至少一个测试指令;determining at least one test instruction currently executed by the test script;

在所述图形用户界面上的第二区域,至少显示与所述测试脚本当前执行的至少一个测试指令对应的测试日志。In the second area on the graphical user interface, at least a test log corresponding to at least one test instruction currently executed by the test script is displayed.

一实施例中,所述测试脚本包括至少一个测试步骤,每个测试步骤包括至少一个测试指令,电子设备还包括:In one embodiment, the test script includes at least one test step, each test step includes at least one test instruction, and the electronic device further includes:

第一确定单元,用于根据测试步骤包括的至少一个测试指令中每个测试指令的执行状态,确定对应的测试步骤的执行状态;a first determining unit, configured to determine the execution state of the corresponding test step according to the execution state of each test instruction in the at least one test instruction included in the test step;

第一显示单元401,还用于:在所述第一区域,实时显示对应测试步骤的执行状态。The first display unit 401 is further configured to: in the first area, display the execution state of the corresponding test step in real time.

一实施例中,在实时显示对应的测试步骤的执行状态时,第一显示单元401,还用于以下之一:In one embodiment, when displaying the execution state of the corresponding test step in real time, the first display unit 401 is further used for one of the following:

在测试步骤执行成功的情况下,为对应的测试步骤渲染第一标记;In the case that the test step is successfully executed, render the first mark for the corresponding test step;

在测试步骤执行失败的情况下,为对应的测试步骤渲染第二标记;In the case that the execution of the test step fails, rendering a second marker for the corresponding test step;

在测试步骤正在执行的情况下,为对应的测试步骤渲染第三标记。With the test step being executed, a third marker is rendered for the corresponding test step.

一实施例中,电子设备还包括:In one embodiment, the electronic device further includes:

加载单元,用于在所述第一区域中,为所述测试脚本中的每个测试指令加载对应的执行状态栏;a loading unit, configured to load a corresponding execution status bar for each test instruction in the test script in the first area;

第三显示单元,用于在所述测试脚本中的每个测试指令对应的执行状态栏中,显示对应的测试指令的执行次数及每次执行对应的执行结果。The third display unit is configured to display, in the execution status bar corresponding to each test instruction in the test script, the execution times of the corresponding test instruction and the execution result corresponding to each execution.

一实施例中,电子设备还包括:In one embodiment, the electronic device further includes:

第四显示单元,用于在所述图形用户界面上的第三区域,显示至少一个测试用例;a fourth display unit, used for displaying at least one test case in the third area on the graphical user interface;

第二确定单元,用于接收对所述至少一个测试用例的第二选中操作,将所述第二选中操作选中的测试用例确定为所述第一测试用例。A second determination unit, configured to receive a second selection operation on the at least one test case, and determine the test case selected by the second selection operation as the first test case.

一实施例中,在至少显示与所述测试脚本中的至少一个测试指令对应的测试日志时,所述电子设备还包括渲染单元,用于以下至少之一:In one embodiment, when at least displaying a test log corresponding to at least one test instruction in the test script, the electronic device further includes a rendering unit for at least one of the following:

为执行成功的测试指令对应的测试日志,渲染第一标记;Render the first mark for the test log corresponding to the successfully executed test command;

为执行失败的测试指令对应的测试日志,渲染第二标记。Renders a second marker for the test log corresponding to the failed test command.

实际应用时,第一显示单元401、第二显示单元402和第一确定单元、加载单元、第三显示单元、第四显示单元、第二确定单元、渲染单元可由电子设备中的处理器来实现,当然,处理器需要运行存储器中存储的程序来实现上述各程序模块的功能。In practical application, the first display unit 401, the second display unit 402, the first determination unit, the loading unit, the third display unit, the fourth display unit, the second determination unit, and the rendering unit can be implemented by the processor in the electronic device Of course, the processor needs to run the program stored in the memory to realize the functions of the above program modules.

需要说明的是,上述图4中,实施例提供的电子设备仅以上述各程序模块的划分进行举例说明,实际应用中,可以根据需要而将上述处理分配由不同的程序模块完成,即将电子设备的内部结构划分成不同的程序模块,以完成以上描述的全部或者部分处理。另外,上述实施例提供的电子设备与测试日志的显示方法实施例属于同一构思,其具体实现过程详见方法实施例,这里不再赘述。It should be noted that, in the above FIG. 4 , the electronic device provided by the embodiment is only illustrated by the division of the above-mentioned program modules. The internal structure is divided into different program modules to complete all or part of the processing described above. In addition, the electronic device provided in the above-mentioned embodiments and the embodiment of the method for displaying the test log belong to the same concept, and the specific implementation process thereof is detailed in the method embodiment, which will not be repeated here.

基于上述程序模块的硬件实现,且为了实现本申请实施例的方法,本申请实施例还提供了一种电子设备。图5是本申请实施例提供的一种电子设备500的硬件组成结构示意图。图5所示的电子设备500包括处理器510,处理器510可以从存储器中调用并运行计算机程序,以实现本申请实施例中的方法。Based on the hardware implementation of the above program modules, and in order to implement the method of the embodiment of the present application, the embodiment of the present application further provides an electronic device. FIG. 5 is a schematic structural diagram of a hardware composition of an electronic device 500 provided by an embodiment of the present application. The electronic device 500 shown in FIG. 5 includes a processor 510, and the processor 510 can call and run a computer program from a memory, so as to implement the method in the embodiment of the present application.

可选地,如图5所示,电子设备500还可以包括存储器520。其中,处理器510可以从存储器520中调用并运行计算机程序,以实现本申请实施例中的方法。Optionally, as shown in FIG. 5 , the electronic device 500 may further include a memory 520 . The processor 510 may call and run a computer program from the memory 520 to implement the methods in the embodiments of the present application.

其中,存储器520可以是独立于处理器510的一个单独的器件,也可以集成在处理器510中。The memory 520 may be a separate device independent of the processor 510 , or may be integrated in the processor 510 .

可选地,如图5所示,电子设备500还可以包括收发器530,处理器510可以控制该收发器530与其他设备进行通信,具体地,可以向其他设备发送信息或数据,或接收其他设备发送的信息或数据。Optionally, as shown in FIG. 5 , the electronic device 500 may further include a transceiver 530, and the processor 510 may control the transceiver 530 to communicate with other devices, specifically, may send information or data to other devices, or receive other Information or data sent by the device.

其中,收发器530可以包括发射机和接收机。收发器530还可以进一步包括天线,天线的数量可以为一个或多个。Among them, the transceiver 530 may include a transmitter and a receiver. The transceiver 530 may further include antennas, and the number of the antennas may be one or more.

可选地,该电子设备500可以实现本申请实施例的各个测试日志的显示方法的相应流程,为了简洁,在此不再赘述。Optionally, the electronic device 500 can implement the corresponding processes of the display methods of each test log in the embodiments of the present application, which are not repeated here for brevity.

可选地,该电子设备500可以是本申请实施例的各个方法中的电子设备。Optionally, the electronic device 500 may be the electronic device in each method of the embodiments of the present application.

本申请实施例中的存储器用于存储各种类型的数据以支持电子设备中的操作。这些数据的示例包括:用于在相关设备上操作的任何计算机程序。The memory in the embodiments of the present application is used to store various types of data to support operations in the electronic device. Examples of such data include: any computer program used to operate on the relevant device.

可以理解,存储器可以是易失性存储器或非易失性存储器,也可包括易失性和非易失性存储器两者。其中,非易失性存储器可以是只读存储器(ROM,Read Only Memory)、可编程只读存储器(PROM,Programmable Read-Only Memory)、可擦除可编程只读存储器(EPROM,Erasable Programmable Read-Only Memory)、电可擦除可编程只读存储器(EEPROM,Electrically Erasable Programmable Read-Only Memory)、磁性随机存取存储器(FRAM,ferromagnetic random access memory)、快闪存储器(Flash Memory)、磁表面存储器、光盘、或只读光盘(CD-ROM,Compact Disc Read-Only Memory);磁表面存储器可以是磁盘存储器或磁带存储器。易失性存储器可以是随机存取存储器(RAM,Random AccessMemory),其用作外部高速缓存。通过示例性但不是限制性说明,许多形式的RAM可用,例如静态随机存取存储器(SRAM,Static Random Access Memory)、同步静态随机存取存储器(SSRAM,Synchronous Static Random Access Memory)、动态随机存取存储器(DRAM,Dynamic Random Access Memory)、同步动态随机存取存储器(SDRAM,SynchronousDynamic Random Access Memory)、双倍数据速率同步动态随机存取存储器(DDRSDRAM,Double Data Rate Synchronous Dynamic Random Access Memory)、增强型同步动态随机存取存储器(ESDRAM,Enhanced Synchronous Dynamic Random Access Memory)、同步连接动态随机存取存储器(SLDRAM,SyncLink Dynamic Random Access Memory)、直接内存总线随机存取存储器(DRRAM,Direct Rambus Random Access Memory)。本申请实施例描述的存储器旨在包括但不限于这些和任意其它适合类型的存储器。It will be appreciated that the memory may be either volatile memory or non-volatile memory, and may include both volatile and non-volatile memory. Among them, the non-volatile memory may be a read-only memory (ROM, Read Only Memory), a programmable read-only memory (PROM, Programmable Read-Only Memory), an erasable programmable read-only memory (EPROM, Erasable Programmable Read-only memory) Only Memory), Electrically Erasable Programmable Read-Only Memory (EEPROM, Electrically Erasable Programmable Read-Only Memory), Magnetic Random Access Memory (FRAM, ferromagnetic random access memory), Flash Memory (Flash Memory), Magnetic Surface Memory , CD-ROM, or Compact Disc Read-Only Memory (CD-ROM, Compact Disc Read-Only Memory); the magnetic surface memory can be a magnetic disk memory or a tape memory. The volatile memory may be Random Access Memory (RAM), which is used as an external cache memory. By way of example and not limitation, many forms of RAM are available, such as Static Random Access Memory (SRAM), Synchronous Static Random Access Memory (SSRAM), Dynamic Random Access Memory Memory (DRAM, Dynamic Random Access Memory), Synchronous Dynamic Random Access Memory (SDRAM, SynchronousDynamic Random Access Memory), Double Data Rate Synchronous Dynamic Random Access Memory (DDRSDRAM, Double Data Rate Synchronous Dynamic Random Access Memory), Enhanced Synchronous Dynamic Random Access Memory (ESDRAM, Enhanced Synchronous Dynamic Random Access Memory), Synchronous Link Dynamic Random Access Memory (SLDRAM, SyncLink Dynamic Random Access Memory), Direct Memory Bus Random Access Memory (DRRAM, Direct Rambus Random Access Memory) . The memories described in the embodiments of the present application are intended to include, but not be limited to, these and any other suitable types of memories.

上述本申请实施例揭示的方法可以应用于处理器中,或者由处理器实现。处理器可能是一种集成电路芯片,具有信号的处理能力。在实现过程中,上述方法的各步骤可以通过处理器中的硬件的集成逻辑电路或者软件形式的指令完成。上述的处理器可以是通用处理器、DSP,或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。处理器可以实现或者执行本申请实施例中的公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者任何常规的处理器等。结合本申请实施例所公开的方法的步骤,可以直接体现为硬件译码处理器执行完成,或者用译码处理器中的硬件及软件模块组合执行完成。软件模块可以位于存储介质中,该存储介质位于存储器,处理器读取存储器中的程序,结合其硬件完成前述方法的步骤。The methods disclosed in the above embodiments of the present application may be applied to a processor, or implemented by a processor. A processor may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above-mentioned method can be completed by a hardware integrated logic circuit in a processor or an instruction in the form of software. The above-mentioned processors may be general-purpose processors, DSPs, or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, and the like. The processor may implement or execute the methods, steps, and logical block diagrams disclosed in the embodiments of this application. A general purpose processor may be a microprocessor or any conventional processor or the like. The steps of the methods disclosed in the embodiments of the present application can be directly embodied as being executed by a hardware decoding processor, or executed by a combination of hardware and software modules in the decoding processor. The software module may be located in a storage medium, the storage medium is located in a memory, the processor reads the program in the memory, and completes the steps of the foregoing method in combination with its hardware.

处理器执行所述程序时实现本申请实施例的各个方法中的相应流程,为了简洁,在此不再赘述。When the processor executes the program, the corresponding process in each method of the embodiments of the present application is implemented, which is not repeated here for brevity.

在示例性实施例中,本申请实施例还提供了一种存储介质,即计算机存储介质,具体为计算机可读存储介质,例如包括存储计算机程序的存储器,上述计算机程序可由处理器执行,以完成前述方法所述步骤。计算机可读存储介质可以是FRAM、ROM、PROM、EPROM、EEPROM、Flash Memory、磁表面存储器、光盘、或CD-ROM等存储器。In an exemplary embodiment, an embodiment of the present application further provides a storage medium, that is, a computer storage medium, specifically a computer-readable storage medium, for example, including a memory for storing a computer program, and the above-mentioned computer program can be executed by a processor to complete the steps described in the preceding method. The computer-readable storage medium may be memory such as FRAM, ROM, PROM, EPROM, EEPROM, Flash Memory, magnetic surface memory, optical disk, or CD-ROM.

在本申请所提供的几个实施例中,应该理解到,所揭露的装置、终端和方法,可以通过其它的方式实现。以上所描述的设备实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,如:多个单元或组件可以结合,或可以集成到另一个系统,或一些特征可以忽略,或不执行。另外,所显示或讨论的各组成部分相互之间的耦合、或直接耦合、或通信连接可以是通过一些接口,设备或单元的间接耦合或通信连接,可以是电性的、机械的或其它形式的。In the several embodiments provided in this application, it should be understood that the disclosed apparatus, terminal and method may be implemented in other manners. The device embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components may be combined, or Can be integrated into another system, or some features can be ignored, or not implemented. In addition, the coupling, or direct coupling, or communication connection between the components shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be electrical, mechanical or other forms. of.

上述作为分离部件说明的单元可以是、或也可以不是物理上分开的,作为单元显示的部件可以是、或也可以不是物理单元,即可以位于一个地方,也可以分布到多个网络单元上;可以根据实际的需要选择其中的部分或全部单元来实现本实施例方案的目的。The unit described above as a separate component may or may not be physically separated, and the component displayed as a unit may or may not be a physical unit, that is, it may be located in one place or distributed to multiple network units; Some or all of the units may be selected according to actual needs to achieve the purpose of the solution in this embodiment.

另外,在本申请各实施例中的各功能单元可以全部集成在一个处理单元中,也可以是各单元分别单独作为一个单元,也可以两个或两个以上单元集成在一个单元中;上述集成的单元既可以采用硬件的形式实现,也可以采用硬件加软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present application may all be integrated into one processing unit, or each unit may be separately used as a unit, or two or more units may be integrated into one unit; the above integration The unit can be implemented either in the form of hardware or in the form of hardware plus software functional units.

本领域普通技术人员可以理解:实现上述方法实施例的全部或部分步骤可以通过程序指令相关的硬件来完成,前述的程序可以存储于一计算机可读取存储介质中,该程序在执行时,执行包括上述方法实施例的步骤;而前述的存储介质包括:移动存储设备、ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质。Those of ordinary skill in the art can understand that all or part of the steps of implementing the above method embodiments can be completed by program instructions related to hardware, the aforementioned program can be stored in a computer-readable storage medium, and when the program is executed, execute It includes the steps of the above method embodiments; and the aforementioned storage medium includes: a removable storage device, a ROM, a RAM, a magnetic disk or an optical disk and other media that can store program codes.

或者,本申请上述集成的单元如果以软件功能模块的形式实现并作为独立的产品销售或使用时,也可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请实施例的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台电子设备(可以是个人计算机、服务器、或者网络设备等)执行本申请各个实施例所述方法的全部或部分。而前述的存储介质包括:移动存储设备、ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质。Alternatively, if the above-mentioned integrated units of the present application are implemented in the form of software function modules and sold or used as independent products, they may also be stored in a computer-readable storage medium. Based on such understanding, the technical solutions of the embodiments of the present application can be embodied in the form of software products in essence or in the parts that make contributions to the prior art. The computer software products are stored in a storage medium and include several instructions for An electronic device (which may be a personal computer, a server, or a network device, etc.) is caused to execute all or part of the methods described in the various embodiments of the present application. The aforementioned storage medium includes: a removable storage device, a ROM, a RAM, a magnetic disk or an optical disk and other mediums that can store program codes.

以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以所述权利要求的保护范围为准。The above are only specific embodiments of the present application, but the protection scope of the present application is not limited to this. should be covered within the scope of protection of this application. Therefore, the protection scope of the present application should be subject to the protection scope of the claims.

Claims (10)

1. A display method of a test log is characterized in that the method comprises the following steps:
displaying a test script corresponding to the first test case in a first area on the graphical user interface;
and at least displaying a test log corresponding to at least one test instruction in the test script in a second area on the graphical user interface.
2. The method of claim 1, wherein the displaying at least a test log corresponding to at least one test instruction in the test script in a second area of the graphical user interface comprises:
receiving a first selected operation of at least one test instruction in the test script in the first area;
and at least displaying a test log corresponding to at least one test instruction selected by the first selected operation in the second area.
3. The method according to claim 2, wherein the displaying at least a test log corresponding to at least one test instruction selected by the selected operation comprises:
and under the condition that at least two test instructions are selected in the first selection operation, loading at least two windows in the second area, and respectively displaying a test log corresponding to one test instruction selected in the first selection operation in each window of the at least two windows.
4. The method of claim 1, wherein the test script comprises at least one test step; each testing step comprises at least one testing instruction, the method further comprising:
determining the execution state of the corresponding test step according to the execution state of each test instruction in at least one test instruction included in the test step;
and displaying the execution state of the corresponding test step in real time in the first area.
5. The method of claim 1, further comprising:
loading a corresponding execution status bar for each test instruction in the test script in the first area;
and displaying the execution times of the corresponding test instruction and the execution result corresponding to each execution in the execution status bar corresponding to each test instruction in the test script.
6. The method of claim 1, further comprising:
displaying at least one test case in a third area on the graphical user interface;
and receiving a second selected operation of the at least one test case, and determining the test case selected by the second selected operation as the first test case.
7. The method of claim 1, wherein when displaying at least a test log corresponding to at least one test instruction in the test script, the method further comprises at least one of:
rendering a first mark for a test log corresponding to a test instruction which is successfully executed;
and rendering a second mark for executing the test log corresponding to the failed test instruction.
8. An electronic device, comprising:
the first display unit is used for displaying a test script corresponding to the first test case in a first area on the graphical user interface;
and the second display unit is used for at least displaying the test log corresponding to at least one test instruction in the test script in a second area on the graphical user interface.
9. An electronic device, comprising: a processor and a memory for storing a computer program capable of running on the processor,
wherein the processor is adapted to perform the steps of the method of any one of claims 1 to 7 when running the computer program.
10. A storage medium having a computer program stored thereon, the computer program, when being executed by a processor, performing the steps of the method of any one of claims 1 to 7.
CN202010784822.9A 2020-08-06 2020-08-06 Display method of test log, electronic device and storage medium Withdrawn CN111930456A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010784822.9A CN111930456A (en) 2020-08-06 2020-08-06 Display method of test log, electronic device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010784822.9A CN111930456A (en) 2020-08-06 2020-08-06 Display method of test log, electronic device and storage medium

Publications (1)

Publication Number Publication Date
CN111930456A true CN111930456A (en) 2020-11-13

Family

ID=73307712

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010784822.9A Withdrawn CN111930456A (en) 2020-08-06 2020-08-06 Display method of test log, electronic device and storage medium

Country Status (1)

Country Link
CN (1) CN111930456A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113094265A (en) * 2021-04-01 2021-07-09 山石网科通信技术股份有限公司 Analysis method and analysis device for test script and electronic equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108132879A (en) * 2017-12-21 2018-06-08 周舟 Automated software testing method, platform, terminal and medium
CN108776604A (en) * 2018-05-23 2018-11-09 网易(杭州)网络有限公司 The execution method and system of goal task
CN109491888A (en) * 2018-09-29 2019-03-19 中国平安人寿保险股份有限公司 Application compatibility test method, device and computer readable storage medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108132879A (en) * 2017-12-21 2018-06-08 周舟 Automated software testing method, platform, terminal and medium
CN108776604A (en) * 2018-05-23 2018-11-09 网易(杭州)网络有限公司 The execution method and system of goal task
CN109491888A (en) * 2018-09-29 2019-03-19 中国平安人寿保险股份有限公司 Application compatibility test method, device and computer readable storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113094265A (en) * 2021-04-01 2021-07-09 山石网科通信技术股份有限公司 Analysis method and analysis device for test script and electronic equipment
CN113094265B (en) * 2021-04-01 2022-09-09 山石网科通信技术股份有限公司 Analysis method and analysis device for test script and electronic equipment

Similar Documents

Publication Publication Date Title
US11561887B2 (en) Test script debugging using an automated testing framework and UI rendering tree
US11650910B2 (en) Automated testing method and apparatus, storage medium and electronic device
US10956291B2 (en) Method, computer apparatus, and user interface for performing automatic test upon storage devices
US20240029327A1 (en) Multi-dimensional data insight interaction
CN108763076A (en) A kind of Software Automatic Testing Method, device, equipment and medium
US10191838B2 (en) Method and device for checking influence of deleting cache file, and mobile terminal
CN108519943A (en) Test control and test execution device, method and computer storage medium
CN114661806B (en) Design data processing method, device, equipment and medium
US9122791B2 (en) Identifying a storage location for a storage address requested during debugging
CN112667502A (en) Page testing method, device and medium
WO2021204145A1 (en) Verification method, apparatus and device, and storage medium
US20130055218A1 (en) Automating Software Testing
CN109753437B (en) Test program generation method and device, storage medium and electronic equipment
CN111930456A (en) Display method of test log, electronic device and storage medium
CN120123250B (en) Multilingual interface consistency testing method, device, equipment and storage medium
US20070168736A1 (en) Breakpoint groups
US9852048B2 (en) Simulating process variable changes during process runtime
CN116524986B (en) System level testing method and system for storage products
CN114911688A (en) Interface design automation test method and device, terminal equipment and storage medium
CN119537186A (en) Debugging and performance monitoring method, system and device for iOS application development
Barr Find the Bug: A Book of Incorrect Programs
CN113760696A (en) Program problem positioning method and device, electronic equipment and storage medium
CN105446785A (en) Method and system for unloading application program
CN115421749A (en) Hard disk firmware refreshing method, system, device and medium based on Linux system
CN110765022B (en) Method, device, computer equipment and storage medium for automatically testing sample sending SSD

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
WW01 Invention patent application withdrawn after publication
WW01 Invention patent application withdrawn after publication

Application publication date: 20201113