CN113535586A - Test environment switching method, device, equipment and readable storage medium - Google Patents

Test environment switching method, device, equipment and readable storage medium Download PDF

Info

Publication number
CN113535586A
CN113535586A CN202110892218.2A CN202110892218A CN113535586A CN 113535586 A CN113535586 A CN 113535586A CN 202110892218 A CN202110892218 A CN 202110892218A CN 113535586 A CN113535586 A CN 113535586A
Authority
CN
China
Prior art keywords
attribute information
switching
client
preset
environment
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110892218.2A
Other languages
Chinese (zh)
Inventor
谢如栋
方剑
徐夫明
孙钦
陈云
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou Yaowang Network Technology Co ltd
Original Assignee
Hangzhou Yaowang Network Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou Yaowang Network Technology Co ltd filed Critical Hangzhou Yaowang Network Technology Co ltd
Priority to CN202110892218.2A priority Critical patent/CN113535586A/en
Publication of CN113535586A publication Critical patent/CN113535586A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3664Environments for testing or debugging software
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]

Abstract

The invention discloses a switching method of a test environment, which is applied to a Fiddler agent of a client, and comprises the following steps: analyzing the received http request of the browser to obtain attribute information of each client; judging whether target client attribute information matched with a preset environment switching rule exists in each client attribute information or not; if so, format conversion is carried out on the target client attribute information according to a preset environment switching rule so as to switch to a server testing environment. By applying the switching method of the test environment provided by the invention, the switching efficiency of the test environment is improved, and the switching of the test environment of each client does not influence each other. The invention also discloses a switching device, equipment and a storage medium of the test environment, and the switching device, the equipment and the storage medium have corresponding technical effects.

Description

