[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN114817071A - Online automatic test system, method and device and readable storage medium - Google Patents

Online automatic test system, method and device and readable storage medium Download PDF

Info

Publication number
CN114817071A
CN114817071A CN202210606668.5A CN202210606668A CN114817071A CN 114817071 A CN114817071 A CN 114817071A CN 202210606668 A CN202210606668 A CN 202210606668A CN 114817071 A CN114817071 A CN 114817071A
Authority
CN
China
Prior art keywords
test
automatic
template
message queue
web interface
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
Application number
CN202210606668.5A
Other languages
Chinese (zh)
Other versions
CN114817071B (en
Inventor
赵秋霞
彭大伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN202210606668.5A priority Critical patent/CN114817071B/en
Publication of CN114817071A publication Critical patent/CN114817071A/en
Application granted granted Critical
Publication of CN114817071B publication Critical patent/CN114817071B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3664Environments for testing or debugging software
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3684Test management for test design, e.g. generating new test cases
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3696Methods or tools to render software testable

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)
  • Debugging And Monitoring (AREA)

Abstract

The invention provides an online automatic test system, a method, a device and a readable storage medium, wherein the system comprises: the automatic web interface is used for verifying user login, pulling a configuration template according to a preset cloud platform project, generating template data after the user fills configuration information according to the template, and sending the template data to the scheduler; the scheduler is used for receiving the template data and then generating a configuration file, pulling automatic test codes matched with the project from an automatic code library according to the template information to form an automatic test environment and operate when the containerized operation is prepared, and simultaneously issuing the test progress to a message queue; the message queue is used for storing the test case execution data into a database; the automatic code library is stored with automatic test codes for establishing an automatic test environment; and the database is used for storing the test case execution data. The invention can accelerate the automatic testing progress of the cloud platform, simultaneously can test a plurality of people and a plurality of platforms simultaneously, and respectively generates automatic testing reports.

Description

Online automatic test system, method and device and readable storage medium
Technical Field
The invention relates to the technical field of computers, in particular to an online automatic testing system, method and device and a readable storage medium.
Background
The automatic test of the cloud platform is a process which consumes time and manpower, the cloud platform has high test complexity, the automatic test needs a large amount of configuration work, the test items have large differentiation and are mainly single-machine test, a tester needs to take the automatic codes and perform detailed environment configuration for each test, the technical requirement is high, the test can be performed with a large amount of repeated work, the automatic code needs to be taken again for each code update, if a company has a plurality of cloud platforms, the automatic test work can be completed by a team with high technical requirements, and the maintenance cost is high.
Disclosure of Invention
In view of the above problems, an object of the present invention is to provide an online automated testing system, method, device and readable storage medium, which can accelerate the automated testing progress of a cloud platform, and simultaneously perform testing for multiple users and multiple platforms, and generate automated testing reports respectively.
In order to achieve the purpose, the invention is realized by the following technical scheme: an in-line automated test system comprising: an automation web interface, a scheduler, a message queue, an automation code base and a database; the automatic web interface is used for verifying user login, pulling a configuration template according to a preset cloud platform project, generating template data after the user fills configuration information according to the template, and sending the template data to the scheduler; the scheduler is used for receiving the template data and then generating a configuration file, pulling automatic test codes matched with the project from an automatic code library according to the template information to form an automatic test environment and operate when the containerized operation is prepared, and simultaneously issuing the test progress to a message queue; the message queue is used for storing the test case execution data into a database and destroying a corresponding container after the test is finished; the automatic code library is stored with automatic test codes for establishing an automatic test environment; the database is used for storing test case execution data.
Further, the automation web interface is further to: and querying a database through a test progress message queue issued by the scheduler, acquiring project case execution data, dynamically displaying the project case execution data to a user, and generating a test report when the test is finished.
Further, the scheduler is specifically configured to: and generating a configuration file according to the template information, simultaneously pulling the matched automatic test codes from the automatic code library according to the configuration file, starting a containerized operating environment, sending the codes and the configuration file to a container to form a complete project test environment, and sending test data and progress to a message queue through the containerized test environment.
Further, the configuration information includes: the cloud platform manages addresses, usernames, and passwords.
Correspondingly, the invention also discloses an online automatic testing method, which comprises the following steps:
deploying an automatic web interface on a server, verifying a user through the automatic web interface and providing a project configuration template so as to generate template data and send the template data to a scheduler;
receiving the template data through a dispatcher, generating a configuration file, pulling an automatic test code matched with the configuration file from an automatic code library, and combining and generating the automatic test code;
generating a containerization operating environment, injecting an automatic test code into a container, executing an automatic test, publishing a test progress result to a message queue, storing test data into a database, publishing state information to the message queue if storage fails, and displaying error information through a subscribed message queue by an automatic web interface;
the automatic web interface queries a database by subscribing a test progress queue, and dynamically displays the test progress and the test result;
after the test is completed, the database is read through an automated web, and a test report is generated and displayed.
Further, verifying the user and providing the project configuration template via the automated web interface includes: if the user is verified to fail through the automated web interface, the test is directly quitted;
if the user is verified to be successful via the automated web interface, providing the user with a project configuration template; after the user inputs the project information according to the template, the template data is issued to the scheduler, and if the data is issued and identified, prompt information is sent to the user.
Further, after the automatic test code is generated, if the automatic test code cannot be stored successfully, the state information is released through the message queue, and the error information is displayed through the subscription message queue by the automatic web interface.
Further, if the automated testing is completed, destroying the containerization testing environment; and if the automatic test fails, releasing corresponding state information to a message queue, and displaying error information by an automatic web interface through a subscription message queue.
Correspondingly, the invention discloses an online automatic testing device, which comprises:
the memory is used for storing an online automatic test program;
a processor for implementing the steps of the online automated testing method according to any one of the above items when executing the online automated testing program.
Accordingly, the present invention discloses a readable storage medium having an online automated testing program stored thereon, wherein the online automated testing program, when executed by a processor, implements the steps of the online automated testing method according to any one of the above.
Compared with the prior art, the invention has the beneficial effects that:
1. the invention can be directly deployed at the server node, does not need the interaction between the tester and the test source code directly, avoids misoperation, saves a large amount of manpower to carry out repeated configuration, can carry out multi-project and multi-version automatic tests simultaneously, can start the automatic test only by logging in web to select or fill in necessary cloud platform information according to a template, does not need manual intervention until a test report is generated, greatly simplifies the automatic test process, and greatly reduces the requirement on the technical capability of the tester.
2. The invention can make the automatic test be carried out by BS, which greatly reduces the difficulty of automatic test for testing personnel, avoids repeated labor, and can realize the simultaneous test of multiple items.
3. The invention designs a reasonable configuration template according to different projects through a web interface, uses a scheduler to pull scheduling strategies of different automatic test codes for the different projects, and completes the purpose of multi-user multi-project automatic test by matching with message queue and database table design.
4. According to the invention, a reasonable project configuration template is designed, and the automatic test code matched with the project configuration template is correctly pulled according to the configuration template information, so that the automatic test process can be greatly simplified, and meanwhile, the decoupling of an automatic code library and a test environment can also ensure that the invention has higher flexibility; .
Therefore, compared with the prior art, the invention has prominent substantive features and remarkable progress, and the beneficial effects of the implementation are also obvious.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
FIG. 1 is a system block diagram of an embodiment of the present invention.
FIG. 2 is a method flow diagram of an embodiment of the present invention.
In the figure, 1 is an automation web interface; 2 is a scheduler; 3 is a message queue; 4 is an automatic code library; and 5, a database.
Detailed Description
The core of the invention is to provide an online automatic testing method, in the prior art, a tester needs to pick up an automatic code and perform detailed environment configuration to perform testing work each time the cloud platform test is performed, the technical requirement is high, the testing work is performed with a large amount of repeated work, the code update needs to pick up the automatic code again each time the code is updated, if a company has multiple cloud platforms, the automatic testing work can be completed only by two groups of teams with high technical requirements, and the maintenance cost is high.
Firstly, a tester opens a browser when starting the automatic test of a new version cloud platform, selects a project template after the verification is passed, an interface reads preset cloud platform project information from a database, selects a configuration item needing to be defined on a page, clicks and stores, and the project template information is automatically issued to a debugger; the scheduler generates a configuration file according to the template information, simultaneously pulls an automatic test code matched with the configuration file from an automatic code library according to the configuration file, starts a containerized operation environment, sends the code and the configuration file to a container to form a complete project test environment, the containerized test environment sends test data and progress to a message queue, case execution data is finally stored in a database, a web interface subscribes and inquires the database through the queue progress to display the test progress until the test is finished, and a test report is generated. Therefore, the method and the device can accelerate the automatic testing progress of the cloud platform, simultaneously test a plurality of people and a plurality of platforms simultaneously, and respectively generate automatic testing reports.
In order that those skilled in the art will better understand the disclosure, the invention will be described in further detail with reference to the accompanying drawings and specific embodiments. It is to be understood that the described embodiments are merely exemplary of the invention, and not restrictive of the full scope of the invention. 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 invention.
The first embodiment is as follows:
as shown in fig. 1, the present embodiment provides an online automated testing system, including: an automation web interface 1, a dispatcher 2, a message queue 3, an automation code library 4 and a database 5.
The automatic web interface 1 is used for verifying user login, pulling a configuration template according to a preset cloud platform project, generating template data after the user fills configuration information according to the template, and sending the template data to the scheduler 2. Wherein the configuration information includes: the cloud platform manages addresses, usernames, and passwords. And the scheduler 2 is used for receiving the template data, generating a configuration file, pulling the automatic test codes matched with the project from the automatic code library according to the template information to form an automatic test environment and running the automatic test environment when preparing containerized running, and simultaneously issuing the test progress to the message queue 3. And the message queue 3 is used for storing the test case execution data into the database 5 and destroying the corresponding container after the test is finished. The automation code base 4 stores automation test codes for building an automation test environment. And the database 5 is used for storing test case execution data.
In addition, the automation web interface 1 is also used to: and querying a database 5 through a test progress message queue issued by the scheduler 2, acquiring project case execution data, dynamically displaying the project case execution data to a user, and generating a test report when the test is finished.
As an example, the scheduler 2 is specifically configured to: and generating a configuration file according to the template information, simultaneously pulling the matched automatic test codes from the automatic code library 4 according to the configuration file, starting a containerized operating environment, sending the codes and the configuration file to a container to form a complete project test environment, and sending test data and progress to the message queue 4 through the containerized test environment.
As an example, the functions of the components in the present system are specifically:
the automatic web1 interface is responsible for verifying user login, pulling a configuration template according to a preset cloud platform project, and the user fills configuration information according to the template and then issues the configuration information to the scheduler 2; the dispatcher 2 generates a configuration file after receiving the template data and prepares for containerized operation, pulls the automatic test codes matched with the project from the automatic code library 4 according to the template information to form an automatic test environment and operates, and meanwhile, issues the test progress to the message queue 3; the case execution data is finally stored in the database 5 through the message queue, and the container is destroyed after the execution is finished; the web interface 1 queries a database through a test progress queue issued by the scheduler 2, acquires project case execution data and dynamically displays the project case execution data to a user.
The embodiment provides an online automatic test system which can be directly deployed at a server node, a tester does not need to directly interact with a test source code, misoperation is avoided, a large amount of manpower is saved to carry out repeated configuration, multi-project and multi-version automatic tests can be simultaneously carried out, automatic tests can be started only by logging in a web to select or fill in necessary cloud platform information according to a template, manual intervention is not needed, until a test report is generated, the automatic test flow is greatly simplified, and the requirement on the technical ability of the tester is greatly reduced.
Example two:
based on the first embodiment, as shown in fig. 2, the invention also discloses an online automatic testing method, which comprises the following steps:
s1: and deploying an automatic web interface on the server, verifying the user through the automatic web interface and providing a project configuration template so as to generate template data and send the template data to the dispatcher.
If the user is verified to fail through the automatic web interface, the test is directly quitted; if the user is verified to be successful via the automated web interface, providing the user with a project configuration template; and after the user inputs the item information according to the template, the template data is issued to the scheduler, and if the data is issued and identified, prompt information is sent to the user.
S2: and receiving the template data through a dispatcher to generate a configuration file, pulling the automatic test codes matched with the configuration file from an automatic code library, and combining and generating the automatic test codes.
In addition, after the automatic test code is generated, if the automatic test code cannot be successfully stored, the state information is released through the message queue, and the error information is displayed through the subscription message queue by the automatic web interface.
S3: generating a containerization operating environment, injecting an automatic test code into a container, executing an automatic test, publishing a test progress result to a message queue, storing test data into a database, publishing state information to the message queue if storage fails, and displaying error information through a subscribed message queue by an automatic web interface.
S4: the automatic web interface queries the database by subscribing the test progress queue, and dynamically displays the test progress and the test result.
It should be noted that, if the automated test is successfully completed, the containerization test environment is destroyed; and if the automated test fails, releasing corresponding state information to the message queue, and displaying error information by the automated web interface through the subscription message queue.
S4: after the test is completed, the database is read through an automated web, and a test report is generated and displayed.
The embodiment provides an online automated testing method, which realizes WEB interface, scheduler, message queue design, database table structure design and interaction of each part, can provide different configuration templates according to different projects on a WEB page, and simultaneously correctly pulls an automated testing code according to different templates to generate a containerized operating environment and execute the operating environment. Therefore, the automatic testing progress of the cloud platform is accelerated, a plurality of persons and a plurality of platforms can simultaneously carry out testing, and automatic testing reports are respectively generated.
Example three:
based on the above embodiment, the present embodiment further discloses an online automated testing method, which includes the following steps:
step 1: and (3) selecting a project on the web page, and if the configuration file template of the project can be correctly pulled, entering the step 2, and subscribing the state information of each module through a message queue.
Step 2: generating a configuration file after receiving the template information through a scheduler, and simultaneously accessing automatic test codes matched with the configuration file to combine into a complete automatic test code; if the storage can be successfully carried out, entering the step 3, if the storage fails, releasing state information through a queue, and displaying error information in the step 1 through a subscribed queue by the web interface;
and step 3: and (3) generating a containerization operating environment, injecting a complete automatic test code into a container, executing an automatic test, publishing a test progress result to a queue, storing test data into a database, publishing state information to the queue if the test data fails, and displaying error information in the step 1 by the web interface through a subscribed queue.
And 4, step 4: the web interface queries a database by subscribing the test progress queue, dynamically displays the test progress and the test result, enters step 5 when the test is completed, releases state information to the queue when the test is failed, and displays error information in step 1 by subscribing the queue;
and 5: the web interface reads the database, generates and displays the test report.
The embodiment provides an online automatic testing method, which designs a reasonable configuration template according to different projects through a web interface, uses a scheduler to concurrently pull scheduling strategies of different automatic testing codes for the different projects, and completes the purpose of multi-user multi-project automatic testing by matching with a message queue and a database table design.
Example four:
the embodiment discloses an online automatic testing device, which comprises a processor and a memory; wherein the processor implements the following steps when executing the online automated test program stored in the memory:
1. and deploying an automatic web interface on the server, verifying the user through the automatic web interface and providing a project configuration template so as to generate template data and send the template data to the dispatcher.
2. And receiving the template data through a dispatcher to generate a configuration file, pulling the automatic test codes matched with the configuration file from an automatic code library, and combining and generating the automatic test codes.
3. Generating a containerization operating environment, injecting an automatic test code into a container, executing an automatic test, publishing a test progress result to a message queue, storing test data into a database, publishing state information to the message queue if storage fails, and displaying error information through a subscribed message queue by an automatic web interface.
4. The automatic web interface queries the database by subscribing the test progress queue, and dynamically displays the test progress and the test result.
5. After the test is completed, the database is read through an automated web, and a test report is generated and displayed.
Further, the online automatic testing apparatus in this embodiment may further include:
the input interface is used for acquiring an online automatic test program imported from the outside, storing the acquired online automatic test program into the memory, and also used for acquiring various instructions and parameters transmitted by external terminal equipment and transmitting the instructions and parameters to the processor, so that the processor can perform corresponding processing by using the instructions and the parameters. In this embodiment, the input interface may specifically include, but is not limited to, a USB interface, a serial interface, a voice input interface, a fingerprint input interface, a hard disk reading interface, and the like.
And the output interface is used for outputting various data generated by the processor to the terminal equipment connected with the output interface, so that other terminal equipment connected with the output interface can acquire various data generated by the processor. In this embodiment, the output interface may specifically include, but is not limited to, a USB interface, a serial interface, and the like.
And the communication unit is used for establishing remote communication connection between the online automatic testing device and the external server so that the online automatic testing device can mount the mirror image file into the external server. In this embodiment, the communication unit may specifically include, but is not limited to, a remote communication unit based on a wireless communication technology or a wired communication technology.
And the keyboard is used for acquiring various parameter data or instructions input by a user through real-time key cap knocking.
And the display is used for displaying relevant information in the short circuit positioning process of the power supply line of the running server in real time.
The mouse can be used for assisting a user in inputting data and simplifying the operation of the user.
The embodiment provides an online automatic testing device, can directly deploy at the server node, need not that the tester is direct to interact with the test source code, avoid misoperation, save a large amount of manpowers simultaneously and go on repeated configuration, and can carry out multinomial, the automatic test of multiversion simultaneously, only need to log in the web and select or fill in necessary cloud platform information according to the template and just can begin the automatic test, need not artificial intervention, until generating the test report, simplify the automatic test flow greatly, also can greatly reduced to personnel's technological capability requirement.
Example five:
the present embodiments also disclose a readable storage medium, where the readable storage medium includes Random Access Memory (RAM), memory, Read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, a hard disk, a removable hard disk, a CD-ROM, or any other form of storage medium known in the art. The readable storage medium stores an online automatic test program, and the online automatic test program realizes the following steps when being executed by a processor:
1. and deploying an automatic web interface on the server, verifying the user through the automatic web interface and providing a project configuration template so as to generate template data and send the template data to the dispatcher.
2. And receiving the template data through a dispatcher to generate a configuration file, pulling the automatic test codes matched with the configuration file from an automatic code library, and combining and generating the automatic test codes.
3. Generating a containerization operating environment, injecting an automatic test code into a container, executing an automatic test, publishing a test progress result to a message queue, storing test data into a database, publishing state information to the message queue if storage fails, and displaying error information through a subscribed message queue by an automatic web interface.
4. The automatic web interface queries the database by subscribing the test progress queue, and dynamically displays the test progress and the test result.
5. After the test is completed, the database is read through an automated web, and a test report is generated and displayed.
The embodiment provides a readable storage medium, which can accelerate the automatic testing progress of a cloud platform, simultaneously test multiple persons and multiple platforms simultaneously, and respectively generate automatic testing reports.
In summary, the invention designs a reasonable configuration template according to different projects through a web interface, uses a scheduler to concurrently pull scheduling strategies of different automated test codes for different projects, and completes the purpose of multi-user multi-project automated test by matching with message queue and database table design.
The embodiments are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same or similar parts among the embodiments are referred to each other. The method disclosed by the embodiment corresponds to the system disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the description of the method part.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
In the embodiments provided by the present invention, it should be understood that the disclosed system, system and method can be implemented in other ways. For example, the above-described system embodiments are merely illustrative, and for example, the division of the units is only one logical functional division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, systems or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and 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 units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may reside in Random Access Memory (RAM), memory, Read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The online automated testing method, system, device and readable storage medium provided by the invention are described in detail above. The principles and embodiments of the present invention are explained herein using specific examples, which are presented only to assist in understanding the method and its core concepts. It should be noted that, for those skilled in the art, it is possible to make various improvements and modifications to the present invention without departing from the principle of the present invention, and those improvements and modifications also fall within the scope of the claims of the present invention.

Claims (10)

1. An in-line automated test system, comprising: an automation web interface, a scheduler, a message queue, an automation code base and a database;
the automatic web interface is used for verifying user login, pulling a configuration template according to a preset cloud platform project, generating template data after the user fills configuration information according to the template, and sending the template data to the scheduler;
the scheduler is used for receiving the template data and then generating a configuration file, pulling automatic test codes matched with the project from an automatic code library according to the template information to form an automatic test environment and operate when the containerized operation is prepared, and simultaneously issuing the test progress to a message queue;
the message queue is used for storing the test case execution data into a database and destroying a corresponding container after the test is finished;
the automatic code library is stored with automatic test codes for establishing an automatic test environment;
the database is used for storing test case execution data.
2. The online automated testing system of claim 1, wherein the automated web interface is further configured to: and querying a database through a test progress message queue issued by the scheduler, acquiring project case execution data, dynamically displaying the project case execution data to a user, and generating a test report when the test is finished.
3. The online automated test system of claim 1, wherein the scheduler is specifically configured to:
and generating a configuration file according to the template information, simultaneously pulling the matched automatic test codes from the automatic code library according to the configuration file, starting a containerized operating environment, sending the codes and the configuration file to a container to form a complete project test environment, and sending test data and progress to a message queue through the containerized test environment.
4. The online automated test system of claim 1, wherein the configuration information comprises: the cloud platform manages addresses, usernames, and passwords.
5. An online automated testing method, comprising:
deploying an automatic web interface on a server, verifying a user through the automatic web interface and providing a project configuration template so as to generate template data and send the template data to a scheduler;
receiving the template data through a dispatcher, generating a configuration file, pulling an automatic test code matched with the configuration file from an automatic code library, and combining and generating the automatic test code;
generating a containerization operating environment, injecting an automatic test code into a container, executing an automatic test, publishing a test progress result to a message queue, storing test data into a database, publishing state information to the message queue if storage fails, and displaying error information through a subscribed message queue by an automatic web interface;
the automatic web interface queries a database by subscribing a test progress queue, and dynamically displays the test progress and the test result;
after the test is completed, the database is read through an automated web, and a test report is generated and displayed.
6. The method of claim 5, wherein verifying a user and providing a project configuration template via an automated web interface comprises:
if the user is verified to fail through the automated web interface, the test is directly quitted;
if the user is verified to be successful via the automated web interface, providing the user with a project configuration template; and after the user inputs the item information according to the template, the template data is issued to the scheduler, and if the data is issued and identified, prompt information is sent to the user.
7. The method according to claim 5, wherein after the automated test code is generated, if the automated test code cannot be successfully saved, the state information is published through a message queue, and the error information is displayed through a subscription message queue by an automated web interface.
8. The online automated testing method of claim 5, wherein if the automated testing is complete, the containerized testing environment is destroyed; and if the automatic test fails, releasing corresponding state information to a message queue, and displaying error information by an automatic web interface through a subscription message queue.
9. An on-line automated testing apparatus, comprising:
the memory is used for storing an online automatic test program;
a processor for implementing the steps of the online automated testing method according to any one of claims 5 to 8 when executing the online automated testing program.
10. A readable storage medium, characterized by: the readable storage medium has stored thereon an online automated testing program, which when executed by a processor implements the steps of the online automated testing method according to any one of claims 5 to 8.
CN202210606668.5A 2022-05-31 2022-05-31 Online automatic test system, method and device and readable storage medium Active CN114817071B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210606668.5A CN114817071B (en) 2022-05-31 2022-05-31 Online automatic test system, method and device and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210606668.5A CN114817071B (en) 2022-05-31 2022-05-31 Online automatic test system, method and device and readable storage medium

Publications (2)

Publication Number Publication Date
CN114817071A true CN114817071A (en) 2022-07-29
CN114817071B CN114817071B (en) 2024-07-05

Family

ID=82518895

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210606668.5A Active CN114817071B (en) 2022-05-31 2022-05-31 Online automatic test system, method and device and readable storage medium

Country Status (1)

Country Link
CN (1) CN114817071B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6993747B1 (en) * 1999-08-30 2006-01-31 Empirix Inc. Method and system for web based software object testing
CN102075381A (en) * 2010-12-14 2011-05-25 云海创想信息技术(北京)有限公司 Automatic test platform server and system applied to cloud storage
WO2020155778A1 (en) * 2019-02-03 2020-08-06 苏州市龙测智能科技有限公司 Interface automation test method, test apparatus, test device and storage medium
CN111679965A (en) * 2020-04-23 2020-09-18 平安国际智慧城市科技股份有限公司 Automatic testing method and device, computer equipment and storage medium
CN113742215A (en) * 2021-07-13 2021-12-03 北京关键科技股份有限公司 Method and system for automatically configuring and calling test tool to perform test analysis

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6993747B1 (en) * 1999-08-30 2006-01-31 Empirix Inc. Method and system for web based software object testing
CN102075381A (en) * 2010-12-14 2011-05-25 云海创想信息技术(北京)有限公司 Automatic test platform server and system applied to cloud storage
WO2020155778A1 (en) * 2019-02-03 2020-08-06 苏州市龙测智能科技有限公司 Interface automation test method, test apparatus, test device and storage medium
CN111679965A (en) * 2020-04-23 2020-09-18 平安国际智慧城市科技股份有限公司 Automatic testing method and device, computer equipment and storage medium
CN113742215A (en) * 2021-07-13 2021-12-03 北京关键科技股份有限公司 Method and system for automatically configuring and calling test tool to perform test analysis

Also Published As

Publication number Publication date
CN114817071B (en) 2024-07-05

Similar Documents

Publication Publication Date Title
CN107341643B (en) Visual process display method and system
CN109634728B (en) Job scheduling method and device, terminal equipment and readable storage medium
CN112286806B (en) Automatic test method and device, storage medium and electronic equipment
CN107370786A (en) A kind of general information management system based on micro services framework
CN111026670B (en) Test case generation method, test case generation device and storage medium
US11954013B2 (en) Method of testing applet performance, electronic device, and computer-readable medium
CN113204495A (en) Automatic testing method and device based on B/S architecture, storage medium and equipment
CN113934832A (en) Interactive processing method, device, equipment, medium and program product based on session
CN112787895A (en) Network inspection method, device and equipment
CN112346947A (en) Performance detection method and device, electronic equipment and computer readable medium
CN107203471B (en) Joint debugging method, service platform and computer storage medium
CN111464350B (en) Method and system for managing heterogeneous brand network equipment
CN112988267A (en) Loading method and device, storage medium and electronic equipment
CN114817071A (en) Online automatic test system, method and device and readable storage medium
CN116166556A (en) Code analysis method, device and system
CN113342667A (en) Data processing method, data processing device, electronic equipment and computer readable storage medium
CN114971503A (en) Data processing method, device and storage medium
CN115391165A (en) Vehicle testing method and device, storage medium and electronic equipment
CN110544075A (en) asset management process configuration method, device and equipment
CN116643794B (en) Information processing method and device and electronic equipment
CN118656065A (en) Service generation method, system, electronic device, computer storage medium, and program product
CN112860546A (en) Service testing method, service testing device, electronic equipment and computer readable storage medium
CN117111963A (en) Software release method, device, equipment and storage medium
CN115345399A (en) Equipment acceptance method and device
CN117931643A (en) Code verification method, device, equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant