Request processing method and system

By maintaining the corresponding relationship between the client address and the test environment identifier in the gateway, the problems of cumbersome operations and low test efficiency during the test environment replacement process are solved, and a more efficient test environment switch is achieved.

CN113608994BActive Publication Date: 2024-10-15TIANJIN WUBA DAOJIA FREIGHT SERVICE CO LTD
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202110737911.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-06-30
Publication Date
2024-10-15
Estimated Expiration
2041-06-30

AI Technical Summary

Technical Problem

When changing the test environment, the existing technology has cumbersome operations and low test efficiency. It requires manual modification of the test environment domain name on the client. Furthermore, since the client and server are responsible for different personnel, communication costs are high.

Method used

By determining the corresponding relationship between the client address and the test environment identifier in the gateway, and sending the second environment acquisition request to the target server with the target test environment identifier, it avoids modifying the test environment domain name on the client, simplifies operations and improves test efficiency.

Benefits of technology

It simplifies the process of changing the test environment, reduces communication costs, improves test efficiency, is easy to operate, and does not require changes to the client code.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113608994B_ABST
    Figure CN113608994B_ABST
Patent Text Reader

Abstract

The embodiment of the present application provides a request processing method and system. Among them, the gateway receives an environment acquisition request sent by a target client; searches for a target test environment identifier corresponding to the target client address in the environment acquisition request; combines the target test environment identifier with the environment acquisition request to obtain a second environment acquisition request; based on the target test environment identifier, sends the second environment acquisition request to the corresponding target server, so that the target server returns the corresponding target test environment based on the second environment acquisition request; and provides the target test environment to the target client. The technical solution provided by the embodiment of the present application can determine the corresponding test environment identifier based on the client address in the gateway, thereby sending the target test environment identifier to the corresponding target server, thereby improving the test efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of data processing technology, and in particular, to a request processing method and system. Background Art

[0002] In the process of program development, Internet companies will test the functions contained in the program before the program goes online. Users (users in this article refer to testers who perform tests) will deploy test environments in at least one server. The test environment refers to the hardware configuration used to test program functions, such as processors, and software configurations, such as operating systems and database interface information in order to obtain database data required for testing. The hardware configuration can be simulated using software tools, so the test environment can be stored in the server. Each test environment will have a corresponding test environment domain name set according to the server where it is located. The client can send an environment request to the corresponding server by receiving the test environment domain name entered by the user, thereby requesting the corresponding test environment from the server to test the corresponding function.

[0003] When the required test environment changes, the user needs to modify the corresponding test environment domain name at the corresponding location on the client, which is a cumbersome operation. In addition, since the client and the server are managed by different personnel, the server personnel need to inform the client personnel of the corresponding interface information of the changed test environment domain name, which wastes a lot of communication costs and reduces test efficiency. Summary of the invention

[0004] The embodiments of the present application provide a request processing method and system to solve the problems of cumbersome operations and low testing efficiency in the process of changing the test environment in the prior art.

[0005] In a first aspect, an embodiment of the present application provides a request processing method, which is applied to a gateway, including:

[0006] Receive a first environment acquisition request sent by a target client;

[0007] Find the correspondence between the client address and the test environment identifier, and determine the target test environment identifier corresponding to the target client address in the first environment acquisition request;

[0008] Sending a second environment acquisition request including the target test environment identifier to a target server corresponding to the target test environment identifier, so that the target server returns the target test environment corresponding to the target test environment identifier;

[0009] The target test environment is provided to the target client.

[0010] In a second aspect, an embodiment of the present application provides a request processing method, which is applied to a target client and includes:

[0011] Send a first environment acquisition request to a gateway so that the gateway can find the correspondence between the client address and the test environment identifier and determine the target test environment identifier corresponding to the target client address in the first environment acquisition request; send a second environment acquisition request containing the target test environment identifier to a target server corresponding to the target test environment identifier so that the target server returns the target test environment corresponding to the target test environment identifier; and provide the target test environment to the target client;

[0012] The target test environment is received.

[0013] In a third aspect, an embodiment of the present application provides a request processing method, which is applied to a target server and includes:

[0014] Receiving a second environment acquisition request including a target test environment identifier sent by a gateway;

[0015] The target test environment corresponding to the target test environment identifier is returned to the gateway so that the gateway provides the target test environment to the target client.

[0016] In a fourth aspect, an embodiment of the present application provides a request processing system, including: at least one client, a gateway, and at least one server;

[0017] The gateway is used to: receive a first environment acquisition request sent by a target client; search for a correspondence between a client address and a test environment identifier, and determine a target test environment identifier corresponding to the target client address in the first environment acquisition request; send a second environment acquisition request containing the target test environment identifier to a target server corresponding to the target test environment identifier, so that the target server returns the target test environment corresponding to the target test environment identifier; and provide the target test environment to the target client.

[0018] The target client is used to: send a first environment acquisition request to a gateway so that the gateway searches for the correspondence between the client address and the test environment identifier, determines the target test environment identifier corresponding to the target client address in the first environment acquisition request, and sends a second environment acquisition request containing the target test environment identifier to the target server corresponding to the target test environment identifier, so that the target server returns the target test environment corresponding to the target test environment identifier and provides the target test environment to the target client; and provides the target test environment to the target client.

[0019] The target server is used to: receive a second environment acquisition request including a target test environment identifier sent by a gateway; and return a target test environment corresponding to the target test environment identifier to the gateway so that the gateway provides the target test environment to the target client.

[0020] In an embodiment of the present application, the gateway receives a first environment acquisition request sent by a target client; searches for a correspondence between a client address and a test environment identifier, and determines a target test environment identifier corresponding to the target client address in the first environment acquisition request; sends a second environment acquisition request containing a target test environment identifier to a target server corresponding to the target test environment identifier, so that the target server returns a target test environment corresponding to the target test environment identifier; and provides the target test environment to the target client. An embodiment of the present application determines the correspondence between a client address and a test environment identifier in a gateway, thereby sending a second environment acquisition request to a target server corresponding to the target test environment identifier. Therefore, in the process of changing the target test environment, there is no need to manually modify the test environment domain name on the client side. It is only necessary to update the correspondence between the client address and the test environment in the gateway, and then the second environment acquisition request can be sent to the target test environment. The operation is simple and the test efficiency is effectively improved.

[0021] These and other aspects of the present application will become more clearly understood in the description of the following embodiments. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, a brief introduction will be given below to the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0023] Figure 1 A flowchart of an embodiment of a request processing method provided by the present application is shown;

[0024] Figure 2 A flowchart showing another embodiment of the request processing method provided by the present application is shown;

[0025] Figure 3 A flowchart showing another embodiment of the request processing method provided by the present application is shown;

[0026] Figure 4 A schematic diagram showing the structure of an embodiment of a request processing device provided by the present application is shown;

[0027] Figure 5 A schematic diagram showing the structure of another embodiment of the request processing device provided by the present application is shown;

[0028] Figure 6 A schematic diagram showing the structure of another embodiment of the request processing device provided by the present application is shown;

[0029] Figure 7 For Figure 4 A schematic diagram of the structure of a computing device corresponding to the request processing device provided in the illustrated embodiment;

[0030] Figure 8 For Figure 5 A schematic diagram of the structure of a computing device corresponding to the request processing device provided in the illustrated embodiment;

[0031] Fig. 9 For Figure 6 A schematic diagram of the structure of a computing device corresponding to the request processing apparatus provided in the illustrated embodiment. DETAILED DESCRIPTION

[0032] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application.

[0033] In some of the processes described in the specification and claims of this application and the above-mentioned figures, multiple operations that appear in a specific order are included, but it should be clearly understood that these operations may not be executed in the order in which they appear in this article or executed in parallel. The serial numbers of the operations, such as 101, 102, etc., are only used to distinguish between different operations, and the serial numbers themselves do not represent any execution order. In addition, these processes may include more or fewer operations, and these operations may be executed in sequence or in parallel. It should be noted that the descriptions of "first", "second", etc. in this article are used to distinguish different messages, devices, modules, etc., do not represent the order of precedence, and do not limit the "first" and "second" to be different types.

[0034] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of this application.

[0035] In view of the problem that it is cumbersome to change the test environment in the prior art, the inventor invented the prior art. In the process of accessing the corresponding test environment based on the test environment domain name, it is necessary to manually write code on the client side. The code includes the test environment domain name and the interface information corresponding to the server where the test environment domain name is located. Further, the client sends an environment acquisition request to the gateway corresponding to the client, and the gateway sends the environment acquisition request to the server corresponding to the test environment based on the test environment domain name. However, when the test environment needs to be changed, the previously written code needs to be changed in order to request the changed test environment. The changed content includes the test environment domain name and the interface information corresponding to the server where the test environment domain name is located. The operation is cumbersome, and the interface information needs to be informed to the client side by the server person in charge, resulting in high communication costs and low testing efficiency.

[0036] In this regard, the inventor proposes a request processing method and system, in which a gateway receives a first environment acquisition request sent by a target client; searches for a correspondence between a client address and a test environment identifier, and determines a target test environment identifier corresponding to the target client address in the first environment acquisition request; sends a second environment acquisition request to a target server corresponding to the target test environment identifier, so that the target server returns the target test environment corresponding to the second environment acquisition request; and provides the target test environment to the target client. This application determines the correspondence between the client address and the test environment identifier in the gateway, so that the environment acquisition request can be sent to the corresponding target server based on the client address. Since the corresponding test environment identifier is determined based on the client address, even if the test environment needs to be changed, it is only necessary to maintain a dynamic correspondence between the test environment identifier and the client address in the gateway, and the environment request can be sent to the corresponding server. There is no need to change the client code, the operation is simple, and the test efficiency is improved.

[0037] Figure 1 The flowchart of an embodiment of the request processing method provided by the present application is shown, wherein the technical solution of the present embodiment is executed by the gateway, wherein in the embodiment of the present application, the gateway may be an intermediate device for interconnecting the client and the container. Figure 1 As shown, the method includes:

