CN111679965A - Automated testing method, apparatus, computer equipment and storage medium - Google Patents
Automated testing method, apparatus, computer equipment and storage medium Download PDFInfo
- Publication number
- CN111679965A CN111679965A CN202010327124.6A CN202010327124A CN111679965A CN 111679965 A CN111679965 A CN 111679965A CN 202010327124 A CN202010327124 A CN 202010327124A CN 111679965 A CN111679965 A CN 111679965A
- Authority
- CN
- China
- Prior art keywords
- code
- automated
- test
- specified
- container
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Prevention of errors by analysis, debugging or testing of software
- G06F11/3668—Testing of software
- G06F11/3672—Test management
-
- 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/3698—Environments for analysis, debugging or testing of software
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/61—Installation
- G06F8/63—Image based installation; Cloning; Build to order
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Software Systems (AREA)
- Debugging And Monitoring (AREA)
Abstract
本申请揭示了一种自动化测试方法、装置、计算机设备和存储介质,方法包括:当接收到自动化测试请求时,获取代码管理仓库的第一地址信息;根据第一地址信息,通过预设的容器云平台内的代码管理工具从代码管理仓库中获取与自动化测试请求对应的指定代码;根据指定代码,生成与指定代码对应的自动化测试脚本;从镜像仓库中拉取预设的Docker镜像,并将Docker镜像部署在容器云平台内;将自动化测试脚本拷贝到容器云平台内的Docker镜像中,生成对应的pod;在pod中执行自动化测试脚本。本申请通过使用容器技术以及镜像技术来生成用于进行自动化测试的pod,有效地保证了自动化测试的测试运行环境的可复用性和可维护性,提高了自动化测试的测试效率与测试稳定性。
The present application discloses an automated testing method, device, computer equipment and storage medium. The method includes: when an automated testing request is received, acquiring first address information of a code management warehouse; The code management tool in the cloud platform obtains the specified code corresponding to the automated test request from the code management warehouse; generates the automated test script corresponding to the specified code according to the specified code; pulls the preset Docker image from the mirror warehouse, and puts the The Docker image is deployed in the container cloud platform; the automated test script is copied to the Docker image in the container cloud platform to generate the corresponding pod; the automated test script is executed in the pod. This application uses container technology and mirroring technology to generate pods for automated testing, which effectively ensures the reusability and maintainability of the test running environment for automated testing, and improves the testing efficiency and test stability of automated testing. .
Description
技术领域technical field
本申请涉及互联网技术领域,具体涉及一种自动化测试方法、装置、计算机设备和存储介质。The present application relates to the field of Internet technologies, and in particular, to an automated testing method, apparatus, computer equipment and storage medium.
背景技术Background technique
自动化测试在测试阶段已越来越重要,自动化测试可以覆盖部分测试用例,从而减轻测试人员的版本交付压力。现有的自动化测试流程通常需要在自动化测试服务器上部署测试运行环境,例如代码运行环境、依赖库以及各种软件等来运行自动化测试脚本。但是,在自动化测试服务器上成功部署好自动化测试脚本的测试运行环境后,如果一旦自动化测试服务器发生异常并需要进行系统重装时,则之前所部署好的配置数据将全部丢失,导致后续根本无法正常进行自动化测试。如果需要恢复上述测试运行环境,则需要重新执行一遍上述的测试运行环境的部署流程,测试运行环境的复用性不高,自动化测试的测试效率低下。而且,当前快速恢复测试运行环境对测试人员来说是一件比较困难且费时费力的事情,测试运行环境的维护成本较高。Automated testing has become more and more important in the testing phase, and automated testing can cover part of the test cases, thereby reducing the release pressure of testers. The existing automated testing process usually needs to deploy a test running environment, such as a code running environment, dependent libraries, and various software, on an automated test server to run automated test scripts. However, after the test running environment of the automated test script is successfully deployed on the automated test server, if an exception occurs on the automated test server and the system needs to be reinstalled, all the previously deployed configuration data will be lost, making it impossible to follow up at all. Run automated tests as normal. If the above-mentioned test operation environment needs to be restored, the above-mentioned deployment process of the test operation environment needs to be performed again, the reusability of the test operation environment is not high, and the test efficiency of the automated test is low. Moreover, it is difficult, time-consuming and labor-intensive for testers to quickly restore the test running environment at present, and the maintenance cost of the test running environment is relatively high.
发明内容SUMMARY OF THE INVENTION
本申请的主要目的为提供一种自动化测试方法、装置、计算机设备和存储介质,旨在解决现有的在进行自动化测试流程的过程中如果出现自动化测试服务器发生异常并需要进行系统重装的时情况时,需要重新执行一遍测试运行环境的部署流程,进而导致测试运行环境的复用性不高,测试运行环境的维护成本较高,且自动化测试的测试效率低下的技术问题。The main purpose of the present application is to provide an automated test method, device, computer equipment and storage medium, which aims to solve the problem of the existing automated test server abnormality and the need to reload the system during the process of automated test process. In some cases, the deployment process of the test running environment needs to be re-executed, which leads to the low reusability of the test running environment, the high maintenance cost of the test running environment, and the low test efficiency of automated testing.
本申请提出一种自动化测试方法,所述方法包括步骤:The application proposes an automated testing method, the method includes the steps:
当接收到自动化测试请求时,获取代码管理仓库的第一地址信息;When an automated test request is received, obtain the first address information of the code management warehouse;
根据所述第一地址信息,通过预设的容器云平台内的代码管理工具从所述代码管理仓库中获取与所述自动化测试请求对应的指定代码;According to the first address information, the specified code corresponding to the automated test request is obtained from the code management warehouse through a preset code management tool in the container cloud platform;
根据所述指定代码,生成与所述指定代码对应的自动化测试脚本;According to the specified code, generate an automated test script corresponding to the specified code;
从镜像仓库中拉取预设的Docker镜像,并将所述Docker镜像部署在所述容器云平台内;Pull the preset Docker image from the image warehouse, and deploy the Docker image in the container cloud platform;
将所述自动化测试脚本拷贝到所述容器云平台内的Docker镜像中,生成对应的pod;Copying the automated test script into the Docker image in the container cloud platform to generate a corresponding pod;
在所述pod中执行所述自动化测试脚本。Execute the automated test script in the pod.
可选地,所述根据所述第一地址信息,通过预设的容器云平台内的代码管理工具从所述代码管理仓库中获取与所述自动化测试请求对应的指定代码的步骤之前,包括:Optionally, before the step of acquiring the specified code corresponding to the automated test request from the code management warehouse by using a preset code management tool in the container cloud platform according to the first address information, the method includes:
接收输入的与自动化测试相对应的测试代码;Receive the input test code corresponding to the automated test;
从所述测试代码中筛选出方法名称,其中,所述方法名称的数量包括一个或多个;Screen out method names from the test code, wherein the number of method names includes one or more;
从预创建的pytest装饰器中提取出与所述方法名称对应的方法数据;Extract the method data corresponding to the method name from the pre-created pytest decorator;
使用所述方法数据对所述测试代码进行更新处理,得到所述指定代码;Using the method data to update the test code to obtain the specified code;
向Gitlab服务器发送所述指定代码,以通过所述Gitlab服务器将所述指定代码存储至所述代码管理仓库内。The specified code is sent to the Gitlab server, so that the specified code is stored in the code management repository through the Gitlab server.
可选地,所述从预创建的pytest装饰器中提取出与所述方法名称对应的方法数据的步骤之前,包括:Optionally, before the step of extracting the method data corresponding to the method name from the pre-created pytest decorator, the method includes:
获取与自动化测试相对应的公共方法;Get public methods corresponding to automated tests;
将所述公共方法封装成pytest装饰器;Encapsulate the public method into a pytest decorator;
将所述pytest装饰器存储于预创建的第一指定文件内。Store the pytest decorator in a pre-created first designated file.
可选地,所述根据所述指定代码,生成与所述指定代码对应的自动化测试脚本的步骤,包括:Optionally, the step of generating an automated test script corresponding to the specified code according to the specified code includes:
对所述指定代码执行编译操作;performing a compilation operation on the specified code;
获取所述指定代码执行所述编译操作后生成的编译结果;Obtain the compilation result generated after the specified code performs the compilation operation;
从预设的脚本数据库中获取与所述自动化测试请求对应的脚本模板;Obtain a script template corresponding to the automated test request from a preset script database;
根据所述编译结果与所述脚本模板,生成所述自动化测试脚本。The automated test script is generated according to the compilation result and the script template.
可选地,所述从镜像仓库中拉取预设的Docker镜像,并将所述Docker镜像部署在所述容器云平台内的步骤之前,包括:Optionally, before the step of pulling a preset Docker image from an image warehouse and deploying the Docker image in the container cloud platform, the steps include:
获取python程序的依赖库,并将所述python依赖库打包成一个与指定文件类型对应的第二指定文件;Obtain the dependency library of the python program, and package the python dependency library into a second specified file corresponding to the specified file type;
获取输入的Dockerfile文件;Get the input Dockerfile file;
将所述第二指定文件与所述Dockerfile文件放置于同一个预创建的指定目录内;The second specified file and the Dockerfile file are placed in the same pre-created specified directory;
获取基础镜像,其中,所述基础镜像内包括python程序的运行环境;Acquire a base image, wherein the base image includes a running environment of a python program;
通过Docker build命令将所述指定目录中的所述python程序的依赖库打包至所述基础镜像内,得到对应的Docker镜像;The dependency library of the python program in the specified directory is packaged into the base image by the Docker build command to obtain the corresponding Docker image;
通过Docker push命令将所述Docker镜像发送至所述镜像仓库进行存储;Send the Docker image to the image warehouse for storage through the Docker push command;
所述从镜像仓库中拉取预设的Docker镜像的步骤,包括:The step of pulling the preset Docker image from the image warehouse includes:
获取所述镜像仓库的第二地址信息;obtaining the second address information of the mirror warehouse;
根据所述第二地址信息,从所述镜像仓库中拉取所述Docker镜像。Pull the Docker image from the image repository according to the second address information.
可选地,所述当接收到自动化测试请求时,获取代码管理仓库的第一地址信息的步骤之前,包括:Optionally, before the step of obtaining the first address information of the code management warehouse when an automated test request is received, the steps include:
在预设时间段内对所述云容器平台进行监控,获取所述云容器平台对应的状态信息;monitor the cloud container platform within a preset time period, and obtain status information corresponding to the cloud container platform;
根据所述状态信息,判断所述云容器平台的容器状态是否发生异常;According to the state information, determine whether the container state of the cloud container platform is abnormal;
若判断出所述云容器平台的容器状态没有发生异常,则生成获取代码管理仓库的第一地址信息的获取指令。If it is determined that the container state of the cloud container platform is not abnormal, an acquisition instruction for acquiring the first address information of the code management warehouse is generated.
可选地,所述在所述pod中执行所述自动化测试脚本的步骤之后,包括:Optionally, after the step of executing the automated test script in the pod, it includes:
获取所述自动化测试脚本的运行结果;Obtain the running result of the automated test script;
将所述运行结果对应的实际输出与预期输出进行比对,得到比对结果;Comparing the actual output corresponding to the running result with the expected output to obtain a comparison result;
根据所述运行结果与所述比对结果,生成所述自动化测试脚本的测试报告;Generate a test report of the automated test script according to the running result and the comparison result;
展示所述测试报告。Display the test report.
本申请还提供一种自动化测试装置,包括:The application also provides an automated testing device, comprising:
第一获取模块,用于当接收到自动化测试请求时,获取代码管理仓库的第一地址信息;a first acquisition module, configured to acquire the first address information of the code management warehouse when an automated test request is received;
第二获取模块,用于根据所述第一地址信息,通过预设的容器云平台内的代码管理工具从所述代码管理仓库中获取与所述自动化测试请求对应的指定代码;The second obtaining module is configured to obtain the specified code corresponding to the automated test request from the code management warehouse through a preset code management tool in the container cloud platform according to the first address information;
第一生成模块,用于根据所述指定代码,生成与所述指定代码对应的自动化测试脚本;a first generation module, configured to generate an automated test script corresponding to the specified code according to the specified code;
部署模块,用于从镜像仓库中拉取预设的Docker镜像,并将所述Docker镜像部署在所述容器云平台内;A deployment module, used to pull a preset Docker image from an image warehouse, and deploy the Docker image in the container cloud platform;
第二生成模块,用于将所述自动化测试脚本拷贝到所述容器云平台内的Docker镜像中,生成对应的pod;The second generation module is used to copy the automated test script to the Docker image in the container cloud platform to generate a corresponding pod;
执行模块,用于在所述pod中执行所述自动化测试脚本。An execution module, configured to execute the automated test script in the pod.
本申请还提供一种计算机设备,包括存储器和处理器,所述存储器中存储有计算机程序,所述处理器执行所述计算机程序时实现上述方法的步骤。The present application also provides a computer device, including a memory and a processor, where a computer program is stored in the memory, and the processor implements the steps of the above method when executing the computer program.
本申请还提供一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现上述方法的步骤。The present application also provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the steps of the above method are implemented.
本申请中提供的自动化测试方法、装置、计算机设备和存储介质,具有以下有益效果:The automated testing method, device, computer equipment and storage medium provided in this application have the following beneficial effects:
本申请中提供的自动化测试方法、装置、计算机设备和存储介质,当接收到自动化测试请求时,获取代码管理仓库的第一地址信息;根据所述第一地址信息,通过预设的容器云平台内的代码管理工具从所述代码管理仓库中获取与所述自动化测试请求对应的指定代码;根据所述指定代码,生成与所述指定代码对应的自动化测试脚本;从镜像仓库中拉取预设的Docker镜像,并将所述Docker镜像部署在所述容器云平台内;将所述自动化测试脚本拷贝到所述容器云平台内的Docker镜像中,生成对应的pod;在所述pod中执行所述自动化测试脚本。本申请通过使用容器技术以及镜像技术来生成用于进行自动化测试的pod,增加了自动化测试的测试环境的可移动性。当pod发生异常时,能够快速的生成一个新的pod来再次部署用于执行自动化测试的测试运行环境,并不会出现测试运行环境丢失的情况,保证了自动化测试的测试运行环境的可复用性和可维护性,有效避免了在自动化测试服务器上部署的测试运行环境发生异常时传统的自动化测试方法需要重新部署测试运行环境,提高了自动化测试的测试效率与测试稳定性。In the automated testing method, device, computer equipment and storage medium provided in this application, when an automated testing request is received, the first address information of the code management warehouse is obtained; according to the first address information, the preset container cloud platform is The code management tool inside obtains the specified code corresponding to the automated test request from the code management warehouse; generates an automated test script corresponding to the specified code according to the specified code; pulls presets from the mirror warehouse Docker image, and deploy the Docker image in the container cloud platform; copy the automated test script to the Docker image in the container cloud platform to generate a corresponding pod; described automated test scripts. The present application increases the mobility of the test environment for automated testing by using container technology and mirroring technology to generate pods for automated testing. When the pod is abnormal, a new pod can be quickly generated to deploy the test running environment for executing automated tests again, and the test running environment will not be lost, ensuring the reusability of the test running environment for automated testing. The traditional automated testing method needs to redeploy the test running environment when the test running environment deployed on the automated test server is abnormal, which improves the test efficiency and test stability of the automated test.
附图说明Description of drawings
图1是本申请一实施例的自动化测试方法的流程示意图;1 is a schematic flowchart of an automated testing method according to an embodiment of the present application;
图2是本申请一实施例的自动化测试装置的结构示意图;2 is a schematic structural diagram of an automated testing device according to an embodiment of the present application;
图3是本申请一实施例的计算机设备的结构示意图。FIG. 3 is a schematic structural diagram of a computer device according to an embodiment of the present application.
本申请目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。The realization, functional characteristics and advantages of the purpose of the present application will be further described with reference to the accompanying drawings in conjunction with the embodiments.
具体实施方式Detailed ways
应当理解,此处所描述的具体实施例仅仅用于解释本申请,并不用于限定本申请。It should be understood that the specific embodiments described herein are only used to explain the present application, but not to limit the present application.
需要说明,本申请实施例中所有方向性指示(诸如上、下、左、右、前、后……)仅用于解释在某一特定姿态(如附图所示)下各部件之间的相对位置关系、运动情况等,如果该特定姿态发生改变时,则该方向性指示也相应地随之改变,所述的连接可以是直接连接,也可以是间接连接。It should be noted that all directional indications (such as up, down, left, right, front, back...) in the embodiments of the present application are only used to explain the relationship between various components under a certain posture (as shown in the accompanying drawings). The relative positional relationship, movement situation, etc., if the specific posture changes, the directional indication also changes accordingly, and the connection may be a direct connection or an indirect connection.
参照图1,本申请一实施例的自动化测试方法,包括:1, an automated testing method according to an embodiment of the present application includes:
S1:当接收到自动化测试请求时,获取代码管理仓库的第一地址信息;S1: When an automated test request is received, obtain the first address information of the code management warehouse;
S2:根据所述第一地址信息,通过预设的容器云平台内的代码管理工具从所述代码管理仓库中获取与所述自动化测试请求对应的指定代码;S2: According to the first address information, obtain the specified code corresponding to the automated test request from the code management warehouse through a preset code management tool in the container cloud platform;
S3:根据所述指定代码,生成与所述指定代码对应的自动化测试脚本;S3: according to the specified code, generate an automated test script corresponding to the specified code;
S4:从镜像仓库中拉取预设的Docker镜像,并将所述Docker镜像部署在所述容器云平台内;S4: Pull the preset Docker image from the image warehouse, and deploy the Docker image in the container cloud platform;
S5:将所述自动化测试脚本拷贝到所述容器云平台内的Docker镜像中,生成对应的pod;S5: Copy the automated test script to the Docker image in the container cloud platform to generate a corresponding pod;
S6:在所述pod中执行所述自动化测试脚本。S6: Execute the automated test script in the pod.
如上述步骤S1至S6上述,本方法实施例的执行主体为一种自动化测试装置。在实际应用中,该自动化测试装置可以通过虚拟装置,例如软件代码实现,也可以通过写入或集成有相关执行代码的实体装置实现,且可以与用户通过键盘、鼠标、遥控器、触摸板或声控设备等方式进行人机交互。本实施例提供的自动化测试装置能够在自动化测试服务器的测试运行环境发生异常时,通过生成pod的方式来在容器云平台内快速便捷地部署对应的测试运行环境,以保证自动化测试的正常运作。具体地,当接收到自动化测试请求时,首先获取代码管理仓库的第一地址信息。然后根据上述第一地址信息,通过预设的容器云平台内的代码管理工具从上述代码管理仓库中获取与自动化测试请求对应的指定代码。其中,在接收到上述自动化测试请求之前,会预先创建好上述容器云平台。上述容器云平台包括代码管理工具以及镜像仓库,可通过预设的容器创建脚本,依靠容器技术和集群调度编辑管理技术来自动创建该容器云平台。在得到了上述指定代码后,根据上述指定代码,生成与上述指定代码对应的自动化测试脚本。其中,可以根据对上述指定代码进行编译操作后生成的编译结果,以及与自动化测试请求对应的脚本模板来生成上述自动化测试脚本。在得到了上述自动化测试脚本后,从镜像仓库中获取预设的Docker镜像,并将Docker镜像部署在上述容器云平台内。Docker镜像部署完成后,将上述自动化测试脚本拷贝到上述容器云平台内的Docker镜像中,生成对应的pod。其中,可将上述pod视作为一个通过运行自动化测试脚本进行自动化测试所需要的测试运行环境。最后在生成了上述pod后,再在上述pod中执行上述自动化测试脚本,以实现自动化测试的测试流程。其中,如果在上述pod中执行上述自动化测试脚本的执行过程中出现了异常,则可重新执行上述自动化测试流程来快速生成一个新的pod,再通过该新的pod来执行上述自动化测试脚本。另外,当接收到新的自动化测试请求时,则重复执行上述步骤。本实施例通过使用容器技术以及镜像技术来生成用于进行自动化测试的pod,增加了自动化测试的测试环境的可移动性。当pod发生异常时,能够快速的生成一个新的pod来再次部署用于执行自动化测试的测试运行环境,并不会出现测试运行环境丢失的情况,保证了自动化测试的测试运行环境的可复用性和可维护性,有效避免了在自动化测试服务器上部署的测试运行环境发生异常时传统的自动化测试方法需要重新部署测试运行环境,提高了自动化测试的测试效率与测试稳定性。As described above in steps S1 to S6, the execution body of this embodiment of the method is an automated testing device. In practical applications, the automated testing device can be implemented by a virtual device, such as software code, or by a physical device written or integrated with relevant execution codes, and can communicate with the user through a keyboard, mouse, remote control, touchpad or Human-computer interaction by means of voice-activated devices. The automated test apparatus provided by this embodiment can quickly and conveniently deploy the corresponding test running environment in the container cloud platform by generating a pod when the test running environment of the automated test server is abnormal, so as to ensure the normal operation of the automated test. Specifically, when an automated test request is received, first address information of the code management warehouse is obtained. Then, according to the above-mentioned first address information, the designated code corresponding to the automated test request is obtained from the above-mentioned code management warehouse through a preset code management tool in the container cloud platform. Wherein, before receiving the above-mentioned automated test request, the above-mentioned container cloud platform will be pre-created. The above-mentioned container cloud platform includes code management tools and image warehouses, and the container cloud platform can be automatically created by relying on container technology and cluster scheduling editing management technology through a preset container creation script. After the above specified code is obtained, an automated test script corresponding to the above specified code is generated according to the above specified code. The automated test script may be generated according to a compilation result generated after the above-mentioned specified code is compiled, and a script template corresponding to the automated test request. After obtaining the above automated test script, obtain the preset Docker image from the mirror warehouse, and deploy the Docker image in the above container cloud platform. After the Docker image is deployed, copy the above automated test script to the Docker image in the above container cloud platform to generate the corresponding pod. Among them, the above-mentioned pod can be regarded as a test running environment required for automated testing by running automated test scripts. Finally, after the above-mentioned pod is generated, the above-mentioned automated test script is executed in the above-mentioned pod to realize the test process of the automated test. Wherein, if an exception occurs during the execution of the above-mentioned automated test script in the above-mentioned pod, the above-mentioned automated test process can be re-executed to quickly generate a new pod, and then the above-mentioned automated test script is executed through the new pod. In addition, when a new automated test request is received, the above steps are repeated. This embodiment increases the mobility of the test environment for automated testing by using the container technology and the mirroring technology to generate pods for automated testing. When the pod is abnormal, a new pod can be quickly generated to deploy the test running environment for executing automated tests again, and the test running environment will not be lost, ensuring the reusability of the test running environment for automated testing. The traditional automated testing method needs to redeploy the test running environment when the test running environment deployed on the automated test server is abnormal, which improves the test efficiency and test stability of the automated test.
进一步地,本申请一实施例中,上述步骤S2之前,包括:Further, in an embodiment of the present application, before the above step S2, it includes:
S200:接收输入的与自动化测试相对应的测试代码;S200: Receive the input test code corresponding to the automated test;
S201:从所述测试代码中筛选出方法名称,其中,所述方法名称的数量包括一个或多个;S201: Screen out method names from the test code, wherein the number of the method names includes one or more;
S202:从预创建的pytest装饰器中提取出与所述方法名称对应的方法数据;S202: Extract the method data corresponding to the method name from the pre-created pytest decorator;
S203:使用所述方法数据对所述测试代码进行更新处理,得到所述指定代码;S203: use the method data to update the test code to obtain the specified code;
S204:向Gitlab服务器发送所述指定代码,以通过所述Gitlab服务器将所述指定代码存储至所述代码管理仓库内。S204: Send the specified code to the Gitlab server, so that the specified code is stored in the code management warehouse through the Gitlab server.
如上述步骤S200至S204所述,在上述根据上述第一地址信息,通过预设的容器云平台内的代码管理工具从上述代码管理仓库中获取与自动化测试请求对应的指定代码的步骤之前,还包括生成该指定代码的过程。具体地,首先接收用户输入的与自动化测试相对应的测试代码。然后从上述测试代码中筛选出方法名称,其中上述方法名称的数量包括一个或多个。之后从预创建的pytest装饰器中提取出与上述方法名称对应的方法数据。其中,上述pytest装饰器是通过对与自动化测试相关的公共方法进行封装后得到的。在得到了上述方法数据后,再使用上述方法数据对上述第一测试代码进行更新处理,得到上述指定代码。最后向Gitlab服务器发送上述指定代码,以使得上述Gitlab服务器将上述指定代码存储至上述代码管理仓库,从而后续能够该指定代码来生成用于进行自动化测试的自动化测试脚本。本实施例能够使得用户不需要重复编写公共方法并将公共方法包含的所有数据写入测试代码内,而用户只需要将公共方法的方法名称传入,后续智能的通过使用pytest装饰器来根据包含方法名称的测试代码来得到指定代码,有效的减少了用户的代码重复编写的工作量,降低了测试代码编写的局限性。As described in the above steps S200 to S204, before the above step of obtaining the specified code corresponding to the automated test request from the above code management warehouse through the code management tool in the preset container cloud platform according to the above first address information, further Include the process of generating the specified code. Specifically, the test code corresponding to the automated test input by the user is received first. Then filter out the method names from the above test code, where the number of the above method names includes one or more. Then extract the method data corresponding to the above method name from the pre-created pytest decorator. Among them, the above pytest decorator is obtained by encapsulating public methods related to automated testing. After the above-mentioned method data is obtained, the above-mentioned first test code is updated by using the above-mentioned method data to obtain the above-mentioned designated code. Finally, the above-mentioned specified code is sent to the Gitlab server, so that the above-mentioned Gitlab server stores the above-mentioned specified code in the above-mentioned code management warehouse, so that the specified code can be used to generate an automated test script for automated testing subsequently. In this embodiment, the user does not need to repeatedly write the public method and write all the data contained in the public method into the test code, but the user only needs to pass in the method name of the public method, and the subsequent intelligent use of the pytest decorator will be based on the inclusion of The test code of the method name is used to obtain the specified code, which effectively reduces the workload of the user's repetitive code writing and reduces the limitation of the test code writing.
进一步地,本申请一实施例中,上述步骤S202之前,包括:Further, in an embodiment of the present application, before the above step S202, it includes:
S2020:获取与自动化测试相对应的公共方法;S2020: Obtain public methods corresponding to automated tests;
S2021:将所述公共方法封装成pytest装饰器;S2021: Encapsulate the public method into a pytest decorator;
S2022:将所述pytest装饰器存储于预创建的第一指定文件内。S2022: Store the pytest decorator in a pre-created first specified file.
如上述步骤S2020至S2022所述,在上述从预创建的pytest装饰器中提取出与上述方法名称对应的方法数据的步骤之前,还包括创建该pytest装饰器的创建过程。具体地,首先获取与自动化测试相对应的公共方法。其中,对于获取上述公共方法的获取方式不作具体限定,可以通过查询与自动化测试相关的网络资源来获取上述公共方法,也可以通过接收开发人员输入的常用的公共方法来获得。在得到了上述公共方法后,将上述公共方法封装成pytest装饰器。其中,pytest装饰器通过使用pytest.fixture标识,定义在函数前面。在用户编写测试函数的时候,可以将此函数名称作为传入参数,pytest装饰器将会以依赖注入方式,将该函数的返回值作为测试函数的传入参数。最后将上述pytest装饰器存储于预创建的第一指定文件内,其中,上述第一指定文件具体可为conftest.py文件。通过将上述pytest装饰器存储于第一指定文件内,有利于后续在进行自动化测试过程中能够根据该pytest装饰器来对用户编写的包含有方法名称的测试代码进行加工,进而生成后续用于自动化测试所需使用的指定脚本。As described in the above steps S2020 to S2022, before the above step of extracting the method data corresponding to the above method name from the pre-created pytest decorator, a creation process of creating the pytest decorator is also included. Specifically, public methods corresponding to automated tests are first obtained. There is no specific limitation on how to obtain the above public methods. The above public methods can be obtained by querying network resources related to automated testing, or by receiving common public methods input by developers. After getting the above public method, encapsulate the above public method into a pytest decorator. Among them, the pytest decorator is defined in front of the function by using the pytest.fixture identifier. When the user writes the test function, the function name can be used as the incoming parameter, and the pytest decorator will use the dependency injection method to use the return value of the function as the incoming parameter of the test function. Finally, the above-mentioned pytest decorator is stored in a pre-created first designated file, where the above-mentioned first designated file may specifically be a conftest.py file. By storing the above-mentioned pytest decorator in the first specified file, it is beneficial to process the test code containing the method name written by the user according to the pytest decorator in the subsequent automated testing process, and then generate the subsequent use for automation. The specified script to be used for the test.
进一步地,本申请一实施例中,上述步骤S3,包括:Further, in an embodiment of the present application, the above step S3 includes:
S300:对所述指定代码执行编译操作;S300: perform a compilation operation on the specified code;
S301:获取所述指定代码执行所述编译操作后生成的编译结果;S301: Obtain a compilation result generated after the specified code performs the compilation operation;
S302:从预设的脚本数据库中获取与所述自动化测试请求对应的脚本模板;S302: Obtain a script template corresponding to the automated test request from a preset script database;
S303:根据所述编译结果与所述脚本模板,生成所述自动化测试脚本。S303: Generate the automated test script according to the compilation result and the script template.
如上述步骤S300至S303所述,上述根据上述指定代码,生成与上述指定代码对应的自动化测试脚本的步骤,具体可包括:首先对上述指定代码执行编译操作。然后获取上述指定代码执行编译操作后生成的编译结果,其中,可以通过编译器对上述代码进行编译得到上述编译结果,该编译方法可以采用现有常用的代码编译方案,在此不再赘述。在得到了上述编译结果后,再从预设的脚本数据库中获取与上述自动化测试请求对应的脚本模板。其中,上述脚本数据库内存储有各种类型的脚本模板文件。最后根据上述编译结果与上述脚本模板,生成上述自动化测试脚本,以便后续将生成的上述自动化测试脚本拷贝到上述容器云平台内的Docker镜像中,生成对应的pod,进而在上述pod中执行上述自动化测试脚本以完成自动化测试。具体地,可以参照与上述自动化测试请求对应的脚本模板,将上述编译结果输入至脚本模板的对应位置处来得到该自动化测试脚本。As described in the above steps S300 to S303, the above-mentioned steps of generating an automated test script corresponding to the above-mentioned designated code according to the above-mentioned designated code may specifically include: firstly performing a compilation operation on the above-mentioned designated code. Then, the compilation result generated after the above-mentioned specified code is compiled is obtained, wherein the above-mentioned compilation result can be obtained by compiling the above-mentioned code by a compiler. After the above compilation result is obtained, a script template corresponding to the above automatic test request is obtained from a preset script database. Among them, various types of script template files are stored in the above-mentioned script database. Finally, according to the above compilation result and the above script template, the above automated test script is generated, so that the above generated automated test script can be copied to the Docker image in the above container cloud platform, and the corresponding pod is generated, and then the above automation is executed in the above pod. Test scripts to complete automated tests. Specifically, the automated test script can be obtained by referring to the script template corresponding to the above-mentioned automated test request, and inputting the above-mentioned compilation result into the corresponding position of the script template.
进一步地,本申请一实施例中,上述步骤S4之前,包括:Further, in an embodiment of the present application, before the above step S4, it includes:
S400:获取python程序的依赖库,并将所述python依赖库打包成一个与指定文件类型对应的第二指定文件;S400: Obtain the dependency library of the python program, and package the python dependency library into a second specified file corresponding to the specified file type;
S401:获取输入的Dockerfile文件;S401: Obtain the input Dockerfile;
S402:将所述第二指定文件与所述Dockerfile文件放置于同一个预创建的指定目录内;S402: place the second specified file and the Dockerfile in the same pre-created specified directory;
S403:获取基础镜像,其中,所述基础镜像内包括python程序的运行环境;S403: Obtain a basic image, wherein the basic image includes a running environment of a python program;
S404:通过Docker build命令将所述指定目录中的所述python程序的依赖库打包至所述基础镜像内,得到对应的Docker镜像;S404: package the dependency library of the python program in the specified directory into the base image through the Docker build command to obtain a corresponding Docker image;
S405:通过Docker push命令将所述Docker镜像发送至所述镜像仓库进行存储;S405: Send the Docker image to the image warehouse for storage through the Docker push command;
所述步骤S4中从镜像仓库中拉取预设的Docker镜像的步骤,包括:The step of pulling the preset Docker image from the image warehouse in the step S4 includes:
S410:获取所述镜像仓库的第二地址信息;S410: Obtain the second address information of the mirror warehouse;
S411:根据所述第二地址信息,从所述镜像仓库中拉取所述Docker镜像。S411: Pull the Docker image from the image repository according to the second address information.
如上述步骤S400至S405所述,在上述从镜像仓库中拉取预设的Docker镜像的步骤之前,还包括生成该Docker镜像的生成过程,具体地,首先获取python程序的依赖库,并将上述python程序的依赖库打包成一个与指定文件类型对应的第二指定文件。其中,上述python程序的依赖库为现有的基于python语言已经开发好的一些方法数据,且该python程序的依赖库可以通过通过从相关的网络资源中(例如python语言的官方网站)下载获得。另外,上述指定文件类型具体为tar.gz文件类型。然后获取由开发人员编写并输入的Dockerfile,并将上述第二指定文件与上述Dockerfile文件放置于同一个指定目录内。其中,上述Dockerfile文件是用来构建Docker镜像的构建文件,是由一系列命令和参数构成的脚本文件,Dockerfile文件可由开发人员根据实际的业务需求进行编写并输入来获得的。另外,在构建Docker镜像时,会顺序执行该Dockerfile文件中包含的命令,例如python安装命令以及python程序的依赖库的安装命令。之后获取基础镜像,其中,上述基础镜像内包括python程序的运行环境,如果用户需要在python的运行环境内新增一些数据或修改python的运行环境内的一些数据,则需要重新对基础镜像进行对应修改,然后将得到修改后的基础镜像来对之前的基础镜像进行替换。在得到了上述基础镜像与上述指定目录后,通过Docker build命令将上述指定目录中的上述python程序的依赖库打包至上述基础镜像内,得到对应的Docker镜像。其中,举例地,上述Docker build命令具体可为Dockerbuild-t镜像仓库地址/镜像名称:镜像版本。最后通过Docker push命令将上述Docker镜像发送至预设的镜像仓库进行存储,以便后续在进行自动化测试流程中能够快速地从镜像仓库中拉取预设的Docker镜像,并将Docker镜像部署在上述容器云平台内。其中,在生成了上述Docker镜像后,还需要将该Docker镜像保存下来并于后续使用,例如可将该Docker镜像推送到镜像仓库上进行保存,保存后就不会丢失Docker镜像的情况,保证了Docker镜像的安全性。另外,举例地,上述Docker push命令具体可为Docker dockerpush镜像仓库地址/镜像名称:镜像版本。进一步地,如上述步骤S410至S411所述,上述获取预设的Docker镜像的步骤,具体可包括:首先获取上述镜像仓库的第二地址信息,然后根据上述第二地址信息,从上述镜像仓库中拉取上述Docker镜像。As described in the above steps S400 to S405, before the above step of pulling the preset Docker image from the mirror warehouse, the process of generating the Docker image is also included. Specifically, firstly, the dependency library of the python program is obtained, and the above-mentioned The dependency library of the python program is packaged into a second specified file corresponding to the specified file type. Wherein, the dependency library of the python program is some existing method data that has been developed based on the python language, and the dependency library of the python program can be obtained by downloading from relevant network resources (for example, the official website of the python language). In addition, the above-specified file type is specifically a tar.gz file type. Then, the Dockerfile written and input by the developer is obtained, and the above-mentioned second specified file and the above-mentioned Dockerfile file are placed in the same specified directory. The above-mentioned Dockerfile file is a build file used to build a Docker image, and is a script file composed of a series of commands and parameters. The Dockerfile file can be obtained by developers by writing and inputting them according to actual business requirements. In addition, when building a Docker image, the commands contained in the Dockerfile file, such as the python installation command and the installation command of the dependent library of the python program, are executed sequentially. After that, the basic image is obtained. The above basic image includes the operating environment of the python program. If the user needs to add some data in the operating environment of python or modify some data in the operating environment of python, it is necessary to re-correspond to the basic image. Modification, and then the modified base image will be obtained to replace the previous base image. After obtaining the above-mentioned basic image and the above-mentioned designated directory, package the dependency library of the above-mentioned python program in the above-mentioned designated directory into the above-mentioned basic image through the Docker build command to obtain the corresponding Docker image. Wherein, for example, the above-mentioned Docker build command may specifically be Dockerbuild-t image warehouse address/image name: image version. Finally, the above Docker image is sent to the preset image warehouse for storage through the Docker push command, so that the preset Docker image can be quickly pulled from the image warehouse in the subsequent automated testing process, and the Docker image can be deployed in the above container. in the cloud platform. Among them, after the above-mentioned Docker image is generated, the Docker image needs to be saved and used later. For example, the Docker image can be pushed to the mirror warehouse for saving, and the Docker image will not be lost after saving, which ensures that the Docker image will not be lost. Security of Docker images. In addition, for example, the above-mentioned Docker push command may specifically be Docker dockerpush image warehouse address/image name: image version. Further, as described in the above steps S410 to S411, the above-mentioned step of obtaining a preset Docker image may specifically include: first obtaining the second address information of the above-mentioned mirror warehouse, and then according to the above-mentioned second address information, from the above-mentioned mirror warehouse. Pull the above Docker image.
本申请一实施例中,上述步骤S1之前,包括:In an embodiment of the present application, before the above step S1, it includes:
S100:在预设时间段内对所述云容器平台进行监控,获取所述云容器平台对应的状态信息;S100: Monitor the cloud container platform within a preset time period, and obtain status information corresponding to the cloud container platform;
S101:根据所述状态信息,判断所述云容器平台的容器状态是否发生异常;S101: According to the state information, determine whether the container state of the cloud container platform is abnormal;
S102:若判断出所述云容器平台的容器状态没有发生异常,则生成获取代码管理仓库的第一地址信息的获取指令。S102: If it is determined that the container state of the cloud container platform is not abnormal, generate an acquisition instruction for acquiring the first address information of the code management warehouse.
如上述步骤S100至S102所述,当接收到自动化测试请求时,在进行获取代码管理仓库的第一地址信息的获取过程之前,还需要进一步监控预先创建的容器云平台是否能够正常运行,以确保后续能够根据该云容器平台来顺利地进行自动化测试。具体地,首先在预设时间段内对上述云容器平台进行监控,获取上述云容器平台对应的状态信息。其中,对上述预设时间段不作具体限定,可根据实际需求进行设置,例如可设置为云容器平台创建成功后的10分钟内。另外,上述状态信息可根据获取并分析云容器平台的相关运行数据来得到,上述相关运行数据具体可包括CPU使用率、内存使用率、网络吞吐量与空间利用率,等等。然后根据上述状态信息,判断上述云容器平台的容器状态是否发生异常。其中,上述状态信息具体可包括运作正常或运行异常,可通过将该相关运行数据与预设的标准阈值进行比较,如果相关运行数据处于标准阈值的范围之内,判定状态信息为运作正常,否则判定状态信息为运作异常。如果判断出上述云容器平台的容器状态没有发生异常,则生成获取代码管理仓库的第一地址信息的获取指令。在另一个实施例中,如果判断出上述云容器平台的容器状态发生了异常,则调用预设的容器创建脚本自动创建一个与上述云容器平台相同的云容器平台,进而使用该新创建的云容器平台来执行后续的自动化测试流程,以实现在容器云平台的容器状态发生异常后能够快速智能地对容器云平台进行重建处理,使得后续能够通过重新生成的云容器平台来进行更加可靠的自动化测试流程。As described in the above steps S100 to S102, when an automated test request is received, before the process of obtaining the first address information of the code management warehouse, it is necessary to further monitor whether the pre-created container cloud platform can run normally to ensure that Subsequent automated tests can be smoothly performed according to the cloud container platform. Specifically, firstly, the above-mentioned cloud container platform is monitored within a preset time period, and status information corresponding to the above-mentioned cloud container platform is obtained. The above preset time period is not specifically limited, and can be set according to actual needs, for example, it can be set within 10 minutes after the cloud container platform is successfully created. In addition, the above-mentioned status information can be obtained by acquiring and analyzing the relevant operation data of the cloud container platform. The above-mentioned relevant operation data may specifically include CPU usage, memory usage, network throughput and space utilization, and so on. Then, according to the above state information, it is determined whether the container state of the above cloud container platform is abnormal. The above state information may specifically include normal operation or abnormal operation. By comparing the relevant operation data with a preset standard threshold, if the relevant operation data is within the range of the standard threshold, the state information is determined to be in normal operation, otherwise It is determined that the status information is abnormal operation. If it is determined that the container state of the cloud container platform is not abnormal, an acquisition instruction for acquiring the first address information of the code management warehouse is generated. In another embodiment, if it is determined that the container state of the above-mentioned cloud container platform is abnormal, a preset container creation script is called to automatically create a cloud container platform that is the same as the above-mentioned cloud container platform, and then the newly created cloud container platform is used. The container platform executes the subsequent automated testing process, so that the container cloud platform can be quickly and intelligently rebuilt after the container state of the container cloud platform is abnormal, so that the regenerated cloud container platform can be used for more reliable automation. test process.
进一步地,本申请一实施例中,上述步骤S6之后,包括:Further, in an embodiment of the present application, after the above step S6, it includes:
S600:获取所述自动化测试脚本的运行结果;S600: Obtain the running result of the automated test script;
S601:将所述运行结果对应的实际输出与预期输出进行比对,得到比对结果;S601: Compare the actual output corresponding to the running result with the expected output to obtain a comparison result;
S602:根据所述运行结果与所述比对结果,生成所述自动化测试脚本的测试报告;S602: Generate a test report of the automated test script according to the running result and the comparison result;
S603:展示所述测试报告。S603: Display the test report.
如上述步骤S600至S603所述,在上述在上述pod中执行上述自动化测试脚本的步骤之后,还可根据自动化测试脚本执行后生成的运行结果生成对应的测试报告。具体地,首先获取上述自动化测试脚本的运行结果。然后将上述运行结果对应的实际输出与预期输出进行比对,得到比对结果。其中,上述自动化测试脚本的运行结果为自动化测试对应的实际结果,上述预设输出为自动化测试对应的期望结果,通过将上述实际结果与期望结果进行比对,可以得到本次自动化测试的具体测试情况。在得到了上述对比结果时,再根据上述比对结果,生成上述自动化测试脚本的测试报告。其中,上述测试报告的内容具体可包括实际输出数据,实际输出与预期输出的差异数据。在生成测试报告后,最后对上述测试报告进行展示,以使得用户可以根据该测试报告来清楚的获知本次自动化测试的具体测试数据,以及清楚的了解具体的测试情况,以便后续用户可以根据该测试报告对之后的自动化测试流程进行对应的改进。As described in the foregoing steps S600 to S603, after the foregoing step of executing the foregoing automated test script in the foregoing pod, a corresponding test report may also be generated according to the running result generated after the execution of the automated test script. Specifically, first obtain the running result of the above-mentioned automated test script. Then, the actual output corresponding to the above running result is compared with the expected output to obtain the comparison result. Wherein, the running result of the above automated test script is the actual result corresponding to the automated test, the above preset output is the expected result corresponding to the automated test, and by comparing the above actual result with the expected result, the specific test of this automated test can be obtained Happening. When the above comparison result is obtained, the test report of the above automatic test script is generated according to the above comparison result. The content of the above test report may specifically include actual output data, and difference data between the actual output and the expected output. After the test report is generated, the above test report is finally displayed, so that the user can clearly know the specific test data of this automated test and the specific test situation according to the test report, so that subsequent users can follow the test report. The test report makes corresponding improvements to the subsequent automated testing process.
参照图2,本申请一实施例中还提供了一种自动化测试装置,包括:Referring to FIG. 2, an embodiment of the present application also provides an automated testing device, including:
第一获取模块1,用于当接收到自动化测试请求时,获取代码管理仓库的第一地址信息;The
第二获取模块2,用于根据所述第一地址信息,通过预设的容器云平台内的代码管理工具从所述代码管理仓库中获取与所述自动化测试请求对应的指定代码;The second obtaining
第一生成模块3,用于根据所述指定代码,生成与所述指定代码对应的自动化测试脚本;The
部署模块4,用于从镜像仓库中拉取预设的Docker镜像,并将所述Docker镜像部署在所述容器云平台内;
第二生成模块5,用于将所述自动化测试脚本拷贝到所述容器云平台内的Docker镜像中,生成对应的pod;The
执行模块6,用于在所述pod中执行所述自动化测试脚本。An
本实施例中,上述自动化测试装置中的第一获取模块、第二获取模块、第一生成模块、部署模块、第二生成模块与执行模块的功能和作用的实现过程具体详见上述自动化测试方法中对应步骤S1至S6的实现过程,在此不再赘述。In this embodiment, for the implementation process of the functions and functions of the first acquisition module, the second acquisition module, the first generation module, the deployment module, the second generation module and the execution module in the above-mentioned automated testing device, please refer to the above-mentioned automated testing method for details. The implementation process corresponding to steps S1 to S6 in , will not be repeated here.
进一步地,本申请一实施例中,上述自动化测试装置,包括:Further, in an embodiment of the present application, the above-mentioned automated testing device includes:
第一接收模块,用于接收输入的与自动化测试相对应的测试代码;The first receiving module is used for receiving the input test code corresponding to the automated test;
筛选模块,用于从所述测试代码中筛选出方法名称,其中,所述方法名称的数量包括一个或多个;A screening module for screening out method names from the test code, wherein the number of method names includes one or more;
提取模块,用于从预创建的pytest装饰器中提取出与所述方法名称对应的方法数据;The extraction module is used to extract the method data corresponding to the method name from the pre-created pytest decorator;
更新模块,用于使用所述方法数据对所述测试代码进行更新处理,得到所述指定代码;an update module, configured to use the method data to update the test code to obtain the specified code;
第一发送模块,用于向Gitlab服务器发送所述指定代码,以通过所述Gitlab服务器将所述指定代码存储至所述代码管理仓库内。The first sending module is configured to send the specified code to the Gitlab server, so as to store the specified code in the code management warehouse through the Gitlab server.
本实施例中,上述自动化测试装置中的第一接收模块、筛选模块、提取模块、更新模块与第一发送模块的功能和作用的实现过程具体详见上述自动化测试方法中对应步骤S200至S204的实现过程,在此不再赘述。In this embodiment, the implementation process of the functions and functions of the first receiving module, the screening module, the extracting module, the updating module, and the first sending module in the above-mentioned automatic testing device can be found in the steps S200 to S204 in the above-mentioned automatic testing method for details. The implementation process is not repeated here.
进一步地,本申请一实施例中,上述自动化测试装置,包括:Further, in an embodiment of the present application, the above-mentioned automated testing device includes:
第三获取模块,用于获取与自动化测试相对应的公共方法;The third acquisition module is used to acquire the public method corresponding to the automated test;
封装模块,用于将所述公共方法封装成pytest装饰器;An encapsulation module for encapsulating the public method into a pytest decorator;
存储模块,用于将所述pytest装饰器存储于预创建的第一指定文件内。A storage module, configured to store the pytest decorator in a pre-created first specified file.
本实施例中,上述自动化测试装置中的第三获取模块、封装模块与存储模块的功能和作用的实现过程具体详见上述自动化测试方法中对应步骤S2020至S2022的实现过程,在此不再赘述。In this embodiment, the implementation process of the functions and functions of the third acquisition module, the encapsulation module, and the storage module in the above-mentioned automated testing device can be found in the implementation process corresponding to steps S2020 to S2022 in the above-mentioned automated testing method, and details are not repeated here. .
进一步地,本申请一实施例中,上述第一生成模块,包括:Further, in an embodiment of the present application, the above-mentioned first generation module includes:
编译单元,用于对所述指定代码执行编译操作;a compiling unit, configured to perform a compiling operation on the specified code;
第一获取单元,用于获取所述指定代码执行所述编译操作后生成的编译结果;a first acquiring unit, configured to acquire a compilation result generated after the specified code performs the compilation operation;
第二获取单元,用于从预设的脚本数据库中获取与所述自动化测试请求对应的脚本模板;a second obtaining unit, configured to obtain a script template corresponding to the automated test request from a preset script database;
生成单元,用于根据所述编译结果与所述脚本模板,生成所述自动化测试脚本。A generating unit, configured to generate the automated test script according to the compilation result and the script template.
本实施例中,上述自动化测试装置中的编译单元、第一获取单元、第二获取单元与生成单元的功能和作用的实现过程具体详见上述自动化测试方法中对应步骤S300至S303的实现过程,在此不再赘述。In this embodiment, for the implementation process of the functions and roles of the compilation unit, the first acquisition unit, the second acquisition unit and the generation unit in the above-mentioned automated testing device, please refer to the implementation process of corresponding steps S300 to S303 in the above-mentioned automated testing method for details. It is not repeated here.
进一步地,本申请一实施例中,上述自动化测试装置,包括:Further, in an embodiment of the present application, the above-mentioned automated testing device includes:
第四获取模块,用于获取python程序的依赖库,并将所述python依赖库打包成一个与指定文件类型对应的第二指定文件;the fourth acquisition module is used to acquire the dependency library of the python program, and package the python dependency library into a second specified file corresponding to the specified file type;
第五获取模块,用于获取输入的Dockerfile文件;The fifth obtaining module is used to obtain the input Dockerfile file;
放置模块,用于将所述第二指定文件与所述Dockerfile文件放置于同一个预创建的指定目录内;A placement module for placing the second specified file and the Dockerfile in the same pre-created specified directory;
第六获取模块,用于获取基础镜像,其中,所述基础镜像内包括python程序的运行环境;The sixth acquisition module is used to acquire a basic image, wherein the basic image includes a running environment of a python program;
打包模块,用于通过Docker build命令将所述指定目录中的所述python程序的依赖库打包至所述基础镜像内,得到对应的Docker镜像;A packaging module for packaging the dependency library of the python program in the specified directory into the base image through the Docker build command to obtain a corresponding Docker image;
第二发送模块,用于通过Docker push命令将所述Docker镜像发送至所述镜像仓库进行存储;The second sending module is used to send the Docker image to the image warehouse for storage through the Docker push command;
上述部署模块,包括:The above deployment modules include:
第三获取单元,用于获取所述镜像仓库的第二地址信息;A third obtaining unit, configured to obtain the second address information of the mirror warehouse;
拉取单元,用于根据所述第二地址信息,从所述镜像仓库中拉取所述Docker镜像。A pulling unit, configured to pull the Docker image from the image repository according to the second address information.
本实施例中,上述自动化测试装置中的第四获取模块、第五获取模块、放置模块、第六获取模块、打包模块与第二发送模块的功能和作用的实现过程具体详见上述自动化测试方法中对应步骤S400至S405的实现过程,在此不再赘述。且上述自动化测试装置中的第三获取单元与拉取单元的功能和作用的实现过程具体详见上述自动化测试方法中对应步骤S410至S411的实现过程,在此不再赘述。In this embodiment, the implementation process of the functions and functions of the fourth acquisition module, the fifth acquisition module, the placement module, the sixth acquisition module, the packaging module, and the second sending module in the above-mentioned automated testing device are detailed in the above-mentioned automated testing method. The implementation process corresponding to steps S400 to S405 in the above will not be repeated here. And the implementation process of the functions and functions of the third acquiring unit and the pulling unit in the above-mentioned automated testing apparatus is detailed in the implementation process corresponding to steps S410 to S411 in the above-mentioned automated testing method, which will not be repeated here.
进一步地,本申请一实施例中,上述自动化测试装置,包括:Further, in an embodiment of the present application, the above-mentioned automated testing device includes:
第七获取模块,用于在预设时间段内对所述云容器平台进行监控,获取所述云容器平台对应的状态信息;A seventh obtaining module, configured to monitor the cloud container platform within a preset time period, and obtain status information corresponding to the cloud container platform;
判断模块,用于根据所述状态信息,判断所述云容器平台的容器状态是否发生异常;a judgment module, configured to judge whether the container state of the cloud container platform is abnormal according to the state information;
第三生成模块,用于若判断出所述云容器平台的容器状态没有发生异常,则生成获取代码管理仓库的第一地址信息的获取指令。The third generation module is configured to generate an acquisition instruction for acquiring the first address information of the code management warehouse if it is determined that the container state of the cloud container platform is not abnormal.
本实施例中,上述自动化测试装置中的第七获取模块、判断模块与第三生成模块的功能和作用的实现过程具体详见上述自动化测试方法中对应步骤S100至S102的实现过程,在此不再赘述。In this embodiment, the implementation process of the functions and functions of the seventh acquisition module, the judgment module, and the third generation module in the above-mentioned automated testing device can be found in the implementation process of the corresponding steps S100 to S102 in the above-mentioned automated testing method for details. Repeat.
进一步地,本申请一实施例中,上述自动化测试装置,包括:Further, in an embodiment of the present application, the above-mentioned automated testing device includes:
第八获取模块,用于获取所述自动化测试脚本的运行结果;an eighth acquisition module, for acquiring the running result of the automated test script;
比对模块,用于将所述运行结果对应的实际输出与预期输出进行比对,得到比对结果;a comparison module for comparing the actual output corresponding to the running result with the expected output to obtain a comparison result;
第四生成模块,用于根据所述运行结果与所述比对结果,生成所述自动化测试脚本的测试报告;a fourth generation module, for generating a test report of the automated test script according to the running result and the comparison result;
展示模块,用于展示所述测试报告。The display module is used to display the test report.
本实施例中,上述自动化测试装置中的第八获取模块、比对模块、第四生成模块与展示模块的功能和作用的实现过程具体详见上述自动化测试方法中对应步骤S600至S603的实现过程,在此不再赘述。In this embodiment, for the implementation process of the functions and functions of the eighth acquisition module, the comparison module, the fourth generation module and the display module in the above-mentioned automated testing device, please refer to the implementation process corresponding to steps S600 to S603 in the above-mentioned automated testing method for details. , and will not be repeated here.
参照图3,本申请实施例中还提供一种计算机设备,该计算机设备可以是服务器,其内部结构可以如图3所示。该计算机设备包括通过系统总线连接的处理器、存储器、网络接口和数据库。其中,该计算机设备设计的处理器用于提供计算和控制能力。该计算机设备的存储器包括非易失性存储介质、内存储器。该非易失性存储介质存储有操作系统、计算机程序和数据库。该内存储器为非易失性存储介质中的操作系统和计算机程序的运行提供环境。该计算机设备的数据库用于存储第一地址信息、指定代码以及Docker镜像等数据。该计算机设备的网络接口用于与外部的终端通过网络连接通信。该计算机程序被处理器执行时以实现一种自动化测试方法。Referring to FIG. 3 , an embodiment of the present application further provides a computer device. The computer device may be a server, and its internal structure may be as shown in FIG. 3 . The computer device includes a processor, memory, a network interface, and a database connected by a system bus. Among them, the processor of the computer equipment is designed to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium, an internal memory. The nonvolatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the execution of the operating system and computer programs in the non-volatile storage medium. The database of the computer device is used to store data such as first address information, specified code, and Docker image. The network interface of the computer device is used to communicate with an external terminal through a network connection. The computer program when executed by the processor implements an automated testing method.
上述处理器执行上述自动化测试方法的步骤:The above-mentioned processor executes the steps of the above-mentioned automated testing method:
当接收到自动化测试请求时,获取代码管理仓库的第一地址信息;When an automated test request is received, obtain the first address information of the code management warehouse;
根据所述第一地址信息,通过预设的容器云平台内的代码管理工具从所述代码管理仓库中获取与所述自动化测试请求对应的指定代码;According to the first address information, the specified code corresponding to the automated test request is obtained from the code management warehouse through a preset code management tool in the container cloud platform;
根据所述指定代码,生成与所述指定代码对应的自动化测试脚本;According to the specified code, generate an automated test script corresponding to the specified code;
从镜像仓库中拉取预设的Docker镜像,并将所述Docker镜像部署在所述容器云平台内;Pull the preset Docker image from the image warehouse, and deploy the Docker image in the container cloud platform;
将所述自动化测试脚本拷贝到所述容器云平台内的Docker镜像中,生成对应的pod;Copying the automated test script into the Docker image in the container cloud platform to generate a corresponding pod;
在所述pod中执行所述自动化测试脚本。Execute the automated test script in the pod.
本领域技术人员可以理解,图3中示出的结构,仅仅是与本申请方案相关的部分结构的框图,并不构成对本申请方案所应用于其上的装置、计算机设备的限定。Those skilled in the art can understand that the structure shown in FIG. 3 is only a block diagram of a partial structure related to the solution of the present application, and does not constitute a limitation on the apparatus or computer equipment to which the solution of the present application is applied.
本申请一实施例还提供一种计算机可读存储介质,其上存储有计算机程序,计算机程序被处理器执行时实现一种自动化测试方法,具体为:An embodiment of the present application also provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, an automated testing method is implemented, specifically:
当接收到自动化测试请求时,获取代码管理仓库的第一地址信息;When an automated test request is received, obtain the first address information of the code management warehouse;
根据所述第一地址信息,通过预设的容器云平台内的代码管理工具从所述代码管理仓库中获取与所述自动化测试请求对应的指定代码;According to the first address information, the specified code corresponding to the automated test request is obtained from the code management warehouse through a preset code management tool in the container cloud platform;
根据所述指定代码,生成与所述指定代码对应的自动化测试脚本;According to the specified code, generate an automated test script corresponding to the specified code;
从镜像仓库中拉取预设的Docker镜像,并将所述Docker镜像部署在所述容器云平台内;Pull the preset Docker image from the image warehouse, and deploy the Docker image in the container cloud platform;
将所述自动化测试脚本拷贝到所述容器云平台内的Docker镜像中,生成对应的pod;Copying the automated test script into the Docker image in the container cloud platform to generate a corresponding pod;
在所述pod中执行所述自动化测试脚本。Execute the automated test script in the pod.
综上所述,本申请实施例中提供的自动化测试方法、装置、计算机设备和存储介质当接收到自动化测试请求时,获取代码管理仓库的第一地址信息;根据所述第一地址信息,通过预设的容器云平台内的代码管理工具从所述代码管理仓库中获取与所述自动化测试请求对应的指定代码;根据所述指定代码,生成与所述指定代码对应的自动化测试脚本;从镜像仓库中拉取预设的Docker镜像,并将所述Docker镜像部署在所述容器云平台内;将所述自动化测试脚本拷贝到所述容器云平台内的Docker镜像中,生成对应的pod;在所述pod中执行所述自动化测试脚本。本申请实施例通过使用容器技术以及镜像技术来生成用于进行自动化测试的pod,增加了自动化测试的测试环境的可移动性。当pod发生异常时,能够快速的生成一个新的pod来再次部署用于执行自动化测试的测试运行环境,并不会出现测试运行环境丢失的情况,保证了自动化测试的测试运行环境的可复用性和可维护性,有效避免了在自动化测试服务器上部署的测试运行环境发生异常时传统的自动化测试方法需要重新部署测试运行环境,提高了自动化测试的测试效率与测试稳定性。To sum up, the automated testing method, device, computer equipment, and storage medium provided in the embodiments of the present application acquire the first address information of the code management warehouse when an automated testing request is received; The code management tool in the preset container cloud platform obtains the specified code corresponding to the automated test request from the code management warehouse; generates an automated test script corresponding to the specified code according to the specified code; from the image Pull the preset Docker image in the warehouse, and deploy the Docker image in the container cloud platform; copy the automated test script to the Docker image in the container cloud platform, and generate a corresponding pod; The automated test script is executed in the pod. The embodiments of the present application increase the mobility of the test environment for automated testing by using the container technology and the mirroring technology to generate pods for automated testing. When the pod is abnormal, a new pod can be quickly generated to deploy the test running environment for executing automated tests again, and the test running environment will not be lost, ensuring the reusability of the test running environment for automated testing. The traditional automated testing method needs to redeploy the test running environment when the test running environment deployed on the automated test server is abnormal, which improves the test efficiency and test stability of the automated test.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的计算机程序可存储与一非易失性计算机可读取存储介质中,该计算机程序在执行时,可包括如上述各方法的实施例的流程。其中,本申请所提供的和实施例中所使用的对存储器、存储、数据库或其它介质的任何引用,均可包括非易失性和/或易失性存储器。非易失性存储器可以包括只读存储器(ROM)、可编程ROM(PROM)、电可编程ROM(EPROM)、电可擦除可编程ROM(EEPROM)或闪存。易失性存储器可包括随机存取存储器(RAM)或者外部高速缓冲存储器。作为说明而非局限,RAM通过多种形式可得,诸如静态RAM(SRAM)、动态RAM(DRAM)、同步DRAM(SDRAM)、双速据率SDRAM(SSRSDRAM)、增强型SDRAM(ESDRAM)、同步链路(Synchlink)DRAM(SLDRAM)、存储器总线(Rambus)直接RAM(RDRAM)、直接存储器总线动态RAM(DRDRAM)、以及存储器总线动态RAM(RDRAM)等。Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be implemented by instructing relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage In the medium, when the computer program is executed, it may include the processes of the above-mentioned method embodiments. Wherein, any reference to memory, storage, database or other medium provided in this application and used in the embodiments may include non-volatile and/or volatile memory. Nonvolatile memory may include read only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in various forms such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double-rate SDRAM (SSRSDRAM), enhanced SDRAM (ESDRAM), synchronous Link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其它变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、装置、物品或者方法不仅包括那些要素,而且还包括没有明确列出的其它要素,或者是还包括为这种过程、装置、物品或者方法所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、装置、物品或者方法中还存在另外的相同要素。It should be noted that, herein, the terms "comprising", "comprising" or any other variation thereof are intended to encompass non-exclusive inclusion, such that a process, apparatus, article or method comprising a series of elements includes not only those elements, It also includes other elements not expressly listed or inherent to such a process, apparatus, article or method. Without further limitation, an element qualified by the phrase "comprising a..." does not preclude the presence of additional identical elements in the process, apparatus, article, or method that includes the element.
以上所述仅为本申请的优选实施例,并非因此限制本申请的专利范围,凡是利用本申请说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本申请的专利保护范围内。The above are only the preferred embodiments of the present application, and are not intended to limit the scope of the patent of the present application. Any equivalent structure or equivalent process transformation made by using the contents of the description and drawings of the present application, or directly or indirectly applied to other related The technical field is similarly included in the scope of patent protection of this application.
Claims (10)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202010327124.6A CN111679965B (en) | 2020-04-23 | 2020-04-23 | Automated testing method, device, computer equipment and storage medium |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202010327124.6A CN111679965B (en) | 2020-04-23 | 2020-04-23 | Automated testing method, device, computer equipment and storage medium |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN111679965A true CN111679965A (en) | 2020-09-18 |
| CN111679965B CN111679965B (en) | 2025-02-18 |
Family
ID=72451773
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202010327124.6A Active CN111679965B (en) | 2020-04-23 | 2020-04-23 | Automated testing method, device, computer equipment and storage medium |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN111679965B (en) |
Cited By (25)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN112395363A (en) * | 2020-12-04 | 2021-02-23 | 北京有竹居网络技术有限公司 | Data synchronization method, device, equipment and readable storage medium |
| CN112596750A (en) * | 2020-12-28 | 2021-04-02 | 上海安畅网络科技股份有限公司 | Application testing method and device, electronic equipment and computer readable storage medium |
| CN112650555A (en) * | 2020-12-25 | 2021-04-13 | 苏州浪潮智能科技有限公司 | Development and test method, system and medium for management platform |
| CN112685323A (en) * | 2021-01-21 | 2021-04-20 | 浪潮云信息技术股份公司 | Method for realizing self-defined end-to-end test case compiling |
| CN112765043A (en) * | 2021-03-16 | 2021-05-07 | 上饶市中科院云计算中心大数据研究院 | Automatic testing method and device based on docker |
| CN112951314A (en) * | 2021-02-01 | 2021-06-11 | 上海航天计算机技术研究所 | Loadable general RAM self-testing method based on TSC695 processor |
| CN113010441A (en) * | 2021-04-29 | 2021-06-22 | 成都新希望金融信息有限公司 | Model publishing method and device, electronic equipment and storage medium |
| CN113052463A (en) * | 2021-03-25 | 2021-06-29 | 平安银行股份有限公司 | Workflow verification method and device, computer equipment and storage medium |
| CN113064827A (en) * | 2021-04-12 | 2021-07-02 | 京东数科海益信息科技有限公司 | Test platform deployment method, device, equipment and storage medium |
| CN113110992A (en) * | 2021-04-06 | 2021-07-13 | 四川新网银行股份有限公司 | Method for managing test environment |
| CN114201413A (en) * | 2022-02-18 | 2022-03-18 | 苏州浪潮智能科技有限公司 | Automatic testing method and system and electronic equipment |
| WO2022088710A1 (en) * | 2020-10-29 | 2022-05-05 | 华为技术有限公司 | Mirror image management method and apparatus |
| CN114510428A (en) * | 2022-02-26 | 2022-05-17 | 合肥高维数据技术有限公司 | Software research and test automatic test method and system |
| CN114817071A (en) * | 2022-05-31 | 2022-07-29 | 苏州浪潮智能科技有限公司 | Online automatic test system, method and device and readable storage medium |
| CN115048313A (en) * | 2022-06-30 | 2022-09-13 | 中国电信股份有限公司 | Automatic testing method and device, computer readable storage medium and electronic equipment |
| CN115098369A (en) * | 2022-06-24 | 2022-09-23 | 中国工商银行股份有限公司 | Batch program testing method and device |
| CN115098222A (en) * | 2022-06-22 | 2022-09-23 | 支付宝(杭州)信息技术有限公司 | Script execution method, device and equipment |
| CN115412458A (en) * | 2022-08-29 | 2022-11-29 | 山石网科通信技术股份有限公司 | Network equipment testing method and device and electronic equipment |
| CN115729802A (en) * | 2021-08-30 | 2023-03-03 | 西门子股份公司 | Deployment test method, system and storage medium of industrial application program |
| CN116170345A (en) * | 2023-02-20 | 2023-05-26 | 浪潮思科网络科技有限公司 | Automatic flow testing method, equipment and medium |
| CN116302963A (en) * | 2023-02-08 | 2023-06-23 | 麒麟软件有限公司 | Software testing method, system and medium based on module compilation tool MBS |
| CN116909888A (en) * | 2023-07-06 | 2023-10-20 | 中国电信股份有限公司技术创新中心 | Script testing method, script testing device, computer equipment and storage medium |
| CN117648198A (en) * | 2024-01-30 | 2024-03-05 | 北京比格大数据有限公司 | Application adaptation method and device, equipment and storage medium |
| CN118093295A (en) * | 2023-12-13 | 2024-05-28 | 广州翼辉信息技术有限公司 | Method and device for testing embedded board card, computer equipment and storage medium |
| CN118245386A (en) * | 2024-05-28 | 2024-06-25 | 北京长亭科技有限公司 | Detection tool kit generation method and device |
Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2017020770A1 (en) * | 2015-07-31 | 2017-02-09 | 中兴通讯股份有限公司 | Lxc-based continuous integration method and device |
| CN110995473A (en) * | 2019-11-18 | 2020-04-10 | 腾讯科技(深圳)有限公司 | Service node control method and related equipment |
-
2020
- 2020-04-23 CN CN202010327124.6A patent/CN111679965B/en active Active
Patent Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2017020770A1 (en) * | 2015-07-31 | 2017-02-09 | 中兴通讯股份有限公司 | Lxc-based continuous integration method and device |
| CN110995473A (en) * | 2019-11-18 | 2020-04-10 | 腾讯科技(深圳)有限公司 | Service node control method and related equipment |
Cited By (38)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2022088710A1 (en) * | 2020-10-29 | 2022-05-05 | 华为技术有限公司 | Mirror image management method and apparatus |
| CN112395363B (en) * | 2020-12-04 | 2024-03-26 | 北京有竹居网络技术有限公司 | Data synchronization method, device, equipment and readable storage medium |
| CN112395363A (en) * | 2020-12-04 | 2021-02-23 | 北京有竹居网络技术有限公司 | Data synchronization method, device, equipment and readable storage medium |
| CN112650555A (en) * | 2020-12-25 | 2021-04-13 | 苏州浪潮智能科技有限公司 | Development and test method, system and medium for management platform |
| CN112650555B (en) * | 2020-12-25 | 2022-09-20 | 苏州浪潮智能科技有限公司 | Development and test method, system and medium for management platform |
| CN112596750B (en) * | 2020-12-28 | 2022-04-26 | 上海安畅网络科技股份有限公司 | Application testing method and device, electronic equipment and computer readable storage medium |
| CN112596750A (en) * | 2020-12-28 | 2021-04-02 | 上海安畅网络科技股份有限公司 | Application testing method and device, electronic equipment and computer readable storage medium |
| CN112685323A (en) * | 2021-01-21 | 2021-04-20 | 浪潮云信息技术股份公司 | Method for realizing self-defined end-to-end test case compiling |
| CN112951314A (en) * | 2021-02-01 | 2021-06-11 | 上海航天计算机技术研究所 | Loadable general RAM self-testing method based on TSC695 processor |
| CN112951314B (en) * | 2021-02-01 | 2023-05-05 | 上海航天计算机技术研究所 | Loadable general RAM self-test method based on TSC695 processor |
| CN112765043A (en) * | 2021-03-16 | 2021-05-07 | 上饶市中科院云计算中心大数据研究院 | Automatic testing method and device based on docker |
| CN113052463B (en) * | 2021-03-25 | 2023-09-26 | 平安银行股份有限公司 | Workflow verification method, workflow verification device, computer equipment and storage medium |
| CN113052463A (en) * | 2021-03-25 | 2021-06-29 | 平安银行股份有限公司 | Workflow verification method and device, computer equipment and storage medium |
| CN113110992B (en) * | 2021-04-06 | 2023-06-06 | 四川新网银行股份有限公司 | Method for managing test environment |
| CN113110992A (en) * | 2021-04-06 | 2021-07-13 | 四川新网银行股份有限公司 | Method for managing test environment |
| CN113064827A (en) * | 2021-04-12 | 2021-07-02 | 京东数科海益信息科技有限公司 | Test platform deployment method, device, equipment and storage medium |
| CN113010441B (en) * | 2021-04-29 | 2024-05-07 | 成都新希望金融信息有限公司 | Model issuing method and device, electronic equipment and storage medium |
| CN113010441A (en) * | 2021-04-29 | 2021-06-22 | 成都新希望金融信息有限公司 | Model publishing method and device, electronic equipment and storage medium |
| CN115729802A (en) * | 2021-08-30 | 2023-03-03 | 西门子股份公司 | Deployment test method, system and storage medium of industrial application program |
| CN114201413A (en) * | 2022-02-18 | 2022-03-18 | 苏州浪潮智能科技有限公司 | Automatic testing method and system and electronic equipment |
| CN114510428A (en) * | 2022-02-26 | 2022-05-17 | 合肥高维数据技术有限公司 | Software research and test automatic test method and system |
| CN114817071B (en) * | 2022-05-31 | 2024-07-05 | 苏州浪潮智能科技有限公司 | An online automated testing system, method, device and readable storage medium |
| CN114817071A (en) * | 2022-05-31 | 2022-07-29 | 苏州浪潮智能科技有限公司 | Online automatic test system, method and device and readable storage medium |
| CN115098222A (en) * | 2022-06-22 | 2022-09-23 | 支付宝(杭州)信息技术有限公司 | Script execution method, device and equipment |
| CN115098222B (en) * | 2022-06-22 | 2025-03-25 | 支付宝(杭州)信息技术有限公司 | A script execution method, device and equipment |
| CN115098369A (en) * | 2022-06-24 | 2022-09-23 | 中国工商银行股份有限公司 | Batch program testing method and device |
| CN115048313B (en) * | 2022-06-30 | 2023-12-08 | 中国电信股份有限公司 | Automatic test method and device, computer readable storage medium and electronic equipment |
| CN115048313A (en) * | 2022-06-30 | 2022-09-13 | 中国电信股份有限公司 | Automatic testing method and device, computer readable storage medium and electronic equipment |
| CN115412458A (en) * | 2022-08-29 | 2022-11-29 | 山石网科通信技术股份有限公司 | Network equipment testing method and device and electronic equipment |
| CN115412458B (en) * | 2022-08-29 | 2023-11-03 | 山石网科通信技术股份有限公司 | Network equipment testing method and device and electronic equipment |
| CN116302963A (en) * | 2023-02-08 | 2023-06-23 | 麒麟软件有限公司 | Software testing method, system and medium based on module compilation tool MBS |
| CN116170345A (en) * | 2023-02-20 | 2023-05-26 | 浪潮思科网络科技有限公司 | Automatic flow testing method, equipment and medium |
| CN116909888A (en) * | 2023-07-06 | 2023-10-20 | 中国电信股份有限公司技术创新中心 | Script testing method, script testing device, computer equipment and storage medium |
| CN118093295A (en) * | 2023-12-13 | 2024-05-28 | 广州翼辉信息技术有限公司 | Method and device for testing embedded board card, computer equipment and storage medium |
| CN117648198A (en) * | 2024-01-30 | 2024-03-05 | 北京比格大数据有限公司 | Application adaptation method and device, equipment and storage medium |
| CN117648198B (en) * | 2024-01-30 | 2024-05-10 | 北京比格大数据有限公司 | Application adaptation method, device, equipment and storage medium |
| CN118245386A (en) * | 2024-05-28 | 2024-06-25 | 北京长亭科技有限公司 | Detection tool kit generation method and device |
| CN118245386B (en) * | 2024-05-28 | 2024-08-23 | 北京长亭科技有限公司 | Detection tool kit generation method and device |
Also Published As
| Publication number | Publication date |
|---|---|
| CN111679965B (en) | 2025-02-18 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN111679965A (en) | Automated testing method, apparatus, computer equipment and storage medium | |
| CN108932309B (en) | Cross-platform database management method, device, computer equipment and storage medium | |
| US10185546B2 (en) | Service extraction and application composition | |
| US9098636B2 (en) | White-box testing systems and/or methods in web applications | |
| US10146672B2 (en) | Method and system for automated user interface (UI) testing through model driven techniques | |
| CN112685035A (en) | Project development method and device, computer-readable storage medium and electronic device | |
| CN108319460A (en) | Method, device, electronic device and storage medium for generating application installation package | |
| CN113835713B (en) | Source package download method, device, computer equipment and storage medium | |
| CN109977008B (en) | Method and terminal for making JS code depended on by application program compatible with native library | |
| US10459698B2 (en) | Framework for generating adapters in an integrated development environment | |
| US9026997B2 (en) | Systems and methods for executing object-oriented programming code invoking pre-existing objects | |
| CN113721973A (en) | Configuration file generation method, device, equipment and medium | |
| CN112597037B (en) | Java and Python combined automatic script development method and device | |
| CN112286543B (en) | Application service deployment method and device | |
| US10514940B2 (en) | Virtual application package reconstruction | |
| CN115640005A (en) | Hybrid application generation method and device | |
| CN108595656B (en) | Data processing method and system | |
| CN119149099A (en) | Unused dependency identification method and related device in java application | |
| CN112560035B (en) | Application detection method, device, equipment and storage medium | |
| CN112765040B (en) | Page testing methods, systems, computer equipment and storage media | |
| CN115934500A (en) | Pipeline construction method, device, computer equipment and storage medium | |
| CN115454399B (en) | A method, apparatus, device, and medium for building a front-end project | |
| Layka et al. | Deploying and upgrading grails applications | |
| US20240211248A1 (en) | Version management method, non-transitory computer-readable medium storing version management program, and version management system | |
| CN115145548A (en) | Hardware prototype development method, device, equipment and medium based on container technology |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |
