[go: up one dir, main page]

CN115080403A - Templated use case testing system, method, medium and device - Google Patents

Templated use case testing system, method, medium and device Download PDF

Info

Publication number
CN115080403A
CN115080403A CN202210714136.3A CN202210714136A CN115080403A CN 115080403 A CN115080403 A CN 115080403A CN 202210714136 A CN202210714136 A CN 202210714136A CN 115080403 A CN115080403 A CN 115080403A
Authority
CN
China
Prior art keywords
use case
tool
test
module
template
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.)
Pending
Application number
CN202210714136.3A
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.)
Jingdong Technology Information Technology Co Ltd
Original Assignee
Jingdong Technology Information Technology Co 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 Jingdong Technology Information Technology Co Ltd filed Critical Jingdong Technology Information Technology Co Ltd
Priority to CN202210714136.3A priority Critical patent/CN115080403A/en
Publication of CN115080403A publication Critical patent/CN115080403A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • 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
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites
    • 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
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/30Computing systems specially adapted for manufacturing

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)
  • Stored Programmes (AREA)

Abstract

本公开提供一种模板化用例测试系统、方法、存储介质及电子设备;涉及计算机技术领域。所述系统包括:包括:模板管理模块、工具注册模块、运行及跟进模块、报告管理模块;所述模板管理模块,用于响应于设置操作,对用例的模板属性设置;所述工具注册模块,用于对工具进行注册,所述工具用于执行所述用例;所述运行管理和跟进模块,用于获取所述用例的模板属性,根据所述模板属性调用相应的工具进行用例测试并记录测试结果;所述报告管理模块,用于根据预设分析标准,对所述测试结果进行展示。实施本公开实施例的技术方案,可以降低测试用例管理难度和提高测试过程的易评价度。

Figure 202210714136

The present disclosure provides a templated use case testing system, method, storage medium and electronic device, and relates to the technical field of computers. The system includes: a template management module, a tool registration module, an operation and follow-up module, and a report management module; the template management module is used for setting template attributes of a use case in response to a setting operation; the tool registration module , used to register the tool, and the tool is used to execute the use case; the operation management and follow-up module is used to obtain the template attribute of the use case, and call the corresponding tool to test the use case according to the template attribute. Record the test result; the report management module is used for displaying the test result according to the preset analysis standard. Implementing the technical solutions of the embodiments of the present disclosure can reduce the difficulty of test case management and improve the ease of evaluation of the test process.

Figure 202210714136

Description

模板化用例测试系统、方法、介质及设备Templated use case testing system, method, medium and device

技术领域technical field

本公开涉及计算机技术领域,具体而言,涉及一种模板化用例测试系统、模板化用例测试方法、计算机存储介质及终端设备。The present disclosure relates to the field of computer technology, and in particular, to a templated use case testing system, a templated use case testing method, a computer storage medium, and a terminal device.

背景技术Background technique

软件发版之前,需要对软件进行功能测试或是压力测试等等,以完善功能,使得软件可以满足用户需求。Before the software is released, it is necessary to perform functional tests or stress tests on the software to improve the functions and make the software meet the needs of users.

目前的方案是,对测试进行管理,是通过针对特定的测试类型、测试方法、和测试工具分别管理。但是,在测试中通常包括多种测试类型、测试方法和测试工具,导致管理方式多而混乱,且无法完整的查看了解整个测试过程,测试结果难以被统一评价。The current solution is to manage the tests through separate management for specific test types, test methods, and test tools. However, a variety of test types, test methods and test tools are usually included in the test, which leads to many and confusing management methods, and it is impossible to fully view and understand the entire test process, and it is difficult to evaluate the test results in a unified manner.

需要说明的是,在上述背景技术部分公开的信息仅用于加强对本公开的背景的理解,因此可以包括不构成对本领域普通技术人员已知的现有技术的信息。It should be noted that the information disclosed in the above Background section is only for enhancement of understanding of the background of the present disclosure, and therefore may contain information that does not form the prior art that is already known to a person of ordinary skill in the art.

发明内容SUMMARY OF THE INVENTION

本公开实施例的目的在于提供一种模板化用例测试系统及方法进而至少在一定程度上降低用例测试的管理难度和提高测试过程的易评价度。The purpose of the embodiments of the present disclosure is to provide a templated use case testing system and method, thereby reducing the management difficulty of use case testing and improving the ease of evaluation of the testing process at least to a certain extent.

根据本公开的一个方面,提供一种模板化用例测试系统,其特征在于,包括:模板管理模块、工具注册模块、运行及跟进模块、报告管理模块:According to an aspect of the present disclosure, a templated use case testing system is provided, which is characterized by comprising: a template management module, a tool registration module, an operation and follow-up module, and a report management module:

所述模板管理模块用于响应于设置操作,对用例的模板属性设置;The template management module is used for setting the template attribute of the use case in response to the setting operation;

所述工具注册模块用于对工具进行注册,所述工具用于执行所述用例;The tool registration module is used to register a tool, and the tool is used to execute the use case;

所述运行管理和跟进模块用于获取所述用例的模板属性,根据所述模板属性调用相应的工具进行用例测试并记录测试结果;The operation management and follow-up module is used to obtain the template attribute of the use case, and according to the template attribute, call a corresponding tool to test the use case and record the test result;

所述报告管理模块用于根据预设分析标准,对所述测试结果进行展示。The report management module is used to display the test results according to preset analysis standards.

在本公开的一种示例性实施例中,所述工具注册模块用于:In an exemplary embodiment of the present disclosure, the tool registration module is used to:

对工具进行注册之后,对所述工具进行测试,以确定所述工具可用于用例测试。After the tool is registered, the tool is tested to determine that the tool is available for use case testing.

在本公开的一种示例性实施例中,所述运行及跟进模块用于:In an exemplary embodiment of the present disclosure, the operation and follow-up module is used to:

在响应于触发操作之后,根据所述用例的模板属性对用例进行分类;classifying use cases according to their template attributes after responding to the triggering action;

对所述用例分类得到包括非手工用例和手工用例。The use cases are classified to include non-manual use cases and manual use cases.

在本公开的一种示例性实施例中,所述模板管理模块还用于:In an exemplary embodiment of the present disclosure, the template management module is further configured to:

响应于用户选择操作,对新的工具进行注册。A new tool is registered in response to a user selection operation.

在本公开的一种示例性实施例中,所述运行及跟进模块用于:In an exemplary embodiment of the present disclosure, the operation and follow-up module is used to:

响应于触发操作,对至少一个用例进行测试;in response to triggering an action, test at least one use case;

根据所述非手工用例的模板属性,调用相应的工具进行测试;According to the template attribute of the non-manual use case, call the corresponding tool for testing;

实时收集测试进度,同时记录测试结果。Collect test progress in real-time while recording test results.

在本公开的一种示例性实施例中,所述运行及跟进模块用于:In an exemplary embodiment of the present disclosure, the operation and follow-up module is used to:

响应于用户录入操作,记录所述手工用例的测试结果。In response to the user input operation, the test results of the manual use case are recorded.

在本公开的一种示例性实施例中,所述报告管理模块用于:In an exemplary embodiment of the present disclosure, the report management module is used to:

对测试结果进行统计分析,展示不同的测试类型结果并进行统一集成展示,所述测试结果包括但不限于:用例运行结果、日志和图片。Statistical analysis is performed on the test results, and results of different test types are displayed and displayed in a unified manner. The test results include but are not limited to: use case running results, logs, and pictures.

根据本公开的一个方面,提供一种模板化用例测试方法,应用于第一终端,所述方法包括:According to an aspect of the present disclosure, a templated use case testing method is provided, applied to a first terminal, the method comprising:

基于模板管理模块响应于设置操作,对用例的模板属性设置;Based on the template management module, in response to the setting operation, set the template attribute of the use case;

基于工具注册模块对工具进行注册,所述工具用于执行所述用例;registering a tool based on the tool registration module, the tool being used to execute the use case;

基于运行及跟进模块获取所述用例的模板属性,根据所述模板属性调用相应的工具进行用例测试并记录测试结果;Obtain the template attribute of the use case based on the running and follow-up module, call the corresponding tool according to the template attribute to test the use case and record the test result;

基于报告管理模块根据预设分析标准,对所述测试结果进行展示。The report-based management module displays the test results according to preset analysis standards.

在本公开的一种示例性实施例中,还提供一种模板化用例测试方法,在对工具进行注册,所述工具用于执行所述用例的步骤之后,所述方法还包括:In an exemplary embodiment of the present disclosure, a method for testing a templated use case is also provided. After the tool is registered for executing the steps of the use case, the method further includes:

对所述工具进行测试,以确定所述工具可用于用例测试。The tool is tested to determine that the tool can be used for use case testing.

在本公开的一种示例性实施例中,还提供一种模板化用例测试方法,所述获取所述用例的模板属性,根据所述模板属性调用相应的工具进行用例测试并记录测试结果;在响应于触发操作之后,根据所述用例的模板属性对用例进行分类;In an exemplary embodiment of the present disclosure, a method for testing a templated use case is also provided, wherein the template attribute of the use case is obtained, and a corresponding tool is called according to the template attribute to test the use case and record the test result; Classifying use cases according to template attributes of the use cases in response to the triggering operation;

对所述用例分类得到包括非手工用例和手工用例。The use cases are classified to include non-manual use cases and manual use cases.

在本公开的一种示例性实施例中,还提供一种模板化用例测试方法,所述方法还包括:In an exemplary embodiment of the present disclosure, a templated use case testing method is also provided, and the method further includes:

响应于用户选择操作,对新的工具进行注册。A new tool is registered in response to a user selection operation.

在本公开的一种示例性实施例中,还提供一种模板化用例测试方法,所述运行管理和跟进模块用于获取所述用例的模板属性,根据所述模板属性调用相应的工具进行用例测试并记录测试结果的步骤,包括:In an exemplary embodiment of the present disclosure, a method for testing a templated use case is also provided, wherein the operation management and follow-up module is configured to obtain the template attribute of the use case, and call a corresponding tool according to the template attribute to perform the test. Steps to test a use case and record the test results, including:

响应于触发操作,对至少一个用例进行测试;in response to triggering an action, test at least one use case;

根据所述非手工用例的模板属性,调用相应的工具进行测试;According to the template attribute of the non-manual use case, call the corresponding tool for testing;

实时收集测试进度,同时记录测试结果。Collect test progress in real-time while recording test results.

在本公开的一种示例性实施例中,还提供一种模板化用例测试方法,所述方法还包括:In an exemplary embodiment of the present disclosure, a templated use case testing method is also provided, and the method further includes:

响应于用户录入操作,记录所述手工用例的测试结果。In response to the user input operation, the test results of the manual use case are recorded.

在本公开的一种示例性实施例中,还提供一种模板化用例测试方法,所述所述报告管理模块用于根据预设分析标准,对所述测试结果进行展示的步骤,包括:In an exemplary embodiment of the present disclosure, a method for testing a templated use case is also provided, and the step of displaying the test result by the report management module according to a preset analysis standard includes:

对测试结果进行统计分析,展示不同的测试类型结果并进行统一集成展示,所述测试结果包括但不限于:用例运行结果、日志和图片。Statistical analysis is performed on the test results, and results of different test types are displayed and displayed in a unified manner. The test results include but are not limited to: use case running results, logs, and pictures.

根据本公开的一个方面,提供一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现上述任意一项所述的方法。According to one aspect of the present disclosure, there is provided a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, implements any one of the methods described above.

根据本公开的一个方面,提供一种终端设备,包括:处理器;以及存储器,用于存储所述处理器的可执行指令;其中,所述处理器配置为经由执行所述可执行指令来执行上述任意一项所述的方法。According to one aspect of the present disclosure, there is provided a terminal device, comprising: a processor; and a memory for storing executable instructions of the processor; wherein the processor is configured to execute by executing the executable instructions The method of any of the above.

本公开示例性实施例可以具有以下部分或全部有益效果:Exemplary embodiments of the present disclosure may have some or all of the following benefits:

在公开示例实施方式所提供的模板化用例测试系统及方法中,可以通过模板管理模块响应于设置操作,对用例的模板属性设置;通过工具注册模块用于对工具进行注册;通过运行管理和跟进模块用于获取用例的模板属性,根据模板属性调用相应的工具进行用例测试并记录测试结果;通过报告管理模块用于根据预设分析标准,对测试结果进行展示。一方面,通过平台对测试进行清晰的管理,降低管理难度;另一方面,通过各个模块对测试全过程进行完整的了解,便于统一评价衡量,提高用例测试的易评价度。In the templated use case testing system and method provided by the disclosed example embodiments, the template attribute of the use case can be set in response to the setting operation through the template management module; the tool registration module is used to register the tool; through the operation management and follow-up The input module is used to obtain the template attributes of the use case, and the corresponding tools are called according to the template attributes to test the use case and record the test results; the report management module is used to display the test results according to the preset analysis standards. On the one hand, the platform is used to clearly manage the test, which reduces the difficulty of management; on the other hand, the whole process of the test is fully understood through each module, which is convenient for unified evaluation and measurement, and improves the ease of evaluation of the use case test.

应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本公开。It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure.

附图说明Description of drawings

此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本公开的实施例,并与说明书一起用于解释本公开的原理。显而易见地,下面描述中的附图仅仅是本公开的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description serve to explain the principles of the disclosure. Obviously, the drawings in the following description are only some embodiments of the present disclosure, and for those of ordinary skill in the art, other drawings can also be obtained from these drawings without creative effort.

图1示意性示出了根据本公开的一个实施例的模板化用例测试系统的结构示意图;FIG. 1 schematically shows a schematic structural diagram of a templated use case testing system according to an embodiment of the present disclosure;

图2示意性示出了根据本公开的一个实施例中模板管理模块对应的界面示意图;FIG. 2 schematically shows a schematic diagram of an interface corresponding to a template management module according to an embodiment of the present disclosure;

图3示意性示出了根据本公开的一个实施例中对元素进行管理和使用的界面示意图;FIG. 3 schematically shows a schematic diagram of an interface for managing and using elements according to an embodiment of the present disclosure;

图4示意性示出了根据本公开的一个实施例中对工具进行注册的界面示意图;FIG. 4 schematically shows a schematic diagram of an interface for registering a tool according to an embodiment of the present disclosure;

图5示意性示出了根据本公开的一个实施例中对测试结果进行展示的界面示意图;FIG. 5 schematically shows a schematic diagram of an interface for displaying test results according to an embodiment of the present disclosure;

图6示意性示出了根据本公开的一个实施例的模板化用例测试方法的流程示意图;6 schematically shows a schematic flowchart of a templated use case testing method according to an embodiment of the present disclosure;