[0038] 101. Receive a first environment acquisition request sent by a target client.

[0039] In an optional embodiment, the target client receives the user's input operation on the target client, and the input content corresponding to the input operation may include a gateway domain name and interface information corresponding to the gateway. The corresponding code is generated based on the gateway domain name and the interface information corresponding to the gateway, so that in the process of the target client requesting the target test environment, a first environment acquisition request can be first sent to the gateway corresponding to the gateway domain name.

[0040] Optionally, the first environment acquisition request includes: a target client address.

[0041] 102. Look up a correspondence between a client address and a test environment identifier, and determine a target test environment identifier corresponding to the target client address in the first environment acquisition request.

[0042] The target client address may be an Internet Protocol (IP) address of the target client.

[0043] Optionally, the correspondence between the client address and the test environment identifier is determined in the following manner: providing multiple test environment identifiers; determining a selected test environment identifier based on a selection request for the multiple test environment identifiers sent by any client; and establishing a correspondence between the selected test environment identifier and the client address of any client.

[0044] The multiple test environment identifiers are sent from at least one server to the gateway. The environment test identifiers may be numbers, letters, or any identifier that can be used to uniquely distinguish the test environment.

[0045] The multiple test environment identifiers can be displayed on a display page corresponding to the gateway for the user to select. Correspondingly, the selection request can be generated by the client based on the user's selection operation for any test environment identifier and sent to the gateway, and the gateway can establish a corresponding relationship based on the address of the client in the selection request and the test environment identifier.

[0046] Optionally, a database may be provided in the gateway, and the database is used to store the correspondence between the test environment identifier and the client address.

[0047] In an optional embodiment, providing multiple test environment identifiers includes: displaying multiple information carriers carrying different test environment identifiers; determining the selected test environment identifier based on a selection request for multiple test environment identifiers sent by any client includes: receiving a selection request sent by any client based on a test environment identifier obtained from any information carrier, and determining the selected test environment identifier.

[0048] The information carrier may be a barcode, a two-dimensional code, a three-dimensional code or other graphic code, and the client may obtain the corresponding test environment identification from the information carrier by scanning the information carrier.

[0049] The above-mentioned method for displaying information carriers can be implemented by receiving a touch operation of a preset button by a user, and displaying multiple information carriers carrying different test environment identifiers.

[0050] Correspondingly, the above selection operation may be a scanning operation of the client on any information carrier.

[0051] In another optional embodiment, the above-mentioned process of establishing a correspondence between the selected test environment identifier and the client address of any of the clients can be implemented as follows: in response to a user triggering operation on a display page, multiple test environment identifiers are displayed on the display page, wherein the multiple test environment identifiers correspond to multiple test environments in a gateway database; based on a user selection operation on any one of the multiple test environment identifiers, for example, a touch operation, a QR code corresponding to the test environment identifier is displayed on the display page, wherein the QR code stores information corresponding to the test environment identifier; upon receiving a code scanning operation from the client and a client address sent by the client, a correspondence between the client address and the test environment identifier is further established.

[0052] It should be noted that the test environment required by the target client for the current test may be different from the test environment required for the next test. Therefore, the correspondence between the client address and the test environment identifier in the database is updated in real time. When the gateway receives a selection request sent by any client based on the test environment identifier obtained from any information carrier, the correspondence between the client address and the test environment identifier in the database is updated based on the correspondence between the client address and the test environment identifier corresponding to the selection operation.

[0053] Optionally, in the correspondence between the client address and the test environment identifier, one test environment identifier may correspond to at least one client address.

[0054] 103. Send a second environment acquisition request including the target test environment identifier to a target server corresponding to the target test environment identifier, so that the target server returns the target test environment corresponding to the target test environment identifier.

[0055] Since the first environment acquisition request is sent by the client to the gateway, the first environment acquisition request does not include the target test environment identifier that needs to be requested, that is, the environment acquisition request is only sent to the target server via the gateway, and the target server does not return the corresponding target test environment based on the environment acquisition request.

[0056] Therefore, in an optional embodiment, sending a second environment acquisition request to a target server corresponding to the target test environment identifier so that the target server returns the target test environment corresponding to the second environment acquisition request includes: adding the target test environment identifier to the message header of the first environment acquisition request to obtain the second environment acquisition request; sending the second environment acquisition request to the target server corresponding to the target test environment identifier so that the target server returns the target test environment corresponding to the target test environment identifier.

[0057] Optionally, since the first environment acquisition request is generally a Hypertext Transfer Protocol (HTTP) request message, a target test environment identifier can be added to the message header of the environment acquisition request to obtain a second environment acquisition request. After the second environment acquisition request is sent to the target server, the target server can return the corresponding target test environment based on the target test environment identifier in the second environment acquisition request.

[0058] In an optional embodiment, the gateway database may store a corresponding relationship between the test environment identifier and the server, which may be a corresponding relationship between the test environment identifier and the server identifier, a corresponding relationship between the test environment identifier and the server domain name, or a corresponding relationship between the test environment identifier and the server IP address. Further, the gateway searches for the corresponding relationship between the test environment identifier and the server, determines the target server corresponding to the target test environment identifier, and then sends the second environment acquisition request to the target server.

