CN117271332A - Test environment configuration method, device, electronic equipment and storage medium - Google Patents

Test environment configuration method, device, electronic equipment and storage medium Download PDF

Info

Publication number
CN117271332A
CN117271332A CN202311220440.3A CN202311220440A CN117271332A CN 117271332 A CN117271332 A CN 117271332A CN 202311220440 A CN202311220440 A CN 202311220440A CN 117271332 A CN117271332 A CN 117271332A
Authority
CN
China
Prior art keywords
configuration
state
environment
page
configuration item
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
Application number
CN202311220440.3A
Other languages
Chinese (zh)
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.)
Beijing Volcano Engine Technology Co Ltd
Original Assignee
Beijing Volcano Engine 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 Beijing Volcano Engine Technology Co Ltd filed Critical Beijing Volcano Engine Technology Co Ltd
Priority to CN202311220440.3A priority Critical patent/CN117271332A/en
Publication of CN117271332A publication Critical patent/CN117271332A/en
Pending legal-status Critical Current

Links

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/3664Environments 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)
  • User Interface Of Digital Computer (AREA)

Abstract

The disclosure relates to a test environment configuration method, a device, an electronic device and a storage medium, wherein the method comprises the following steps: responding to the triggering operation of the environment configuration inlet, and displaying an environment configuration page; the environment configuration page is used for configuring the functional test environment; the environment configuration page comprises a plurality of configuration items; at least some of the plurality of configuration items are of different types; in response to a selection operation of at least some of the plurality of configuration items, the selected configuration item is placed in a selected state, and a functional test environment is formed based on the configuration item in the selected state. By adopting the technical scheme provided by the embodiment of the disclosure, the configuration steps of the offline test environment can be simplified, the configuration difficulty of the offline test environment can be reduced, and the configuration rate of the offline test environment can be improved.

Description