图7示出本公开示例性实施例中计算机存储介质的结构示意图;FIG. 7 shows a schematic structural diagram of a computer storage medium in an exemplary embodiment of the present disclosure;

图8示出本公开示例性实施例中电子设备的结构示意图。FIG. 8 shows a schematic structural diagram of an electronic device in an exemplary embodiment of the present disclosure.

具体实施方式Detailed ways

现在将参考附图更全面地描述示例实施方式。然而,示例实施方式能够以多种形式实施,且不应被理解为限于在此阐述的范例;相反,提供这些实施方式使得本公开将更加全面和完整,并将示例实施方式的构思全面地传达给本领域的技术人员。所描述的特征、结构或特性可以以任何合适的方式结合在一个或更多实施方式中。在下面的描述中,提供许多具体细节从而给出对本公开的实施方式的充分理解。然而,本领域技术人员将意识到,可以实践本公开的技术方案而省略所述特定细节中的一个或更多,或者可以采用其它的方法、组元、装置、步骤等。在其它情况下,不详细示出或描述公知技术方案以避免喧宾夺主而使得本公开的各方面变得模糊。Example embodiments will now be described more fully with reference to the accompanying drawings. Example embodiments, however, can be embodied in various forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of example embodiments to those skilled in the art. The described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are provided in order to give a thorough understanding of the embodiments of the present disclosure. However, those skilled in the art will appreciate that the technical solutions of the present disclosure may be practiced without one or more of the specific details, or other methods, components, devices, steps, etc. may be employed. In other instances, well-known solutions have not been shown or described in detail to avoid obscuring aspects of the present disclosure.

此外,附图仅为本公开的示意性图解,并非一定是按比例绘制。图中相同的附图标记表示相同或类似的部分,因而将省略对它们的重复描述。附图中所示的一些方框图是功能实体,不一定必须与物理或逻辑上独立的实体相对应。可以采用软件形式来实现这些功能实体,或在一个或多个硬件模块或集成电路中实现这些功能实体,或在不同网络和/或处理器装置和/或微控制器装置中实现这些功能实体。Furthermore, the drawings are merely schematic illustrations of the present disclosure and are not necessarily drawn to scale. The same reference numerals in the drawings denote the same or similar parts, and thus their repeated descriptions will be omitted. Some of the block diagrams shown in the figures are functional entities that do not necessarily necessarily correspond to physically or logically separate entities. These functional entities may be implemented in software, or in one or more hardware modules or integrated circuits, or in different networks and/or processor devices and/or microcontroller devices.

附图中的流程图和框图,图示了按照本公开各种实施例的系统、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段、或代码的一部分,上述模块、程序段、或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。也应当注意,在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个接连地表示的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图或流程图中的每个方框、以及框图或流程图中的方框的组合,可以用执行规定的功能或操作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。The flowchart and block diagrams in the Figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code that contains one or more logical functions for implementing the specified functions executable instructions. It should also be noted that, in some alternative implementations, the functions noted in the blocks may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It is also noted that each block of the block diagrams or flowchart illustrations, and combinations of blocks in the block diagrams or flowchart illustrations, can be implemented in special purpose hardware-based systems that perform the specified functions or operations, or can be implemented using A combination of dedicated hardware and computer instructions is implemented.

描述于本公开实施例中所涉及到的单元可以通过软件的方式实现,也可以通过硬件的方式来实现,所描述的单元也可以设置在处理器中。其中,这些单元的名称在某种情况下并不构成对该单元本身的限定。The units involved in the embodiments of the present disclosure may be implemented in software or hardware, and the described units may also be provided in a processor. Among them, the names of these units do not constitute a limitation on the unit itself under certain circumstances.

作为另一方面,本公开还提供了一种计算机可读存储介质,该计算机可读存储介质可以是上述实施例中描述的终端设备中所包含的;也可以是单独存在,而未装配入该终端设备中。上述计算机可读存储介质承载有一个或者多个程序,当上述一个或者多个程序被一个该终端设备执行时,使得该终端设备实现如下述实施例中所述的方法。As another aspect, the present disclosure also provides a computer-readable storage medium. The computer-readable storage medium may be included in the terminal device described in the above embodiments; in the terminal device. The above-mentioned computer-readable storage medium carries one or more programs, and when the above-mentioned one or more programs are executed by a terminal device, the terminal device can implement the methods described in the following embodiments.

为使本公开的方案能够得到充分理解,图1示出本公开一示例性实施例中模板化用例测试系统的结构示意图。In order to fully understand the solution of the present disclosure, FIG. 1 shows a schematic structural diagram of a templated use case testing system in an exemplary embodiment of the present disclosure.

参考图1,根据本公开的一个实施例的模板化用例测试系统100包括模板管理模块110、工具注册模块120、运行及跟进模块130、报告管理模块140。其中:Referring to FIG. 1 , a templated use case testing system 100 according to an embodiment of the present disclosure includes a template management module 110 , a tool registration module 120 , an operation and follow-up module 130 , and a report management module 140 . in:

模板管理模块110,用于响应于设置操作,对用例的模板属性设置;the template management module 110, configured to set the template attribute of the use case in response to the setting operation;

工具注册模块120,用于对工具进行注册,所述工具用于执行所述用例;a tool registration module 120, configured to register a tool for executing the use case;

运行及跟进模块130,用于获取所述用例的模板属性,根据所述模板属性调用相应的工具进行用例测试并记录测试结果;The running and follow-up module 130 is used to obtain the template attribute of the use case, and according to the template attribute, call a corresponding tool to test the use case and record the test result;

报告管理模块140,用于根据预设分析标准,对所述测试结果进行展示。The report management module 140 is configured to display the test result according to the preset analysis standard.

在本示例实施方式所提供的模板化用例测试系统中,可以通过模板管理模块响应于设置操作,对用例的模板属性设置;通过工具注册模块用于对工具进行注册;通过运行管理和跟进模块用于获取用例的模板属性,根据模板属性调用相应的工具进行用例测试并记录测试结果;通过报告管理模块用于根据预设分析标准,对测试结果进行展示。一方面,通过平台对测试进行清晰的管理,降低管理难度;另一方面,通过各个模块对测试全过程进行完整的了解,便于统一评价衡量,提高用例测试的易评价度。In the templated use case testing system provided by this example embodiment, the template attribute of the use case can be set in response to the setting operation through the template management module; the tool registration module is used to register the tool; the operation management and follow-up module is used to register the tool; It is used to obtain the template attributes of the use case, and according to the template attributes, call the corresponding tool to test the use case and record the test results; the report management module is used to display the test results according to the preset analysis standards. On the one hand, the platform is used to clearly manage the test, which reduces the difficulty of management; on the other hand, the whole process of the test is fully understood through each module, which is convenient for unified evaluation and measurement, and improves the ease of evaluation of the use case test.

以下对图1中的各个模块的具体执行过程进行详细阐述:The specific execution process of each module in FIG. 1 is described in detail below:

模板管理模块110,用于响应于设置操作,对用例的模板属性设置。The template management module 110 is configured to set the template attribute of the use case in response to the setting operation.

测试用例(Test Case)是指对一项特定的软件产品进行测试任务的整体描述,体现测试方案、方法、技术和策略。测试用例包括测试目标、测试环境、输入数据、测试步骤、预期结果、测试脚本等,最终形成文档。即测试用例是为某个特殊目标而编制的一组测试输入、执行条件以及预期结果,用于核实是否满足某个特定软件需求。Test case refers to the overall description of the test task for a specific software product, reflecting the test plan, method, technology and strategy. Test cases include test targets, test environments, input data, test steps, expected results, test scripts, etc., and finally form documents. That is, a test case is a set of test inputs, execution conditions, and expected results prepared for a specific goal to verify whether a specific software requirement is met.

