CN114285779B - Processing method, device and system of test request - Google Patents

Processing method, device and system of test request Download PDF

Info

Publication number
CN114285779B
CN114285779B CN202111574218.4A CN202111574218A CN114285779B CN 114285779 B CN114285779 B CN 114285779B CN 202111574218 A CN202111574218 A CN 202111574218A CN 114285779 B CN114285779 B CN 114285779B
Authority
CN
China
Prior art keywords
test
test request
address information
forwarding
rule
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.)
Active
Application number
CN202111574218.4A
Other languages
Chinese (zh)
Other versions
CN114285779A (en
Inventor
周强
韩秀斌
申大伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Du Xiaoman Technology Beijing Co Ltd
Original Assignee
Du Xiaoman Technology Beijing 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 Du Xiaoman Technology Beijing Co Ltd filed Critical Du Xiaoman Technology Beijing Co Ltd
Priority to CN202111574218.4A priority Critical patent/CN114285779B/en
Publication of CN114285779A publication Critical patent/CN114285779A/en
Application granted granted Critical
Publication of CN114285779B publication Critical patent/CN114285779B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The invention discloses a method, a device and a system for processing a test request. Wherein the method comprises the following steps: receiving a plurality of test requests sent by an upstream module, wherein different test requests are used for accessing different test scenes; determining first address information corresponding to each test request, wherein the first address information is used for representing address information of a test scene accessed by each test request; based on the first address information corresponding to each test request, forwarding each test request to a downstream module corresponding to the first address information; and receiving a test result returned by the downstream module corresponding to the first address information, and forwarding the test result to the upstream module. The invention solves the technical problem that the stability of the test environment is reduced because frequent configuration modification and restarting of service are required in the test joint debugging process in the related technology.

Description

Processing method, device and system of test request
Technical Field
The invention relates to the field of Internet, in particular to a method, a device and a system for processing a test request.
Background
In the test joint debugging scene, the situation of multi-version parallel test is frequently encountered, the multiplexing scene of the test environment frequently appears, for example, in the automatic test, the downstream is also often required to be simulated to return a specified result by accessing a downstream Mock service when a certain scene is tested. The current scheme generally realizes configuration switching by manually modifying service configuration information and restarting service, so that when a plurality of persons use a set of environment together for testing, the service stability of the testing environment is reduced.
In view of the above problems, no effective solution has been proposed at present.
Disclosure of Invention
The embodiment of the invention provides a method, a device and a system for processing a test request, which at least solve the technical problem that the stability of a test environment is reduced because frequent configuration modification and restarting of service are required in the test joint debugging process in the related art.
According to an aspect of an embodiment of the present invention, there is provided a method for processing a test request, including: receiving a plurality of test requests sent by an upstream module, wherein different test requests are used for accessing different test scenes; determining first address information corresponding to each test request, wherein the first address information is used for representing address information of a test scene accessed by each test request; based on the first address information corresponding to each test request, forwarding each test request to a downstream module corresponding to the first address information; and receiving a test result returned by the downstream module corresponding to the first address information, and forwarding the test result to the upstream module.
Further, determining the first address information corresponding to each test request includes: analyzing each test request to obtain first identification information of each test request; determining a first forwarding rule corresponding to each test request from a plurality of forwarding rules based on the first identification information of each test request, wherein each forwarding rule is used for representing the corresponding relation between different identification information and address information; and analyzing the first forwarding rule corresponding to each test request to obtain first address information corresponding to each test request.
Further, the method further comprises: receiving a second forwarding rule, wherein the second forwarding rule at least comprises: second identification information and second address information; the second forwarding rule is stored in the plurality of forwarding rules.
Further, the method further comprises: outputting a plurality of forwarding rules; receiving a third forwarding rule, wherein the third forwarding rule is obtained by updating a target forwarding rule in the forwarding rules; and replacing the target forwarding rule with the third forwarding rule.
According to another aspect of the embodiment of the present invention, there is also provided a processing apparatus for a test request, including: the receiving module is used for receiving a plurality of test requests sent by the upstream module, wherein different test requests are used for accessing different test scenes; the determining module is used for determining first address information corresponding to each test request, wherein the first address information is used for representing address information of a test scene accessed by each test request; the forwarding module is used for forwarding each test request to a downstream module corresponding to the first address information based on the first address information corresponding to each test request; the receiving module is used for receiving the test result returned by the downstream module corresponding to the first address information and forwarding the test result to the upstream module.
According to another aspect of the embodiment of the present invention, there is also provided a processing system for a test request, including: the proxy server is used for receiving a plurality of test requests sent by the upstream module, wherein different test requests are used for accessing different test scenes; the rule analysis server is in communication connection with the proxy server and is used for determining first address information corresponding to each test request, wherein the first address information is used for representing address information of a test scene accessed by each test request; the proxy server is further configured to forward each test request to a downstream module corresponding to the first address information based on the first address information corresponding to each test request sent by the rule analysis server, and forward a test result returned by the downstream module corresponding to the first address information to the upstream module.
Further, the system further comprises: the rule storage server is used for storing a plurality of forwarding rules, wherein each forwarding rule is used for representing the corresponding relation between different identification information and address information; the rule analysis server is further configured to analyze each test request to obtain first identification information of each test request, obtain a first forwarding rule corresponding to each test request from the rule storage server based on the first identification information of each test request, and analyze the first forwarding rule corresponding to each test request to obtain first address information corresponding to each test request.
Further, the system further comprises: the configuration platform is in communication connection with the rule storage server and is used for receiving the second forwarding rule and storing the second forwarding rule into the rule storage server, wherein the second forwarding rule at least comprises: second identification information and second address information.
According to another aspect of the embodiment of the present invention, there is also provided a computer readable storage medium, where the computer readable storage medium includes a stored program, and when the program runs, the device on which the computer readable storage medium is located is controlled to execute the method for processing a test request.
According to another aspect of the embodiment of the present invention, there is also provided a processor, configured to execute a program, where the processing method of the test request is executed when the program runs.
In the embodiment of the invention, after receiving a plurality of test requests sent by an upstream module, the first address information corresponding to each test request is determined, each test request is forwarded to a downstream module corresponding to the first address information based on the first address information corresponding to each test request, a test result returned by the downstream module corresponding to the first address information is received, and the test result is forwarded to the upstream module, so that the purpose of request forwarding control is realized. It is easy to notice that the first address information corresponding to each test request can be determined through the unified proxy forwarding service, and each test request is forwarded without frequently modifying service configuration, so that unnecessary restarting times are reduced, service stability of a test environment is improved, and further the technical problem that the stability of the test environment is reduced due to the fact that frequently modifying configuration and restarting service are required in the test joint debugging process in the related art is solved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this specification, illustrate embodiments of the application and together with the description serve to explain the application and do not constitute a limitation on the application. In the drawings:
FIG. 1a is a schematic diagram of a multi-version parallel test according to the prior art;
FIG. 1b is a schematic illustration of an automated test according to the prior art;
FIG. 2 is a flow chart of a method of processing a test request according to an embodiment of the invention;
Fig. 3 is a schematic diagram of an alternative service forwarding apparatus according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of an alternative forwarding rule according to an embodiment of the present invention;
FIG. 5 is a flow chart of an alternative method of processing a test request according to an embodiment of the invention;
FIG. 6 is a schematic diagram of a processing device for test requests according to an embodiment of the invention;
FIG. 7 is a schematic diagram of a processing system for test requests according to an embodiment of the invention.
Detailed Description
In order that those skilled in the art will better understand the present invention, a technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present invention without making any inventive effort, shall fall within the scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present invention and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the invention described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
First, technical terms or technical terms appearing in the embodiments of the present invention are explained as follows:
MOCK service: during the test, for some scenes which are not easy to construct or acquire, a simulation service is used for simulating specific results, so as to help to cover corresponding test scenes (such as time-out scenes, downstream non-response scenes and the like).
Reference environment: the test environment which keeps synchronous update with the online version has higher stability compared with other environment versions.
Agent forwarding: the client sends a request to the proxy server, and the proxy service forwards the request to the target server; the target web server returns the information to the proxy service, which forwards the information to the client.
In the daily offline testing process, scenes in which different versions of joint debugging requirements need to access different downstream service environments are usually encountered. As shown in fig. 1a, in the test requirement 1, the upstream module a needs to access the reference environment of the downstream module B, but in the test requirement 2, needs to access the joint debugging environment of the downstream module B; as shown in fig. 1b, access to the Mock service is required in the automated test when modeling a certain downstream return. In this scenario, the upstream a module needs to manually modify the configuration information accessing the downstream, and restart the service to ensure that the new configuration address can be validated, and when a plurality of people use a ring of environment together to perform a test, frequent configuration modification and frequent restart of the service itself will occur, which also results in a decrease in the stability of the test environment; the problem of configuration conflict is also encountered when the environment is used in parallel by multiple versions, so that the environment cannot be reused, multiple sets of environments need to be deployed, the occupation of machine resources is increased, and the cost is increased.
In order to solve the above problems, the present invention provides a method for processing a test request, thereby implementing the following functions:
The upstream module is configured with a unified forwarding service address, so that configuration maintenance cost is reduced, unnecessary restarting times caused by service configuration modification are reduced, and service stability of a test environment is improved;
transmitting the request information of the upstream service to a target downstream service side through a proxy forwarding mode, and synchronously returning a downstream corresponding report;
The downstream request address of the target can be flexibly specified according to the specific identification (such as environment identification information carried in a Header) information of the request message by presetting a proxy forwarding rule.
According to an embodiment of the present invention, there is provided a method of processing a test request, it being noted that the steps shown in the flowchart of the drawings may be performed in a computer system such as a set of computer executable instructions, and that although a logical order is shown in the flowchart, in some cases the steps shown or described may be performed in an order other than that shown or described herein.
FIG. 2 is a flow chart of a method of processing a test request according to an embodiment of the invention, as shown in FIG. 1, the method comprising the steps of:
step S202, a plurality of test requests sent by an upstream module are received, wherein different test requests are used for accessing different test scenes.
The plurality of test requests in the above step may be test requests generated for different test requirements in the test joint debugging scenario, where the different test requirements need to access different test scenarios of the same downstream module, or access different downstream modules. For example, for the scenario shown in fig. 1a, the plurality of test requests may include test request 1 generated for test requirement 1 and test request 2 generated for test requirement 2; for the scenario shown in fig. 1b, the plurality of test requests may include test request 1 for test requirement 1 and test request 3 generated for automated test requirement.
In an alternative embodiment, the above processing method may be implemented by a service forwarding device, as shown in fig. 3, where the service forwarding device includes the following 4 parts: proxy forwarding service, rule parsing service, rule storage service, and visualization front-end rule configuration platform. The system comprises an upstream module, a proxy forwarding service and a proxy forwarding service, wherein a unified forwarding service address can be configured for the upstream module, all test requests sent by the upstream module are uniformly received through the proxy forwarding service, and different test requests are forwarded to a downstream module according to different addresses.
Step S204, determining first address information corresponding to each test request, wherein the first address information is used for representing address information of a test scene accessed by each test request.
The first address information in the above step may be the actual service address of the downstream module, that is, the address of the test scenario.
In an alternative embodiment, the tester may pre-configure rules for different test requests, specifying forwarding rules and corresponding downstream actual service addresses. As shown in fig. 3, after receiving the test request, the proxy forwarding service may forward the test request to the rule analysis service, where the rule analysis service obtains a preset downstream actual service address according to a preset forwarding cost, and returns the downstream actual service address to the proxy forwarding service. For example, for the scenario shown in fig. 1a, the reference environment address of the module B corresponding to the test request 1 and the joint debugging environment address of the module B corresponding to the test request 2 may be obtained; for the scenario shown in fig. 1B, the reference environment address of the module B corresponding to the test request 1 and the Mock address corresponding to the test request 3 may be obtained.
Step S206, based on the first address information corresponding to each test request, each test request is forwarded to the downstream module corresponding to the first address information.
In an alternative embodiment, as shown in fig. 3, the proxy forwarding service may send the original test request to the corresponding downstream module according to the first address information. For example, for the scenario shown in FIG. 1a, test request 1 may be sent to module B based on the reference environment address of module B, and test request 2 may be sent to module B based on the joint debugging environment address of module B; for the scenario shown in fig. 1B, test request 1 may be sent to module B and test request 3 to Mock based on the Mock address.
Step S208, receiving a test result returned by the downstream module corresponding to the first address information, and forwarding the test result to the upstream module.
In an alternative embodiment, after receiving the test request, the downstream module may perform a test through a test environment corresponding to the first address information, generate a corresponding test result, and return the test result to the upstream module through the proxy forwarding service, so as to complete an interaction flow of a request.
According to the embodiment of the invention, after receiving the plurality of test requests sent by the upstream module, the first address information corresponding to each test request is determined, each test request is forwarded to the downstream module corresponding to the first address information based on the first address information corresponding to each test request, the test result returned by the downstream module corresponding to the first address information is received, and the test result is forwarded to the upstream module, so that the purpose of request forwarding control is realized. It is easy to notice that the first address information corresponding to each test request can be determined through the unified proxy forwarding service, and each test request is forwarded without frequently modifying service configuration, so that unnecessary restarting times are reduced, service stability of a test environment is improved, and further the technical problem that the stability of the test environment is reduced due to the fact that frequently modifying configuration and restarting service are required in the test joint debugging process in the related art is solved.
In the above embodiment of the present invention, determining the first address information corresponding to each test request includes: analyzing each test request to obtain first identification information of each test request; determining a first forwarding rule corresponding to each test request from a plurality of forwarding rules based on the first identification information of each test request, wherein each forwarding rule is used for representing the corresponding relation between different identification information and address information; and analyzing the first forwarding rule corresponding to each test request to obtain first address information corresponding to each test request.
The first identification information in the above step may be a specific identification in the test request, for example, the environment identification information carried in the Header field, that is, the request uri (uniform resource identifier ). The plurality of forwarding rules may be forwarding rules configured for a tester to divide the test requests by uri dimensions and for different test requests before testing. For example, as shown in fig. 4, the forwarding rules may include: and using a request uri distinguishing rule to specify the address of the test environment to realize target address management, and supporting script configuration to flexibly analyze the incoming parameters.
In an alternative embodiment, as shown in fig. 3, before the test is initiated, a tester may perform rule configuration on a test request (in uri dimension) that needs to be forwarded in proxy at this time through a visual front-end rule configuration platform, and the rule configuration manner also supports multiple types, for example, extraction and analysis on an identification field carried in the request header information, and may also support rule forwarding in user ID dimension in finer granularity, so as to cope with different requirements in an actual test scenario. The configured plurality of forwarding rules are stored in a rule storage service. After receiving the test request, the rule analysis service can analyze the test request through the rule analysis service, extract the request uri, and then query the matching forwarding rule from the rule storage service through fuzzy matching (such as/service/can match/service/query and/service/do and other uri requests), namely, determine the first forwarding rule, further execute the preconfigured execution script to analyze the first forwarding rule, read the first address information configured in the first forwarding rule, and return to the proxy forwarding service.
It should be noted that, the parsing rule supports dynamic hot loading, and can be dynamically adjusted to achieve a desired result at any time through the visual front-end rule configuration platform.
In the above embodiment of the present invention, the method further includes: receiving a second forwarding rule, wherein the second forwarding rule at least comprises: second identification information and second address information; the second forwarding rule is stored in the plurality of forwarding rules.
The second forwarding rule in the above step may be a forwarding rule newly added by the tester before the test.
In an alternative embodiment, as shown in fig. 3, the tester may add the second forwarding rule through the visual front-end rule configuration platform, and the tester needs to configure the second address information for the second identification information, so that the visual front-end rule configuration platform may store the second forwarding rule in the rule storage service.
In the above embodiment of the present invention, the method further includes: outputting a plurality of forwarding rules; receiving a third forwarding rule, wherein the third forwarding rule is obtained by updating a target forwarding rule in the forwarding rules; and replacing the target forwarding rule with the third forwarding rule.
In an alternative embodiment, as shown in fig. 3, the tester may read all forwarding rules stored in the rule storage service through the visual front-end rule configuration platform, and perform front-end exhibition, and then the tester may update the target forwarding rules, where the updating includes: and updating the target identification information, updating the target address information, updating the target identification information and the target address information simultaneously, obtaining a third forwarding rule after updating, and finally replacing the target forwarding rule stored in the rule storage service with the third forwarding rule.
A preferred embodiment of the present invention is described in detail below with reference to fig. 5, and as shown in fig. 5, the method includes: before the test is initiated, a tester can perform rule configuration (specify forwarding rules and addresses of corresponding test environments) on a request (in uri dimension) which needs to be subjected to proxy forwarding at this time through a visual front-end rule configuration platform. After the upstream module initiates a test request (uri=/demo/query), the upstream module directly sends the request to the proxy forwarding service, acquires a pre-written forwarding rule (matching the forwarding rule meeting/demo/query) from the rule storage service in real time through the rule analysis service and executes a pre-configured rule script, acquires a preset downstream actual service address (ip: port) and returns the pre-configured rule script to the proxy forwarding service, and then the proxy forwarding service sends the test request to the target downstream module and synchronously returns the test result of the downstream module to the upstream module, so that the forwarding of the request is completed.
According to the embodiment of the present invention, a processing device for a test request is further provided, where the processing device can execute the processing method for the test request in the foregoing embodiment, and the specific implementation scheme and the application scenario are the same as those of the foregoing embodiment, and are not described herein in detail.
FIG. 6 is a schematic diagram of an apparatus for processing a test request according to an embodiment of the present invention, as shown in FIG. 6, the apparatus including:
a receiving module 62, configured to receive a plurality of test requests sent by the upstream module, where different test requests are used to access different test scenarios;
A determining module 64, configured to determine first address information corresponding to each test request, where the first address information is used to characterize address information of a test scenario accessed by each test request;
A forwarding module 66, configured to forward each test request to a downstream module corresponding to the first address information based on the first address information corresponding to each test request;
and the receiving module 68 is configured to receive a test result returned by the downstream module corresponding to the first address information, and forward the test result to the upstream module.
In the above embodiment of the present invention, the determining module includes: the first analyzing unit is used for analyzing each test request to obtain first identification information of each test request; the determining unit is used for determining a first forwarding rule corresponding to each test request from a plurality of forwarding rules based on the first identification information of each test request, wherein each forwarding rule is used for representing the corresponding relation between different identification information and address information; the second analyzing unit is used for analyzing the first forwarding rule corresponding to each test request to obtain the first address information corresponding to each test request.
In the above embodiment of the present invention, the apparatus further includes: the receiving module is configured to receive a second forwarding rule, where the second forwarding rule at least includes: second identification information and second address information; and the storage module is used for storing the second forwarding rule into the plurality of forwarding rules.
In the above embodiment of the present invention, the apparatus further includes: the output module is used for outputting a plurality of forwarding rules; the receiving module is used for receiving a third forwarding rule, wherein the third forwarding rule is obtained by updating a target forwarding rule in the forwarding rules; and the storage module is used for replacing the target forwarding rule with the third forwarding rule.
According to the embodiment of the present invention, a processing system for a test request is further provided, where the processing method for a test request in the foregoing embodiment may be executed by the system, and specific implementation schemes and application scenarios are the same as those of the foregoing embodiment, and are not described herein.
FIG. 7 is a schematic diagram of a processing system for test requests, as shown in FIG. 7, according to an embodiment of the invention, the system comprising:
The proxy server 72 is configured to receive a plurality of test requests sent by the upstream module, where different test requests are used to access different test scenarios; the rule parsing server 74 is in communication connection with the proxy server, and is configured to determine first address information corresponding to each test request, where the first address information is used to characterize address information of a test scenario accessed by each test request; the proxy server is further configured to forward each test request to a downstream module corresponding to the first address information based on the first address information corresponding to each test request sent by the rule analysis server, and forward a test result returned by the downstream module corresponding to the first address information to the upstream module.
The proxy server may be a server in which a proxy forwarding service as shown in fig. 3 is deployed, and the rule analysis server may be a server in which a rule analysis service as shown in fig. 3 is deployed.
In the above embodiment of the present invention, the system further includes: the rule storage server is used for storing a plurality of forwarding rules, wherein each forwarding rule is used for representing the corresponding relation between different identification information and address information; the rule analysis server is further configured to analyze each test request to obtain first identification information of each test request, obtain a first forwarding rule corresponding to each test request from the rule storage server based on the first identification information of each test request, and analyze the first forwarding rule corresponding to each test request to obtain first address information corresponding to each test request.
The rule storage server described above may be a server deployed with a rule storage service as shown in fig. 3.
In the above embodiment of the present invention, the system further includes: the configuration platform is in communication connection with the rule storage server and is used for receiving the second forwarding rule and storing the second forwarding rule into the rule storage server, wherein the second forwarding rule at least comprises: second identification information and second address information.
The configuration platform may be a visual front-end regular configuration platform as shown in fig. 3.
According to an embodiment of the present invention, there is also provided a computer readable storage medium, where the computer readable storage medium includes a stored program, and when the program runs, the device where the computer readable storage medium is controlled to execute the method for processing the test request in the foregoing embodiment.
According to an embodiment of the present invention, there is also provided a processor, configured to execute a program, where the program executes the method for processing a test request in the foregoing embodiment.
In the foregoing embodiments of the present invention, the descriptions of the embodiments are emphasized, and for a portion of this disclosure that is not described in detail in this embodiment, reference is made to the related descriptions of other embodiments.
In the several embodiments provided in the present application, it should be understood that the disclosed technology may be implemented in other manners. The above-described embodiments of the apparatus are merely exemplary, and the division of the units, for example, may be a logic function division, and may be implemented in another manner, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be through some interfaces, units or modules, or may be in electrical or other forms.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present invention may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied essentially or in part or all of the technical solution or in part in the form of a software product stored in a storage medium, including instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a usb disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a removable hard disk, a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The foregoing is merely a preferred embodiment of the present invention and it should be noted that modifications and adaptations to those skilled in the art may be made without departing from the principles of the present invention, which are intended to be comprehended within the scope of the present invention.

Claims (9)

1. A method for processing a test request, comprising:
receiving a plurality of test requests sent by an upstream module, wherein different test requests are used for accessing different test scenes, the plurality of test requests are generated based on different test requirements, and the different test requirements access different downstream modules;
determining first address information corresponding to each test request, wherein the first address information is used for representing address information of a test scene accessed by each test request;
Forwarding each test request to a downstream module corresponding to the first address information based on the first address information corresponding to each test request;
Receiving a test result returned by a downstream module corresponding to the first address information, and forwarding the test result to the upstream module;
wherein determining the first address information corresponding to each test request includes: analyzing each test request to obtain first identification information of each test request; determining a first forwarding rule corresponding to each test request from a plurality of forwarding rules based on the first identification information of each test request, wherein each forwarding rule is used for representing the corresponding relation between different identification information and address information, and the plurality of forwarding rules are used for representing forwarding rules which divide the test requests by uri dimensions and are configured for the different test requests; and analyzing the first forwarding rule corresponding to each test request to obtain first address information corresponding to each test request.
2. The method according to claim 1, wherein the method further comprises:
receiving a second forwarding rule, wherein the second forwarding rule at least comprises: second identification information and second address information;
and storing the second forwarding rule into the plurality of forwarding rules.
3. The method according to claim 1, wherein the method further comprises:
Outputting the plurality of forwarding rules;
receiving a third forwarding rule, wherein the third forwarding rule is obtained by updating a target forwarding rule in the forwarding rules;
and replacing the target forwarding rule with the third forwarding rule.
4. A test request processing apparatus, comprising:
The system comprises a receiving module, a processing module and a processing module, wherein the receiving module is used for receiving a plurality of test requests sent by an upstream module, wherein different test requests are used for accessing different test scenes, the plurality of test requests are generated based on different test requirements, and the different test requirements access different downstream modules;
The determining module is used for determining first address information corresponding to each test request, wherein the first address information is used for representing address information of a test scene accessed by each test request;
the forwarding module is used for forwarding each test request to a downstream module corresponding to the first address information based on the first address information corresponding to each test request;
The receiving module is used for receiving the test result returned by the downstream module corresponding to the first address information and forwarding the test result to the upstream module;
The determining module is further configured to parse each test request to obtain first identification information of each test request; determining a first forwarding rule corresponding to each test request from a plurality of forwarding rules based on the first identification information of each test request, wherein each forwarding rule is used for representing the corresponding relation between different identification information and address information, and the plurality of forwarding rules are used for representing forwarding rules which divide the test requests by uri dimensions and are configured for the different test requests; and analyzing the first forwarding rule corresponding to each test request to obtain first address information corresponding to each test request.
5. A system for processing a test request, comprising:
The proxy server is used for receiving a plurality of test requests sent by the upstream module, wherein different test requests are used for accessing different test scenes, the plurality of test requests are generated based on different test requirements, and the different test requirements access different downstream modules;
The rule analysis server is in communication connection with the proxy server and is used for determining first address information corresponding to each test request, wherein the first address information is used for representing address information of a test scene accessed by each test request;
The proxy server is further configured to forward each test request to a downstream module corresponding to the first address information based on the first address information corresponding to each test request sent by the rule analysis server, and forward a test result returned by the downstream module corresponding to the first address information to the upstream module;
The rule analysis server is further used for analyzing each test request to obtain first identification information of each test request; determining a first forwarding rule corresponding to each test request from a plurality of forwarding rules based on the first identification information of each test request, wherein each forwarding rule is used for representing the corresponding relation between different identification information and address information, and the plurality of forwarding rules are used for representing forwarding rules which divide the test requests by uri dimensions and are configured for the different test requests; and analyzing the first forwarding rule corresponding to each test request to obtain first address information corresponding to each test request.
6. The system of claim 5, wherein the system further comprises:
The rule storage server is used for storing a plurality of forwarding rules, wherein each forwarding rule is used for representing the corresponding relation between different identification information and address information;
The rule analysis server is further configured to analyze each test request to obtain first identification information of each test request, obtain, from the rule storage server, a first forwarding rule corresponding to each test request based on the first identification information of each test request, and analyze the first forwarding rule corresponding to each test request to obtain first address information corresponding to each test request.
7. The system of claim 6, wherein the system further comprises:
The configuration platform is in communication connection with the rule storage server and is used for receiving a second forwarding rule and storing the second forwarding rule to the rule storage server, wherein the second forwarding rule at least comprises: second identification information and second address information.
8. A computer-readable storage medium, characterized in that the computer-readable storage medium comprises a stored program, wherein the program, when run, controls a device in which the computer-readable storage medium is located to perform the method of processing a test request according to any one of claims 1 to 3.
9. A processor for running a program, wherein the program runs on performing the method of processing a test request according to any one of claims 1 to 3.
CN202111574218.4A 2021-12-21 2021-12-21 Processing method, device and system of test request Active CN114285779B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111574218.4A CN114285779B (en) 2021-12-21 2021-12-21 Processing method, device and system of test request

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111574218.4A CN114285779B (en) 2021-12-21 2021-12-21 Processing method, device and system of test request

Publications (2)

Publication Number Publication Date
CN114285779A CN114285779A (en) 2022-04-05
CN114285779B true CN114285779B (en) 2024-05-14

Family

ID=80873644

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111574218.4A Active CN114285779B (en) 2021-12-21 2021-12-21 Processing method, device and system of test request

Country Status (1)

Country Link
CN (1) CN114285779B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117112451B (en) * 2023-10-25 2024-02-09 腾讯科技(深圳)有限公司 Test method, test device, electronic equipment and computer readable storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105430108A (en) * 2014-08-25 2016-03-23 腾讯科技(深圳)有限公司 Test environment accessing method and proxy server
CN107040429A (en) * 2017-03-13 2017-08-11 上海斐讯数据通信技术有限公司 A kind of method of testing and system of port forwarding performance
CN111181861A (en) * 2020-01-13 2020-05-19 山东汇贸电子口岸有限公司 Policy routing implementation method and device

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10771475B2 (en) * 2015-03-23 2020-09-08 Extreme Networks, Inc. Techniques for exchanging control and configuration information in a network visibility system
US10110564B2 (en) * 2015-10-14 2018-10-23 Adobe Systems Incorporated Detecting application state using a DNS-controlled proxy

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105430108A (en) * 2014-08-25 2016-03-23 腾讯科技(深圳)有限公司 Test environment accessing method and proxy server
CN107040429A (en) * 2017-03-13 2017-08-11 上海斐讯数据通信技术有限公司 A kind of method of testing and system of port forwarding performance
CN111181861A (en) * 2020-01-13 2020-05-19 山东汇贸电子口岸有限公司 Policy routing implementation method and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
洪流 ; 王帆 ; 高员 ; .基于代理机制的移动App性能测试方法.现代计算机(专业版).2017,(第16期),第39-42页. *

Also Published As

Publication number Publication date
CN114285779A (en) 2022-04-05

Similar Documents

Publication Publication Date Title
CN106874389B (en) Data migration method and device
US8079017B2 (en) Automated QS interface testing framework
CN108696399B (en) Business service test method and device
CN109831357B (en) Service verification method, device, storage medium and server
CN111045952A (en) Software testing method, flow playback device, terminal equipment and readable storage medium
CN109600280B (en) Pressure testing system, method, device and computer readable storage medium
CN108459850B (en) Method, device and system for generating test script
CN105450461A (en) Shunting method and network equipment
CN111597110B (en) Page test method and device, electronic equipment and storage medium
CN112988608B (en) Data testing method and device, computer equipment and storage medium
CN109618176B (en) Processing method, equipment and storage medium for live broadcast service
CN111240653A (en) Interface document generation method and device and readable storage medium
CN111274512A (en) Page loading method, device and medium
CN112363845A (en) Data synchronization method of system integration middling station and integration middling station system
CN113094255A (en) Simulation test method, device and system for data interface
CN114285779B (en) Processing method, device and system of test request
CN107168844B (en) Performance monitoring method and device
CN111737140A (en) Interface automation test method, device, equipment and computer readable storage medium
CN109446047B (en) Performance test platform script storage method, device, equipment and storage medium
CN113254165B (en) Load flow distribution method and device for virtual machine and container, and computer equipment
CN113448988A (en) Method and device for training algorithm model, electronic equipment and storage medium
CN113542418A (en) File management method and device, electronic equipment and storage medium
CN112650689A (en) Test method, test device, electronic equipment and storage medium
CN113031995B (en) Rule updating method and device, storage medium and electronic equipment
CN114466000A (en) CDN gateway source returning method and device

Legal Events

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