[0059] Furthermore, the correspondence between the test environment identifier and the test environment domain name may also be stored in the database of the gateway. Optionally, the above-mentioned establishment of the correspondence between the test environment domain name and the test environment identifier may be implemented as follows: receiving at least one test environment identifier sent by at least one server; generating a test environment domain name corresponding to at least one test environment identifier; and storing the test environment identifier and the test environment domain name accordingly.

[0060] The test environment domain name may be obtained by combining the test environment identifier with the domain name of the server where the test environment is located.

[0061] In an optional embodiment, after the user has built a test environment in any server, the server sends the test environment identifier corresponding to the test environment to the gateway, and the gateway generates a test environment domain name based on the test environment identifier and the domain name of the server where the test environment is located. For example, the test environment identifier of the newly built test environment is xinzeng, the server domain name is www.fuwuqi1.com, and the generated test environment domain name is www.fuwuqi1.com / xinzeng. Further, the test environment domain name is stored in the database of the gateway.

[0062] The process of generating the domain name of any test environment is the same as the above process and will not be repeated here.

[0063] Optionally, sending the second environment acquisition request including the target test environment identifier to the target server corresponding to the target test environment identifier also includes: searching for the correspondence between the test environment identifier and the test environment domain name, determining the target test environment domain name corresponding to the target test environment identifier; and determining the target server address corresponding to the target test environment domain name. Further, sending the second environment acquisition request to the target server corresponding to the target test environment identifier includes: sending the second environment acquisition request to the target server corresponding to the target server address, so that the target server returns the target test environment corresponding to the target test environment identifier.

[0064] Since the test environment domain name includes the test environment identifier or related parameters of the test environment identifier, after determining the target test environment identifier corresponding to the target client address, the gateway can determine the target test environment domain name corresponding to the target test environment identifier in the database based on the target test environment identifier.

[0065] Furthermore, since the target test environment domain name includes the domain name of the target server where the target test environment is located, the target test environment domain name can be sent to the corresponding domain name resolution server to obtain the corresponding IP address, so that the second environment acquisition request can be sent to the target server based on the IP address.

[0066] 104. Provide the target test environment to the target client.

[0067] Optionally, after providing the target test environment to the target client, it also includes: receiving an operating environment corresponding to at least one associated function associated with the target test function sent by the target server, the target test function being determined based on a second environment acquisition request; sending the operating environment corresponding to at least one associated function to the target client, so that the target client tests the target test function in the target test environment in combination with the operating environment corresponding to at least one associated function and at least one associated function.

[0068] Generally, a test task only tests a certain target test function of a program, and the test of the target test function requires at least one associated function in the program to be run at the same time to determine whether the target test function meets the requirements. Therefore, the client needs at least one associated function and the corresponding running environment of at least one associated function to test the target test function.

[0069] The second environment acquisition request includes: a target test function and at least one associated function. The target test function and at least one associated function can be implemented by code, and the target test function and at least one associated function can form a program, which can be stored on the target client.

[0070] Correspondingly, the process of the target client sending the second environment acquisition request to the gateway can be implemented as follows: the target client receives the user's trigger operation, and multiple controls can be displayed on the target client, where the multiple controls are used to represent multiple functions corresponding to each other. The user's selection operation on any one of the multiple controls is detected, and the function corresponding to the control is determined as the target test function, and the first environment acquisition request including the target test function is sent to the gateway.

[0071] At least one server also stores multiple operating environments corresponding to multiple functions, and the gateway database also stores a corresponding relationship between at least one associated function and at least one operating environment identifier. Therefore, after receiving the first environment acquisition request, the gateway also includes: determining the operating environment identifier corresponding to at least one associated function, combining at least one associated function and the respective corresponding operating environment identifiers, generating at least one corresponding operating environment acquisition request, and sending the at least one operating environment acquisition request to the respective corresponding servers to obtain at least one operating environment.

[0072] Finally, the gateway sends the operating environment corresponding to at least one associated function to the target client. The target client runs the corresponding associated functions in at least one operating environment and the target test function in the target test environment according to the running order of the target test function and at least one associated function in the program to complete the test of the target test function.

[0073] In an optional embodiment, a program corresponds to the process of purchasing goods, including four functions: payment, collection, shipment, and receipt. When testing the collection function, the above functions are run in their respective operating environments or target test environments in the order of payment, collection, shipment, and receipt to complete the test of the payment function.

[0074] In an embodiment of the present application, the gateway receives a first environment acquisition request sent by a target client; searches for the correspondence between the client address and the test environment identifier, and determines the target test environment identifier corresponding to the target client address in the first environment acquisition request; sends a second environment acquisition request to the target server corresponding to the target test environment identifier, so that the target server returns the target test environment corresponding to the second environment acquisition request; and provides the target test environment to the target client. The embodiment of the present application determines the correspondence between the client address and the test environment identifier in the gateway, thereby sending the second environment acquisition request to the target server corresponding to the target test environment identifier. Therefore, in the process of changing the target test environment, there is no need to manually modify the test environment domain name on the client side. It is only necessary to update the correspondence between the client address and the test environment in the gateway, and the second environment acquisition request can be sent to the target test environment. The operation is simple and the test efficiency is effectively improved.