在本公开的示例性实施例中,测试用例本身具有一些属性,例如可靠性、一致性和易用性等等。为了方便对测试用例进行管理和应用,还可以对测试用例设置其他的模板属性对测试用例进行描述。例如可以是常见文本框、文本域、单选、多选等元素,以及富文本、YAML(YAML Ain't Markup Language)、对象简谱((JavaScript Object Notation,简称JSON)、各语言代码等方式的模板输入与校验,元素之间可自由组合并设置相应属性,同时可以将元素扩展为多步骤模式,适配各类型自动化工具所需内容或规划化本不同项目或不同部门的用例描述。In an exemplary embodiment of the present disclosure, the test case itself has properties such as reliability, consistency, and ease of use, among others. In order to facilitate the management and application of the test case, other template attributes can also be set for the test case to describe the test case. For example, it can be elements such as common text boxes, text fields, single selection, and multiple selection, as well as rich text, YAML (YAML Ain't Markup Language), object notation (JavaScript Object Notation, JSON for short), language codes, etc. For template input and verification, elements can be freely combined and corresponding attributes can be set. At the same time, elements can be expanded into multi-step modes to adapt to the content required by various types of automation tools or to plan use case descriptions for different projects or different departments.

举例而言,如图2所示,可以对模板名称进行定义,并注明模板描述。在进行元素管理时,可以显示元素的身份证标识号(Identity document,简称ID)、名称、类型、大小、预设/提示内容、步骤和操作等等内容。如图3所示,可以将元素三和元素四拓展为多步骤模式,元素一和元素二不做调整。For example, as shown in Figure 2, a template name can be defined, and a template description can be noted. During element management, content such as the identity document (Identity document, ID for short), name, type, size, preset/prompt content, steps and operations of the element can be displayed. As shown in Figure 3, elements three and four can be expanded into multi-step mode, and elements one and two are not adjusted.

工具注册模块120,用于对工具进行注册,所述工具用于执行所述用例。The tool registration module 120 is used for registering the tool, and the tool is used for executing the use case.

在本公开的示例性实施例中,自动化测试是指运行软件程序后,自动执行测试用例并在没有任何人为干预的情况下产生测试结果。在测试用例时,使用自动化测试工具测试用例做一些手工测试无法实施的,比如说界面的普通操作,重复性操作,通过固定输入和固定操作而进行的流程化测试;或者手工测试无法覆盖的测试,举例而言包括大量的数据的输入,源代码基本的测试,大量的步骤操作等。通过工具执行所述用例,可以提高测试效率,减少人为测试的错误,能够较快的显示潜在问题。In an exemplary embodiment of the present disclosure, automated testing means that after running a software program, test cases are automatically executed and test results are generated without any human intervention. When testing cases, use automated testing tools to test cases that cannot be implemented by manual testing, such as common interface operations, repetitive operations, and process testing through fixed inputs and fixed operations; or tests that cannot be covered by manual testing. , for example, including the input of a large amount of data, the basic test of the source code, a large number of step operations, etc. Executing the use case through a tool can improve test efficiency, reduce errors in human testing, and can quickly display potential problems.

由于不同的测试用例可能使用不同的自动化测试工具,所以在实际的测试过程中需要使用到较多的测试工具,例如可以使用支持Python、Java、Javascript等各种语言的LambdaTest、支持记录和回放功能的TestComplete或是QMetry Automation Studio等等测试工具。在工具支持接口调用触发功能时,工具注册模块可以与各类型自动化工具进行对接管理,可以是使用默认镜像,编写数据对接脚本进行匹配。可以理解的是,也可以在模块管理模块直接注册新的自动化工具,以提高工具注册的便捷性。Since different test cases may use different automated testing tools, more testing tools need to be used in the actual testing process. For example, you can use LambdaTest that supports Python, Java, Javascript and other languages, and supports recording and playback functions. TestComplete or QMetry Automation Studio and other test tools. When the tool supports the interface call trigger function, the tool registration module can perform docking management with various types of automation tools, and can use the default image and write a data docking script to match. It can be understood that a new automation tool can also be directly registered in the module management module, so as to improve the convenience of tool registration.

另外,如图4所示,在自动化测试工具提供运行参数支持的情况下,通过如图4的界面对全局参数进行管理和使用。In addition, as shown in FIG. 4 , in the case that the automated test tool provides support for running parameters, the global parameters are managed and used through the interface as shown in FIG. 4 .

运行及跟进模块130,用于获取所述用例的模板属性,根据所述模板属性调用相应的工具进行用例测试并记录测试结果。The running and follow-up module 130 is configured to obtain the template attribute of the use case, call a corresponding tool to test the use case according to the template attribute, and record the test result.

在本公开的示例性实施例中,在前述对测试用例的模板属性进行选择定义后,各个测试用例可以与模板属性相对应。运行管理和跟进模块可以获取在模板管理模块对测试用例设置的模板属性,根据模板属性和测试用例之间的映射关系,来确定测试用例。进一步根据模板和测试用例调用相应的自动化工具,通过自动化工具执行用例进行测试。举例而言,对于穿重复测试的测试用例,可以调用QTP(HP QuickTest Professional software)进行测试;根据测试用例的属性判断用于进行Web功能测试、web性能测试、Java应用功能测试、Java API测试等等,则可以调用QEngineAdventNet测试工具。当虚拟模拟用户操作进行测试时,需要自动录制、检测和回放用户的应用操作,则可以调用WinRunner测试工具。在测试的过程中,实时的对用例测试的结果进行记录。In the exemplary embodiment of the present disclosure, after the template attribute of the test case is selected and defined, each test case may correspond to the template attribute. The operation management and follow-up modules can obtain the template attributes set for the test cases in the template management module, and determine the test cases according to the mapping relationship between the template attributes and the test cases. Further call the corresponding automation tool according to the template and test case, and execute the use case for testing through the automation tool. For example, for test cases that pass through repeated tests, QTP (HP QuickTest Professional software) can be called for testing; according to the attributes of the test cases, it can be used for web function test, web performance test, Java application function test, Java API test, etc. etc., you can call the QEngineAdventNet test tool. When virtual simulation of user operations for testing, it is necessary to automatically record, detect and play back the user's application operations, you can call the WinRunner test tool. During the testing process, the results of the use case testing are recorded in real time.

举例而言,如下表所示:For example, as shown in the following table:

Figure BDA0003708239890000081
Figure BDA0003708239890000081

另外,在通过自动化工具对测试用例进行实际的测试之前,还可以通过自动化工具提供的调试接口对自动化工具进行测试,保证后续的用例测试可以正常进行。In addition, before the test case is actually tested by the automation tool, the automation tool can also be tested through the debugging interface provided by the automation tool, so as to ensure that the subsequent use case test can be carried out normally.

报告管理模块140,用于根据预设分析标准,对所述测试结果进行展示。The report management module 140 is configured to display the test result according to the preset analysis standard.

