CN114201413A - Automatic testing method and system and electronic equipment - Google Patents
Automatic testing method and system and electronic equipment Download PDFInfo
- Publication number
- CN114201413A CN114201413A CN202210150154.3A CN202210150154A CN114201413A CN 114201413 A CN114201413 A CN 114201413A CN 202210150154 A CN202210150154 A CN 202210150154A CN 114201413 A CN114201413 A CN 114201413A
- Authority
- CN
- China
- Prior art keywords
- container
- test
- application
- pod
- container application
- 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
- 238000012360 testing method Methods 0.000 title claims abstract description 200
- 230000002159 abnormal effect Effects 0.000 claims abstract description 26
- 238000000034 method Methods 0.000 claims abstract description 25
- 239000000523 sample Substances 0.000 claims abstract description 20
- 230000004083 survival effect Effects 0.000 claims abstract description 20
- 238000012545 processing Methods 0.000 claims abstract description 16
- 238000013515 script Methods 0.000 claims description 4
- 230000008569 process Effects 0.000 abstract description 9
- 238000004891 communication Methods 0.000 description 5
- 238000010586 diagram Methods 0.000 description 3
- 238000007726 management method Methods 0.000 description 3
- 230000006870 function Effects 0.000 description 2
- 230000006399 behavior Effects 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000008602 contraction Effects 0.000 description 1
- 230000008094 contradictory effect Effects 0.000 description 1
- 238000012937 correction Methods 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 230000007812 deficiency Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 238000012423 maintenance Methods 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 238000010998 test method Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3664—Environments for testing or debugging software
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3672—Test management
- G06F11/3688—Test management for test execution, e.g. scheduling of test suites
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Facsimiles In General (AREA)
Abstract
The application provides an automatic testing method which 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 modifying a test environment; automatically applying distributed resources for the container according to a preset elastic expansion strategy; and running the test case in the container application to generate a test result so as to determine an automatic test report. When insufficient resources occur in the execution process of the automatic test task, the resource quota can be automatically increased or the number of Pod copies can be increased, so that the processing efficiency of the automatic execution container is improved; when the abnormal interruption occurs, the test result of the executed part can still be obtained from the shared storage to form a report; when the container application is abnormally operated, the Pod is rebuilt to form high availability, and the applicability of the container application is improved.
Description
Technical Field
The present disclosure relates to the field of automated testing technologies, and in particular, to an automated testing method, an automated testing system, and an electronic device.
Background
In the software development process, an automated test is usually required, which is a process of converting a test behavior driven by human into machine execution, and after a test case is designed and reviewed, a tester performs a step-by-step execution test according to a procedure described in the test case to obtain a comparison between an actual result and an expected result. In the process, in order to save manpower, time or hardware resources and improve the testing efficiency, the concept of automatic testing is introduced.
For the implementation of the automated test, the prior art usually selects to deploy an automated test system on an automated test execution machine to execute the automated test; however, when the environment has a problem, the test is interrupted, an automatic test report cannot be formed, and the previous test data cannot be solidified and reserved; meanwhile, when the resources of the automated test execution machine are insufficient, the resources cannot be dynamically allocated, and the insufficient resources can limit the execution efficiency during the multi-thread execution.
Therefore, there is a need for an automatic test method capable of improving execution efficiency and optimizing an automatic test report to solve the above technical problems in the prior art.
Disclosure of Invention
In order to solve the deficiencies of the prior art, the present application provides an automated testing method, an automated testing system and an electronic device, so as to solve the above technical problems of the prior art.
In order to achieve the above object, the present application provides, in a first aspect, an automated testing method, including:
generating a container mirror image according to the 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 the testing environment;
automatically applying distributed resources for the container according to a preset elastic expansion strategy;
and running the test case in the container application to generate a test result so as to determine an automatic test report.
In some embodiments, the running the test case in the container application and generating the test result to determine the automated test report further includes:
mounting a shared storage in the container application and writing the test result into the shared storage;
and reading the test result in the shared storage and generating the automatic test report when the execution of the automatic test task is interrupted and/or completed.
In some embodiments, the container application includes at least one Pod, and configuring the survival probe for the container application, modifying the test environment includes:
detecting Pod operational status based on the survival probe;
if the detected Pod running state is abnormal, deleting the abnormal Pod with abnormal running state;
and rebuilding the abnormal Pod according to the Pod which normally runs so as to correct the test environment.
In some embodiments, the preset elastic stretching policy includes a horizontal elastic stretching policy and a vertical elastic stretching policy, and automatically distributing resources for the container application according to the preset elastic stretching policy includes:
and when the resources are tense, triggering the horizontal elastic expansion strategy to expand the internal resources of the Pod.
In some embodiments, said automatically distributing resources for said container application according to a preset elastic scaling policy further comprises:
and when the automatic test tasks are newly added, triggering the vertical elastic stretching strategy, and newly adding the Pod corresponding to the number of the newly added automatic test tasks in the container application.
In some embodiments, said mounting a shared storage and writing said test results to said shared storage in said container application further comprises:
when the test result is written into the shared storage, adding a task identifier into the test result;
and sorting the test result according to the task identifier to generate the test report.
In some embodiments, the configuration file includes an automated test task script and/or automated test task code.
In a second aspect, the present application provides an automated test system, the system comprising:
a preparation module: generating a container mirror image according to the configuration file and uploading the container mirror image to a container platform;
a deployment module: the container platform generates a container application according to the container mirror image and deploys a test environment in the container application;
a processing module: configuring a survival probe for the container application, and correcting the testing environment;
the processing module is also used for automatically applying and distributing resources for the container according to a preset elastic expansion strategy;
an operation module: and running the test case in the container application to generate a test result so as to determine an automatic test report.
In some embodiments, the system further comprises:
a report generation module: mounting a shared storage in the container application and writing the test result into the shared storage;
the report generation module is further configured to read the test result in the shared storage and generate the automatic test report when execution of an automatic test task is interrupted and/or completed.
In a third aspect, the present application provides an electronic device, comprising:
one or more processors;
and memory associated with the one or more processors for storing program instructions that, when read and executed by the one or more processors, perform operations comprising:
generating a container mirror image according to the 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 the testing environment;
automatically applying distributed resources for the container according to a preset elastic expansion strategy;
and running the test case in the container application to generate a test result so as to determine an automatic test report.
The beneficial effect that this application realized does:
the application provides an automatic testing method which 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 the testing environment; automatically applying distributed resources for the container according to a preset elastic expansion strategy; and running the test case in the container application to generate a test result so as to determine an automatic test report. When insufficient resources occur in the execution process of the automatic test task, the resource quota can be automatically increased or the number of Pod copies can be increased, so that the processing efficiency of the automatic execution container is improved; when the abnormal interruption occurs, the test result of the executed part can still be obtained from the shared storage to form a report; when the container application is abnormally operated, the Pod is rebuilt to form high availability, and the applicability of the container application is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, it is obvious that the drawings in the following description are only some embodiments of the present application, and other drawings can be obtained by those skilled in the art without inventive efforts, wherein:
FIG. 1 is a schematic diagram of an automated testing method provided by an embodiment of the present application;
FIG. 2 is a flow chart of an automated testing method provided by an embodiment of the present application;
FIG. 3 is a block diagram of a system provided in an embodiment of the present application;
fig. 4 is a structural diagram of an electronic device provided in an embodiment of the present application.
Detailed Description
In order to make the purpose, technical solutions and advantages of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
It should be understood that throughout the description and claims of this application, unless the context clearly requires otherwise, the words "comprise", "comprising", and the like, are to be construed in an inclusive sense as opposed to an exclusive or exhaustive sense; that is, what is meant is "including, but not limited to".
It will be further understood that the terms "first," "second," and the like are used for descriptive purposes only and are not to be construed as indicating or implying relative importance. In addition, in the description of the present application, "a plurality" means two or more unless otherwise specified.
It should be noted that the terms "S1", "S2", etc. are used for descriptive purposes only, are not intended to be used in a specific sense to refer to an order or sequence, and are not intended to limit the present application, but are merely used for convenience in describing the methods of the present application and are not to be construed as indicating the order of the steps. In addition, technical solutions between various embodiments may be combined with each other, but must be realized by a person skilled in the art, and when the technical solutions are contradictory or cannot be realized, such a combination should not be considered to exist, and is not within the protection scope of the present application.
Example one
In order to implement the automated testing method disclosed in the present application, an embodiment of the present application provides a K8S (kubernets) container platform, and as shown in fig. 1, a process of acquiring an automated testing report by using the container platform disclosed in the present embodiment includes:
and S100, making the automatic test codes and/or scripts into a container mirror image, and uploading the container mirror image to a K8S container platform.
Kubernetes is an open-source container-based cluster management platform, and the Kubernetes aims to realize the container application deployment and provides a mechanism for application deployment, planning, updating and maintenance, which is called K8S for short. A K8S system, commonly referred to as a K8S Cluster (Cluster), is mainly composed of two parts: a plurality of Master nodes (host nodes), and a group of Node nodes (computing nodes). The K8S cluster is a containerized management system, which is a collection of cloud resources required for the container to run. The system consists of a plurality of working nodes (cloud hosts or physical machines), load balancing, networks and other resources, and provides abundant and diverse functions of resource scheduling, deployment operation, service discovery, Node expansion, Node contraction and the like for containerized application.
And S200, generating a container application in the K8S container platform according to the container mirror image.
Specifically, the generating process of the container application further includes:
s210, deploying the test environment in the container application, so that the test environment in the container is consistent with the automatic test environment.
S220, configuring a survival probe for the container application to modify the testing environment.
In the container application, the abnormal operation state of the Pod, namely the abnormal operation state of the Pod, occurs in the testing environment, and at the moment, the operation state of the Pod in the container application is detected by using the survival probe. When the survival probe detects that the operating state of the Pod is abnormal, deleting the abnormal Pod with abnormal operating state by utilizing the characteristic that the K8S container platform Pod can be wirelessly copied after being once created; and copying other normally running Pods, and reconstructing a new Pod to replace the abnormal Pod so as to finish the correction of the abnormal test environment.
Wherein Pod refers to application load in the K8S cluster, the Pod runs on a node, and the Pod is composed of one or more containers, which share container storage, network, and container running configuration items. Containers in a Pod are always scheduled simultaneously, with a common operating environment.
And S230, configuring an elastic expansion strategy in the container application, and automatically distributing resources for the container application.
Specifically, the automatic distribution process of the resources includes:
and S231, when the resources are in shortage, triggering a horizontal elastic expansion strategy, automatically increasing the memory or modifying the CPU configuration, and expanding the internal resources of the Pod.
Specifically, the K8S container platform allocates a certain amount of memory to the Pod in advance before running the test case, allocates a certain amount of memory to the Pod again when the resources are in shortage, and allocates a certain amount of memory to the Pod again if the memory allocated to the Pod is still insufficient, until the internal resources of the Pod are enough to support running the test case; preferably, the quantitative memory may be a memory of 2G, etc., and the present application is not limited thereto. In addition, the internal resources of the Pod can be expanded by modifying the CPU configuration of the Pod, and the specific method is similar to the method for increasing the internal resources of the memory-expanded Pod, and is not described herein again.
And S232, when an automatic test task is newly added, triggering a vertical elastic expansion strategy, and newly adding a Pod corresponding to the newly added automatic test task data in the container.
And S300, running the test case, generating a test result and determining an automatic test report.
Specifically, the test case is run in the container application to generate a test result. When the test results are written into the shared storage, the same task identification is added to the test results generated by running the same test case, and when the automatic test report is generated, the test results are grouped according to different task identifications according to the task identification, namely the test results are grouped according to different test cases, so that the automatic test report is clearer and more concise.
The shared storage is mounted in the container application and used for writing a test result generated by running the test case. When the execution of the automatic test task is interrupted or the execution of the automatic test task is completed, the user can read the test result from the shared storage to generate a test report. Whether the automatic test is interrupted or not, the test result generated by the running test case is written and solidified into the shared storage for the user to refer to.
It is noted that the present application is also applicable to any container platform other than K8S that is capable of containerizing automated tests.
Based on the automatic testing method disclosed by the embodiment of the application, when insufficient resources occur in the execution process of the automatic testing task, the resource quota is automatically increased or the number of Pod copies is increased, so that the processing efficiency of the automatic execution container is improved; when the abnormal interruption occurs, 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, reconstructing Pod to form high availability.
Example two
Corresponding to the above embodiments, the present application provides an automated testing method, as shown in fig. 2, the method includes:
2100. generating a container mirror image according to the configuration file and uploading the container mirror image to a container platform;
preferably, the configuration file comprises an automated test task script and/or automated test task code.
2200. The container platform generates a container application according to the container mirror image and deploys a test environment in the container application;
2300. configuring a survival probe for the container application, and correcting the testing environment;
preferably, the container application includes at least one Pod, and configuring a survival probe according to the container application and modifying the test environment includes:
2310. detecting Pod operational status based on the survival probe;
2320. if the detected Pod running state is abnormal, deleting the abnormal Pod with abnormal running state;
2330. and rebuilding the abnormal Pod according to the Pod which normally runs so as to correct the test environment.
2400. Automatically applying distributed resources for the container according to a preset elastic expansion strategy;
preferably, the preset elastic stretching strategy includes a horizontal elastic stretching strategy and a vertical elastic stretching strategy, and automatically distributing resources for the container application according to the preset elastic stretching strategy includes:
2410. and when the resources are tense, triggering the horizontal elastic expansion strategy to expand the internal resources of the Pod.
Preferably, the automatically applying and distributing resources for the container according to a preset elastic scaling policy further includes:
2420. and when the automatic test tasks are newly added, triggering the vertical elastic stretching strategy, and newly adding the Pod corresponding to the number of the newly added automatic test tasks in the container application.
2500. And running the test case in the container application to generate a test result so as to determine an automatic test report.
Preferably, the running the test case in the container application to generate the test result to determine the automated test report further includes:
2510. mounting a shared storage in the container application and writing the test result into the shared storage;
preferably, the mounting a shared storage in the container application and writing the test result into the shared storage further includes:
2511. when the test result is written into the shared storage, adding a task identifier into the test result;
2512. and sorting the test result according to the task identifier to generate the test report.
2520. And reading the test result in the shared storage and generating the automatic test report when the execution of the automatic test task is interrupted and/or completed.
EXAMPLE III
As shown in fig. 3, corresponding to the first embodiment and the second embodiment, an automated testing system 300 according to an embodiment of the present application includes:
the preparation module 310: generating a container mirror image according to the configuration file and uploading the container mirror image to a container platform;
the deployment module 320: the container platform generates a container application according to the container mirror image and deploys a test environment in the container application;
the processing module 330: configuring a survival probe for the container application, and correcting the testing environment;
the processing module 330 is further configured to automatically apply distributed resources to the container according to a preset elastic scaling strategy;
the operation module 340: and running the test case in the container application to generate a test result so as to determine an automatic test report.
In some embodiments, the system further comprises a report generation module 350, the report generation module 350 being configured to mount a shared storage in the container application and write the test results to the shared storage; the report generating module 350 is further configured to, when the execution of the automated testing task is interrupted and/or completed, read the testing result in the shared storage, and generate the automated testing report.
In some embodiments, the processing module 330 is further configured to detect a Pod operational status based on the survival probe; if the detected Pod running state is abnormal, deleting the abnormal Pod with abnormal running state; and rebuilding the abnormal Pod according to the Pod which normally runs so as to correct the test environment.
In some embodiments, the processing module 330 is further configured to trigger the horizontal elastic scaling policy to expand the Pod internal resources when the resources are in a tense state.
In some embodiments, the processing module 330 is further configured to trigger the vertical elastic scaling policy when the automatic test task is newly added, and newly add Pod corresponding to the number of the newly added automatic test task in the container application.
In some embodiments, the report generation module 350 is further configured to add a task identifier to the test result when the test result is written to the shared storage; and sorting the test result according to the task identifier to generate the test report.
Example four
Corresponding to all the above embodiments, an embodiment of the present application provides an electronic device, including: one or more processors; and memory associated with the one or more processors for storing program instructions that, when read and executed by the one or more processors, perform operations comprising:
generating a container mirror image according to the 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 the testing environment;
automatically applying distributed resources for the container according to a preset elastic expansion strategy;
and running the test case in the container application to generate a test result so as to determine an automatic test report.
Fig. 4 schematically shows an architecture of an electronic device, which may specifically include a processor 410, a video display adapter 411, a disk drive 412, an input/output interface 413, a network interface 414, and a memory 420. The processor 410, the video display adapter 411, the disk drive 412, the input/output interface 413, the network interface 414, and the memory 420 may be communicatively connected by a bus 430.
The processor 410 may be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an Application Specific Integrated Circuit (ASIC), or one or more Integrated circuits, and is configured to execute related programs to implement the technical solution provided by the present Application.
The Memory 420 may be implemented in the form of a ROM (Read Only Memory), a RAM (Random Access Memory), a static storage device, a dynamic storage device, or the like. The memory 420 may store an operating system 421 for controlling the operation of the electronic device 400, a Basic Input Output System (BIOS)422 for controlling low-level operations of the electronic device 400. In addition, a web browser 423, a data storage management system 424, and an icon font processing system 425, and the like, may also be stored. The icon font processing system 425 may be an application program that implements the operations of the foregoing steps in this embodiment of the application. In summary, when the technical solution provided in the present application is implemented by software or firmware, the relevant program code is stored in the memory 420 and called to be executed by the processor 410.
The input/output interface 413 is used for connecting an input/output module to realize information input and output. The i/o module may be configured as a component in a device (not shown) or may be external to the device to provide a corresponding function. The input devices may include a keyboard, a mouse, a touch screen, a microphone, various sensors, etc., and the output devices may include a display, a speaker, a vibrator, an indicator light, etc.
The network interface 414 is used to connect a communication module (not shown in the figure) to implement communication interaction between the present device and other devices. The communication module can realize communication in a wired mode (such as USB, network cable and the like) and also can realize communication in a wireless mode (such as mobile network, WIFI, Bluetooth and the like).
Bus 430 includes a path that transfers information between the various components of the device, such as processor 410, video display adapter 411, disk drive 412, input/output interface 413, network interface 414, and memory 420.
In addition, the electronic device 400 may also obtain information of specific pickup conditions from a virtual resource object pickup condition information database for performing condition judgment, and the like.
It should be noted that although the above-mentioned devices only show the processor 410, the video display adapter 411, the disk drive 412, the input/output interface 413, the network interface 414, the memory 420, the bus 430 and so on, in a specific implementation, the device may also include other components necessary for normal operation. Furthermore, it will be understood by those skilled in the art that the apparatus described above may also include only the components necessary to implement the solution of the present application, and not necessarily all of the components shown in the figures.
From the above description of the embodiments, it is clear to those skilled in the art that the present application can be implemented by software plus necessary general hardware platform. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which may be stored in a storage medium, such as a ROM/RAM, a magnetic disk, an optical disk, or the like, and includes several instructions for enabling a computer device (which may be a personal computer, a cloud server, or a network device) to execute the method according to the embodiments or some parts of the embodiments of the present application.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, the system or system embodiments are substantially similar to the method embodiments and therefore are described in a relatively simple manner, and reference may be made to some of the descriptions of the method embodiments for related points. The above-described system and system embodiments are only illustrative, wherein the units described as separate parts may or may not be physically separate, and the parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
The above description is only exemplary of the present application and should not be taken as limiting the present application, as any modification, equivalent replacement, or improvement made within the spirit and principle of the present application should be included in the protection scope of the present application.
Claims (10)
1. An automated testing method, the method comprising:
generating a container mirror image according to the 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 the testing environment;
automatically applying distributed resources for the container according to a preset elastic expansion strategy;
and running the test case in the container application to generate a test result so as to determine an automatic test report.
2. The method of claim 1, wherein running test cases in the container application to generate test results to determine an automated test report further comprises:
mounting a shared storage in the container application and writing the test result into the shared storage;
and reading the test result in the shared storage and generating the automatic test report when the execution of the automatic test task is interrupted and/or completed.
3. The method of claim 1, wherein the container application comprises at least one Pod, and wherein configuring the container application with a survival probe modifies the test environment by:
detecting Pod operational status based on the survival probe;
if the detected Pod running state is abnormal, deleting the abnormal Pod with abnormal running state;
and rebuilding the abnormal Pod according to the Pod which normally runs so as to correct the test environment.
4. The method of claim 3, wherein the preset elastic scaling strategies include a horizontal elastic scaling strategy and a vertical elastic scaling strategy, and wherein automatically applying distributed resources for the container according to the preset elastic scaling strategies comprises:
and when the resources are tense, triggering the horizontal elastic expansion strategy to expand the internal resources of the Pod.
5. The method of claim 4, wherein automatically applying distributed resources for the container according to a preset elastic scaling policy further comprises:
and when an automatic test task is newly added, triggering the vertical elastic expansion strategy, and newly adding the Pod corresponding to the number of the newly added automatic test tasks in the container application.
6. The method of claim 2, wherein the mounting a shared storage in the container application and writing the test result to the shared storage further comprises:
when the test result is written into the shared storage, adding a task identifier into the test result;
and sorting the test result according to the task identifier to generate the test report.
7. The method of claims 1-6,
the configuration file includes an automated test task script and/or automated test task code.
8. An automated test report processing system, the system comprising:
a preparation module: generating a container mirror image according to the configuration file and uploading the container mirror image to a container platform;
a deployment module: the container platform generates a container application according to the container mirror image and deploys a test environment in the container application;
a processing module: configuring a survival probe for the container application, and correcting the testing environment;
the processing module is also used for automatically applying and distributing resources for the container according to a preset elastic expansion strategy;
an operation module: and running the test case in the container application to generate a test result so as to determine an automatic test report.
9. An automated test system, the system further comprising:
a report generation module: mounting a shared storage in a container application and writing a test result into the shared storage;
the report generation module is further configured to read the test result in the shared storage and generate an automated test report when execution of an automated test task is interrupted and/or completed.
10. An electronic device, characterized in that the electronic device comprises:
one or more processors;
and memory associated with the one or more processors for storing program instructions which, when read and executed by the one or more processors, perform the method of any of claims 1-7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210150154.3A CN114201413A (en) | 2022-02-18 | 2022-02-18 | Automatic testing method and system and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210150154.3A CN114201413A (en) | 2022-02-18 | 2022-02-18 | Automatic testing method and system and electronic equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN114201413A true CN114201413A (en) | 2022-03-18 |
Family
ID=80645520
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210150154.3A Pending CN114201413A (en) | 2022-02-18 | 2022-02-18 | Automatic testing method and system and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114201413A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115599410A (en) * | 2022-12-15 | 2023-01-13 | 杭州数列网络科技有限责任公司(Cn) | Large-scale JAVA probe management method and system |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109189685A (en) * | 2018-08-29 | 2019-01-11 | 郑州云海信息技术有限公司 | A kind of method and apparatus of automatic test |
CN111124850A (en) * | 2019-11-12 | 2020-05-08 | 上海移远通信科技有限公司 | MQTT server performance testing method, system, computer equipment and storage medium |
CN111679965A (en) * | 2020-04-23 | 2020-09-18 | 平安国际智慧城市科技股份有限公司 | Automatic testing method and device, computer equipment and storage medium |
-
2022
- 2022-02-18 CN CN202210150154.3A patent/CN114201413A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109189685A (en) * | 2018-08-29 | 2019-01-11 | 郑州云海信息技术有限公司 | A kind of method and apparatus of automatic test |
CN111124850A (en) * | 2019-11-12 | 2020-05-08 | 上海移远通信科技有限公司 | MQTT server performance testing method, system, computer equipment and storage medium |
CN111679965A (en) * | 2020-04-23 | 2020-09-18 | 平安国际智慧城市科技股份有限公司 | Automatic testing method and device, computer equipment and storage medium |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115599410A (en) * | 2022-12-15 | 2023-01-13 | 杭州数列网络科技有限责任公司(Cn) | Large-scale JAVA probe management method and system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108809722B (en) | Method, device and storage medium for deploying Kubernetes cluster | |
US8954579B2 (en) | Transaction-level health monitoring of online services | |
US20150100829A1 (en) | Method and system for selecting and executing test scripts | |
JP6788178B2 (en) | Setting support program, setting support method and setting support device | |
CN105933137A (en) | Resource management method, device and system | |
CN110389843B (en) | Service scheduling method, device, equipment and readable storage medium | |
CN110825399B (en) | Deployment method and device of application program | |
US20150100830A1 (en) | Method and system for selecting and executing test scripts | |
US20150100831A1 (en) | Method and system for selecting and executing test scripts | |
CN115328752B (en) | Cluster simulation method and system for Kubernetes control plane test | |
CN112286723A (en) | Computer room disaster recovery control method, terminal and storage medium | |
CN109697078B (en) | Repairing method of non-high-availability component, big data cluster and container service platform | |
CN112199192B (en) | Method and system for deploying Kubernetes cluster refined management quota based on server | |
US11108638B1 (en) | Health monitoring of automatically deployed and managed network pipelines | |
CN110958138B (en) | Container expansion method and device | |
CN114201413A (en) | Automatic testing method and system and electronic equipment | |
CN114448823A (en) | NFS service testing method and system and electronic equipment | |
CN113986539A (en) | Method, device, electronic equipment and readable storage medium for realizing pod fixed IP | |
CN107092556B (en) | Test method, device and equipment | |
CN110471767B (en) | Equipment scheduling method | |
CN112463312A (en) | Dynamic maintenance system and method for timing task, medium and computing equipment | |
CN114567617B (en) | IP address allocation method, system, electronic equipment and storage medium | |
CN112000539A (en) | Inspection method and device | |
CN112596750B (en) | Application testing method and device, electronic equipment and computer readable storage medium | |
CN114153732A (en) | Fault scene testing method and device, electronic equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20220318 |
|
RJ01 | Rejection of invention patent application after publication |