[0075] Figure 2 FIG. 1 is a flowchart of another embodiment of the request processing method provided by the present application, wherein the technical solution of this embodiment is executed by the target client. Figure 2 As shown, the method includes:

[0076] 201. Send a first environment acquisition request to the gateway so that the gateway can find the correspondence between the client address and the test environment identifier and determine the target test environment identifier corresponding to the target client address in the first environment acquisition request; send a second environment acquisition request including the target test environment identifier to the target server corresponding to the target test environment identifier so that the target server returns the target test environment corresponding to the target test environment identifier; and provide the target test environment to the target client.

[0077] 202. Receive a target test environment.

[0078] The detailed execution process of the request processing method provided in this embodiment can refer to the description in other embodiments above and will not be repeated here.

[0079] Figure 3 FIG. 1 is a flowchart of another embodiment of the request processing method provided by the present application, wherein the technical solution of this embodiment is executed by the target server. Figure 3 As shown, the method includes:

[0080] 301. Receive a second environment acquisition request including a target test environment identifier sent by a gateway.

[0081] 302. Return the target test environment corresponding to the target test environment identifier to the gateway so that the gateway provides the target test environment to the target client.

[0082] The detailed execution process of the request processing method provided in this embodiment can refer to the description in other embodiments above and will not be repeated here.

[0083] Optionally, the present application also provides a request processing system, including: at least one client, a gateway and at least one server.

[0084] The gateway is used to: receive a first environment acquisition request sent by a target client; search for the correspondence between a client address and a test environment identifier, and determine a target test environment identifier corresponding to the target client address in the first environment acquisition request; send a second environment acquisition request containing the target test environment identifier to a target server corresponding to the target test environment identifier, so that the target server returns the target test environment corresponding to the target test environment identifier; and provide the target test environment to the target client.

[0085] The target client is used to: send a first environment acquisition request to the gateway so that the gateway searches for the correspondence between the client address and the test environment identifier, determines the target test environment identifier corresponding to the target client address in the first environment acquisition request, and sends a second environment acquisition request containing the target test environment identifier to the target server corresponding to the target test environment identifier, so that the target server returns the target test environment corresponding to the target test environment identifier and provides the target test environment to the target client; provides the target test environment to the target client.

[0086] The target server is used to: receive a second environment acquisition request including a target test environment identifier sent by the gateway; and return a target test environment corresponding to the target test environment identifier to the gateway so that the gateway provides the target test environment to the target client.

[0087] The detailed execution process of the request processing system provided in this embodiment can be referred to the description in other embodiments above and will not be repeated here.

[0088] Figure 4 A schematic diagram of the structure of an embodiment of a request processing device provided by the present application is shown, and the device is applied to a gateway, such as Figure 4 Said device comprises: a receiving module 41, a searching module 42, a sending module 43 and a providing module 44;

[0089] The receiving module 41 is configured to receive a first environment acquisition request sent by a target client.

[0090] The search module 42 is used to search for a correspondence between a client address and a test environment identifier, and determine a target test environment identifier corresponding to the target client address in the first environment acquisition request.

[0091] The sending module 43 is used to send a second environment acquisition request including the target test environment identifier to a target server corresponding to the target test environment identifier, so that the target server returns the target test environment corresponding to the target test environment identifier.

[0092] The providing module 44 is used to provide the target test environment to the target client.

[0093] Optionally, the sending module 43 is specifically used to add the target test environment identifier to the message header of the first environment acquisition request to obtain a second environment acquisition request; and send the second environment acquisition request to the target server corresponding to the target test environment identifier, so that the target server returns the target test environment corresponding to the target test environment identifier.

[0094] Optionally, the sending module 43 is also specifically used to find the correspondence between the test environment identifier and the test environment domain name, determine the target test environment domain name corresponding to the target test environment identifier; determine the target server address corresponding to the target test environment domain name; and send the second environment acquisition request to the target server corresponding to the target test environment identifier, including: sending the second environment acquisition request to the target server corresponding to the target server address.

[0095] Optionally, the search module 42 is specifically used to provide multiple test environment identifiers; determine the selected test environment identifier based on a selection request for the multiple test environment identifiers sent by any client; and establish a corresponding relationship between the selected test environment identifier and the client address of any client.

[0096] Optionally, the search module 42 is also specifically used to display multiple information carriers carrying different test environment identifiers; the determination of the selected test environment identifier based on a selection request for the multiple test environment identifiers sent by any client includes: receiving a selection request sent by any client based on a test environment identifier obtained from any information carrier, and determining the selected test environment identifier.

[0097] Optionally, the sending module 43 is further specifically configured to receive at least one test environment identifier sent by at least one server; generate a test environment domain name corresponding to the at least one test environment identifier; and store the test environment identifier and the test environment domain name accordingly.