在本公开的示例性实施例中,报告管理模块分析的对象可以是很多个测试用例的测试结果。预设分析标准,可以是多个角度的,例如可以是对各类型的测试用例占比、测试耗时、成功率、有效率等内容等进行分析。例如在一测试计划中可以涉及功能测试,边界测试,异常测试,手工用例等类型的测试用例。测试结果的内容可以是用例运行结果、日志和图片。In an exemplary embodiment of the present disclosure, the object analyzed by the report management module may be the test results of many test cases. The preset analysis standard can be from multiple perspectives, for example, it can analyze the proportion of various types of test cases, the test time-consuming, the success rate, the efficiency and so on. For example, a test plan may involve functional testing, boundary testing, exception testing, manual use cases and other types of test cases. The content of test results can be use case running results, logs and pictures.

可选的,对测试结果进行展示可以通过多种形式,例如饼状图和条形图等等。举例而言,如图5所示饼状图可以包括三个部分,分别第一部分可以是接口测试,第二部分是压力测试,第三部分是手工用例测试。Optionally, the test results can be displayed in various forms, such as pie charts and bar charts. For example, as shown in Figure 5, the pie chart can include three parts, the first part can be interface testing, the second part can be stress testing, and the third part can be manual use case testing.

在本公开的一个实施例中,还提供一种模板化用例测试系统的实现方式。所述运行及跟进模块用于:In an embodiment of the present disclosure, an implementation manner of a templated use case testing system is also provided. The operation and follow-up module is used to:

在响应于触发操作之后,根据所述用例的模板属性对用例进行分类;classifying use cases according to their template attributes after responding to the triggering action;

对所述用例分类得到包括非手工用例和手工用例。The use cases are classified to include non-manual use cases and manual use cases.

非手工用例即自动化测试用例,在该类用例测试时所有的判断校验都需要编写脚本来实现。测试用例步骤之间需要关联关系,可以保证产品主体功能正确完整;手工测试用例能通过人为的逻辑判断校验当前步骤的功能实现是否正确。能较好的处理异常场景,具备一定的跳跃能力能够细致的定位问题。Non-manual use cases are automated test cases, and all judgment verifications in this type of use case testing need to be scripted. The relationship between the test case steps needs to be related to ensure that the main function of the product is correct and complete; the manual test case can verify whether the function implementation of the current step is correct through artificial logic judgment. It can handle abnormal scenes well, and has a certain jumping ability to locate problems in detail.

在本公开的示例性实施例中,用户完成执行出发操作,运行及跟进模块就可以接受到出发执行的命令,根据测试用例的模板属性例如语言代码或是其他元素来对测试用例进行分类。对用例分类后可以得到分类结果包括非手工用例和手工用例,本公开实施例在此不限制分类的方式,根据不同的分类方式可以得到不同的分类结果。In the exemplary embodiment of the present disclosure, after the user completes the start operation, the running and follow-up module can receive the start execution command, and classify the test cases according to their template attributes such as language codes or other elements. The classification results that can be obtained after classifying the use cases include non-manual use cases and manual use cases. The embodiment of the present disclosure does not limit the classification method, and different classification results can be obtained according to different classification methods.

在本公开的一个实施例中,还提供一种模板化用例测试系统的实现方式。所述运行及跟进模块用于:In an embodiment of the present disclosure, an implementation manner of a templated use case testing system is also provided. The operation and follow-up module is used to:

响应于触发操作,对至少一个用例进行测试;根据所述非手工用例的模板属性,调用相应的工具进行测试;实时收集测试进度,同时记录测试结果。In response to the trigger operation, at least one use case is tested; according to the template attribute of the non-manual use case, a corresponding tool is called for testing; the test progress is collected in real time, and the test result is recorded at the same time.

在本公开的示例性实施例中,根据用例中的非手工用例的模板属性,调用相应的工具。系统实时的自动收集非手工用例的测试结果。In an exemplary embodiment of the present disclosure, the corresponding tool is invoked according to the template attribute of the non-manual use case in the use case. The system automatically collects test results of non-manual use cases in real time.

在手工用例的测试过程中,需要用户手动按步骤或用例描述说明进行执行标记及结果录入。运行及跟进模块可以响应于用户录入操作,记录所述手工用例的测试结果。In the testing process of manual use cases, the user is required to manually mark the execution and enter the results according to the steps or the description of the use case. The running and follow-up module may record the test results of the manual use case in response to the user input operation.

进一步的,本示例实施方式中,还提供一种模板化用例测试方法,如图6所示,所述方法包括:Further, in this example implementation, a templated use case testing method is also provided, as shown in FIG. 6 , the method includes:

步骤S610、响应于设置操作,对用例的模板属性设置;Step S610, setting the template attribute of the use case in response to the setting operation;

步骤S620、对工具进行注册,所述工具用于执行所述用例;Step S620, registering a tool, where the tool is used to execute the use case;

步骤S630、获取所述用例的模板属性,根据所述模板属性调用相应的工具进行用例测试并记录测试结果;Step S630, obtaining the template attribute of the use case, and calling a corresponding tool according to the template attribute to test the use case and record the test result;

步骤S640、根据预设分析标准,对所述测试结果进行展示。Step S640, displaying the test result according to the preset analysis standard.

实施本公开实施例的方法,通过模板管理模块响应于设置操作,对用例的模板属性设置;通过工具注册模块用于对工具进行注册;通过运行管理和跟进模块用于获取用例的模板属性,根据模板属性调用相应的工具进行用例测试并记录测试结果;通过报告管理模块用于根据预设分析标准,对测试结果进行展示。一方面,通过平台对测试进行清晰的管理,降低管理难度;另一方面,通过各个模块对测试全过程进行完整的了解,便于统一评价衡量,提高用例测试的易评价度。Implementing the method of the embodiment of the present disclosure, the template management module is used to set the template attribute of the use case in response to the setting operation; the tool registration module is used to register the tool; the operation management and follow-up module is used to obtain the template attribute of the use case, According to the template attributes, the corresponding tools are called to test the use cases and record the test results; the report management module is used to display the test results according to the preset analysis standards. On the one hand, the platform is used to clearly manage the test, which reduces the difficulty of management; on the other hand, the whole process of the test is fully understood through each module, which is convenient for unified evaluation and measurement, and improves the ease of evaluation of the use case test.

在本公开的一种示例性实施例中,还提供一种模板化用例测试方法,在对工具进行注册,所述工具用于执行所述用例的步骤之后,所述方法还包括:In an exemplary embodiment of the present disclosure, a method for testing a templated use case is also provided. After the tool is registered for executing the steps of the use case, the method further includes:

对所述工具进行测试,以确定所述工具可用于用例测试。The tool is tested to determine that the tool can be used for use case testing.

在本公开的一种示例性实施例中,还提供一种模板化用例测试方法,所述获取所述用例的模板属性,根据所述模板属性调用相应的工具进行用例测试并记录测试结果;在响应于触发操作之后,根据所述用例的模板属性对用例进行分类;In an exemplary embodiment of the present disclosure, a method for testing a templated use case is also provided, wherein the template attribute of the use case is obtained, and a corresponding tool is called according to the template attribute to test the use case and record the test result; Classifying use cases according to template attributes of the use cases in response to the triggering operation;

对所述用例分类得到包括非手工用例和手工用例。The use cases are classified to include non-manual use cases and manual use cases.

在本公开的一种示例性实施例中,还提供一种模板化用例测试方法,所述方法还包括:In an exemplary embodiment of the present disclosure, a templated use case testing method is also provided, and the method further includes:

响应于用户选择操作,对新的工具进行注册。A new tool is registered in response to a user selection operation.