Test environment switching method, device, equipment and readable storage medium
Technical Field
The present invention relates to the field of software testing technologies, and in particular, to a method, an apparatus, a device, and a computer-readable storage medium for switching a testing environment.
Background
In daily software testing, different environments need to be tested, such as a daily joint debugging environment, a development environment, a pre-release environment, an online environment and the like. Situations are encountered during the test where the front-end does not need to be changed, and the service-side environment needs to be switched back and forth.
In the prior art, two test environment switching modes are mainly adopted, one mode is to change an interface address through a front end and then pack the interface address, and the test environment switching mode is carried out by a tester in an installation mode. The other method is that an intermediate server is arranged between a client and a server, and a nginx reverse proxy is deployed in the intermediate server to modify the forwarding rule of a request address, so that the test environment switching is realized. However, the two methods have respective disadvantages, firstly, the interface address is changed through the front end, and then the packaging installation is performed, if a WeChat applet, an ios application App, an android application (android App) or an h5 front-end page is met, the interface address is changed through the front end, then the packaging installation is performed, the operation is very complicated, and the test environment switching efficiency is low. Secondly, a mode of deploying a forwarding rule of the nginx reverse proxy modification request address is deployed, all clients connected to the server are enabled after modification, and the method is not applicable to various client scenes with diversified test environments.
In summary, how to effectively solve the problems of complex operation, low switching efficiency of the test environment, inapplicability to various client scenes with diversified test environments, and the like of the existing test environment switching method is a problem that those skilled in the art are urgently required to solve at present.
Disclosure of Invention
The invention aims to provide a test environment switching method, which improves the test environment switching efficiency, and the test environment switching of each client is not influenced; another object of the present invention is to provide a switching apparatus, a device and a computer readable storage medium for a test environment.
In order to solve the technical problems, the invention provides the following technical scheme:
a switching method of test environment is applied to a Fiddler agent of a client, and comprises the following steps:
analyzing the received http request of the browser to obtain attribute information of each client;
judging whether target client attribute information matched with a preset environment switching rule exists in each client attribute information or not;
if so, carrying out format conversion on the target client attribute information according to the preset environment switching rule so as to switch to a server testing environment.
In a specific embodiment of the present invention, determining whether there is target client attribute information matching a preset environment switching rule in each piece of client attribute information includes:
judging whether the domain name information in the attribute information of each client is matched with a preset domain name switching rule or not;
performing format conversion on the target client attribute information according to the preset environment switching rule, wherein the format conversion comprises the following steps:
and carrying out format conversion on the domain name information according to the preset domain name switching rule.
In a specific embodiment of the present invention, determining whether there is target client attribute information matching a preset environment switching rule in each piece of client attribute information includes:
judging whether the path information in the client attribute information is matched with a preset path switching rule or not;
performing format conversion on the target client attribute information according to the preset environment switching rule, wherein the format conversion comprises the following steps:
and carrying out format conversion on the path information according to the preset path switching rule.
In a specific embodiment of the present invention, determining whether there is target client attribute information matching a preset environment switching rule in each piece of client attribute information includes:
judging whether the head token keywords in the client attribute information are matched with a preset token keyword forwarding rule or not;
performing format conversion on the target client attribute information according to the preset environment switching rule, wherein the format conversion comprises the following steps:
and carrying out format conversion on the head token keywords according to the preset token keyword forwarding rule.
In a specific embodiment of the present invention, parsing a received browser http request includes:
and analyzing the received browser http request sent by the remote terminal through the remote agent.
A switching device of test environment is applied to a client Fiddler agent and comprises:
the request analysis module is used for analyzing the received http request of the browser to obtain attribute information of each client;
the judging module is used for judging whether target client attribute information matched with a preset environment switching rule exists in each client attribute information;
and the test environment switching module is used for carrying out format conversion on the target client attribute information according to a preset environment switching rule so as to switch to a server test environment when the target client attribute information matched with the preset environment switching rule exists in the client attribute information.
In a specific embodiment of the present invention, the determining module is a module that determines whether domain name information in the attribute information of each client matches a preset domain name switching rule;
the test environment switching module is specifically a module for performing format conversion on the domain name information according to the preset domain name switching rule.
In a specific embodiment of the present invention, the determining module is a module that determines whether path information in the client attribute information matches a preset path switching rule;
the test environment switching module is specifically a module for performing format conversion on the path information according to the preset path switching rule.
A switching apparatus of a test environment, comprising:
a memory for storing a computer program;
a processor for implementing the steps of the method for switching test environments as described above when executing the computer program.
A computer-readable storage medium, having stored thereon a computer program which, when being executed by a processor, carries out the steps of the method of switching of a test environment as set forth above.
The switching method of the test environment provided by the invention is applied to a client Fiddler agent, and comprises the following steps: analyzing the received http request of the browser to obtain attribute information of each client; judging whether target client attribute information matched with a preset environment switching rule exists in each client attribute information or not; if so, format conversion is carried out on the target client attribute information according to a preset environment switching rule so as to switch to a server testing environment.
According to the technical scheme, the client Fiddler agent is preset, the environment switching rule is preset, after the attribute information of each client is obtained through http request analysis of the browser, if the target client attribute information matched with the preset environment switching rule exists, format conversion is directly carried out on the target client attribute information according to the preset environment switching rule, and therefore switching from the client testing environment to the server testing environment is achieved. The client does not need to be replaced again, namely complicated steps such as replacing the interface address of the front end and then packaging and installing are not needed, and the switching efficiency of the test environment is improved. And the client Fiddler agent is deployed at the client, and the test environment switching of the clients is not influenced mutually.
Correspondingly, the invention also provides a switching device, equipment and a computer readable storage medium of the test environment corresponding to the switching method of the test environment, which have the technical effects and are not described herein again.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a flowchart illustrating an exemplary method for switching test environments according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating another exemplary method for switching test environments according to an embodiment of the present invention;
FIG. 3 is a flowchart illustrating another exemplary method for switching test environments according to an embodiment of the present invention;
FIG. 4 is a flowchart illustrating another exemplary method for switching test environments according to an embodiment of the present invention;
FIG. 5 is a block diagram illustrating a switching device for testing environments according to an embodiment of the present invention;
FIG. 6 is a block diagram of a switching device for testing environments according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of a switching device in a test environment according to this embodiment.
Detailed Description
In order that those skilled in the art will better understand the disclosure, the invention will be described in further detail with reference to the accompanying drawings and specific embodiments. It is to be understood that the described embodiments are merely exemplary of the invention, and not restrictive of the full scope of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1, fig. 1 is a flowchart of an implementation of a method for switching a test environment according to an embodiment of the present invention, which is applied to a client fixdler agent, and the method may include the following steps:
s101: and analyzing the received http request of the browser to obtain the attribute information of each client.
A client Fiddler agent is deployed at a client in advance, the client Fiddler agent is an http agent, and after a windows system is opened, all http requests of a browser are sent to an actual server through the agent. After a user inputs an http request in a browser at a client, the http request of the browser is sent to a Fiddler agent at the client, and the http request of the browser comprises a plurality of client attribute information, such as domain name host information, path url information, request header information and the like. And the client Fiddler agent receives the http request of the browser and analyzes the http request of the browser to obtain the attribute information of each client.
S102: and judging whether target client attribute information matched with the preset environment switching rule exists in each client attribute information, if so, executing the step S103, and if not, not processing.
The method comprises the steps of presetting client attribute information for switching a test environment between a client and a server, and if the client domain name a.com exists, converting the client domain name a.com into b.com to realize the switching from the client to the server. After analyzing the http request of the browser to obtain the attribute information of each client, judging whether the attribute information of each client has target client attribute information matched with a preset environment switching rule, if so, indicating that the automatic switching from the client testing environment to the server testing environment can be realized, executing step S103, and if not, indicating that the automatic switching from the client testing environment to the server testing environment cannot be realized, and not processing.
S103: and carrying out format conversion on the target client attribute information according to a preset environment switching rule so as to switch to a server testing environment.
When the target client attribute information matched with the preset environment switching rule exists in the client attribute information, the client attribute information is proved to be capable of realizing automatic switching from the client testing environment to the server testing environment, format conversion is carried out on the target client attribute information according to the preset environment switching rule, and therefore the client testing environment is switched to the server testing environment. By customizing the environment switching rule, the client does not need to be replaced again, the front end does not need to be replaced with the interface address and the complicated steps such as packaging and installing are not needed, the dynamic switching between the client testing environment and the server testing environment is realized, and the testing environment switching efficiency is improved. The client Fiddler agent is locally deployed at the client, the configuration only takes effect on the current client, and the test environment switching of the clients is not influenced mutually.
According to the technical scheme, the client Fiddler agent is preset, the environment switching rule is preset, after the attribute information of each client is obtained through http request analysis of the browser, if the target client attribute information matched with the preset environment switching rule exists, format conversion is directly carried out on the target client attribute information according to the preset environment switching rule, and therefore switching from the client testing environment to the server testing environment is achieved. The client does not need to be replaced again, namely complicated steps such as replacing the interface address of the front end and then packaging and installing are not needed, and the switching efficiency of the test environment is improved. And the client Fiddler agent is deployed at the client, and the test environment switching of the clients is not influenced mutually.
It should be noted that, based on the above embodiments, the embodiments of the present invention also provide corresponding improvements. In the following embodiments, steps that are the same as or correspond to those in the above embodiments may be referred to one another, and corresponding advantageous effects may also be referred to one another, which is not described in detail in the following modified embodiments.
Referring to fig. 2, fig. 2 is a flowchart of another implementation of the method for switching the test environment in the embodiment of the present invention, which is applied to a client Fiddler agent, and the method may include the following steps:
s201: and analyzing the received browser http request sent by the remote terminal through the remote agent to obtain the attribute information of each client.
A remote agent is deployed at a remote terminal in advance, the remote terminal can be connected to a client through the remote agent, and a browser http request is sent to a Fiddler agent of the client. Remote control of test environment switching is achieved by deploying remote agents at the remote terminal.
The plug-in is loaded in the FiddlerScript, the plug-in is realized in the OnBeforeRequest of the FiddlerScript, attribute information of each client is obtained in the plug-in through an oSession module, such as the method for obtaining the host through oSession.
S202: and judging whether the domain name information in the attribute information of each client is matched with a preset domain name switching rule, if so, executing the step S203, and if not, not processing.
Presetting a domain name switching rule, after analyzing to obtain attribute information of each client, selecting the contained domain name information from the attribute information of each client, judging whether the domain name information in the attribute information of each client is matched with the preset domain name switching rule, if so, indicating that the automatic switching from the client testing environment to the server testing environment can be realized according to the domain name information of the client, executing the step S203, and if not, indicating that the automatic switching from the client testing environment to the server testing environment cannot be realized according to the domain name information of the client without processing.
The domain name matching process may include:
acquiring a client domain name host, and reading the judgment of configuration (acquiring the host by using the osessing.
Acquiring and judging the domain name host of the browser http request before the browser http request, redefining the new domain name host of the request according to configuration, and setting the color of the browser http request to be red
Figure BDA0003196356800000071
S203: and carrying out format conversion on the domain name information according to a preset domain name switching rule so as to switch to a server testing environment.
After determining that the domain name information in the attribute information of each client is matched with the preset domain name switching rule, the method shows that the automatic switching from the client testing environment to the server testing environment can be realized according to the domain name information of the client, and format conversion is carried out on the domain name information according to the preset domain name switching rule so as to switch to the server testing environment.
Referring to fig. 3, fig. 3 is a flowchart of another implementation of the method for switching the test environment in the embodiment of the present invention, which is applied to a client Fiddler agent, and the method may include the following steps:
s301: and analyzing the received browser http request sent by the remote terminal through the remote agent to obtain the attribute information of each client.
S302: and judging whether the path information in the attribute information of each client is matched with a preset path switching rule, if so, executing the step S303, and if not, not processing.
Presetting a path switching rule, after analyzing and obtaining the attribute information of each client, selecting the included path information from the attribute information of each client, judging whether the path information in the attribute information of each client is matched with the preset path switching rule, if so, indicating that the automatic switching from the client testing environment to the server testing environment can be realized according to the path information of the client, executing the step S303, and if not, indicating that the automatic switching from the client testing environment to the server testing environment cannot be realized according to the path information of the client without processing.
S303: and carrying out format conversion on the path information according to a preset path switching rule so as to switch to a server test environment.
After determining that the path information in the attribute information of each client is matched with the preset path switching rule, the automatic switching from the client testing environment to the server testing environment can be realized according to the client path information, and format conversion is carried out on the path information according to the preset path switching rule so as to switch to the server testing environment. For example, the path switching rule can be set to realize the switching from the client testing environment to the server testing environment by converting the path a.com/api/add of the client into b.com/api/add.
Referring to fig. 4, fig. 4 is a flowchart of another implementation of the method for switching the test environment in the embodiment of the present invention, which is applied to a client Fiddler agent, and the method may include the following steps:
s401: and analyzing the received browser http request sent by the remote terminal through the remote agent to obtain the attribute information of each client.
S402: and judging whether the head token keywords in the attribute information of each client are matched with a preset token keyword forwarding rule, if so, executing the step S403, and if not, not processing.
Presetting a token keyword forwarding rule, after analyzing to obtain each client attribute information, selecting a head token keyword from each client attribute information, judging whether the head token keyword in each client attribute information is matched with the preset token keyword forwarding rule, if so, indicating that the automatic switching from the client testing environment to the server testing environment can be realized according to the head token keyword, executing the step S403, otherwise, indicating that the automatic switching from the client testing environment to the server testing environment cannot be realized according to the head token keyword, and not processing.
S403: and carrying out format conversion on the head token keywords according to a preset token keyword forwarding rule so as to switch to a server side test environment.
When the head token keywords in the attribute information of each client are determined to be matched with the preset token keyword forwarding rule, the automatic switching from the client testing environment to the server testing environment can be realized according to the head token keywords, and the format conversion is performed on the head token keywords according to the preset token keyword forwarding rule so as to switch to the server testing environment.
Corresponding to the above method embodiment, the present invention further provides a device for switching test environments, and the device for switching test environments described below and the method for switching test environments described above may be referred to in correspondence.
Referring to fig. 5, fig. 5 is a block diagram of a switching apparatus of a test environment in an embodiment of the present invention, which is applied to a client Fiddler agent, and the apparatus may include:
the request analysis module 51 is configured to analyze the received http request of the browser to obtain attribute information of each client;
the judging module 52 is configured to judge whether target client attribute information matched with a preset environment switching rule exists in each piece of client attribute information;
and the testing environment switching module 53 is configured to, when it is determined that target client attribute information matching the preset environment switching rule exists in each piece of client attribute information, perform format conversion on the target client attribute information according to the preset environment switching rule to switch to the server testing environment.
According to the technical scheme, the client Fiddler agent is preset, the environment switching rule is preset, after the attribute information of each client is obtained through http request analysis of the browser, if the target client attribute information matched with the preset environment switching rule exists, format conversion is directly carried out on the target client attribute information according to the preset environment switching rule, and therefore switching from the client testing environment to the server testing environment is achieved. The client does not need to be replaced again, namely complicated steps such as replacing the interface address of the front end and then packaging and installing are not needed, and the switching efficiency of the test environment is improved. And the client Fiddler agent is deployed at the client, and the test environment switching of the clients is not influenced mutually.
In a specific embodiment of the present invention, the determining module 52 is a module that determines whether domain name information in the attribute information of each client matches a preset domain name switching rule;
the testing environment switching module 53 is specifically a module for performing format conversion on the domain name information according to a preset domain name switching rule.
In a specific embodiment of the present invention, the determining module 52 is a module that determines whether the path information in the attribute information of each client matches a preset path switching rule;
the testing environment switching module 53 is specifically a module that performs format conversion on the path information according to a preset path switching rule.
In a specific embodiment of the present invention, the determining module 52 is a module that determines whether the head token keyword in the attribute information of each client matches a preset token keyword forwarding rule;
the testing environment switching module 53 is specifically a module that performs format conversion on the header token according to a preset token forwarding rule.
In a specific embodiment of the present invention, the request parsing module 51 is specifically a module for parsing a received http request of a browser, which is sent by a remote terminal through a remote agent.
Corresponding to the above method embodiment, referring to fig. 6, fig. 6 is a schematic diagram of a switching device of a test environment provided by the present invention, where the switching device may include:
a memory 332 for storing a computer program;
the processor 322 is configured to implement the steps of the method for switching test environments of the above-described method embodiments when executing the computer program.
Specifically, referring to fig. 7, fig. 7 is a schematic diagram illustrating a specific structure of a switching device of a test environment according to this embodiment, the switching device of the test environment may generate a relatively large difference due to different configurations or performances, and may include a processor (CPU) 322 (e.g., one or more processors) and a memory 332, where the memory 332 stores one or more computer applications 342 or data 344. Memory 332 may be, among other things, transient or persistent storage. The program stored in memory 332 may include one or more modules (not shown), each of which may include a sequence of instructions operating on a data processing device. Still further, the processor 322 may be configured to communicate with the memory 332 to execute a series of instruction operations in the memory 332 on the switching device 301 of the test environment.
The switching device 301 of the test environment may also include one or more power supplies 326, one or more wired or wireless network interfaces 350, one or more input-output interfaces 358, and/or one or more operating systems 341.
The steps in the above-described switching method of the test environment may be implemented by the structure of the switching device of the test environment.
Corresponding to the above method embodiment, the present invention further provides a computer-readable storage medium having a computer program stored thereon, the computer program, when executed by a processor, implementing the steps of:
analyzing the received http request of the browser to obtain attribute information of each client; judging whether target client attribute information matched with a preset environment switching rule exists in each client attribute information or not; if so, format conversion is carried out on the target client attribute information according to a preset environment switching rule so as to switch to a server testing environment.
The computer-readable storage medium may include: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
For the introduction of the computer-readable storage medium provided by the present invention, please refer to the above method embodiments, which are not described herein again.
The embodiments are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same or similar parts among the embodiments are referred to each other. The device, the apparatus and the computer-readable storage medium disclosed in the embodiments correspond to the method disclosed in the embodiments, so that the description is simple, and the relevant points can be referred to the description of the method.
The principle and the implementation of the present invention are explained in the present application by using specific examples, and the above description of the embodiments is only used to help understanding the technical solution and the core idea of the present invention. It should be noted that, for those skilled in the art, it is possible to make various improvements and modifications to the present invention without departing from the principle of the present invention, and those improvements and modifications also fall within the scope of the claims of the present invention.

Claims (10)

1. A switching method of test environment is characterized in that the switching method is applied to a Fiddler agent of a client, and comprises the following steps:
analyzing the received http request of the browser to obtain attribute information of each client;
judging whether target client attribute information matched with a preset environment switching rule exists in each client attribute information or not;
if so, carrying out format conversion on the target client attribute information according to the preset environment switching rule so as to switch to a server testing environment.
2. The method according to claim 1, wherein determining whether target client attribute information matching a preset environment switching rule exists in each piece of client attribute information includes:
judging whether the domain name information in the attribute information of each client is matched with a preset domain name switching rule or not;
performing format conversion on the target client attribute information according to the preset environment switching rule, wherein the format conversion comprises the following steps:
and carrying out format conversion on the domain name information according to the preset domain name switching rule.
3. The method according to claim 1, wherein determining whether target client attribute information matching a preset environment switching rule exists in each piece of client attribute information includes:
judging whether the path information in the client attribute information is matched with a preset path switching rule or not;
performing format conversion on the target client attribute information according to the preset environment switching rule, wherein the format conversion comprises the following steps:
and carrying out format conversion on the path information according to the preset path switching rule.
4. The method according to claim 1, wherein determining whether target client attribute information matching a preset environment switching rule exists in each piece of client attribute information includes:
judging whether the head token keywords in the client attribute information are matched with a preset token keyword forwarding rule or not;
performing format conversion on the target client attribute information according to the preset environment switching rule, wherein the format conversion comprises the following steps:
and carrying out format conversion on the head token keywords according to the preset token keyword forwarding rule.
5. The method for switching test environments of claims 1 to 4, wherein parsing the received browser http request comprises:
and analyzing the received browser http request sent by the remote terminal through the remote agent.
6. A switching device of test environment is characterized in that the switching device is applied to a client Fiddler agent and comprises:
the request analysis module is used for analyzing the received http request of the browser to obtain attribute information of each client;
the judging module is used for judging whether target client attribute information matched with a preset environment switching rule exists in each client attribute information;
and the test environment switching module is used for carrying out format conversion on the target client attribute information according to a preset environment switching rule so as to switch to a server test environment when the target client attribute information matched with the preset environment switching rule exists in the client attribute information.
7. The switching device of test environments according to claim 6, wherein the determining module is a module that determines whether domain name information in each of the client attribute information matches a preset domain name switching rule;
the test environment switching module is specifically a module for performing format conversion on the domain name information according to the preset domain name switching rule.
8. The switching apparatus of test environments according to claim 6, wherein the determining module is specifically a module that determines whether path information in each of the client attribute information matches a preset path switching rule;
the test environment switching module is specifically a module for performing format conversion on the path information according to the preset path switching rule.
9. A switching device for a test environment, comprising:
a memory for storing a computer program;
a processor for implementing the steps of the method for switching test environments according to any one of claims 1 to 5 when executing the computer program.
10. A computer-readable storage medium, characterized in that a computer program is stored on the computer-readable storage medium, which computer program, when being executed by a processor, carries out the steps of the method for switching between test environments according to any one of claims 1 to 5.
CN202110892218.2A 2021-08-04 2021-08-04 Test environment switching method, device, equipment and readable storage medium Pending CN113535586A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110892218.2A CN113535586A (en) 2021-08-04 2021-08-04 Test environment switching method, device, equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110892218.2A CN113535586A (en) 2021-08-04 2021-08-04 Test environment switching method, device, equipment and readable storage medium

Publications (1)

Publication Number Publication Date
CN113535586A true CN113535586A (en) 2021-10-22

Family

ID=78121984

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110892218.2A Pending CN113535586A (en) 2021-08-04 2021-08-04 Test environment switching method, device, equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN113535586A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114520780A (en) * 2022-01-28 2022-05-20 北京金堤科技有限公司 Access method and device for proxy server
CN115842749A (en) * 2022-11-24 2023-03-24 中电信数智科技有限公司 Test environment switching method, device and system

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107547312A (en) * 2017-09-21 2018-01-05 广州四三九九信息科技有限公司 Applied program testing method and system
CN110351134A (en) * 2019-06-28 2019-10-18 北京你财富计算机科技有限公司 A kind of server environment switching method, device and electronic equipment

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107547312A (en) * 2017-09-21 2018-01-05 广州四三九九信息科技有限公司 Applied program testing method and system
CN110351134A (en) * 2019-06-28 2019-10-18 北京你财富计算机科技有限公司 A kind of server environment switching method, device and electronic equipment

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
1FRAGMENT碎片: "fiddlerscript 之重定向实践", pages 1 - 4, Retrieved from the Internet <URL:https://blog.csdn.net/sinat_16683257/article/details/82911342> *
FANTASY: "Fiddler自定义脚本实现批量替换请求头", pages 1 - 5, Retrieved from the Internet <URL:https://ifantasy.net/2021/01/10/fiddler_senior/> *
WWW.51SITE.COM: ""Fiddler中 AutoResponder 使用", pages 1 - 6, Retrieved from the Internet <URL:http://www.51ste.com/share/det-688.html> *
最亮的心: "iddler修改host,协议,请求转发", pages 1 - 5, Retrieved from the Internet <URL:https://blog.csdn.net/cs840610862/article/details/107631451> *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114520780A (en) * 2022-01-28 2022-05-20 北京金堤科技有限公司 Access method and device for proxy server
CN115842749A (en) * 2022-11-24 2023-03-24 中电信数智科技有限公司 Test environment switching method, device and system

Similar Documents

Publication Publication Date Title
CN106484611B (en) Fuzzy test method and device based on automatic protocol adaptation
CN113535586A (en) Test environment switching method, device, equipment and readable storage medium
CN108255701B (en) Scene testing method and mobile terminal
CN110750458A (en) Big data platform testing method and device, readable storage medium and electronic equipment
CN113377653B (en) Method and device for generating test cases
CN111258913A (en) Automatic algorithm testing method and device, computer system and readable storage medium
US10193989B2 (en) Visualization of user behavior
CN108234246B (en) Method and system for multi-directionally testing network performance of server
CN113434396A (en) Interface test method, device, equipment, storage medium and program product
CN108023905B (en) Internet of things application system and method
CN114564390A (en) Performance test method, device, equipment and product of application program
CN110795353A (en) Debugging method, device and equipment for fast application and storage medium
CN105068926A (en) Program test method and device thereof
CN107888451B (en) Method and device for testing Web server
CN114696888B (en) Port task processing method, device, equipment and medium of satellite measurement, operation and control system
CN111338928A (en) Chrome-based browser testing method and device
CN114880018A (en) Request processing method and device, storage medium and electronic equipment
CN114285774A (en) Flow recording method and device, electronic equipment and storage medium
CN113923204A (en) Request forwarding method, device, equipment and readable storage medium
CN112612531A (en) Application program starting method and device, electronic equipment and storage medium
CN115174461B (en) System testing method and device based on network request
CN110704055B (en) Interface preposition optimization method and device, electronic equipment and storage medium
CN112559930B (en) Webpage integration method, webpage integration device, computer equipment and storage medium
CN117271335A (en) Test method and device
CN114968693A (en) Performance test 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