Test environment configuration method, device, electronic equipment and storage medium
Technical Field
The disclosure relates to the technical field of test environment configuration, and in particular relates to a test environment configuration method, a device, electronic equipment and a storage medium.
Background
After the development of new product functions, a series of test works are required to ensure the stability and safety thereof. Wherein an off-line testing environment is an integral part. Since the off-line test environment is isolated from the actual production environment, the tester needs to configure the off-line test environment to perform the test.
In configuring an offline test environment, multiple types of configuration items typically need to be configured, with different types of configuration items having different entries. This makes the configuration of the offline test environment cumbersome, difficult, and inflexible.
Disclosure of Invention
In order to solve the technical problems described above or at least partially solve the technical problems described above, the present disclosure provides a test environment configuration method, a device, an electronic apparatus, and a storage medium.
In a first aspect, the present disclosure provides a test environment configuration method, including:
displaying a target page, wherein the target page comprises an environment configuration inlet;
responding to the triggering operation of the environment configuration inlet, and displaying an environment configuration page; the environment configuration page is used for configuring a functional test environment; the environment configuration page comprises a plurality of configuration items; at least some of the plurality of configuration items are of different types;
in response to a selection operation of at least some of the plurality of configuration items, placing the selected configuration item in a selected state, and forming a functional test environment based on the configuration item in the selected state.
In a second aspect, the present disclosure further provides a test environment configuration apparatus, including:
The first display module is used for displaying a target page, and the target page comprises an environment configuration inlet;
the second display module is used for responding to the triggering operation of the environment configuration inlet and displaying an environment configuration page; the environment configuration page is used for configuring a functional test environment; the environment configuration page comprises a plurality of configuration items; at least some of the plurality of configuration items are of different types;
and the test environment forming module is used for responding to the selection operation of at least part of the configuration items in the plurality of configuration items, placing the selected configuration items in a selected state and forming a functional test environment based on the configuration items in the selected state.
In a third aspect, the present disclosure also provides an electronic device, including:
one or more processors;
a storage means for storing one or more programs;
the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the test environment configuration method as described above.
In a fourth aspect, the present disclosure also provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the test environment configuration method as described above.
Compared with the prior art, the technical scheme provided by the embodiment of the disclosure has the following advantages:
according to the technical scheme provided by the embodiment of the disclosure, the environment configuration page is displayed by setting the trigger operation responding to the environment configuration inlet; the environment configuration page is used for configuring the functional test environment; the environment configuration page comprises a plurality of configuration items; at least some of the plurality of configuration items are of different types; in response to a selection operation of at least part of the configuration items, the selected configuration items are placed in a selected state, and a functional test environment is formed based on the configuration items in the selected state, so that when the environment configuration is actually performed under-line test, a user can configure a plurality of different types of configuration items in the same environment configuration page instead of searching for inlets corresponding to different configuration items respectively, and after the inlets corresponding to different configuration items are found, the user enters various configuration pages to perform configuration. By adopting the technical scheme provided by the embodiment of the disclosure, the configuration steps of the offline test environment can be simplified, the configuration difficulty of the offline test environment can be reduced, and the configuration rate of the offline test environment can be improved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description, serve to explain the principles of the disclosure.
In order to more clearly illustrate the embodiments of the present disclosure or the solutions in the prior art, the drawings that are required for the description of the embodiments or the prior art will be briefly described below, and it will be obvious to those skilled in the art that other drawings can be obtained from these drawings without inventive effort.
FIG. 1 is a flow chart of a test environment configuration method provided by an embodiment of the present disclosure;
FIGS. 2-7 are schematic diagrams of several environment configuration pages provided by embodiments of the present disclosure;
FIG. 8 is a schematic diagram of a test environment configuration device in an embodiment of the disclosure;
fig. 9 is a schematic structural diagram of an electronic device in an embodiment of the disclosure.
Detailed Description
In order that the above objects, features and advantages of the present disclosure may be more clearly understood, a further description of aspects of the present disclosure will be provided below. It should be noted that, without conflict, the embodiments of the present disclosure and features in the embodiments may be combined with each other.
In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present disclosure, but the present disclosure may be practiced otherwise than as described herein; it will be apparent that the embodiments in the specification are only some, but not all, embodiments of the disclosure.
Fig. 1 is a flowchart of a test environment configuration method provided in an embodiment of the present disclosure, where the embodiment may be suitable for a case of performing test environment configuration in a client, and the method may be performed by a test environment configuration device, where the device may be implemented in software and/or hardware, and the device may be configured in an electronic device, for example, a terminal, and specifically includes, but is not limited to, a smart phone, a palm top computer, a tablet computer, a wearable device with a display screen, a desktop computer, a notebook computer, an all-in-one machine, a smart home device, and so on. Alternatively, the embodiment may be applied to a case where the test environment configuration is performed in the server, where the method may be performed by a test environment configuration device, where the device may be implemented in software and/or hardware, and where the device may be configured in an electronic device, for example, a server.
As shown in fig. 1, the method specifically may include:
s110, displaying a target page, wherein the target page comprises an environment configuration inlet.
The target page may be, for example, a page that is opened after the user performs some operation. The environment configuration entry is a starting point for functional test environment configuration with interactive functionality. The environment configuration portal may specifically be a control, menu item, specific text, etc. The target page includes an environment configuration entry, i.e., the target page contains entries that can be entered into the environment configuration page. The environment configuration page may be opened through the environment configuration portal. The environment configuration page may assist a tester in performing an under-line test environment configuration.
It should be noted that, the purpose of the technical scheme of the application is to provide a plug-in unit capable of configuring a test environment. Since the plug-in needs to be run in dependence on a particular application. In this application, optionally, the target page is a page of an application to which the plug-in is attached. For example, if the plug-in capable of performing the test environment configuration is a browser plug-in, the target page is a browser page. Optionally, the display position of the environment configuration portal is located at the navigation bar of the target page. Therefore, no matter what information is displayed by the browser, the environment configuration inlet is always in a displayed state, so that a user can conveniently and quickly open the environment configuration page
S120, responding to the triggering operation of the environment configuration entry, and displaying an environment configuration page; the environment configuration page is used for configuring the functional test environment; the environment configuration page comprises a plurality of configuration items; at least some of the plurality of configuration items are of different types.
The triggering operation on the environment configuration portal may be, for example, an operation indicating that an environment configuration page is desired to be openable through the environment configuration portal. Illustratively, the trigger operation on the environment configuration portal may be a click operation or a slide operation on the environment configuration portal, or the like.
The environment configuration page may be, for example, a page for configuring a functional test environment. Specifically, the environment configuration page is used for configuring the offline test environment.
The configuration items may be, for example, items or objects that may or may need to be configured in relation to the offline test environment that are incorporated in the configuration management. In practice, the configuration items are of various types. Illustratively, in an in-line test environment configuration scenario, the types of configuration items include, but are not limited to, request header, response header, domain name redirection, domain name filtering, and auto-login, among others.
The type of the configuration item is set to include automatic login, which means that a user is allowed to input login information such as a user name, a password, a login address and the like, and a test platform for performing login specification based on the login information. The essence of this is that the login information that needs to be used in the test is managed with the environment configuration page. During the testing process, one-key login can be performed, so that user operation can be reduced, and the testing efficiency is improved.
The configuration may be performed with a plurality of configuration items in the environment configuration page. The fact that at least some of the configuration items are different in type means that in the application, different types of configuration types can be configured on an environment configuration page.
S130, responding to the selection operation of at least part of the configuration items in the plurality of configuration items, placing the selected configuration items in a selected state, and forming a functional test environment based on the configuration items in the selected state.
The selection operation of the configuration item may be, for example, an operation for indicating that the configuration item needs to be used. Illustratively, the selection operation of the configuration item includes a click operation or a slide operation of the configuration item, or the like. The configuration item being in the selected state indicates that the configuration item currently in the selected state is valid, and a functional test environment is subsequently formed based on the configuration item in the selected state. The state of the configuration item also includes an unselected state. If a configuration item is in an unselected state, meaning that the configuration item fails, no functional test environment is formed subsequently based on the configuration item in the unselected state.
Fig. 2 is a schematic diagram of an environment configuration page provided in an embodiment of the disclosure. Referring to fig. 2, the environment configuration page includes 8 configuration items, wherein the types of the first four configuration items are request heads. The last four configuration items are all of the domain name redirection type. In fig. 2, the check boxes preceding the first, second, fifth, and sixth configuration items are in the checked state from top to bottom, indicating that the first, second, fifth, and sixth configuration items are in the checked state. A functional test environment is then formed based on the first configuration item, the second configuration item, the fifth configuration item, and the sixth configuration item.
According to the technical scheme, the environment configuration page is displayed by setting the trigger operation responding to the environment configuration entry; the environment configuration page is used for configuring the functional test environment; the environment configuration page comprises a plurality of configuration items; at least some of the plurality of configuration items are of different types; in response to a selection operation of at least part of the configuration items, the selected configuration items are placed in a selected state, and a functional test environment is formed based on the configuration items in the selected state, so that when the environment configuration is actually performed under-line test, a user can configure a plurality of different types of configuration items in the same environment configuration page instead of searching for inlets corresponding to different configuration items respectively, and after the inlets corresponding to different configuration items are found, the user enters various configuration pages to perform configuration. By adopting the technical scheme provided by the embodiment of the disclosure, the configuration steps of the offline test environment can be simplified, the configuration difficulty of the offline test environment can be reduced, and the configuration rate of the offline test environment can be improved.
On the basis of the above technical solution, optionally, the environment configuration page includes a configuration item adding option, and the method further includes: responsive to a selection operation of the add option to the configuration item, displaying the configuration item in a first state in an environment configuration page; the configuration item in the first state comprises at least one slot to be filled; responding to filling operation of the slot to be filled, and switching the state of the configuration item from a first state to a second state; the configuration item in the second state does not include a slot to be filled.
The slots to be filled may be, for example, locations where information is missing, i.e. empty locations. The filling operation of the slot to be filled may be, for example, inputting information for filling the slot to be filled; or selecting information for filling the slot to be filled from among an alternative plurality of information.
The configuration item being in the first state means that no configuration of valid information is performed for the configuration item, i.e. no filling operation is performed for the slot to be filled. The configuration item is in the second state, which means that effective information configuration is performed on the configuration item, the slot to be filled is filled with the effective information, and the configuration item is configured completely.
Illustratively, in FIG. 2, the 8 th configuration item is the configuration item in the first state, which is a domain name redirection type configuration item. The 8 th configuration item comprises two slots to be filled, namely a slot to be filled 1 and a slot to be filled 2, wherein the slot to be filled 1 is used for filling the link address before redirection, and the slot to be filled 2 is used for filling the link address after redirection. And after filling the link addresses for the two slots to be filled in the 8 th configuration item, the state of the 8 th configuration item is a second state. In fig. 2, the 7 th configuration item is a configuration item in the first state, and each slot in the 7 th configuration item is filled, so it does not include a slot to be filled.
Displaying the configuration items in the first state in the environment configuration page by setting a selection operation in response to the addition of the options to the configuration items; in response to a filling operation of the slot to be filled, the state of the configuration item is switched from the first state to the second state, so that a user can be allowed to configure the configuration item according to actual test requirements.
In practice, optionally, the environment configuration page includes a plurality of configuration items, and a plurality of display methods of the plurality of configuration items are different, which is not limited in this application. Illustratively, the plurality of configuration items are sequentially presented in the order of addition on the environment configuration page.
In one embodiment, optionally, the environment configuration page includes a configuration item display area including at least two sub-configuration item display areas; the display positions of the configuration items with the same type are positioned in the same sub-configuration item display area; the display positions of the configuration items with different types are located in the display areas of the configuration items with different sub-types.
Illustratively, referring to FIG. 2, in the environment configuration page, the configuration item presentation area includes two sub-configuration item presentation areas. The first sub-configuration item display area is used for displaying the configuration items of the request head type in a centralized manner, and the second sub-configuration item display area is used for displaying the configuration items of the domain name redirection type in a centralized manner.
The configuration item display area comprises at least two sub-configuration item display areas; the display positions of the configuration items with the same type are positioned in the same sub-configuration item display area; the display positions of the configuration items with different types are positioned in different sub-configuration item display areas, so that the classification management of a plurality of configuration items according to the types of the configuration items can be realized. Thus, the user can conveniently find and modify the configuration items.
Based on the above technical solutions, optionally, the specific implementation method of "responding to the configuration item increasing instruction and displaying the configuration item in the first state on the environment configuration page" is various, which is not limited in this application.
The configuration item adding instruction may be, for example, an instruction that instructs an execution body of the technical solution provided in the present application to add a configuration item. There are various methods for generating the configuration item addition instruction, and this application is not limited thereto. Illustratively, the setup environment configuration page includes a configuration item add option, and in response to a selection operation of the configuration item add option, a configuration item add instruction is generated. Or if the sliding operation along the preset direction or the preset track is detected, generating a configuration item adding instruction.
Further, if the setting environment configuration page includes a configuration item addition option, in practice, the setting environment configuration page may include one or more configuration item addition options.
Further, if the environment configuration page includes a plurality of configuration item adding options, specific implementation manners of the configuration items in the first state displayed on the environment configuration page after the configuration item adding options in different display positions are selected can be set.
Alternatively, the configuration item adding options may be divided into two types according to whether the display position of the configuration item adding option is located in the sub-configuration item display area, where the display position of the first type of configuration item adding option is located in the sub-configuration item display area, such as configuration item adding option B in fig. 2; the presentation location of the second type of configuration item addition option is not located within the sub-configuration item presentation area, such as configuration item addition option a in fig. 2.
Based on the foregoing, in one embodiment, if the configuration item adding option is set in the sub-configuration item display area, "in response to the configuration item adding instruction, a configuration item in the first state is displayed on the environment configuration page", which includes: and in response to the selection operation of the first type of configuration item adding option, adding the configuration item in the first state in the target sub-configuration item display area. The target sub-configuration item display area is a sub-configuration item display area where the selected first type of configuration item addition option is located.
For example, referring to fig. 2, if the user clicks on the configuration item addition option B in the first sub-configuration item presentation area, the first sub-configuration item presentation area is the target sub-configuration item presentation area. Since the first sub-configuration item display area is used for intensively displaying the configuration items of the request head type, the configuration items of the request head type are added in the first sub-configuration item display area. And the configuration item of the added request header type is the configuration item in the first state.
In another embodiment, "in response to a selection operation of a configuration item addition option, a configuration item in a first state is presented on an environment configuration page," comprising: responsive to a selection operation of adding an option to the second type of configuration item, displaying a set of configuration item types; the set of configuration item types includes at least one configuration item type; responding to the selection operation of one of the configuration item types in the configuration item type set, and adding the configuration item in the first state in the environment configuration page; the type of configuration item in the first state is consistent with the selected configuration item type.
Further, in response to a selection operation of one of the configuration item types in the configuration item type set, adding the configuration item in the first state to the environment configuration page includes: and responding to the selection operation of one of the configuration item types in the configuration item type set, and adding the configuration item in the first state in the sub-configuration item display area corresponding to the selected configuration item type. The purpose of the setting is to classify and manage a plurality of configuration items according to the types of the configuration items, so that a user can conveniently search and modify the configuration items later.
Fig. 3 is a schematic diagram of another environment configuration page according to an embodiment of the present application. Referring to fig. 3, if the user clicks the configuration item adding option a, since the display position of the configuration item adding option a is not located in any one of the sub-configuration item display areas, a configuration item type set is displayed for the second type of configuration item adding option; if the user selects the request head type, the configuration items in the first state are added in the first sub-configuration item display area because the first sub-configuration item display area is used for intensively displaying the configuration items of the request head type.
In practice, the type of the existing and presented configuration items in the environment configuration page may be different from the type of the configuration items that the tester wants to configure, and the environment configuration page does not include a sub-configuration item presentation area corresponding to the type of the configuration items that the tester wants to configure. Exposing a set of configuration item types by setting in response to a configuration item add instruction; the set of configuration item types includes at least one configuration item type; responding to the selection operation of one of the configuration item types in the configuration item type set, and adding the configuration item in the first state in the environment configuration page; the types of the configuration items in the first state are consistent with the types of the selected configuration items, so that the tester can newly add the configuration items of the specified types which are not displayed on the current environment configuration page according to the needs of the tester, and different test requirements of the tester can be met.
On the basis of the above technical solutions, optionally, the environment configuration page includes a group tag and a configuration item display area; the states of the group tags include a selected state and an unselected state; the configuration items displayed in the configuration item display area correspond to the group tags in the selected state.
The group may be, for example, a result of a user grouping configuration items themselves. Each group includes 0 or at least one configuration item. The types of the configuration items in the same group can be the same or different. The types of the configuration items in different groups can be the same or different. The same configuration items may be included in different groups. Wherein, the same configuration items are the same type of the assigned configuration items, and the information used for filling the slots of the configuration items is the same.
Further, the method may further include: in response to a selection operation of a group tag, a configuration item corresponding to the selected group tag is presented in a configuration item presentation area.
Illustratively, referring to FIG. 2, the environment configuration page includes 3 group tags, and the configuration items presented in the configuration item presentation area are configuration items belonging to the first group, assuming that the first group tag is in the selected state. If at some point, the user selects a second group label. The second group label is in a selected state, and the configuration items displayed in the configuration item display area are the configuration items belonging to the second group.
By setting the configuration items displayed in the configuration item display area to correspond to the group tags in the selected state, the configuration items can be automatically grouped according to the self needs of the user, the grouping result of the final configuration items can be adapted to the actual needs of the user, and the user experience is improved.
Further, the status of the group also includes an active status and an inactive status; the functional test environment is formed from configuration items in a selected state in the group in an active state.
The state of the group is an efficacy state, which means that the configuration items in the selected state in the group can be used later to form an offline test environment. The status of a group being in an inactive state refers to a state in which no configuration item in the group can be used to form an offline test environment subsequently, regardless of whether the status of the configuration item in the group is in a selected state.
In some scenarios, if the status of a group is valid, it may be set to default that all configuration items in the group are in the selected status. In other scenarios, if the status of a group is in an active state, which configuration items in the group are in a selected state may be set by the user.
By setting the functional test environment to be formed from the configuration items in the selected state in the group in the validated state, the off-line test environment can be made to be formed based on the configuration items in the different groups. Therefore, when the user deploys the offline testing environment, all the configuration items to be used do not need to be collected in the same group, and if the configuration items to be used exist in other groups, the configuration items in the other groups can be directly borrowed, so that the deployment difficulty of the offline testing environment can be reduced.
On the basis of the technical schemes, optionally, the effective states of the group comprise a long-time effective state and a short-time effective state; the method further comprises the steps of: in response to a selection operation of a group tag, setting a state of a group corresponding to the selected group tag to a short-time effective state; the configuration item display area also comprises a long-short time switching option corresponding to the selected group; in response to a selection operation of the long-short time switch option, the state of the group corresponding to the selected group tag is switched from the short-time effective state to the long-time effective state.
For example, if the user selects the first group tag, referring to fig. 2, the configuration item displayed in the configuration item display area is the configuration item belonging to the first group, and the state of the group corresponding to the first group tag is the short-time effective state. With continued reference to fig. 2, the configuration item display area also includes a long and short time switch option corresponding to the first group. When the state of the group corresponding to the first group tag is the short time effective state, if the user selects the long and short time switching option corresponding to the first group, the check box in the long and short time switching option is in the checked state, and the state of the group corresponding to the first group tag is switched from the short time effective state to the long time effective state. When the state of the group corresponding to the first group tag is a long-time effective state, if the user selects the long-time switching option corresponding to the first group, the check box in the long-time switching option is in an unchecked state, and the state of the group corresponding to the first group tag is switched from the long-time effective state to a short-time effective state. The above-mentioned contents provide detailed switching modes of the long-time effective state and the short-time effective state, so that the configuration items in other groups can be borrowed when the offline test environment is deployed, and the configuration item combination required by the test can be formed.
With continued reference to fig. 2, in the case where the state of the group corresponding to the first group tag is a short time validation state and the state of the group corresponding to the second group tag is an invalid state, if the user selects the second group tag, the state of the group corresponding to the first group tag will be switched from the short time validation state to the invalid state, and the state of the group corresponding to the second group tag will be switched from the invalid state to the short time validation state. If the user selects the second group label, the state of the group corresponding to the first group label is kept in the long-term effective state. The state of the group corresponding to the second group tag will be switched from the inactive state to the short time active state. The detailed mutual switching modes of the long-time effective state, the short-time effective state and the failure state are provided, so that configuration items in other groups can be further guaranteed to be borrowed when an offline test environment is deployed.
In actual setting, each group optionally corresponds to a check box. For any group, if the group is in an effective state (including a long-time effective state and a short-time effective state), a check box corresponding to the group is in a checking state. If the group is in a failure state, a check box corresponding to the group is in an unchecked state. This arrangement facilitates the tester to intuitively understand which cluster or clusters are in effect.
Illustratively, referring to FIG. 2, presented in the current configuration item presentation area is a configuration item in a first group. The check boxes corresponding to the first group are in the checked state. And the check boxes corresponding to the second group and the check boxes corresponding to the third group are in an unchecked state, and the currently formed offline test environment is formed based on the configuration items in the checked state in the first group.
Illustratively, referring to FIG. 2, assume that a first group tag is in a checked state and a checkbox corresponding to the first group is in a checked state. On the basis of fig. 2, if the user selects the long-short time switch option, the check box in front of the group is always turned on in fig. 2, the first group is in the long-time effective state, and the check box corresponding to the first group is still in the checked state. Then, if the user selects the label of the second group but does not select the long and short time switching options corresponding to the second group, referring to fig. 4, the check boxes corresponding to the first group and the check boxes corresponding to the second group are both in the checked state, and the check boxes corresponding to the long and short time switching options of the second group are in the unchecked state. And because the check box corresponding to the third group is in an unchecked state, the currently formed off-line test environment is formed based on the configuration items in the checked state in the first group and the configuration items in the checked state in the second group.
On the basis of fig. 4, if the user selects the third group tab, referring to fig. 5, the check boxes corresponding to the first group and the check boxes corresponding to the third group are both in the checked state. And the check box corresponding to the second group is in an unchecked state, and the currently formed off-line testing environment is formed based on the configuration items in the checked state in the first group and the configuration items in the checked state in the third group.
On the basis of the above technical solutions, optionally, the environment configuration page further includes a group number adjustment option, and the method further includes: in response to a selection operation of the group number adjustment option, a group tag is added or deleted. The goal of this is to allow the user to set the number of clusters as desired to match the user's needs.
Optionally, the group number adjustment options and the group tag are both located in a navigation bar of the environment configuration page. Navigation bar refers to an area located at the top, bottom, or side of the environment configuration page.
Illustratively, referring to FIG. 5, the group quantity adjustment option and the group tab are both located in the navigation bar of the environment configuration page. Therefore, no matter which group of configuration items is displayed in the current configuration item display area, the navigation bar always displays the group quantity adjustment options and the group labels, so that the switching of different groups and the addition and deletion of the group labels can be realized.
Further, on the basis of the above technical solutions, optionally, the environment configuration page further includes a plug-in setting option; the method further comprises the steps of: responding to the selection operation of the plug-in setting options, and displaying a plug-in collection page; and responding to the selection operation of at least one plug-in the plug-in set page, and displaying a plug-in label corresponding to the selected plug-in the environment configuration page.
The plug-in setting option may be, for example, an option to set up a plug-in. Illustratively, the plug-in setting option is an option to set whether the portal of the plug-in is exposed on the environment configuration page. A selection operation of the plug-in setting option is used for indicating that the user wishes to set the inlet of the plug-in. The plug-in collection page is a page for summarizing and displaying summary information of different plug-ins. The summary information of the plug-in may be, for example, a page that interprets the plug-in. Illustratively, the summary information of the plug-in includes the name of the plug-in, function interpretation information, and the like. The selection operation of at least one plug-in the plug-in collection page is used to indicate which plug-in the portal the user wishes to set in particular. The selection operation of at least one plug-in the plug-in set page may specifically be a selection operation of summary information of at least one plug-in the plug-in set page, or a selection operation of a target option in the summary information of at least one plug-in the plug-in set page. Wherein the target option is an option for enabling the plug-in. The plug-in label is the entrance of the plug-in.
Illustratively, referring to FIG. 5, if the user selects the plug-in settings option, referring to FIG. 6, a plug-in collection page is presented; the plug-in collection page includes summary information for four plug-ins. If the user selects the first plugin, referring to fig. 7, a plugin tag corresponding to the selected plugin is displayed in the environment configuration page.
The plug-in tag is located in the navigation bar of the environment configuration page. Therefore, the purpose of opening the plug-in can be achieved quickly no matter what the current environment configuration page shows.
In practice, in the configuration process of the online test environment, the existing plug-in units are used for carrying out the configuration of the test environment, so that the configuration steps can be greatly simplified, the configuration difficulty is reduced, and the configuration efficiency is improved. By setting up a plug-in tag corresponding to a selected plug-in response to a selection operation of at least one plug-in the set of plug-ins, it is essential that the plug-ins and the configuration items are integrated into the same portal in the environment configuration page. Therefore, the configuration step of the offline test environment can be further simplified, the searching step of the plug-in is reduced, the configuration difficulty of the offline test environment is reduced, and the configuration rate of the offline test environment is improved.
It should be noted that, for simplicity of description, the foregoing method embodiments are all described as a series of acts, but it should be understood by those skilled in the art that the present invention is not limited by the order of acts described, as some steps may be performed in other orders or concurrently in accordance with the present invention. Further, those skilled in the art will also appreciate that the embodiments described in the specification are all preferred embodiments, and that the acts and modules referred to are not necessarily required for the present invention.
Fig. 8 is a schematic structural diagram of a test environment configuration device in an embodiment of the disclosure. The test environment configuration device provided by the embodiment of the disclosure may be configured in the client or may be configured in the server. Referring to fig. 8, the test environment configuration apparatus specifically includes:
a first display module 310, configured to display a target page, where the target page includes an environment configuration entry;
a second display module 320, configured to respond to a triggering operation on the environment configuration entry, and display an environment configuration page; the environment configuration page is used for configuring a functional test environment; the environment configuration page comprises a plurality of configuration items; at least some of the plurality of configuration items are of different types;
the test environment forming module 330 is configured to, in response to a selection operation of at least some of the plurality of configuration items, place the selected configuration item in a selected state, and form a functional test environment based on the configuration item in the selected state.
Further, the apparatus further comprises a configuration item adding module for:
responding to a configuration item increasing instruction, and increasing a configuration item in a first state in the environment configuration page; the configuration item in the first state comprises at least one groove to be filled;
Responding to the filling operation of the groove to be filled, and switching the state of the configuration item from the first state to the second state; the configuration item in the second state does not include a slot to be filled.
Further, the adding module is further configured to:
responsive to a configuration item add instruction, exposing a set of configuration item types; the set of configuration item types includes at least one configuration item type;
responding to a selection operation of one of the configuration item types in the configuration item type set, and adding a configuration item in a first state on the environment configuration page; the type of the configuration item in the first state is consistent with the selected configuration item type.
Further, the environment configuration page comprises a configuration item display area, wherein the configuration item display area comprises at least two sub-configuration item display areas; the display positions of the configuration items with the same type are positioned in the same sub-configuration item display area; and the display positions of the configuration items with different types are positioned in the display areas of the sub-configuration items.
Further, the environment configuration page comprises a group tag and a configuration item display area; the states of the group tags include a selected state and an unselected state;
A second display module 320, configured to:
and responding to the selection operation of one group label, and displaying the configuration item corresponding to the selected group label in the configuration item display area.
Further, the states of the group further include an active state and an inactive state; the functional test environment is formed according to the configuration items in the selected state in the group in the effective state.
Further, the validation states of the group include a long-time validation state and a short-time validation state; a second display module 320, configured to:
in response to a selection operation of one of the group tags, setting a state of the group corresponding to the selected group tag to a short-time effective state; the configuration item display area also comprises a long-short time switching option corresponding to the selected group;
and switching the state of the group corresponding to the selected group tag from a short time effective state to a long time effective state in response to a selection operation of the long and short time switching option.
Further, the environment configuration page further comprises a group quantity adjusting option, and the device further comprises a group quantity adjusting module for:
In response to a selection operation of the group number adjustment option, a group tag is added or deleted.
Further, the environment configuration page further comprises a plug-in setting option; the device also comprises a plug-in management module for:
responding to the selection operation of the plug-in setting options, and displaying a plug-in set page;
and responding to the selection operation of at least one plug-in the plug-in set page, and displaying a plug-in label corresponding to the selected plug-in the environment configuration page.
Further, the type of the configuration item includes at least one of the following: request header, response header, domain name redirection, domain name filtering, and automatic login.
The test environment configuration device provided by the embodiment of the present disclosure may execute steps executed by the client or the server in the test environment configuration method provided by the embodiment of the present disclosure, and has the executing steps and beneficial effects, which are not described herein.
Fig. 9 is a schematic structural diagram of an electronic device in an embodiment of the disclosure. Referring now in particular to fig. 9, a schematic diagram of an electronic device 1000 suitable for use in implementing embodiments of the present disclosure is shown. The electronic device 1000 in the embodiments of the present disclosure may include, but is not limited to, mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), in-vehicle terminals (e.g., in-vehicle navigation terminals), wearable electronic devices, and the like, and fixed terminals such as digital TVs, desktop computers, smart home devices, and the like. The electronic device shown in fig. 9 is merely an example, and should not impose any limitations on the functionality and scope of use of embodiments of the present disclosure.
As shown in fig. 9, the electronic device 1000 may include a processing means (e.g., a central processing unit, a graphic processor, etc.) 1001 that may perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM) 1002 or a program loaded from a storage means 1008 into a Random Access Memory (RAM) 1003 to implement a test environment configuration method of an embodiment as described in the present disclosure. In the RAM 1003, various programs and information necessary for the operation of the electronic apparatus 1000 are also stored. The processing device 1001, the ROM 1002, and the RAM 1003 are connected to each other by a bus 1004. An input/output (I/O) interface 1005 is also connected to bus 1004.
In general, the following devices may be connected to the I/O interface 1005: input devices 1006 including, for example, a touch screen, touchpad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, and the like; an output device 1007 including, for example, a Liquid Crystal Display (LCD), speaker, vibrator, etc.; storage 1008 including, for example, magnetic tape, hard disk, etc.; and communication means 1009. The communication means 1009 may allow the electronic device 1000 to communicate wirelessly or by wire with other devices to exchange information. While fig. 9 shows an electronic device 1000 having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may be implemented or provided instead.
In particular, according to embodiments of the present disclosure, the processes described above with reference to flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a non-transitory computer readable medium, the computer program comprising program code for performing the method shown in the flowchart, thereby implementing the test environment configuration method as described above. In such an embodiment, the computer program may be downloaded and installed from a network via the communication device 1009, or installed from the storage device 1008, or installed from the ROM 1002. The above-described functions defined in the method of the embodiment of the present disclosure are performed when the computer program is executed by the processing device 1001.
It should be noted that the computer readable medium described in the present disclosure may be a computer readable signal medium or a computer readable storage medium, or any combination of the two. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples of the computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this disclosure, a computer-readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In the present disclosure, however, the computer-readable signal medium may include an information signal propagated in baseband or as part of a carrier wave, with the computer-readable program code embodied therein. Such a propagated signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, fiber optic cables, RF (radio frequency), and the like, or any suitable combination of the foregoing.
In some implementations, the clients, servers may communicate using any known or future developed network protocol, such as HTTP (HyperText Transfer Protocol ), and may be interconnected with digital information communication (e.g., a communication network) in any form or medium. Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), the internet (e.g., the internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any known or future developed networks.
The computer readable medium may be contained in the electronic device; or may exist alone without being incorporated into the electronic device.
The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to:
displaying a target page, wherein the target page comprises an environment configuration inlet;
responding to the triggering operation of the environment configuration inlet, and displaying an environment configuration page; the environment configuration page is used for configuring a functional test environment; the environment configuration page comprises a plurality of configuration items; at least some of the plurality of configuration items are of different types;
In response to a selection operation of at least some of the plurality of configuration items, placing the selected configuration item in a selected state, and forming a functional test environment based on the configuration item in the selected state.
Alternatively, the electronic device may perform other steps described in the above embodiments when the above one or more programs are executed by the electronic device.
Computer program code for carrying out operations of the present disclosure may be written in one or more programming languages, including, but not limited to, an object oriented programming language such as Java, smalltalk, C ++ and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computer (for example, through the Internet using an Internet service provider).
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units involved in the embodiments of the present disclosure may be implemented by means of software, or may be implemented by means of hardware. Wherein the names of the units do not constitute a limitation of the units themselves in some cases.
The functions described above herein may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: a Field Programmable Gate Array (FPGA), an Application Specific Integrated Circuit (ASIC), an Application Specific Standard Product (ASSP), a system on a chip (SOC), a Complex Programmable Logic Device (CPLD), and the like.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. The machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
According to one or more embodiments of the present disclosure, the present disclosure provides an electronic device comprising:
one or more processors;
a memory for storing one or more programs;
the one or more programs, when executed by the one or more processors, cause the one or more processors to implement any of the test environment configuration methods as provided by the present disclosure.
According to one or more embodiments of the present disclosure, there is provided a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements a test environment configuration method as any one of the present disclosure provides.
The disclosed embodiments also provide a computer program product comprising a computer program or instructions which, when executed by a processor, implements the test environment configuration method as described above.
It should be noted that in this document, relational terms such as "first" and "second" and the like are 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. Moreover, 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 one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The foregoing is merely a specific embodiment of the disclosure to enable one skilled in the art to understand or practice the disclosure. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the disclosure. Thus, the present disclosure is not intended to be limited to the embodiments shown and described herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (13)

1. A test environment configuration method, comprising:
displaying a target page, wherein the target page comprises an environment configuration inlet;
responding to the triggering operation of the environment configuration inlet, and displaying an environment configuration page; the environment configuration page is used for configuring a functional test environment; the environment configuration page comprises a plurality of configuration items; at least some of the plurality of configuration items are of different types;
in response to a selection operation of at least some of the plurality of configuration items, placing the selected configuration item in a selected state, and forming a functional test environment based on the configuration item in the selected state.
2. The method according to claim 1, wherein the method further comprises:
responding to a configuration item increasing instruction, and increasing a configuration item in a first state in the environment configuration page; the configuration item in the first state comprises at least one groove to be filled;
responding to the filling operation of the groove to be filled, and switching the state of the configuration item from the first state to the second state; the configuration item in the second state does not include a slot to be filled.
3. The method of claim 2, wherein the exposing the configuration item in the first state at the environment configuration page in response to a configuration item increment instruction comprises:
responsive to a configuration item add instruction, exposing a set of configuration item types; the set of configuration item types includes at least one configuration item type;
responding to a selection operation of one of the configuration item types in the configuration item type set, and adding a configuration item in a first state on the environment configuration page; the type of the configuration item in the first state is consistent with the selected configuration item type.
4. A method according to claim 3, wherein the environment configuration page comprises a configuration item presentation area comprising at least two sub-configuration item presentation areas; the display positions of the configuration items with the same type are positioned in the same sub-configuration item display area; and the display positions of the configuration items with different types are positioned in the display areas of the sub-configuration items.
5. The method of claim 1, wherein the environment configuration page includes a group tag and a configuration item presentation area; the states of the group tags include a selected state and an unselected state; the method comprises the following steps:
and responding to the selection operation of one group label, and displaying the configuration item corresponding to the selected group label in the configuration item display area.
6. The method of claim 5, wherein the status of the group further comprises an active status and an inactive status; the functional test environment is formed according to the configuration items in the selected state in the group in the effective state.
7. The method of claim 6, wherein the validation states of the group include a long validation state and a short validation state; the method further comprises the steps of:
in response to a selection operation of one of the group tags, setting a state of the group corresponding to the selected group tag to a short-time effective state; the configuration item display area also comprises a long-short time switching option corresponding to the selected group;
and switching the state of the group corresponding to the selected group tag from a short time effective state to a long time effective state in response to a selection operation of the long and short time switching option.
8. The method of claim 5, wherein the environment configuration page further comprises a group number adjustment option, the method further comprising:
in response to a selection operation of the group number adjustment option, a group tag is added or deleted.
9. The method of claim 1, wherein the environment configuration page further comprises a plug-in setting option; the method further comprises the steps of:
responding to the selection operation of the plug-in setting options, and displaying a plug-in set page;
and responding to the selection operation of at least one plug-in the plug-in set page, and displaying a plug-in label corresponding to the selected plug-in the environment configuration page.
10. The method of claim 1, wherein the type of configuration item comprises at least one of: request header, response header, domain name redirection, domain name filtering, and automatic login.
11. A test environment configuration apparatus, comprising:
the first display module is used for displaying a target page, and the target page comprises an environment configuration inlet;
the second display module is used for responding to the triggering operation of the environment configuration inlet and displaying an environment configuration page; the environment configuration page is used for configuring a functional test environment; the environment configuration page comprises a plurality of configuration items; at least some of the plurality of configuration items are of different types;
And the test environment forming module is used for responding to the selection operation of at least part of the configuration items in the plurality of configuration items, placing the selected configuration items in a selected state and forming a functional test environment based on the configuration items in the selected state.
12. An electronic device, the electronic device comprising:
one or more processors;
a storage means for storing one or more programs;
the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the method of any of claims 1-10.
13. A computer readable storage medium, on which a computer program is stored, characterized in that the program, when being executed by a processor, implements the method according to any one of claims 1-10.
CN202311220440.3A 2023-09-20 2023-09-20 Test environment configuration method, device, electronic equipment and storage medium Pending CN117271332A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311220440.3A CN117271332A (en) 2023-09-20 2023-09-20 Test environment configuration method, device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311220440.3A CN117271332A (en) 2023-09-20 2023-09-20 Test environment configuration method, device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN117271332A true CN117271332A (en) 2023-12-22

Family

ID=89213763

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311220440.3A Pending CN117271332A (en) 2023-09-20 2023-09-20 Test environment configuration method, device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN117271332A (en)

Similar Documents

Publication Publication Date Title
US9846699B2 (en) System and methods thereof for dynamically updating the contents of a folder on a device
US9584612B2 (en) Systems and methods for pushing applications
CN109062563B (en) Method and device for generating page
CN110489101A (en) Interface analogy method, system, medium and electronic equipment
CN111555940A (en) Client test method and device, electronic equipment and computer readable storage medium
CN112269959B (en) Control method and device for display content, readable medium and electronic equipment
CN110069308A (en) The page starts method, apparatus, electronic equipment and storage medium
CN109684573A (en) Target Photo display methods and device, storage medium, electronic equipment
JP6779307B2 (en) Method and device for page display
CN112256372B (en) Information processing method and device and electronic equipment
CN110119386A (en) Data processing method, data processing equipment, medium and calculating equipment
CN111783010B (en) Webpage blank page monitoring method, device, terminal and storage medium
CN110489326B (en) IDS-based HTTPAPI debugging method device, medium and equipment
CN116661936A (en) Page data processing method and device, computer equipment and storage medium
CN117271332A (en) Test environment configuration method, device, electronic equipment and storage medium
CN110442403B (en) Method, device, electronic equipment and medium for calling functional component
EP2768206B1 (en) Download management method and device based on android browser
CN110647331A (en) Development tool acquisition method and device, storage medium and electronic equipment
CN110209591A (en) Picture searching method, apparatus, electronic equipment and storage medium
WO2014062209A1 (en) System and methods thereof for dynamically updating the contents of a folder on a device
KR101553539B1 (en) Dynamic link providing method and computer readable storage medium for program therefor
CN114816609B (en) Method and device for displaying window, electronic equipment and computer readable storage medium
CN113568726B (en) Multi-service system processing method, operation platform, electronic equipment and storage medium
CN111310031B (en) House source information display method, device, terminal and storage medium
CN116401173A (en) Test case generation method and device, medium and electronic equipment

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