在本公开的一种示例性实施例中,还提供一种模板化用例测试方法,所述运行管理和跟进模块用于获取所述用例的模板属性,根据所述模板属性调用相应的工具进行用例测试并记录测试结果的步骤,包括:In an exemplary embodiment of the present disclosure, a method for testing a templated use case is also provided, wherein the operation management and follow-up module is configured to obtain the template attribute of the use case, and call a corresponding tool according to the template attribute to perform the test. Steps to test a use case and record the test results, including:

响应于触发操作,对至少一个用例进行测试;in response to triggering an action, test at least one use case;

根据所述非手工用例的模板属性,调用相应的工具进行测试;According to the template attribute of the non-manual use case, call the corresponding tool for testing;

实时收集测试进度,同时记录测试结果。Collect test progress in real-time while recording test results.

在本公开的一种示例性实施例中,还提供一种模板化用例测试方法,所述方法还包括:In an exemplary embodiment of the present disclosure, a templated use case testing method is also provided, and the method further includes:

响应于用户录入操作,记录所述手工用例的测试结果。In response to the user input operation, the test results of the manual use case are recorded.

在本公开的一种示例性实施例中,还提供一种模板化用例测试方法,所述所述报告管理模块用于根据预设分析标准,对所述测试结果进行展示的步骤,包括:In an exemplary embodiment of the present disclosure, a method for testing a templated use case is also provided, and the step of displaying the test result by the report management module according to a preset analysis standard includes:

对测试结果进行统计分析,展示不同的测试类型结果并进行统一集成展示,所述测试结果包括但不限于:用例运行结果、日志和图片。Statistical analysis is performed on the test results, and results of different test types are displayed and displayed in a unified manner. The test results include but are not limited to: use case running results, logs, and pictures.

上述模板化用例测试方法中各步骤或单元的具体细节已经在对应的模板化用例测试系统各个实施例中进行了详细的描述,因此此处不再赘述。The specific details of each step or unit in the above templated use case testing method have been described in detail in the respective embodiments of the corresponding templated use case testing system, and therefore are not repeated here.

应当注意,尽管在上文详细描述中提及了用于动作执行的设备的若干模块或者单元,但是这种划分并非强制性的。实际上,根据本公开的实施方式,上文描述的两个或更多模块或者单元的特征和功能可以在一个模块或者单元中具体化。反之,上文描述的一个模块或者单元的特征和功能可以进一步划分为由多个模块或者单元来具体化。It should be noted that although several modules or units of the apparatus for action performance are mentioned in the above detailed description, this division is not mandatory. Indeed, according to embodiments of the present disclosure, the features and functions of two or more modules or units described above may be embodied in one module or unit. Conversely, the features and functions of one module or unit described above may be further divided into multiple modules or units to be embodied.

此外,尽管在附图中以特定顺序描述了本公开中方法的各个步骤,但是,这并非要求或者暗示必须按照该特定顺序来执行这些步骤,或是必须执行全部所示的步骤才能实现期望的结果。附加的或备选的,可以省略某些步骤,将多个步骤合并为一个步骤执行,以及/或者将一个步骤分解为多个步骤执行等。Additionally, although the various steps of the methods of the present disclosure are depicted in the figures in a particular order, this does not require or imply that the steps must be performed in the particular order or that all illustrated steps must be performed to achieve the desired result. Additionally or alternatively, certain steps may be omitted, multiple steps may be combined into one step for execution, and/or one step may be decomposed into multiple steps for execution, and the like.

通过以上的实施方式的描述,本领域的技术人员易于理解,这里描述的示例实施方式可以通过软件实现,也可以通过软件结合必要的硬件的方式来实现。因此,根据本公开实施方式的技术方案可以以软件产品的形式体现出来,该软件产品可以存储在一个非易失性存储介质(可以是CD-ROM,U盘,移动硬盘等)中或网络上,包括若干指令以使得一台计算设备(可以是个人计算机、服务器、移动终端、或者网络设备等)执行根据本公开实施方式的方法。From the description of the above embodiments, those skilled in the art can easily understand that the exemplary embodiments described herein may be implemented by software, or may be implemented by software combined with necessary hardware. Therefore, the technical solutions according to the embodiments of the present disclosure may be embodied in the form of software products, and the software products may be stored in a non-volatile storage medium (which may be CD-ROM, U disk, mobile hard disk, etc.) or on the network , including several instructions to cause a computing device (which may be a personal computer, a server, a mobile terminal, or a network device, etc.) to execute the method according to an embodiment of the present disclosure.

在本公开示例性实施方式中,还提供了一种能够实现上述方法的计算机存储介质。其上存储有能够实现本说明书上述方法的程序产品。在一些可能的实施例中,本公开的各个方面还可以实现为一种程序产品的形式,其包括程序代码,当所述程序产品在终端设备上运行时,所述程序代码用于使所述终端设备执行本说明书上述“示例性方法”部分中描述的根据本公开各种示例性实施方式的步骤。In an exemplary embodiment of the present disclosure, a computer storage medium capable of implementing the above method is also provided. A program product capable of implementing the method described above in this specification is stored thereon. In some possible embodiments, various aspects of the present disclosure may also be implemented in the form of a program product including program code for causing the program product to run on a terminal device when the program product is run on a terminal device. The terminal device performs the steps according to various exemplary embodiments of the present disclosure described in the above-mentioned "Example Method" section of this specification.

参考图7所示,描述了根据本公开的实施方式的用于实现上述方法的程序产品700,其可以采用便携式紧凑盘只读存储器(CD-ROM)并包括程序代码,并可以在终端设备,例如个人电脑上运行。然而,本公开的程序产品不限于此,在本文件中,可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。Referring to FIG. 7 , a program product 700 for implementing the above method according to an embodiment of the present disclosure is described, which can adopt a portable compact disk read only memory (CD-ROM) and include program codes, and can be stored in a terminal device, For example running on a personal computer. However, the program product of the present disclosure is not limited thereto, and in this document, a readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device.

所述程序产品可以采用一个或多个可读介质的任意组合。可读介质可以是可读信号介质或者可读存储介质。可读存储介质例如可以为但不限于电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。可读存储介质的更具体的例子(非穷举的列表)包括:具有一个或多个导线的电连接、便携式盘、硬盘、随机存取存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、光纤、便携式紧凑盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。The program product may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus or device, or a combination of any of the above. More specific examples (non-exhaustive list) of readable storage media include: electrical connections with one or more wires, portable disks, hard disks, random access memory (RAM), read only memory (ROM), erasable programmable read only memory (EPROM or flash memory), optical fiber, portable compact disk read only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.

计算机可读信号介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了可读程序代码。这种传播的数据信号可以采用多种形式,包括但不限于电磁信号、光信号或上述的任意合适的组合。可读信号介质还可以是可读存储介质以外的任何可读介质,该可读介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。A computer readable signal medium may include a propagated data signal in baseband or as part of a carrier wave with readable program code embodied thereon. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing. A readable signal medium can also be any readable medium, other than a readable storage medium, that can transmit, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device.

可读介质上包含的程序代码可以用任何适当的介质传输,包括但不限于无线、有线、光缆、RF等等,或者上述的任意合适的组合。Program code embodied on a readable medium may be transmitted using any suitable medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.

可以以一种或多种程序设计语言的任意组合来编写用于执行本公开操作的程序代码,所述程序设计语言包括面向对象的程序设计语言—诸如Java、C++等,还包括常规的过程式程序设计语言—诸如“C”语言或类似的程序设计语言。程序代码可以完全地在用户计算设备上执行、部分地在用户设备上执行、作为一个独立的软件包执行、部分在用户计算设备上部分在远程计算设备上执行、或者完全在远程计算设备或服务器上执行。在涉及远程计算设备的情形中,远程计算设备可以通过任意种类的网络,包括局域网(LAN)或广域网(WAN),连接到用户计算设备,或者,可以连接到外部计算设备(例如利用因特网服务提供商来通过因特网连接)。Program code for performing the operations of the present disclosure may be written in any combination of one or more programming languages, including object-oriented programming languages—such as Java, C++, etc., as well as conventional procedural Programming Language - such as the "C" language or similar programming language. The program code may execute entirely on the user computing device, partly on the user device, as a stand-alone software package, partly on the user computing device and partly on a remote computing device, or entirely on the remote computing device or server execute on. In the case of a remote computing device, the remote computing device may be connected to the user computing device through any kind of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device (eg, using an Internet service provider business via an Internet connection).

此外,在本公开的示例性实施例中,还提供了一种能够实现上述方法的电子设备。In addition, in an exemplary embodiment of the present disclosure, an electronic device capable of implementing the above method is also provided.

所属技术领域的技术人员能够理解,本公开的各个方面可以实现为系统、方法或程序产品。因此,本公开的各个方面可以具体实现为以下形式,即:完全的硬件实施方式、完全的软件实施方式(包括固件、微代码等),或硬件和软件方面结合的实施方式,这里可以统称为“电路”、“模块”或“系统”。As will be appreciated by one skilled in the art, various aspects of the present disclosure may be implemented as a system, method or program product. Therefore, various aspects of the present disclosure can be embodied in the following forms: a complete hardware implementation, a complete software implementation (including firmware, microcode, etc.), or a combination of hardware and software aspects, which may be collectively referred to herein as implementations "circuit", "module" or "system".

下面参照图8来描述根据本公开的这种实施方式的电子设备600。图8显示的电子设备800仅仅是一个示例,不应对本公开实施例的功能和使用范围带来任何限制。The electronic device 600 according to this embodiment of the present disclosure is described below with reference to FIG. 8 . The electronic device 800 shown in FIG. 8 is only an example, and should not impose any limitation on the function and scope of use of the embodiments of the present disclosure.

如图8所示,电子设备800以通用计算设备的形式表现。电子设备800的组件可以包括但不限于:上述至少一个处理单元810、上述至少一个存储单元820、连接不同系统组件(包括存储单元820和处理单元810)的总线830以及显示单元840。As shown in FIG. 8, electronic device 800 takes the form of a general-purpose computing device. Components of the electronic device 800 may include, but are not limited to, the above-mentioned at least one processing unit 810 , the above-mentioned at least one storage unit 820 , a bus 830 connecting different system components (including the storage unit 820 and the processing unit 810 ), and a display unit 840 .

其中,所述存储单元存储有程序代码,所述程序代码可以被所述处理单元810执行,使得所述处理单元810执行本说明书上述“示例性方法”部分中描述的根据本公开各种示例性实施方式的步骤。例如,所述处理单元810可以执行如图6中所示的:步骤S610、响应于设置操作,对用例的模板属性设置;步骤S620、对工具进行注册,所述工具用于执行所述用例;步骤S630、获取所述用例的模板属性,根据所述模板属性调用相应的工具进行用例测试并记录测试结果;步骤S640、根据预设分析标准,对所述测试结果进行展示。Wherein, the storage unit stores program codes, and the program codes can be executed by the processing unit 810, so that the processing unit 810 executes various exemplary methods according to the present disclosure described in the above-mentioned “Exemplary Methods” section of this specification. Implementation steps. For example, the processing unit 810 may perform as shown in FIG. 6: step S610, setting the template attribute of the use case in response to the setting operation; step S620, registering a tool for executing the use case; Step S630: Obtain the template attribute of the use case, call a corresponding tool to test the use case according to the template attribute, and record the test result; Step S640, display the test result according to the preset analysis standard.

存储单元820可以包括易失性存储单元形式的可读介质,例如随机存取存储单元(RAM)8201和/或高速缓存存储单元8202,还可以进一步包括只读存储单元(ROM)8203。The storage unit 820 may include a readable medium in the form of a volatile storage unit, such as a random access storage unit (RAM) 8201 and/or a cache storage unit 8202 , and may further include a read only storage unit (ROM) 8203 .

存储单元820还可以包括具有一组(至少一个)程序模块8205的程序/实用工具8204,这样的程序模块8205包括但不限于:操作系统、一个或者多个应用程序、其它程序模块以及程序数据,这些示例中的每一个或某种组合中可能包括网络环境的实现。The storage unit 820 may also include a program/utility 8204 having a set (at least one) of program modules 8205 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, An implementation of a network environment may be included in each or some combination of these examples.

总线830可以为表示几类总线结构中的一种或多种,包括存储单元总线或者存储单元控制器、外围总线、图形加速端口、处理单元或者使用多种总线结构中的任意总线结构的局域总线。The bus 830 may be representative of one or more of several types of bus structures, including a memory cell bus or memory cell controller, a peripheral bus, a graphics acceleration port, a processing unit, or a local area using any of a variety of bus structures bus.

电子设备800也可以与一个或多个外部设备900(例如键盘、指向设备、蓝牙设备等)通信,还可与一个或者多个使得用户能与该电子设备800交互的设备通信,和/或与使得该电子设备800能与一个或多个其它计算设备进行通信的任何设备(例如路由器、调制解调器等等)通信。这种通信可以通过输入/输出(I/O)接口850进行。并且,电子设备800还可以通过网络适配器860与一个或者多个网络(例如局域网(LAN),广域网(WAN)和/或公共网络,例如因特网)通信。如图所示,网络适配器860通过总线830与电子设备800的其它模块通信。应当明白,尽管图中未示出,可以结合电子设备800使用其它硬件和/或软件模块,包括但不限于:微代码、设备驱动器、冗余处理单元、外部磁盘驱动阵列、RAID系统、磁带驱动器以及数据备份存储系统等。The electronic device 800 may also communicate with one or more external devices 900 (eg, keyboards, pointing devices, Bluetooth devices, etc.), with one or more devices that enable a user to interact with the electronic device 800, and/or with Any device (eg, router, modem, etc.) that enables the electronic device 800 to communicate with one or more other computing devices. Such communication may take place through input/output (I/O) interface 850 . Also, the electronic device 800 may communicate with one or more networks (eg, a local area network (LAN), a wide area network (WAN), and/or a public network such as the Internet) through a network adapter 860 . As shown, network adapter 860 communicates with other modules of electronic device 800 via bus 830 . It should be understood that, although not shown, other hardware and/or software modules may be used in conjunction with electronic device 800, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives and data backup storage systems.

通过以上的实施方式的描述,本领域的技术人员易于理解,这里描述的示例实施方式可以通过软件实现,也可以通过软件结合必要的硬件的方式来实现。因此,根据本公开实施方式的技术方案可以以软件产品的形式体现出来,该软件产品可以存储在一个非易失性存储介质(可以是CD-ROM,U盘,移动硬盘等)中或网络上,包括若干指令以使得一台计算设备(可以是个人计算机、服务器、终端装置、或者网络设备等)执行根据本公开实施方式的方法。From the description of the above embodiments, those skilled in the art can easily understand that the exemplary embodiments described herein may be implemented by software, or may be implemented by software combined with necessary hardware. Therefore, the technical solutions according to the embodiments of the present disclosure may be embodied in the form of software products, and the software products may be stored in a non-volatile storage medium (which may be CD-ROM, U disk, mobile hard disk, etc.) or on the network , including several instructions to cause a computing device (which may be a personal computer, a server, a terminal device, or a network device, etc.) to execute the method according to an embodiment of the present disclosure.

