CN116955128A - Dynamic visual test environment generation method - Google Patents
Dynamic visual test environment generation method Download PDFInfo
- Publication number
- CN116955128A CN116955128A CN202210392417.1A CN202210392417A CN116955128A CN 116955128 A CN116955128 A CN 116955128A CN 202210392417 A CN202210392417 A CN 202210392417A CN 116955128 A CN116955128 A CN 116955128A
- Authority
- CN
- China
- Prior art keywords
- test environment
- network
- interface
- configuration
- dynamic visual
- 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 58
- 238000000034 method Methods 0.000 title claims abstract description 21
- 230000000007 visual effect Effects 0.000 title claims abstract description 21
- 238000012986 modification Methods 0.000 claims abstract description 8
- 230000004048 modification Effects 0.000 claims abstract description 8
- 238000007726 management method Methods 0.000 claims description 3
- 238000013522 software testing Methods 0.000 description 4
- 238000010586 diagram Methods 0.000 description 3
- 238000012795 verification Methods 0.000 description 3
- 238000013459 approach Methods 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 238000010276 construction Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000012800 visualization Methods 0.000 description 1
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
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)
- Stored Programmes (AREA)
Abstract
The invention provides a method for generating a dynamic visual test environment, which comprises the following steps: s1, presenting an interface for planning a network environment to a user on a main operation platform; s2, icons comprising various modules in the interface are used for receiving dragging of a tester, dragging the tester to an operation area, and forming connection to form a network environment; s3, connecting the modules according to rules, and planning a test environment; s4, configuring parameters in each related module in the step S3 to form configuration of a test environment; and S5, checking the test environment generated in the step S4 on a main operation platform, if the test environment accords with the check rule, creating the test environment, and if the test environment does not accord with the check rule, carrying out rollback modification. The invention adopts the visual interface to enable the tester to build the required test environment in a visual mode, and comprises the steps of designing network planning, configuring parameters of cloud host nodes, selecting a cloud host operating system and selecting software for supporting test, thereby reducing the building difficulty and complexity, having wide adaptability and improving the efficiency.
Description
Technical Field
The invention relates to the field of software testing, in particular to the technical field of test environment construction, and specifically relates to a method for generating a dynamic visual test environment.
Background
With the development of software technology in recent years, the software scale is continuously enlarged, and higher requirements are also brought to software testing. In the large-scale software testing process, a complex testing environment needs to be built, while in the traditional testing environment building mode, testers need to manually configure and install supporting software on each machine in the testing environment, so that the large-scale software testing process is complex and easy to bring a large number of repeated operations, and the testers do not have visual feeling on the building process.
Disclosure of Invention
In view of the above-mentioned drawbacks of the prior art, an object of the present invention is to provide a method for generating a dynamic visual test environment, which is used for solving the difficulties of the prior art.
To achieve the above and other related objects, the present invention provides a method for generating a dynamic visual test environment, comprising the steps of:
s1, presenting an interface for planning a network environment to a user on a main operation platform;
s2, icons comprising various modules in the interface are used for receiving dragging of a tester, dragging the tester to an operation area, and forming connection to form a network environment;
s3, connecting the modules according to rules, and planning a test environment;
s4, configuring parameters in each related module in the step S3 to form configuration of a test environment;
and S5, checking the test environment generated in the step S4 on a main operation platform, if the test environment accords with the check rule, creating the test environment, and if the test environment does not accord with the check rule, carrying out rollback modification.
According to the preferred scheme, if the verification rule is not met, the system of the main operation platform prompts the user to carry out corresponding modification.
According to a preferred embodiment, the modules in the interface in step S2 include a network, a subnet, a route, and a cloud host.
According to a preferred scheme, the parameter configuration of the network comprises network name, network type, external network, sharing status.
According to a preferred scheme, the network name is conventionally configured as: user-defined, network id: by default, network type: default, shared state: default.
According to a preferred scheme, the parameter configuration of the subnet comprises subnet name, network address, IP version, gateway IP, forbidden gateway and DNS server.
According to a preferred embodiment, the configuration is automatically generated by the system.
According to a preferred scheme, the information configuration of the route comprises a route name, a management state and an external network.
According to a preferred approach, the configuration of the cloud host includes hardware, an operating system, and software.
According to a preferred scheme, the configuration of the cloud host hardware parameters comprises a cloud host name, a CPU, a memory and a hard disk.
According to a preferred embodiment, the hardware configuration generally employed is: 2 cores, 4G, 100G; operating system: centOS.
According to a preferred scheme, the configuration of the cloud host operating system is selected from a system image list of the main operating platform to be configured for the cloud host.
According to a preferred scheme, the configuration of the cloud host software is selected from a software list of the main operation platform.
The invention adopts the visual interface to enable the tester to build the required test environment in a visual mode, and comprises the steps of designing network planning, configuring parameters of cloud host nodes, selecting a cloud host operating system and selecting software for supporting test, thereby reducing the building difficulty and complexity, having wide adaptability and improving the efficiency.
Preferred embodiments for carrying out the present invention will be described in more detail below with reference to the attached drawings so that the features and advantages of the present invention can be easily understood.
Drawings
FIG. 1 shows a flow chart of the present invention;
FIG. 2 is a schematic diagram of icons according to the present invention;
FIG. 3 is a schematic diagram of the present invention with respect to subnets, virtual machines and routes;
FIG. 4 is a schematic diagram of an operation interface according to the present invention, wherein the operation interface may be used to prompt whether the verification is passed.
Detailed Description
In order to make the objects, technical solutions and advantages of the technical solutions of the present invention more clear, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings of specific embodiments of the present invention. Like reference numerals in the drawings denote like parts. It should be noted that the described embodiments are some, but not all embodiments of the present invention. All other embodiments, which can be made by a person skilled in the art without creative efforts, based on the described embodiments of the present invention fall within the protection scope of the present invention.
Possible embodiments within the scope of the invention may have fewer components, have other components not shown in the drawings, different components, differently arranged components or differently connected components, etc. than the examples shown in the drawings. Furthermore, two or more of the elements in the figures may be implemented in a single element or a single element shown in the figures may be implemented as multiple separate elements.
Unless defined otherwise, technical or scientific terms used herein should be given the ordinary meaning as understood by one of ordinary skill in the art to which this invention belongs. The terms "first," "second," and the like in the description and in the claims, are not used for any order, quantity, or importance, but are used for distinguishing between different elements. Likewise, the terms "a" or "an" and the like do not necessarily denote a limitation of quantity. The word "comprising" or "comprises", and the like, means that elements or items preceding the word are included in the element or item listed after the word and equivalents thereof, but does not exclude other elements or items. The terms "connected" or "connected," and the like, are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. "upper", "lower", "left", "right", etc. are used merely to indicate relative positional relationships, which may also be changed when the absolute position of the object to be described is changed.
The invention provides a method for generating a dynamic visual test environment, which is used in a software test process, does not limit the type of a test object, but is more suitable for a complex test environment to be built in a large-scale software test process, has a visual effect, and is more visual and convenient.
In general, the method for generating the dynamic visual test environment mainly plans and connects the test environment modules based on the visual interface, wherein, reference can be made to fig. 1, which shows a flow chart of the test environment generation.
Embodiment 1, a method of dynamic visualization test environment generation includes the steps of:
s1, presenting an interface for planning a network environment to a user on a main operation platform;
s2, icons comprising various modules in the interface are used for receiving dragging of a tester, dragging the tester to an operation area, and forming connection to form a network environment;
s3, connecting modules according to rules, namely, planning a test environment: the network connection sub-network, the sub-network connection cloud host and the sub-network connection route refer to virtual connection of the cloud platform, and users do not need to care about the virtual connection;
s4, configuring parameters in each related module in the step S3 to form configuration of a test environment, specifically a network, a subnet, a route and a cloud platform module;
and S5, checking the test environment generated in the step S4 on a main operation platform, and when the test environment is successfully stored, proving that the check is passed, if the test environment accords with the check rule, creating the test environment, if the test environment does not accord with the check rule, carrying out rollback modification, and when the test environment is returned, realizing the position for prompting modification to the client by the system through a basic rule module set at the front end.
As described above, the configuration of parameters needs to be performed on each module, and in terms of the configuration of parameters of the network, the configuration of network names, network types, external networks and shared states, specifically, the configuration of parameters suitable for testing purposes, in this embodiment, the configuration is generally performed automatically by the system, and the network names: user-defined, network id: by default, network type: default, shared state: default.
Further, the subnet is used to divide a large IP network into several small subnets, so that the parameter configuration of the subnet includes the subnet name, network address, IP version, gateway IP, forbidden gateway, DNS server, which are set as default for convenience of user operation.
On the basis, in order to obtain proper network speed and achieve the purpose of communication among mutually isolated sub-networks, the information of the route needs to be configured, specifically including route names, management states and external networks, and is automatically distributed and configured by the background.
The cloud host computer is a host computer module based on a cloud platform and built based on a main operation platform, all configurations of the host computer are needed, in order to improve planning efficiency and reduce operation difficulty, an operation system of the cloud platform is selected from a mirror image list of the main operation system, meanwhile, software is directly selected from the main operation system, and the available software can be automatically screened out after the version of the operation system is determined due to the corresponding relation between the software and the operation system.
As shown in fig. 1 and 4, the system of the main operation platform verifies the generated test environment, and when the test environment is successfully stored, the test environment is proved to pass, if the test rule is met (the rule refers to that the network is connected with the subnet, the subnet is connected with the cloud host, the subnet is connected with the route, the virtual connection of the cloud platform is referred to, and the user does not need to care), and the test environment is successfully created; when the verification is problematic, the main system receives error information feedback, and the error source of the tester is modified.
The above embodiments are merely illustrative of the principles of the present invention and its effectiveness, and are not intended to limit the invention. Modifications and variations may be made to the above-described embodiments by those skilled in the art without departing from the spirit and scope of the invention. Accordingly, it is intended that all equivalent modifications and variations of the invention be covered by the claims, which are within the ordinary skill of the art, be within the spirit and scope of the present disclosure.
Claims (7)
1. A method for dynamic visual test environment generation, comprising the steps of:
s1, presenting an interface for planning a network environment to a user on a main operation platform;
s2, icons comprising various modules in the interface are used for receiving dragging of a tester, dragging the tester to an operation area, and forming connection to form a network environment;
s3, connecting the modules according to rules, and planning a test environment;
s4, configuring parameters in each related module in the step S3 to form configuration of a test environment;
and S5, checking the test environment generated in the step S4 on a main operation platform, if the test environment accords with the check rule, creating the test environment, and if the test environment does not accord with the check rule, carrying out rollback modification.
2. The method according to claim 1, wherein the modules in the interface in step S2 include a network, a subnet, a route, and a cloud host.
3. The method of dynamic visual test environment generation according to claim 2, wherein the parameter configuration of the network includes a network name, a network type, an external network, a shared state.
4. A method of dynamic visual test environment generation according to claim 3, wherein the parameter configuration of the subnet comprises subnet name, network address, IP version, gateway IP, forbidden gateway, DNS server.
5. The method of dynamic visual test environment generation according to claim 4, wherein the information configuration of the route includes a route name, a management state, an external network.
6. The method of dynamic visual test environment generation according to claim 5, wherein the configuration of the cloud host comprises hardware, an operating system, and software.
7. The method of claim 6, wherein the configuration of the cloud host hardware parameters includes cloud host name, CPU, memory, hard disk.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210392417.1A CN116955128A (en) | 2022-04-15 | 2022-04-15 | Dynamic visual test environment generation method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210392417.1A CN116955128A (en) | 2022-04-15 | 2022-04-15 | Dynamic visual test environment generation method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN116955128A true CN116955128A (en) | 2023-10-27 |
Family
ID=88443112
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210392417.1A Pending CN116955128A (en) | 2022-04-15 | 2022-04-15 | Dynamic visual test environment generation method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN116955128A (en) |
-
2022
- 2022-04-15 CN CN202210392417.1A patent/CN116955128A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20180270127A1 (en) | Interactive hierarchical network chord diagram for application dependency mapping | |
US7937462B2 (en) | Verification of correctness of networking aspects of an information technology system | |
EP2864881B1 (en) | Establishing an initial configuration of a hardware inventory | |
US7568022B2 (en) | Automated display of an information technology system configuration | |
US20140344438A1 (en) | Generic and automatic address configuration for data center networks | |
US20100064009A1 (en) | Method and Apparatus for a Common Cluster Model for Configuring, Managing, and Operating Different Clustering Technologies in a Data Center | |
US20060130133A1 (en) | Automated generation of configuration elements of an information technology system | |
US8683488B2 (en) | System and method for automatically generating computer code for message flows | |
JP4746091B2 (en) | Network design processing apparatus, network design processing method, and network design processing program | |
US20060080413A1 (en) | Method and system for establishing a deployment plan for an application | |
KR20160106156A (en) | Method and apparatus for visualized operation and maintenance of network | |
CN111314107B (en) | Automatic networking system and method based on internet service | |
EP1639748A1 (en) | System and method for dynamically configuring and transitioning wired and wireless networks | |
CN111970337B (en) | P2P network communication construction method, system, medium and terminal under cross-cloud environment | |
CN113938378B (en) | Method, equipment and medium for checking network equipment configuration in cloud network environment | |
CN111641521B (en) | Method for deploying big data clusters on cloud based on Ambari | |
CN114422010A (en) | Protocol testing method of satellite communication simulation platform based on network virtualization | |
US7434041B2 (en) | Infrastructure for verifying configuration and health of a multi-node computer system | |
CN116455869A (en) | Method and system for efficiently configuring public network domain name based on Kubernetes | |
CN116955128A (en) | Dynamic visual test environment generation method | |
KR100821401B1 (en) | System and method for the design and description of networks | |
CN110096543A (en) | Data manipulation method, device, server and the medium of application program | |
CN114363164A (en) | Cloud network service arrangement control method and system, storage medium and electronic equipment | |
WO2024065182A1 (en) | Network configuration method and apparatus, electronic device, and storage medium | |
CN113742372A (en) | Method, device and system for accessing data in edge node |
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 |