Eureka AIR delivers breakthrough ideas for toughest innovation challenges, trusted by R&D personnel around the world.

Automatic testing method and system and electronic equipment

A technology for automated testing and test results, applied in software testing/debugging, error detection/correction, electrical digital data processing, etc. Applicability and the effect of improving processing efficiency

Inactive Publication Date: 2022-03-18
INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF3 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] For the implementation of automated testing, the existing technology usually chooses to deploy an automated testing system on an automated test execution machine to execute automated testing; however, when there is a problem in the environment, the test is interrupted, and the automated test report cannot be formed, and the previous test data cannot be used. Solidified reservation; at the same time, when the resources of the automated test execution machine are insufficient, resources cannot be dynamically allocated, and when multi-threaded execution, insufficient resources will limit the execution efficiency

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Automatic testing method and system and electronic equipment
  • Automatic testing method and system and electronic equipment
  • Automatic testing method and system and electronic equipment

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0056] In order to realize the automated testing method disclosed in this application, the embodiment of this application provides a K8S (Kubernetes) container platform, such as figure 1 , the process of applying the container platform disclosed in this embodiment to obtain the automated test report includes:

[0057] S100. Make the automated test code and / or script into a container image, and upload it to the K8S container platform.

[0058] Kubernetes is an open source container-based cluster management platform. The goal of Kubernetes is to implement the deployment of containerized applications, providing a mechanism for application deployment, planning, updating, and maintenance, referred to as K8S. A K8S system, usually called a K8S cluster (Cluster), mainly includes two parts: several Master nodes (master nodes), and a group of Node nodes (computing nodes). K8S cluster is a containerized management system, which is a collection of cloud resources required for container op...

Embodiment 2

[0076] Corresponding to the above-mentioned embodiments, the present application provides an automated testing method, such as figure 2 As shown, the method includes:

[0077] 2100. Generate a container image according to the configuration file and upload it to the container platform;

[0078] Preferably, the configuration file includes automated test task scripts and / or automated test task codes.

[0079] 2200. The container platform generates a container application according to the container image and deploys a test environment in the container application;

[0080] 2300. Configure a survival probe for the container application, and modify the test environment;

[0081] Preferably, the container application includes at least one Pod, and the configuration of the survival probe for the container application and the correction of the test environment include:

[0082] 2310. Detect the running state of the Pod according to the survival probe;

[0083] 2320. If the detecte...

Embodiment 3

[0098] Such as image 3 As shown, corresponding to the first and second embodiments above, this embodiment of the present application provides an automated testing system 300, including:

[0099] Preparation module 310: generate a container image according to the configuration file and upload it to the container platform;

[0100] Deployment module 320: the container platform generates a container application according to the container image and deploys a test environment in the container application;

[0101] Processing module 330: configure a survival probe for the container application, and modify the test environment;

[0102] The processing module 330 is further configured to automatically distribute resources for the container application according to a preset elastic scaling policy;

[0103] Running module 340: running the test case in the container application to generate test results to determine an automated test report.

[0104] In some embodiments, the system fu...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention provides an automatic testing method. The automatic testing method comprises the steps of generating a container mirror image according to a configuration file and uploading the container mirror image to a container platform; the container platform generates a container application according to the container mirror image and deploys a test environment in the container application; configuring a survival probe for the container application, and correcting a test environment; automatically distributing resources for the container application according to a preset elastic scaling strategy; and running the test case in the container application, and generating a test result to determine an automatic test report. When the resource is insufficient in the execution process of the automatic test task, the resource quota or the Pod copy number can be automatically increased, and the processing efficiency of the automatic execution container is improved; in case of abnormal interruption, the test result of the executed part can still be obtained from the shared storage to form a report; and when the container application runs abnormally, the Pod is reconstructed to form high availability, so that the applicability of the container application is improved.

Description

technical field [0001] The present application relates to the technical field of automated testing, in particular to an automated testing method, system and electronic equipment. Background technique [0002] In the process of software development, automated testing is usually required. Automated testing is a process of transforming human-driven testing behavior into machine execution. Usually, after the test case is designed and passed the review, the tester will test according to the test case. The described procedure performs the test step-by-step to obtain a comparison of the actual results with the expected results. In this process, in order to save manpower, time or hardware resources and improve test efficiency, the concept of automated testing is introduced. [0003] For the implementation of automated testing, the existing technology usually chooses to deploy an automated testing system on an automated test execution machine to execute automated testing; however, w...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F11/36
CPCG06F11/3664G06F11/3688
Inventor 王杰张震
Owner INSPUR SUZHOU INTELLIGENT TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Eureka Blog
Learn More
PatSnap group products