此外,上述附图仅是根据本公开示例性实施例的方法所包括的处理的示意性说明,而不是限制目的。易于理解,上述附图所示的处理并不表明或限制这些处理的时间顺序。另外,也易于理解,这些处理可以是例如在多个模块中同步或异步执行的。In addition, the above-mentioned figures are merely schematic illustrations of the processes included in the methods according to the exemplary embodiments of the present disclosure, and are not intended to be limiting. It is easy to understand that the processes shown in the above figures do not indicate or limit the chronological order of these processes. In addition, it is also readily understood that these processes may be performed synchronously or asynchronously in multiple modules, for example.

本领域技术人员在考虑说明书及实践这里公开的发明后,将容易想到本公开的其他实施例。本申请旨在涵盖本公开的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本公开的一般性原理并包括本公开未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本公开的真正范围和精神由权利要求指出。Other embodiments of the present disclosure will readily suggest themselves to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or techniques in the technical field not disclosed by the present disclosure . The specification and examples are to be regarded as exemplary only, with the true scope and spirit of the disclosure being indicated by the claims.

Claims (10)

1. A templated use case testing system, comprising: the system comprises a template management module, a tool registration module, an operation and follow-up module and a report management module:
the template management module is used for responding to setting operation and setting the template attribute of the use case;
the tool registration module is used for registering a tool, and the tool is used for executing the use case;
the operation and follow-up module is used for acquiring the template attribute of the use case, calling a corresponding tool according to the template attribute to perform use case test and recording a test result;
and the report management module is used for displaying the test result according to a preset analysis standard.
2. The templated use case testing system of claim 1, wherein the tool registration module is to:
after the tool is registered, the tool is tested to determine that the tool is available for use case testing.
3. The templated use case testing system of claim 1, wherein the run and follow-up module is configured to:
after responding to the trigger operation, classifying the use cases according to the template attributes of the use cases;
and classifying the use cases to obtain non-manual use cases and manual use cases.
4. The templated use case testing system of claim 1, wherein the template management module is further configured to:
and responding to the user selection operation, and registering a new tool.
5. The templated use case testing system of claim 3, wherein the run and follow-up module is to:
responding to the trigger operation, and testing at least one use case;
calling a corresponding tool to test according to the template attribute of the non-manual case;
and collecting the test progress in real time, and recording the test result.
6. The templated use case testing system of claim 3, wherein the run and follow-up module is to:
and responding to the user input operation, and recording the test result of the manual case.
7. The templated use case testing system of claim 1, wherein the report management module is to:
performing statistical analysis on test results, displaying different test type results, and performing unified integrated display, wherein the test results include but are not limited to: use case running results, logs and pictures.
8. A templated use case testing method, the method comprising:
setting the template attribute of the use case based on the response of the template management module to the setting operation;
registering a tool based on a tool registration module, wherein the tool is used for executing the use case;
acquiring template attributes of the use cases based on the operation and follow-up module, calling corresponding tools according to the template attributes to perform use case testing and recording testing results;
and displaying the test result based on a report management module according to a preset analysis standard.
9. A computer-readable medium, on which a computer program is stored which, when being executed by a processor, carries out the templated case testing method according to claim 8.
10. A terminal device, comprising:
one or more processors;
storage means for storing one or more programs that, when executed by the one or more processors, cause the one or more processors to implement the templated use case testing method recited in claim 8.
CN202210714136.3A 2022-06-22 2022-06-22 Templated use case testing system, method, medium and device Pending CN115080403A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210714136.3A CN115080403A (en) 2022-06-22 2022-06-22 Templated use case testing system, method, medium and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210714136.3A CN115080403A (en) 2022-06-22 2022-06-22 Templated use case testing system, method, medium and device

Publications (1)

Publication Number Publication Date
CN115080403A true CN115080403A (en) 2022-09-20

Family

ID=83254255

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210714136.3A Pending CN115080403A (en) 2022-06-22 2022-06-22 Templated use case testing system, method, medium and device

Country Status (1)

Country Link
CN (1) CN115080403A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102937932A (en) * 2011-08-16 2013-02-20 中国银联股份有限公司 Automated testing device and method of integrated heterogeneous testing tool
US20130318402A1 (en) * 2012-05-23 2013-11-28 Sap Ag Software Systems Testing Interface
CN108804300A (en) * 2017-04-27 2018-11-13 龙芯中科技术有限公司 Automated testing method and system
CN110232024A (en) * 2019-05-26 2019-09-13 必成汇(成都)科技有限公司 Software automated testing frame and test method
CN111459800A (en) * 2020-03-04 2020-07-28 福建省农村信用社联合社 Method, device, equipment and medium for verifying availability of service system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102937932A (en) * 2011-08-16 2013-02-20 中国银联股份有限公司 Automated testing device and method of integrated heterogeneous testing tool
US20130318402A1 (en) * 2012-05-23 2013-11-28 Sap Ag Software Systems Testing Interface
CN108804300A (en) * 2017-04-27 2018-11-13 龙芯中科技术有限公司 Automated testing method and system
CN110232024A (en) * 2019-05-26 2019-09-13 必成汇(成都)科技有限公司 Software automated testing frame and test method
CN111459800A (en) * 2020-03-04 2020-07-28 福建省农村信用社联合社 Method, device, equipment and medium for verifying availability of service system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
吴伶琳等: "软件测试技术任务驱动式教程", 31 January 2022, 北京理工大学出版社, pages: 249 *

Similar Documents

Publication Publication Date Title
CN108170611B (en) Automated testing method and device, storage medium, electronic equipment
CN109271325B (en) Application testing method, system, electronic device and storage medium
CN107506300B (en) User interface testing method, device, server and storage medium
CN108763076A (en) A kind of Software Automatic Testing Method, device, equipment and medium
CN106201846B (en) Method for monitoring performance and device in automatic test
CN112882953B (en) Automatic demonstration method and system of application program based on android debug bridge
CN113836014B (en) Interface testing method, device, electronic device and storage medium
CN110597704B (en) Pressure test method, device, server and medium for application program
CN111552690A (en) Data generation method, device, terminal and storage medium
CN111274130A (en) An automated testing method, device, equipment and storage medium
CN111708704B (en) A cloud real machine testing method, device, terminal and storage medium
CN110322587A (en) Evaluation recording method, device, equipment and storage medium in driving procedure
CN108984380A (en) A kind of server test method, device and medium based on linux system
CN111309606A (en) Page exception handling method and device, computer equipment and storage medium
CN113760696B (en) A program problem locating method, device, electronic device and storage medium
US20170085460A1 (en) Benchmarking servers based on production data
CN110806981B (en) Application program testing method, device, equipment and storage medium
CN111008140B (en) Cross-platform UI (user interface) automatic testing method and device
CN115080403A (en) Templated use case testing system, method, medium and device
CN113742240B (en) User interface testing method, device, storage medium and electronic device
CN110958243A (en) Network vulnerability submitting method and device, storage medium and electronic equipment
CN114490330A (en) Method and apparatus for generating test cases
CN116820946A (en) Method and device for automatically testing compatibility of target software
CN115098387A (en) A server BIOS automatic test system, method, device and storage medium
CN114416571A (en) An interface testing method, device, equipment and storage medium

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