[0098] Optionally, the receiving module 41 is specifically configured to receive a running environment corresponding to at least one associated function associated with a target test function sent by at least one server, wherein the target test function is determined based on the second environment acquisition request.

[0099] Optionally, the sending module 43 is also specifically used to send the operating environment corresponding to the at least one associated function to the target client, so that the target client tests the target test function in the target test environment in combination with the operating environment corresponding to the at least one associated function and the at least one associated function.

[0100] Figure 4 The request processing device can execute Figure 1 The implementation principle and technical effect of the request processing method described in the illustrated embodiment will not be described in detail. The specific manner in which each module and unit performs operations in the request processing device in the above embodiment has been described in detail in the embodiment of the method, and will not be described in detail here.

[0101] Figure 5A schematic diagram showing the structure of another embodiment of the request processing device provided by the present application is shown, and the device is applied to a target client, such as Figure 5 Said device comprises: a sending module 51 and a receiving module 52;

[0102] The sending module 51 is used to send a first environment acquisition request to the gateway so that the gateway can find the correspondence between the client address and the test environment identifier, and determine the target test environment identifier corresponding to the target client address in the first environment acquisition request; send a second environment acquisition request containing the target test environment identifier to the target server corresponding to the target test environment identifier, so that the target server returns the target test environment corresponding to the target test environment identifier; and provide the target test environment to the target client.

[0103] The receiving module 52 is used to receive the target test environment.

[0104] Figure 5 The request processing device can execute Figure 2 The implementation principle and technical effect of the request processing method described in the illustrated embodiment will not be described in detail. The specific manner in which each module and unit performs operations in the request processing device in the above embodiment has been described in detail in the embodiment of the method, and will not be described in detail here.

[0105] Figure 6 A schematic diagram of the structure of another embodiment of the request processing device provided by the present application is shown, and the device is applied to a target server, such as Figure 6 Said device comprises: a receiving module 61 and a returning module 62;

[0106] The receiving module 61 is used to receive a second environment acquisition request including a target test environment identifier sent by a gateway.

[0107] The returning module 62 is configured to return the target test environment corresponding to the target test environment identifier to the gateway so that the gateway provides the target test environment to the target client.

[0108] Figure 6 The request processing device can execute Figure 3 The implementation principle and technical effect of the request processing method described in the illustrated embodiment will not be described in detail. The specific manner in which each module and unit performs operations in the request processing device in the above embodiment has been described in detail in the embodiment of the method, and will not be described in detail here.

[0109] In one possible design, Figure 4 The request processing device of the illustrated embodiment may be implemented as a computing device, such as Figure 7As shown, the computing device may include a storage component 701, a processing component 702, and a display component 703;

[0110] The storage component 701 stores one or more computer instructions, wherein the one or more computer instructions are called and executed by the processing component 702 .

[0111] The processing component is used to:

[0112] Receive a first environment acquisition request sent by a target client;

[0113] Find the correspondence between the client address and the test environment identifier, and determine the target test environment identifier corresponding to the target client address in the first environment acquisition request;

[0114] Sending a second environment acquisition request including the target test environment identifier to a target server corresponding to the target test environment identifier, so that the target server returns the target test environment corresponding to the target test environment identifier;

[0115] The target test environment is provided to the target client.

[0116] The processing component 702 may include one or more processors to execute computer instructions to complete all or part of the steps in the above method. Of course, the processing component may also be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors or other electronic components to perform the above method.

[0117] The storage component 701 is configured to store various types of data to support operations at the terminal. The storage component can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.

[0118] The display component 703 can be an electroluminescent (EL) element, a liquid crystal display or a micro display having a similar structure, or a retinal direct display or a similar laser scanning display.

[0119] Of course, a computing device may also include other components, such as input / output interfaces, communication components, etc.

[0120] The input / output interface provides an interface between the processing component and the peripheral interface module, which may be an output device, an input device, etc.

[0121] The communication component is configured to facilitate, among other things, wired or wireless communications between the computing device and other devices.

[0122] Among them, the computing device can be a physical device or an elastic computing host provided by a cloud computing platform, etc. In this case, the computing device can refer to a cloud server, and the above-mentioned processing components, storage components, etc. can be basic server resources rented or purchased from the cloud computing platform.

[0123] In another possible design, Figure 5 The request processing device of the illustrated embodiment may be implemented as a computing device, such as Figure 8 As shown, the computing device may include a storage component 801, a processing component 802, and a display component 803;

[0124] The storage component 801 stores one or more computer instructions, wherein the one or more computer instructions are called and executed by the processing component 802 .

[0125] The processing component is used to:

[0126] Send a first environment acquisition request to a gateway so that the gateway can find the correspondence between the client address and the test environment identifier and determine the target test environment identifier corresponding to the target client address in the first environment acquisition request; send a second environment acquisition request containing the target test environment identifier to a target server corresponding to the target test environment identifier so that the target server returns the target test environment corresponding to the target test environment identifier; and provide the target test environment to the target client;

[0127] The target test environment is received.

[0128] The processing component 802 may include one or more processors to execute computer instructions to complete all or part of the steps in the above method. Of course, the processing component may also be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors or other electronic components to perform the above method.

[0129] The storage component 801 is configured to store various types of data to support operations at the terminal. The storage component can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.

[0130] The display component 803 can be an electroluminescent (EL) element, a liquid crystal display or a micro display with a similar structure, or a retinal direct display or a similar laser scanning display.

[0131] Of course, a computing device may also include other components, such as input / output interfaces, communication components, etc.

[0132] The input / output interface provides an interface between the processing component and the peripheral interface module, which may be an output device, an input device, etc.

[0133] The communication component is configured to facilitate, among other things, wired or wireless communications between the computing device and other devices.

[0134] Among them, the computing device can be a physical device or an elastic computing host provided by a cloud computing platform, etc. In this case, the computing device can refer to a cloud server, and the above-mentioned processing components, storage components, etc. can be basic server resources rented or purchased from the cloud computing platform.

[0135] In another possible design, Figure 6 The request processing device of the illustrated embodiment may be implemented as a computing device, such as Fig. 9 As shown, the computing device may include a storage component 901, a processing component 902, and a display component 903;

[0136] The storage component 901 stores one or more computer instructions, wherein the one or more computer instructions are called and executed by the processing component 902 .

[0137] The processing component is used to:

[0138] Receiving a second environment acquisition request including a target test environment identifier sent by a gateway;

[0139] The target test environment corresponding to the target test environment identifier is returned to the gateway so that the gateway provides the target test environment to the target client.

[0140] The processing component 902 may include one or more processors to execute computer instructions to complete all or part of the steps in the above method. Of course, the processing component may also be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors or other electronic components to perform the above method.

[0141] The storage component 901 is configured to store various types of data to support operations at the terminal. The storage component can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.

[0142] The display component 903 can be an electroluminescent (EL) element, a liquid crystal display or a micro display having a similar structure, or a retinal direct display or a similar laser scanning display.

[0143] Of course, a computing device may also include other components, such as input / output interfaces, communication components, etc.

[0144] The input / output interface provides an interface between the processing component and the peripheral interface module, which may be an output device, an input device, etc.

[0145] The communication component is configured to facilitate, among other things, wired or wireless communications between the computing device and other devices.

[0146] Among them, the computing device can be a physical device or an elastic computing host provided by a cloud computing platform, etc. In this case, the computing device can refer to a cloud server, and the above-mentioned processing components, storage components, etc. can be basic server resources rented or purchased from the cloud computing platform.

[0147] The present application also provides a computer-readable storage medium storing a computer program, wherein the computer program can achieve the above-mentioned Figure 1 The request processing method of the illustrated embodiment.

[0148] The present application also provides a computer-readable storage medium storing a computer program, wherein the computer program can achieve the above-mentioned Figure 2 The request processing method of the illustrated embodiment.

[0149] The present application also provides a computer-readable storage medium storing a computer program, wherein the computer program can achieve the above-mentioned Figure 3 The request processing method of the illustrated embodiment.

[0150] The processing components involved in the above corresponding embodiments may include one or more processors to execute computer instructions to complete all or part of the steps in the above method. Of course, the processing components can also be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors or other electronic components to perform the above method.

[0151] The storage component is configured to store various types of data to support operations at the terminal. The storage component can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.

[0152] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0153] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.

[0154] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0155] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims

1. A request processing method, characterized in that: Applied to a gateway, the method comprises: Receive a first environment acquisition request sent by a target client; Find the correspondence between the client address and the test environment identifier, and determine the target test environment identifier corresponding to the target client address in the first environment acquisition request; Sending a second environment acquisition request including the target test environment identifier to a target server corresponding to the target test environment identifier, so that the target server returns the target test environment corresponding to the target test environment identifier; Providing the target test environment to the target client; The correspondence between the client address and the test environment identifier is determined as follows: Providing a plurality of test environment identifiers, wherein the plurality of test environment identifiers are sent to the gateway by at least one server, and the plurality of test environment identifiers are displayed on a display page corresponding to the gateway for selection by a user; Determine a selected test environment identifier based on a selection request for the multiple test environment identifiers sent by any client, wherein the selection request is generated by any client based on a selection operation of a user for any test environment identifier and sent to the gateway; A correspondence between the selected test environment identifier and the client address of any one of the clients is established.

2. The method according to claim 1, characterized in that Sending a second environment acquisition request to a target server corresponding to the target test environment identifier so that the target server returns the target test environment corresponding to the second environment acquisition request includes: Add the target test environment identifier to the message header of the first environment acquisition request to obtain a second environment acquisition request; The second environment acquisition request is sent to the target server corresponding to the target test environment identifier, so that the target server returns the target test environment corresponding to the target test environment identifier.

3. The method according to claim 2, characterized in that Before sending the second environment acquisition request including the target test environment identifier to the target server corresponding to the target test environment identifier, the method further includes: Find the corresponding relationship between the test environment identifier and the test environment domain name, and determine the target test environment domain name corresponding to the target test environment identifier; Determine the target server address corresponding to the target test environment domain name; The sending a second environment acquisition request to a target server corresponding to the target test environment identifier includes: Send the second environment acquisition request to the target server corresponding to the target server address.

