CN117493198A - A method, device and medium for automatically writing test cases - Google Patents
A method, device and medium for automatically writing test cases Download PDFInfo
- Publication number
- CN117493198A CN117493198A CN202311517200.XA CN202311517200A CN117493198A CN 117493198 A CN117493198 A CN 117493198A CN 202311517200 A CN202311517200 A CN 202311517200A CN 117493198 A CN117493198 A CN 117493198A
- Authority
- CN
- China
- Prior art keywords
- program interface
- website
- test cases
- module
- vue
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Prevention of errors by analysis, debugging or testing of software
- G06F11/3668—Testing of software
- G06F11/3672—Test management
- G06F11/3684—Test management for test design, e.g. generating new test cases
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Prevention of errors by analysis, debugging or testing of software
- G06F11/3668—Testing of software
- G06F11/3672—Test management
- G06F11/3688—Test management for test execution, e.g. scheduling of test suites
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/44—Arrangements for executing specific programs
- G06F9/451—Execution arrangements for user interfaces
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Software Systems (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Human Computer Interaction (AREA)
- Stored Programmes (AREA)
Abstract
Description
技术领域Technical field
本发明涉及自动化测试技术领域,并且更具体地,涉及一种自动编写测试用例的方法、装置及介质。The present invention relates to the technical field of automated testing, and more specifically, to a method, device and medium for automatically writing test cases.
背景技术Background technique
当软件测试人员开始编写测试用例或测试点时,通常需要投入大量的时间和精力。由于测试涉及的范围广泛,测试人员很可能会遗漏某些测试点或测试用例,这可能会导致软件中的漏洞或错误未被发现。ChatGPT可以根据用户输入的需求自动生成测试用例,但生成的用例只是文本格式,需要手动复制且存在格式的修改问题,浪费人力成本以及时间成本。When a software tester starts writing test cases or test points, it usually requires a significant investment of time and effort. Due to the wide scope of testing, testers are likely to miss certain test points or test cases, which may result in vulnerabilities or errors in the software going undiscovered. ChatGPT can automatically generate test cases based on user input requirements, but the generated test cases are only in text format and need to be copied manually and have format modification problems, which wastes labor costs and time costs.
发明内容Contents of the invention
针对现有技术的不足,本发明提供一种自动编写测试用例的方法、装置及介质。In view of the shortcomings of the existing technology, the present invention provides a method, device and medium for automatically writing test cases.
根据本发明的一个方面,提供了一种自动编写测试用例的方法,包括:According to one aspect of the present invention, a method for automatically writing test cases is provided, including:
前端开发者基于vue的UI组件库开发网站前端并根据网站前端向后端服务器输入需求;Front-end developers develop the website front-end based on Vue's UI component library and input requirements to the back-end server based on the website front-end;
后端服务器调用人工智能程序接口,根据网站前端的输入需求,输出测试用例,其中人工智能程序接口为ChatGPT;The back-end server calls the artificial intelligence program interface and outputs test cases according to the input requirements of the website front-end. The artificial intelligence program interface is ChatGPT;
后端服务器将测试用例返回至前端,前端对测试用例进行显示。The back-end server returns the test cases to the front-end, and the front-end displays the test cases.
可选地,还包括:前端响应于开发者注册申请程序接口密钥的操作,注册申请程序接口密钥。Optionally, the method further includes: the front end responds to the developer's operation of registering and applying for the program interface key, and registers and applies for the program interface key.
可选地,前端开发者基于vue的UI组件库开发网站前端,包括:Optionally, front-end developers develop the website front-end based on Vue's UI component library, including:
前端的开发者基于程序接口密钥调用UI组件库开发网站前端。Front-end developers call the UI component library based on the program interface key to develop the website front-end.
可选地,还包括:前端创建和存储测试用例的Blob数据。Optionally, also includes: front-end creation and storage of blob data for test cases.
根据本发明的另一个方面,提供了一种自动编写测试用例的装置,包括:According to another aspect of the present invention, a device for automatically writing test cases is provided, including:
开发模块,用于前端开发者基于vue的UI组件库开发网站前端并根据网站前端向后端服务器输入需求;The development module is used by front-end developers to develop the front-end of the website based on the UI component library of vue and input requirements to the back-end server based on the front-end of the website;
输出模块,用于后端服务器调用人工智能程序接口,根据网站前端的输入需求,输出测试用例,其中人工智能程序接口为ChatGPT;The output module is used by the back-end server to call the artificial intelligence program interface and output test cases according to the input requirements of the website front-end. The artificial intelligence program interface is ChatGPT;
显示模块,用于后端服务器将测试用例返回至前端,前端对测试用例进行显示。The display module is used by the back-end server to return test cases to the front-end, and the front-end displays the test cases.
根据本发明的又一个方面,提供了一种计算机可读存储介质,所述存储介质存储有计算机程序,所述计算机程序用于执行本发明上述任一方面所述的方法。According to another aspect of the present invention, a computer-readable storage medium is provided, the storage medium stores a computer program, and the computer program is used to execute the method described in any of the above aspects of the present invention.
根据本发明的又一个方面,提供了一种电子设备,所述电子设备包括:处理器;用于存储所述处理器可执行指令的存储器;所述处理器,用于从所述存储器中读取所述可执行指令,并执行所述指令以实现本发明上述任一方面所述的方法。According to yet another aspect of the present invention, an electronic device is provided. The electronic device includes: a processor; a memory for storing instructions executable by the processor; and the processor for reading from the memory. Fetch the executable instructions and execute the instructions to implement the method described in any of the above aspects of the present invention.
从而,本申请结合Python、Vue框架,使用ChatGPT生成的测试用例自动化生成,并以文件的形式保存,以此来提高测试用例编写的效率和精确性,并为测试人员提供更加便捷和高效的编写工具。Therefore, this application combines Python and Vue frameworks to automatically generate test cases generated by ChatGPT and save them in the form of files to improve the efficiency and accuracy of test case writing and provide testers with more convenient and efficient writing tool.
附图说明Description of the drawings
通过参考下面的附图,可以更为完整地理解本发明的示例性实施方式:A more complete understanding of exemplary embodiments of the invention may be obtained by reference to the following drawings:
图1是本发明一示例性实施例提供的自动编写测试用例的方法的流程示意图;Figure 1 is a schematic flowchart of a method for automatically writing test cases provided by an exemplary embodiment of the present invention;
图2是本发明一示例性实施例提供的自动编写测试用例的装置的结构示意图;Figure 2 is a schematic structural diagram of a device for automatically writing test cases provided by an exemplary embodiment of the present invention;
图3是本发明一示例性实施例提供的电子设备的结构。Figure 3 is a structure of an electronic device provided by an exemplary embodiment of the present invention.
具体实施方式Detailed ways
下面,将参考附图详细地描述根据本发明的示例实施例。显然,所描述的实施例仅仅是本发明的一部分实施例,而不是本发明的全部实施例,应理解,本发明不受这里描述的示例实施例的限制。Hereinafter, exemplary embodiments according to the present invention will be described in detail with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, rather than all embodiments of the present invention. It should be understood that the present invention is not limited to the example embodiments described here.
应注意到:除非另外具体说明,否则在这些实施例中阐述的部件和步骤的相对布置、数字表达式和数值不限制本发明的范围。It should be noted that the relative arrangement of components and steps, numerical expressions and numerical values set forth in these examples do not limit the scope of the invention unless otherwise specifically stated.
本领域技术人员可以理解,本发明实施例中的“第一”、“第二”等术语仅用于区别不同步骤、设备或模块等,既不代表任何特定技术含义,也不表示它们之间的必然逻辑顺序。Those skilled in the art can understand that terms such as "first" and "second" in the embodiments of the present invention are only used to distinguish different steps, devices or modules, etc., and do not represent any specific technical meaning, nor do they represent the differences between them. necessary logical sequence.
还应理解,在本发明实施例中,“多个”可以指两个或两个以上,“至少一个”可以指一个、两个或两个以上。It should also be understood that in the embodiment of the present invention, "multiple" may refer to two or more than two, and "at least one" may refer to one, two, or more than two.
还应理解,对于本发明实施例中提及的任一部件、数据或结构,在没有明确限定或者在前后文给出相反启示的情况下,一般可以理解为一个或多个。It should also be understood that any component, data or structure mentioned in the embodiments of the present invention can generally be understood to mean one or more unless there is an explicit limitation or contrary inspiration is given in the context.
另外,本发明中术语“和/或”,仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,本发明中字符“/”,一般表示前后关联对象是一种“或”的关系。In addition, the term "and/or" in the present invention is only an association relationship describing related objects, indicating that there can be three relationships, for example, A and/or B, which can mean: A alone exists, and A and B exist simultaneously. , there are three situations of B alone. In addition, the character "/" in the present invention generally indicates that the related objects are in an "or" relationship.
还应理解,本发明对各个实施例的描述着重强调各个实施例之间的不同之处,其相同或相似之处可以相互参考,为了简洁,不再一一赘述。It should also be understood that the description of the various embodiments of the present invention focuses on the differences between the various embodiments, and the similarities or similarities between the embodiments can be referred to each other. For the sake of brevity, they will not be described again one by one.
同时,应当明白,为了便于描述,附图中所示出的各个部分的尺寸并不是按照实际的比例关系绘制的。At the same time, it should be understood that, for convenience of description, the dimensions of various parts shown in the drawings are not drawn according to actual proportional relationships.
以下对至少一个示例性实施例的描述实际上仅仅是说明性的,决不作为对本发明及其应用或使用的任何限制。The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the invention, its application or uses.
对于相关领域普通技术人员已知的技术、方法和设备可能不作详细讨论,但在适当情况下,技术、方法和设备应当被视为说明书的一部分。Techniques, methods and devices known to those of ordinary skill in the relevant art may not be discussed in detail, but where appropriate, the techniques, methods and devices should be considered a part of the specification.
应注意到:相似的标号和字母在下面的附图中表示类似项,因此,一旦某一项在一个附图中被定义,则在随后的附图中不需要对其进行进一步讨论。It should be noted that similar reference numerals and letters refer to similar items in the following figures, so that once an item is defined in one figure, it does not need further discussion in subsequent figures.
本发明实施例可以应用于终端设备、计算机系统、服务器等电子设备,其可与众多其它通用或专用计算系统环境或配置一起操作。适于与终端设备、计算机系统、服务器等电子设备一起使用的众所周知的终端设备、计算系统、环境和/或配置的例子包括但不限于:个人计算机系统、服务器计算机系统、瘦客户机、厚客户机、手持或膝上设备、基于微处理器的系统、机顶盒、可编程消费电子产品、网络个人电脑、小型计算机系统﹑大型计算机系统和包括上述任何系统的分布式云计算技术环境,等等。Embodiments of the present invention may be applied to electronic devices such as terminal devices, computer systems, servers, etc., which may operate with numerous other general or special purpose computing system environments or configurations. Examples of well-known terminal devices, computing systems, environments and/or configurations suitable for use with terminal devices, computer systems, servers and other electronic devices include, but are not limited to: personal computer systems, server computer systems, thin clients, thick clients Computers, handheld or laptop devices, microprocessor-based systems, set-top boxes, programmable consumer electronics, networked personal computers, small computer systems, mainframe computer systems and distributed cloud computing technology environments including any of the above systems, etc.
终端设备、计算机系统、服务器等电子设备可以在由计算机系统执行的计算机系统可执行指令(诸如程序模块)的一般语境下描述。通常,程序模块可以包括例程、程序、目标程序、组件、逻辑、数据结构等等,它们执行特定的任务或者实现特定的抽象数据类型。计算机系统/服务器可以在分布式云计算环境中实施,分布式云计算环境中,任务是由通过通信网络链接的远程处理设备执行的。在分布式云计算环境中,程序模块可以位于包括存储设备的本地或远程计算系统存储介质上。Electronic devices such as terminal devices, computer systems, servers, etc. may be described in the general context of computer system executable instructions (such as program modules) being executed by the computer system. Generally, program modules may include routines, programs, object programs, components, logic, data structures, etc., that perform specific tasks or implement specific abstract data types. The computer system/server may be implemented in a distributed cloud computing environment where tasks are performed by remote processing devices linked through a communications network. In a distributed cloud computing environment, program modules may be located on local or remote computing system storage media including storage devices.
示例性方法Example methods
图1是本发明一示例性实施例提供的自动编写测试用例的方法的流程示意图。本实施例可应用在电子设备上,如图1所示,自动编写测试用例的方法100包括以下步骤:Figure 1 is a schematic flowchart of a method for automatically writing test cases provided by an exemplary embodiment of the present invention. This embodiment can be applied to electronic devices. As shown in Figure 1, the method 100 of automatically writing test cases includes the following steps:
步骤101,前端开发者基于vue的UI组件库开发网站前端并根据网站前端向后端服务器输入需求;Step 101: The front-end developer develops the front-end of the website based on the UI component library of Vue and inputs requirements to the back-end server based on the front-end of the website;
步骤102,后端服务器调用人工智能程序接口,根据网站前端的输入需求,输出测试用例,其中人工智能程序接口为ChatGPT;Step 102: The back-end server calls the artificial intelligence program interface to output test cases according to the input requirements of the website front-end, where the artificial intelligence program interface is ChatGPT;
步骤103,后端服务器将测试用例返回至前端,前端对测试用例进行显示。Step 103: The back-end server returns the test case to the front-end, and the front-end displays the test case.
可选地,还包括:前端响应于开发者注册申请程序接口密钥的操作,注册申请程序接口密钥。Optionally, the method further includes: the front end responds to the developer's operation of registering and applying for the program interface key, and registers and applies for the program interface key.
可选地,前端开发者基于vue的UI组件库开发网站前端,包括:Optionally, front-end developers develop the website front-end based on Vue's UI component library, including:
前端的开发者基于程序接口密钥调用UI组件库开发网站前端。Front-end developers call the UI component library based on the program interface key to develop the website front-end.
可选地,还包括:前端创建和存储测试用例的Blob数据。Optionally, also includes: front-end creation and storage of blob data for test cases.
具体地,ChatGPT可以根据用户输入的需求自动生成测试用例,但生成的用例只是文本格式,需要手动复制且存在格式的修改问题。为了解决这个问题,我们可以结合Python、Vue框架,实现智能生成和可视化展示测试用例的功能。具体实现步骤如下:Specifically, ChatGPT can automatically generate test cases based on user input requirements, but the generated test cases are only in text format and need to be copied manually and have format modification issues. In order to solve this problem, we can combine the Python and Vue frameworks to realize the function of intelligently generating and visually displaying test cases. The specific implementation steps are as follows:
1.下载并安装PyCharm专业版,并安装相应插件,如element和Vue插件,插件都是用于开发Vue.js应用程序的工具。1. Download and install PyCharm Professional Edition, and install corresponding plug-ins, such as element and Vue plug-ins. Plug-ins are tools used to develop Vue.js applications.
1)Element插件是一个Vue.js组件库,提供了一些基本UI组件,如表单组件、布局组件、导航组件等。可以为开发人员快速创建UI界面提供很大的便利。Element插件也使用了PyCharm的开发体验,并且支持自动完成、代码格式化、错误检查和重构等功能。1) The Element plug-in is a Vue.js component library that provides some basic UI components, such as form components, layout components, navigation components, etc. It can provide great convenience for developers to quickly create UI interfaces. The Element plug-in also uses PyCharm's development experience and supports functions such as auto-completion, code formatting, error checking, and refactoring.
2)Vue插件是PyCharm专业版提供的直接支持Vue.js的插件。它可以帮助开发者更容易地编写和调试Vue.js应用程序,并提供具有强大的参数和数据分析的支持,同时也提供了与JavaScript、CSS和HTML的高度集成。Vue插件的功能包括语法和错误检查、自动完成、代码折叠、代码格式化、调试和重构等。2) The Vue plug-in is a plug-in provided by PyCharm Professional Edition that directly supports Vue.js. It can help developers write and debug Vue.js applications more easily, and provides support with powerful parameters and data analysis, while also providing high integration with JavaScript, CSS and HTML. The functions of the Vue plug-in include syntax and error checking, auto-completion, code folding, code formatting, debugging and refactoring, etc.
使用PyCharm专业版中的`Element`和`Vue`插件:这两款插件都是用于开发Vue.js应用程序的工具,在开发过程中提供更好的开发体验。Use the `Element` and `Vue` plugins in PyCharm Professional Edition: Both plugins are tools for developing Vue.js applications, providing a better development experience during the development process.
2.在新建项目工程时,选择Flask框架作为后端框架,Flask可以帮助开发人员更轻松地创建Web应用程序、服务和API。2. When creating a new project, choose the Flask framework as the back-end framework. Flask can help developers create web applications, services, and APIs more easily.
调用`openai`API`openai`是一个人工智能API,可以用于文本分析和处理,例如用于生成测试用例和其他需求描述的自然语言生成。通过调用`openai`API,可以实现从需求文本中生成测试用例的自动化处理和优化。Calling the `openai` API `openai` is an artificial intelligence API that can be used for text analysis and processing, such as natural language generation for generating test cases and other requirement descriptions. By calling the `openai` API, automated processing and optimization of test case generation from requirement text can be achieved.
3.在ChatGPT官网注册并申请API KEY,用于验证和识别使用API的操作者。(只有识别成功后,才可在4步骤中正常调用OpenAI接口),API KEY可以保证API服务的安全性和稳定性,避免恶意攻击和滥用。3. Register on the ChatGPT official website and apply for API KEY, which is used to verify and identify operators using the API. (Only after the identification is successful, the OpenAI interface can be called normally in the 4 steps). API KEY can ensure the security and stability of the API service and avoid malicious attacks and abuse.
4.使用Python编写代码,调用OpenAI接口,使用Vue框架编写前端页面,并使用基于Promise的HTTP客户端的Axios进行后端数据获取和操作,从而接收。4. Use Python to write code, call the OpenAI interface, use the Vue framework to write the front-end page, and use Axios based on the Promise HTTP client for back-end data acquisition and operation to receive.
设计和开发网站前端:在PyCharm中使用`Element`和`Vue`插件设计和开发网站前端,用于输入需求和查看测试用例的展示。Design and develop website front-end: Use `Element` and `Vue` plug-ins to design and develop website front-end in PyCharm, which is used to enter requirements and view the display of test cases.
5.使用JavaScript来操纵网页的内容、结构和样式,将ChatGPT生成的测试用例数据下载到本地,并使用Blob对象来创建和存储Blob数据。通过这些操作,可以实现自动化生成测试用例并以Markdown格式存储,方便测试人员修改和使用。5. Use JavaScript to manipulate the content, structure and style of web pages, download the test case data generated by ChatGPT to the local, and use Blob objects to create and store Blob data. Through these operations, test cases can be automatically generated and stored in Markdown format, which is convenient for testers to modify and use.
设计和开发服务器端:使用Python等服务端编程语言以及服务器框架(例如Flask、Django等)设计和开发服务器端,建立与前端交互的接口。通过调用`openai`API处理输入的需求,并将处理结果返回给前端展示。Design and develop the server side: Use server-side programming languages such as Python and server frameworks (such as Flask, Django, etc.) to design and develop the server side and establish interfaces for interaction with the front-end. Process the input requirements by calling the `openai` API, and return the processing results to the front-end for display.
部署和测试网站:将服务器端程序和前端资源部署到服务器上,并进行测试和验证,确保应用程序在正式环境中的稳定性和可靠性。Deploy and test the website: Deploy the server-side program and front-end resources to the server, and conduct testing and verification to ensure the stability and reliability of the application in the formal environment.
从而,本申请结合Python、Vue框架,使用ChatGPT生成的测试用例自动化生成,并以文件的形式保存,以此来提高测试用例编写的效率和精确性,并为测试人员提供更加便捷和高效的编写工具。Therefore, this application combines Python and Vue frameworks to automatically generate test cases generated by ChatGPT and save them in the form of files to improve the efficiency and accuracy of test case writing and provide testers with more convenient and efficient writing tool.
示例性装置Exemplary device
图2是本发明一示例性实施例提供的自动编写测试用例的装置的结构示意图。如图2所示,装置200包括:Figure 2 is a schematic structural diagram of a device for automatically writing test cases provided by an exemplary embodiment of the present invention. As shown in Figure 2, device 200 includes:
开发模块210,用于前端开发者基于vue的UI组件库开发网站前端并根据网站前端向后端服务器输入需求;The development module 210 is used by front-end developers to develop the front-end of the website based on the UI component library of vue and input requirements to the back-end server based on the front-end of the website;
输出模块220,用于后端服务器调用人工智能程序接口,根据网站前端的输入需求,输出测试用例,其中人工智能程序接口为ChatGPT;The output module 220 is used by the back-end server to call the artificial intelligence program interface and output test cases according to the input requirements of the website front-end, where the artificial intelligence program interface is ChatGPT;
显示模块230,用于后端服务器将测试用例返回至前端,前端对测试用例进行显示。The display module 230 is used by the back-end server to return test cases to the front-end, and the front-end displays the test cases.
可选地,装置200还包括:注册模块,用于前端响应于开发者注册申请程序接口密钥的操作,注册申请程序接口密钥。Optionally, the device 200 further includes: a registration module, configured for the front end to register the application program interface key in response to the developer's operation of registering the application program interface key.
可选地,开发模块210,包括:Optionally, the development module 210 includes:
开发子模块,用于前端的开发者基于程序接口密钥调用UI组件库开发网站前端。The development sub-module is used by front-end developers to call the UI component library based on the program interface key to develop the website front-end.
可选地,装置200还包括:创建存储模块,用于前端创建和存储测试用例的Blob数据。Optionally, the apparatus 200 further includes: a creation storage module for front-end creation and storage of Blob data of test cases.
示例性电子设备Example electronic device
图3是本发明一示例性实施例提供的电子设备的结构。如图3所示,电子设备30包括一个或多个处理器31和存储器32。Figure 3 is a structure of an electronic device provided by an exemplary embodiment of the present invention. As shown in FIG. 3 , electronic device 30 includes one or more processors 31 and memory 32 .
处理器31可以是中央处理单元(CPU)或者具有数据处理能力和/或指令执行能力的其他形式的处理单元,并且可以控制电子设备中的其他组件以执行期望的功能。The processor 31 may be a central processing unit (CPU) or other form of processing unit with data processing capabilities and/or instruction execution capabilities, and may control other components in the electronic device to perform desired functions.
存储器32可以包括一个或多个计算机程序产品,所述计算机程序产品可以包括各种形式的计算机可读存储介质,例如易失性存储器和/或非易失性存储器。所述易失性存储器例如可以包括随机存取存储器(RAM)和/或高速缓冲存储器(cache)等。所述非易失性存储器例如可以包括只读存储器(ROM)、硬盘、闪存等。在所述计算机可读存储介质上可以存储一个或多个计算机程序指令,处理器31可以运行所述程序指令,以实现上文所述的本发明的各个实施例的软件程序的方法以及/或者其他期望的功能。在一个示例中,电子设备还可以包括:输入装置33和输出装置34,这些组件通过总线系统和/或其他形式的连接机构(未示出)互连。Memory 32 may include one or more computer program products, which may include various forms of computer-readable storage media, such as volatile memory and/or non-volatile memory. The volatile memory may include, for example, random access memory (RAM) and/or cache memory (cache). The non-volatile memory may include, for example, read-only memory (ROM), hard disk, flash memory, etc. One or more computer program instructions may be stored on the computer-readable storage medium, and the processor 31 may execute the program instructions to implement the methods and/or software programs of various embodiments of the present invention described above. Other desired features. In one example, the electronic device may further include an input device 33 and an output device 34, and these components are interconnected through a bus system and/or other forms of connection mechanisms (not shown).
此外,该输入装置33还可以包括例如键盘、鼠标等等。In addition, the input device 33 may also include, for example, a keyboard, a mouse, and the like.
该输出装置34可以向外部输出各种信息。该输出装置34可以包括例如显示器、扬声器、打印机、以及通信网络及其所连接的远程输出设备等等。The output device 34 can output various information to the outside. The output device 34 may include, for example, a display, a speaker, a printer, a communication network and remote output devices connected thereto, and the like.
当然,为了简化,图3中仅示出了该电子设备中与本发明有关的组件中的一些,省略了诸如总线、输入/输出接口等等的组件。除此之外,根据具体应用情况,电子设备还可以包括任何其他适当的组件。Of course, for simplicity, only some of the components related to the present invention in the electronic device are shown in FIG. 3 , and components such as buses, input/output interfaces, etc. are omitted. In addition to this, the electronic device may include any other suitable components depending on the specific application.
示例性计算机程序产品和计算机可读存储介质Example computer program products and computer-readable storage media
除了上述方法和设备以外,本发明的实施例还可以是计算机程序产品,其包括计算机程序指令,所述计算机程序指令在被处理器运行时使得所述处理器执行本说明书上述“示例性方法”部分中描述的根据本发明各种实施例的方法中的步骤。In addition to the above methods and devices, embodiments of the present invention may also be a computer program product, which includes computer program instructions that, when executed by a processor, cause the processor to execute the “exemplary method” described above in this specification The steps in methods according to various embodiments of the invention are described in Sec.
所述计算机程序产品可以以一种或多种程序设计语言的任意组合来编写用于执行本发明实施例操作的程序代码,所述程序设计语言包括面向对象的程序设计语言,诸如Java、C++等,还包括常规的过程式程序设计语言,诸如“C”语言或类似的程序设计语言。程序代码可以完全地在用户计算设备上执行、部分地在用户设备上执行、作为一个独立的软件包执行、部分在用户计算设备上部分在远程计算设备上执行、或者完全在远程计算设备或服务器上执行。The computer program product may be written in any combination of one or more programming languages, including object-oriented programming languages, such as Java, C++, etc., to write program codes for performing operations of embodiments of the present invention. , also includes conventional procedural programming languages, such as the "C" language or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device and partly on a remote computing device, or entirely on the remote computing device or server execute on.
此外,本发明的实施例还可以是计算机可读存储介质,其上存储有计算机程序指令,所述计算机程序指令在被处理器运行时使得所述处理器执行本说明书上述“示例性方法”部分中描述的根据本发明各种实施例的对历史变更记录进行信息挖掘的方法中的步骤。In addition, embodiments of the present invention may also be a computer-readable storage medium having computer program instructions stored thereon. The computer program instructions, when executed by a processor, cause the processor to execute the above-mentioned “exemplary method” part of this specification. The steps in the method for information mining of historical change records according to various embodiments of the present invention are described in .
所述计算机可读存储介质可以采用一个或多个可读介质的任意组合。可读介质可以是可读信号介质或者可读存储介质。可读存储介质例如可以包括但不限于电、磁、光、电磁、红外线、或半导体的系统、系统或器件,或者任意以上的组合。可读存储介质的更具体的例子(非穷举的列表)包括:具有一个或多个导线的电连接、便携式盘、硬盘、随机存取存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、光纤、便携式紧凑盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。The computer-readable storage medium may be any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. Readable storage media may include, for example, but are not limited to, electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, systems or devices, or any combination thereof. More specific examples (non-exhaustive list) of readable storage media include: electrical connection with one or more conductors, portable disk, hard disk, 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 device, magnetic storage device, or any suitable combination of the above.
以上结合具体实施例描述了本发明的基本原理,但是,需要指出的是,在本发明中提及的优点、优势、效果等仅是示例而非限制,不能认为这些优点、优势、效果等是本发明的各个实施例必须具备的。另外,上述公开的具体细节仅是为了示例的作用和便于理解的作用,而非限制,上述细节并不限制本发明为必须采用上述具体的细节来实现。The basic principles of the present invention have been described above in conjunction with specific embodiments. However, it should be pointed out that the advantages, advantages, effects, etc. mentioned in the present invention are only examples and not limitations. These advantages, advantages, effects, etc. cannot be considered to be Each embodiment of the present invention must have. In addition, the specific details disclosed above are only for the purpose of illustration and to facilitate understanding, and are not limiting. The above details do not limit the present invention to the fact that the invention must be implemented using the above specific details.
本说明书中各个实施例均采用递进的方式描述,每个实施例重点说明的都是与其它实施例的不同之处,各个实施例之间相同或相似的部分相互参见即可。对于系统实施例而言,由于其与方法实施例基本对应,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。Each embodiment in this specification is described in a progressive manner, and each embodiment focuses on its differences from other embodiments. The same or similar parts between the various embodiments can be referred to each other. For the system embodiment, since it basically corresponds to the method embodiment, the description is relatively simple. For relevant details, please refer to the partial description of the method embodiment.
本发明中涉及的器件、系统、设备、系统的方框图仅作为例示性的例子并且不意图要求或暗示必须按照方框图示出的方式进行连接、布置、配置。如本领域技术人员将认识到的,可以按任意方式连接、布置、配置这些器件、系统、设备、系统。诸如“包括”、“包含”、“具有”等等的词语是开放性词汇,指“包括但不限于”,且可与其互换使用。这里所使用的词汇“或”和“和”指词汇“和/或”,且可与其互换使用,除非上下文明确指示不是如此。这里所使用的词汇“诸如”指词组“诸如但不限于”,且可与其互换使用。The block diagrams of devices, systems, equipment, and systems involved in the present invention are only illustrative examples and are not intended to require or imply that they must be connected, arranged, or configured in the manner shown in the block diagrams. As those skilled in the art will recognize, these devices, systems, devices, systems may be connected, arranged, and configured in any manner. Words such as "includes," "includes," "having," etc. are open-ended terms that mean "including, but not limited to," and may be used interchangeably therewith. As used herein, the words "or" and "and" refer to the words "and/or" and are used interchangeably therewith unless the context clearly dictates otherwise. As used herein, the word "such as" refers to the phrase "such as, but not limited to," and may be used interchangeably therewith.
可能以许多方式来实现本发明的方法和系统。例如,可通过软件、硬件、固件或者软件、硬件、固件的任何组合来实现本发明的方法和系统。用于所述方法的步骤的上述顺序仅是为了进行说明,本发明的方法的步骤不限于以上具体描述的顺序,除非以其它方式特别说明。此外,在一些实施例中,还可将本发明实施为记录在记录介质中的程序,这些程序包括用于实现根据本发明的方法的机器可读指令。因而,本发明还覆盖存储用于执行根据本发明的方法的程序的记录介质。The methods and systems of the present invention may be implemented in many ways. For example, the method and system of the present invention can be implemented through software, hardware, firmware, or any combination of software, hardware, and firmware. The above order for the steps of the method is for illustration only, and the steps of the method of the present invention are not limited to the order specifically described above unless otherwise specifically stated. Furthermore, in some embodiments, the present invention can also be implemented as programs recorded in recording media, and these programs include machine-readable instructions for implementing the methods according to the present invention. Thus, the present invention also covers recording media storing a program for executing the method according to the present invention.
还需要指出的是,在本发明的系统、设备和方法中,各部件或各步骤是可以分解和/或重新组合的。这些分解和/或重新组合应视为本发明的等效方案。提供所公开的方面的以上描述以使本领域的任何技术人员能够做出或者使用本发明。对这些方面的各种修改对于本领域技术人员而言是非常显而易见的,并且在此定义的一般原理可以应用于其他方面而不脱离本发明的范围。因此,本发明不意图被限制到在此示出的方面,而是按照与在此公开的原理和新颖的特征一致的最宽范围。It should also be noted that in the system, device and method of the present invention, each component or each step can be decomposed and/or recombined. These decompositions and/or recombinations should be regarded as equivalent solutions of the present invention. The above description of the disclosed aspects is provided to enable any person skilled in the art to make or use the invention. Various modifications to these aspects will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other aspects without departing from the scope of the invention. Thus, the present invention is not intended to be limited to the aspects shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
为了例示和描述的目的已经给出了以上描述。此外,此描述不意图将本发明的实施例限制到在此公开的形式。尽管以上已经讨论了多个示例方面和实施例,但是本领域技术人员将认识到其某些变型、修改、改变、添加和子组合。The foregoing description has been presented for the purposes of illustration and description. Furthermore, this description is not intended to limit embodiments of the invention to the form disclosed herein. Although various example aspects and embodiments have been discussed above, those skilled in the art will recognize certain variations, modifications, changes, additions and sub-combinations thereof.
Claims (10)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202311517200.XA CN117493198A (en) | 2023-11-15 | 2023-11-15 | A method, device and medium for automatically writing test cases |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202311517200.XA CN117493198A (en) | 2023-11-15 | 2023-11-15 | A method, device and medium for automatically writing test cases |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN117493198A true CN117493198A (en) | 2024-02-02 |
Family
ID=89677912
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202311517200.XA Pending CN117493198A (en) | 2023-11-15 | 2023-11-15 | A method, device and medium for automatically writing test cases |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN117493198A (en) |
Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20110035631A1 (en) * | 2005-10-17 | 2011-02-10 | Bhinge Amol V | Efficient Replaying of Autograded Coverage Regressions and Performance Verification with Directed Testcases |
| CN116701171A (en) * | 2023-04-17 | 2023-09-05 | 网易有道(杭州)智能科技有限公司 | Method, apparatus, device and storage medium for automated testing |
| CN116841898A (en) * | 2023-07-13 | 2023-10-03 | 中国银行股份有限公司 | Test case and test script generation method, device, system and medium |
| US20230342392A1 (en) * | 2020-02-21 | 2023-10-26 | Brian MCCARSON | Generative ai systems and methods for economic analytics and forecasting |
| CN116974916A (en) * | 2023-07-07 | 2023-10-31 | 支付宝(杭州)信息技术有限公司 | Method and device for generating test cases |
| CN117033253A (en) * | 2023-10-10 | 2023-11-10 | 北京轻松怡康信息技术有限公司 | Interface testing method and device, electronic equipment and storage medium |
-
2023
- 2023-11-15 CN CN202311517200.XA patent/CN117493198A/en active Pending
Patent Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20110035631A1 (en) * | 2005-10-17 | 2011-02-10 | Bhinge Amol V | Efficient Replaying of Autograded Coverage Regressions and Performance Verification with Directed Testcases |
| US20230342392A1 (en) * | 2020-02-21 | 2023-10-26 | Brian MCCARSON | Generative ai systems and methods for economic analytics and forecasting |
| CN116701171A (en) * | 2023-04-17 | 2023-09-05 | 网易有道(杭州)智能科技有限公司 | Method, apparatus, device and storage medium for automated testing |
| CN116974916A (en) * | 2023-07-07 | 2023-10-31 | 支付宝(杭州)信息技术有限公司 | Method and device for generating test cases |
| CN116841898A (en) * | 2023-07-13 | 2023-10-03 | 中国银行股份有限公司 | Test case and test script generation method, device, system and medium |
| CN117033253A (en) * | 2023-10-10 | 2023-11-10 | 北京轻松怡康信息技术有限公司 | Interface testing method and device, electronic equipment and storage medium |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| Flanagan | JavaScript: The definitive guide: Activate your web pages | |
| US10353702B2 (en) | Source code element signatures | |
| US9280442B1 (en) | System and method for generating coverage reports for software unit tests | |
| WO2017124952A1 (en) | Webpage script loading method and device | |
| Bisht | Robot framework test automation | |
| JP2007323573A (en) | Functional test script generator | |
| US20200012590A1 (en) | Development-time awareness of a production dependency injection environment | |
| US9141344B2 (en) | Hover help support for application source code | |
| US20160321218A1 (en) | System and method for transforming image information for a target system interface | |
| CN114077430A (en) | Interface generation method, device, electronic device and storage medium | |
| US20170300305A1 (en) | Executable guidance experiences based on implicitly generated guidance models | |
| WO2017034953A1 (en) | System and method for object compression and state synchronization | |
| CN116028028A (en) | Request function generation method, device, equipment and storage medium | |
| US11604662B2 (en) | System and method for accelerating modernization of user interfaces in a computing environment | |
| CN111782180A (en) | Page generating method and apparatus, electronic device and storage medium | |
| CN118259906A (en) | Multi-terminal page adaptation method, equipment and medium based on PaaS framework | |
| CN117493198A (en) | A method, device and medium for automatically writing test cases | |
| CN111078529A (en) | Client write-in module testing method and device and electronic equipment | |
| CN117473044A (en) | Language data detection method and device, electronic equipment and storage medium | |
| CN111475156B (en) | Page code generation method and device, electronic equipment and storage medium | |
| US10185706B2 (en) | Generating web browser views for applications | |
| CN114816246A (en) | Proto file processing method and device | |
| CN114201215A (en) | Interface document generation method and device, electronic equipment and storage medium | |
| CN112130852A (en) | Operation method and device of online editing platform and electronic equipment | |
| US11960560B1 (en) | Methods for analyzing recurring accessibility issues with dynamic web site behavior and devices thereof |
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 | ||
| RJ01 | Rejection of invention patent application after publication |
Application publication date: 20240202 |
|
| RJ01 | Rejection of invention patent application after publication |