4. The method according to claim 1, characterized in that Providing multiple test environment identifiers includes: Displaying a plurality of information carriers carrying different test environment identifiers; The determining the selected test environment identifier based on the selection request for the multiple test environment identifiers sent by any client comprises: A selection request sent by any client based on a test environment identifier obtained from any information carrier is received, and a selected test environment identifier is determined.

5. The method according to claim 3, characterized in that: The method further comprises: receiving at least one test environment identifier sent by at least one server; Generating a test environment domain name corresponding to the at least one test environment identifier respectively; The test environment identifier and the test environment domain name are stored accordingly.

6. The method according to claim 1, characterized in that Also includes: receiving a running environment corresponding to at least one associated function associated with a target test function sent by at least one server, wherein the target test function is determined based on the second environment acquisition request; The operating environment corresponding to the at least one associated function is sent to the target client, so that the target client tests the target test function in the target test environment in combination with the operating environment corresponding to the at least one associated function and the at least one associated function.

7. A request processing method, characterized in that: Applied to a target client, the method comprises: Send a first environment acquisition request to a gateway so that the gateway can find the correspondence between the client address and the test environment identifier and determine the target test environment identifier corresponding to the target client address in the first environment acquisition request; send a second environment acquisition request containing the target test environment identifier to a target server corresponding to the target test environment identifier so that the target server returns the target test environment corresponding to the target test environment identifier; and provide the target test environment to the target client; Receiving the target test environment; The correspondence between the client address and the test environment identifier is determined as follows: Providing a plurality of test environment identifiers, wherein the plurality of test environment identifiers are sent to the gateway by at least one server, and the plurality of test environment identifiers are displayed on a display page corresponding to the gateway for selection by a user; Determine a selected test environment identifier based on a selection request for the multiple test environment identifiers sent by any client, wherein the selection request is generated by any client based on a selection operation of a user for any test environment identifier and sent to the gateway; A correspondence between the selected test environment identifier and the client address of any one of the clients is established.

8. A request processing method, characterized in that: Applied to a target server, the method comprises: Receiving a second environment acquisition request sent by the gateway and including a target test environment identifier required by the target client, wherein the target test environment identifier is determined by searching for a correspondence between a client address and a test environment identifier based on a first environment acquisition request sent by the target client and received by the gateway, and based on the target client address in the first environment acquisition request; Returning the target test environment corresponding to the target test environment identifier to the gateway so that the gateway provides the target test environment to the target client; The correspondence between the client address and the test environment identifier is determined as follows: Providing a plurality of test environment identifiers, wherein the plurality of test environment identifiers are sent to the gateway by at least one server, and the plurality of test environment identifiers are displayed on a display page corresponding to the gateway for selection by a user; Determine a selected test environment identifier based on a selection request for the multiple test environment identifiers sent by any client, wherein the selection request is generated by any client based on a selection operation of a user for any test environment identifier and sent to the gateway; A correspondence between the selected test environment identifier and the client address of any one of the clients is established.

9. A request processing system, characterized in that: include: at least one client, a gateway, and at least one server; The gateway is used to: receive a first environment acquisition request sent by a target client; Find the correspondence between the client address and the test environment identifier, and determine the target test environment identifier corresponding to the target client address in the first environment acquisition request; Sending a second environment acquisition request including the target test environment identifier to a target server corresponding to the target test environment identifier, so that the target server returns the target test environment corresponding to the target test environment identifier; providing the target test environment to the target client; The target client is used to: send a first environment acquisition request to a gateway so that the gateway searches for a correspondence between a client address and a test environment identifier, determines a target test environment identifier corresponding to the target client address in the first environment acquisition request, and sends a second environment acquisition request containing the target test environment identifier to a target server corresponding to the target test environment identifier, so that the target server returns the target test environment corresponding to the target test environment identifier and provides the target test environment to the target client; provides the target test environment to the target client; The target server is used to: receive a second environment acquisition request including a target test environment identifier sent by the gateway; Returning the target test environment corresponding to the target test environment identifier to the gateway so that the gateway provides the target test environment to the target client; The correspondence between the client address and the test environment identifier is determined as follows: Providing a plurality of test environment identifiers, wherein the plurality of test environment identifiers are sent to the gateway by at least one server, and the plurality of test environment identifiers are displayed on a display page corresponding to the gateway for selection by a user; Determine a selected test environment identifier based on a selection request for the multiple test environment identifiers sent by any client, wherein the selection request is generated by any client based on a selection operation of a user for any test environment identifier and sent to the gateway; A correspondence between the selected test environment identifier and the client address of any one of the clients is established.

Citation Information

Patent Citations

  • Multi-WEB environment data access method and device

    CN103944942A

  • Test environment accessing method and proxy server

    CN105430108A

  • Automated testing method and device

    CN108108297A

  • Method and device for setting up test environment, electronic equipment and medium

    CN110532170A

  • DNS analysis method and system based on test environment standing book

    CN111447299A