CN113765731A - Information processing method, device and computer readable storage medium - Google Patents

Information processing method, device and computer readable storage medium Download PDF

Info

Publication number
CN113765731A
CN113765731A CN202010598763.6A CN202010598763A CN113765731A CN 113765731 A CN113765731 A CN 113765731A CN 202010598763 A CN202010598763 A CN 202010598763A CN 113765731 A CN113765731 A CN 113765731A
Authority
CN
China
Prior art keywords
current page
browser
domain name
test environment
host information
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.)
Granted
Application number
CN202010598763.6A
Other languages
Chinese (zh)
Other versions
CN113765731B (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.)
Beijing Jingdong Century Trading Co Ltd
Beijing Wodong Tianjun Information Technology Co Ltd
Original Assignee
Beijing Jingdong Century Trading Co Ltd
Beijing Wodong Tianjun Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Jingdong Century Trading Co Ltd, Beijing Wodong Tianjun Information Technology Co Ltd filed Critical Beijing Jingdong Century Trading Co Ltd
Priority to CN202010598763.6A priority Critical patent/CN113765731B/en
Publication of CN113765731A publication Critical patent/CN113765731A/en
Application granted granted Critical
Publication of CN113765731B publication Critical patent/CN113765731B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements
    • 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
    • G06F9/44526Plug-ins; Add-ons
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/45Network directories; Name-to-address mapping
    • H04L61/4505Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols
    • H04L61/4511Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols using domain name system [DNS]

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The disclosure provides an information processing method, a browser extension plug-in and a computer readable storage medium, and relates to the technical field of information. The information processing method comprises the following steps: the browser extension plug-in responds to the opening of a browser by a user and generates a candidate host information set according to a pre-configured test environment configuration file; the browser extension plug-in monitors request information sent by a current page of a browser and extracts an IP address and a domain name in the request information; the browser extension plug-in adds the test environment host information matched with the IP address and the domain name in the candidate host information set into the host information set with the current page in effect; and the browser extension plug-in responds to the test environment host information of the current page acquired by the user and displays the host information set of the current page in effect to the user. The method and the device can conveniently and efficiently check whether the configured host information is effective on the current page of the browser.

Description

Information processing method, device and computer readable storage medium
Technical Field
The present disclosure relates to the field of information technologies, and in particular, to an information processing method and apparatus, and a computer-readable storage medium.
Background
The hosts file is a file in the Windows system which is responsible for the rapid resolution of IP addresses and domain names. host information is stored in the hosts file, and the host information comprises an IP address and a domain name. When typing the domain name, the computer first checks whether the hosts file has corresponding host information. If the corresponding host information exists, the IP address in the corresponding host information is directly accessed; and if the corresponding host information does not exist, querying the DNS server to request to resolve the IP address corresponding to the domain name.
When an IP address is not bound for a domain name, or the same domain name may correspond to a plurality of different IP addresses, in order to access a server of a specific IP address through the domain name, host information needs to be configured locally to implement directional transmission of a request. The method for configuring host information comprises the following steps: finding out the hosts file local to the computer in the computer, opening and editing the file content, adding host information to the file and saving the host information. In addition, interfacing may also be performed using secondary software such as SwitchHosts.
Disclosure of Invention
The technical problem solved by the present disclosure is how to conveniently and efficiently check whether the configured host information is already effective on the current page of the browser.
According to an aspect of an embodiment of the present disclosure, there is provided an information processing method including: the browser extension plug-in responds to the opening of a browser by a user and generates a candidate host information set according to a pre-configured test environment configuration file; the browser extension plug-in monitors request information sent by a current page of a browser and extracts an IP address and a domain name in the request information; the browser extension plug-in adds the test environment host information matched with the IP address and the domain name in the candidate host information set into the host information set with the current page in effect; and the browser extension plug-in responds to the test environment host information of the current page acquired by the user and displays the host information set of the current page in effect to the user.
In some embodiments, generating the set of candidate host information from the preconfigured test environment profile comprises: reading host information configured for each test environment by a user from a pre-configured test environment configuration file; and generating a candidate host information set by utilizing the host information configured for each test environment by the user.
In some embodiments, the monitoring, by the browser extension plug-in, request information sent by a current page of the browser, and extracting an IP address and a domain name in the request information includes: the browser extension plug-in responds to the opening of a browser by a user and generates a testing environment domain name set according to a pre-configured testing environment configuration file; the browser extension plug-in responds to the completion of the loading of the current page of the browser and judges whether the domain name of the current page of the browser belongs to a domain name set of a test environment or not; and monitoring request information sent by the current page of the browser and extracting an IP address and a domain name in the request information by the browser extension plug-in under the condition of confirming that the domain name of the current page of the browser belongs to the domain name set of the test environment.
In some embodiments, generating the testing environment domain name set according to the preconfigured testing environment profile comprises: and generating a testing environment domain name set by utilizing the domain name in the host information configured for each testing environment by the user read from the pre-configured testing environment configuration file.
In some embodiments, displaying to the user the set of host information in which the current page is in effect comprises: and displaying relevant information of the undetected test environment to the user under the condition that the valid host information set of the current page is an empty set.
In some embodiments, displaying to the user the set of host information in which the current page is in effect comprises: extracting test environment names corresponding to each element in a host information set with a current page effective from a pre-configured test environment configuration file; and displaying the valid host information set of the current page and the test environment names corresponding to the elements to the user.
In some embodiments, the browser extension plug-in includes a popup layer module and a background module; responding to the test environment host information of the current page acquired by the user, and displaying the active host information set of the current page to the user comprises the following steps: and responding to the user clicking the browser extension plug-in icon, calling the host information set with the current page in effect stored in the background module of the browser extension plug-in by the pop-up layer module, and displaying the host information set with the current page in effect to the user.
In some embodiments, the browser extension plug-in includes an injection module and a background module; responding to the completion of the loading of the current page of the browser, and judging whether the domain name of the current page of the browser belongs to the domain name set of the test environment comprises the following steps: after the current page of the browser is loaded, acquiring the domain name of the current page through an injection module, and sending the domain name of the current page to a background module of the browser extension plug-in; and judging whether the domain name of the current page of the browser belongs to the domain name set of the test environment through a background module.
According to another aspect of the disclosed embodiments, there is provided a browser extension plug-in, including: the information generating unit is configured to respond to the opening of a browser by a user and generate a candidate host information set according to a pre-configured test environment configuration file; the request monitoring unit is configured to monitor request information sent by a current page of the browser and extract an IP address and a domain name in the request information; the information processing unit is configured to add the test environment host information matched with the IP address and the domain name in the candidate host information set into a host information set with a current page effective; and the information display unit is configured to respond to the test environment host information of the current page acquired by the user and display the active host information set of the current page to the user.
In some embodiments, the information generating unit is configured to: reading host information configured for each test environment by a user from a pre-configured test environment configuration file; and generating a candidate host information set by utilizing the host information configured for each test environment by the user.
In some embodiments, the request listening unit is configured to: responding to a browser opened by a user, and generating a testing environment domain name set according to a pre-configured testing environment configuration file; responding to the completion of the loading of the current page of the browser, and judging whether the domain name of the current page of the browser belongs to a domain name set of a test environment or not; and under the condition that the domain name of the current page of the browser belongs to the domain name set of the test environment, monitoring request information sent by the current page of the browser, and extracting an IP address and the domain name in the request information.
In some embodiments, the request listening unit is configured to: and generating a testing environment domain name set by utilizing the domain name in the host information configured for each testing environment by the user read from the pre-configured testing environment configuration file.
In some embodiments, the information display unit is configured to: and displaying relevant information of the undetected test environment to the user under the condition that the valid host information set of the current page is an empty set.
In some embodiments, the information display unit is configured to: extracting test environment names corresponding to each element in a host information set with a current page effective from a pre-configured test environment configuration file; and displaying the valid host information set of the current page and the test environment names corresponding to the elements to the user.
In some embodiments, the information display unit comprises a pop-up layer module and a background module; and the popup layer module is configured to respond to the user clicking the browser extension plug-in icon, call the host information set which is stored in the background module of the browser extension plug-in and takes effect of the current page, and display the host information set which takes effect of the current page to the user.
In some embodiments, the request listening unit comprises an injection module and a background module; the injection module is configured to: after the current page of the browser is loaded, acquiring the domain name of the current page, and sending the domain name of the current page to a background module of the browser extension plug-in; the back-office module is configured to: and judging whether the domain name of the current page of the browser belongs to the domain name set of the test environment.
According to another aspect of the disclosed embodiments, there is provided a browser extension plug-in, including: a memory; and a processor coupled to the memory, the processor configured to execute the aforementioned information processing method based on instructions stored in the memory.
According to still another aspect of the embodiments of the present disclosure, there is provided a computer-readable storage medium, wherein the computer-readable storage medium stores computer instructions, which when executed by a processor, implement the aforementioned information processing method.
The method and the device can conveniently and efficiently check whether the configured host information is effective on the current page of the browser.
Other features of the present disclosure and advantages thereof will become apparent from the following detailed description of exemplary embodiments thereof, which proceeds with reference to the accompanying drawings.
Drawings
In order to more clearly illustrate the embodiments of the present disclosure or technical solutions in the related art, the drawings required to be used in the description of the embodiments or the related art will be briefly introduced below, it is obvious that the drawings in the following description are only some embodiments of the present disclosure, and for those skilled in the art, other drawings may be obtained according to the drawings without inventive exercise.
FIG. 1 shows a schematic diagram of installing a browser extension plug-in.
Fig. 2 shows a flow diagram of an information processing method of some embodiments of the present disclosure.
FIG. 3 shows a schematic diagram of a host information set showing a user that a current page is in effect.
Fig. 4 shows a schematic diagram showing a user about information that no test environment is detected.
Fig. 5 is a flowchart illustrating the process of monitoring request information issued by a current page of a browser according to some embodiments of the present disclosure.
FIG. 6 illustrates a structural schematic diagram of a browser extension plug-in according to some embodiments of the present disclosure.
Fig. 7 is a schematic structural diagram of a browser extension plug-in according to further embodiments of the present disclosure.
Detailed Description
The technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the drawings in the embodiments of the present disclosure, and it is obvious that the described embodiments are only a part of the embodiments of the present disclosure, and not all of the embodiments. The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the disclosure, its application, or uses. All other embodiments, which can be derived by a person skilled in the art from the embodiments disclosed herein without making any creative effort, shall fall within the protection scope of the present disclosure.
The inventor researches and discovers that after the content in the local hosts file is changed due to cache, host information does not take effect immediately on the browser, operations such as page refreshing, cache clearing, browser closing and the like are required to be performed to refresh the cache, and non-research and development personnel generally do not have the capability of identifying whether currently configured host information takes effect on the browser side. Therefore, when the tester frequently switches the host information under the test environment, it is difficult to check whether the configured host information is already effective on the current page of the browser.
In order to solve the above problem, the present disclosure provides an information processing method, which can conveniently and efficiently check whether the configured host information is already valid in the current page of the browser. For ease of understanding, the embodiments of the present disclosure will be described by taking google browser chrome as an example. It should be understood by those skilled in the art that the embodiments of the present disclosure can also be applied to other browsers with extended technologies, such as Firefox, QQ, etc., and are not limited herein.
First, the preparation before the information processing method of the present disclosure is implemented will be described with reference to fig. 1. FIG. 1 shows a schematic diagram of installing a browser extension plug-in. As shown in FIG. 1, the extension plug-in of the chrome browser sets the page chrome:// extensions/open "developer mode" and selects "load decompressed extension" to install the folder containing the development code files, which may be implemented by, for example, javaScript.
Those skilled in the art will appreciate that for convenience, local storage may be employed when writing the test environment configuration file, i.e., test environment data may be exported or manually written into the test environment configuration file by a developer. Therefore, after the local data is changed each time, the user needs to install a new test environment configuration file again, so that the local storage is more suitable for a small-range test project with infrequent change of the test environment. If the application range needs to be expanded, the existing test environment data can be written into a database in a remote calling mode, and a set of management background is developed in a matched mode, so that the current test environment data can be modified in real time.
The browser extension plug-in may specifically include three modules: the device comprises an injection module, a background module and a popup layer module. The injection code in the injection module is injected into the page and executed after the browser page is initialized; background codes in the background module can be executed after the browser is opened, and monitoring operation can be always operated in the background until the user closes the browser; the pop-up layer is used for constructing the pop-up layer which pops up after the expansion plug-in button is clicked, and the pop-up layer code in the pop-up layer module is started to be executed after the user clicks and is destroyed after other positions of the browser are clicked.
Some embodiments of the disclosed information processing method are described below in conjunction with fig. 2.
Fig. 2 shows a flow diagram of an information processing method of some embodiments of the present disclosure. As shown in fig. 2, the present embodiment includes steps S201 to S204.
In step S201, the browser extension plug-in responds to the user opening the browser, and generates a candidate host information set according to the pre-configured test environment configuration file.
The test environment configuration file can be directly exported from the SwitchHost software or written in json format and then stored in the extension plug-in folder. The SwitchHosts is a small tool for rapidly switching hosts files, is simple to operate and can be used without installing points. Specific contents (i.e. test environment data) of the test environment configuration file are specifically exemplified as follows:
Figure BDA0002558434760000061
Figure BDA0002558434760000071
the list is an array of the configuration environment, the title is a name of the test environment, the content is specific host information of the test environment, and the where is a fixed identifier.
The background module in the browser extension plug-in can read host information configured for each test environment by a user from a pre-configured test environment configuration file, such as xxx. Then, a candidate host information set is generated by using the host information configured by the user for each test environment, such as { xxx.
In step S202, the browser extension plug-in monitors request information sent by the current page of the browser, and extracts an IP address and a domain name in the request information.
The browser extension plug-in can intercept information transmitted by the browser in the monitoring process, namely, after the browser sends a request to the server, the browser returns the relevant information (IP address, domain name and the like) of the request to the background module. In order to reduce the consumption of the browser performance and ensure the user experience, the monitoring mechanism adopted in the embodiment is callback after the request is returned, that is, after the request is sent by the browser, the information is collected under the condition that the data returned by the server is normal, the normal work of the browser cannot be influenced, and the request information cannot be intercepted.
In step S203, the browser extension plug-in adds the test environment host information matched with the IP address and the domain name in the candidate host information set to the active host information set of the current page.
For example, when the IP address in the request message is xxx.xxx.xxx.xx1 and the domain name is xx2.xx.com, the background module does not add it to the set of host information in which the current page is valid. And when the IP address in the request message is xxx.xxx.xxx.xx1 and the domain name is xx1.xx.com, the background module adds the IP address into the host information set with the current effective page.
In step S204, the browser extension plug-in responds to the test environment host information of the current page acquired by the user, and displays the host information set of the current page in effect to the user.
For example, in response to the user clicking the browser extension plug-in icon, the popup layer module calls the host information set, stored in the background module of the browser extension plug-in, of the current page in effect, and displays the host information set of the current page in effect to the user.
FIG. 3 shows a schematic diagram of a host information set showing a user that a current page is in effect. As shown in fig. 3, the browser extension plug-in can extract, from the pre-configured test environment configuration file, test environment names corresponding to respective elements in the host information set in which the current page is valid, such as "environment name 1" and "environment name 2". Then, the valid host information set of the current page and the test environment names corresponding to the respective elements, such as "environment name 1, xxx.xxx.xxx.xxx.xx 1. xx.com", "environment name 2, xxx.xxx.xxx.xx.xx 2. xx.com", are displayed to the user.
Fig. 4 shows a schematic diagram showing a user about information that no test environment is detected. As shown in fig. 4, in the case that the host information set validated by the current page is an empty set, the relevant information of "no test environment detected" is displayed to the user.
In the embodiment, the browser extension plug-in monitors the page request, can acquire the test environment information adopted by the current page of the browser in real time, and further automatically matches with the preconfigured host information, so that a user can conveniently and efficiently check whether the configured host information is effective on the current page of the browser.
In addition, in the conventional method, a method for checking currently configured host information is to open a hosts file to read content, and when it is required to determine whether a current page of a browser is a test environment and which host information is applicable, the judgment can be made only by manually comparing domain names. Compared with the prior art, the method and the device have the advantages that the user can conveniently and efficiently check the configured host information applicable to the current page, and the working efficiency of the test process is improved.
Some embodiments of monitoring request information sent by the current page of the browser are described in detail below with reference to fig. 5.
Fig. 5 is a flowchart illustrating the process of monitoring request information issued by a current page of a browser according to some embodiments of the present disclosure. As shown in fig. 5, the present embodiment includes steps S5021 to S5023.
In step S5021, the browser extension plug-in responds to the user opening the browser and generates a domain name set of the test environment according to the pre-configured test environment configuration file. For example, a domain name set of the test environment is generated by using domain names in the host information configured for each test environment by the user, which are read from a pre-configured test environment configuration file.
In step S5022, the browser extension plug-in determines whether the domain name of the current page of the browser belongs to the domain name set in the test environment in response to the completion of loading the current page of the browser.
For example, after the current page of the browser is loaded (including operations of creating a page or refreshing the page by a user), the domain name of the current page is acquired through the injection module, and the domain name of the current page is sent to the background module of the browser extension plug-in. Then, the background module judges whether the domain name of the current page of the browser belongs to the domain name set of the test environment.
And when the domain name of the current page of the browser is determined to belong to the domain name set of the test environment, executing the step S5023, namely the browser extension plug-in monitors request information sent by the current page of the browser and extracts the IP address and the domain name in the request information. And under the condition that the domain name of the current page of the browser does not belong to the domain name set of the test environment, the browser extension plug-in does not monitor request information sent by the current page of the browser.
If the domain name of the current page is in the domain name set of the test environment, the current page is judged to be the page of the test environment, and when the background module monitors that the current page sends request information (such as a user clicks a label, submits a form and the like), the IP address and the domain name in the request information are compared with the host information set of the test environment. If the domain name of the current page is not in the domain name set of the test environment, the current page is judged to be a page of the non-test environment, and when the background module monitors that the request information is sent by the current page, the operation of comparing the IP address with the domain name is not executed.
In this embodiment, whether the current page is the test environment page can be predetermined by determining whether the domain name of the current page belongs to the domain name set for generating the test environment. And under the condition that the current page belongs to the test environment page, the operation of comparing the IP address with the domain name is further executed, so that the workload of comparing the IP address with the domain name can be greatly reduced, and the working efficiency of the browser extension plug-in is improved.
Some embodiments of the browser extension plug-in of the present disclosure are described below in conjunction with FIG. 6.
FIG. 6 illustrates a structural schematic diagram of a browser extension plug-in according to some embodiments of the present disclosure. As shown in fig. 6, the browser extension plug-in 60 in the present embodiment includes:
an information generating unit 601, configured to generate a candidate host information set according to a pre-configured test environment configuration file in response to a user opening a browser; a request monitoring unit 602 configured to monitor request information sent by a current page of a browser, and extract an IP address and a domain name in the request information; an information processing unit 603 configured to add test environment host information matched with the IP address and the domain name in the candidate host information set to the host information set in which the current page is valid; and an information display unit 604 configured to display the validated host information set of the current page to the user in response to the user acquiring the test environment host information of the current page.
In some embodiments, the information generating unit 601 is configured to: reading host information configured for each test environment by a user from a pre-configured test environment configuration file; and generating a candidate host information set by utilizing the host information configured for each test environment by the user.
In some embodiments, the request listening unit 602 is configured to: responding to a browser opened by a user, and generating a testing environment domain name set according to a pre-configured testing environment configuration file; responding to the completion of the loading of the current page of the browser, and judging whether the domain name of the current page of the browser belongs to a domain name set of a test environment or not; and under the condition that the domain name of the current page of the browser belongs to the domain name set of the test environment, monitoring request information sent by the current page of the browser, and extracting an IP address and the domain name in the request information.
In some embodiments, the request listening unit 602 is configured to: and generating a testing environment domain name set by utilizing the domain name in the host information configured for each testing environment by the user read from the pre-configured testing environment configuration file.
In some embodiments, the information display unit 604 is configured to: and displaying relevant information of the undetected test environment to the user under the condition that the valid host information set of the current page is an empty set.
In some embodiments, the information display unit 604 is configured to: extracting test environment names corresponding to each element in a host information set with a current page effective from a pre-configured test environment configuration file; and displaying the valid host information set of the current page and the test environment names corresponding to the elements to the user.
In some embodiments, the information display unit 604 includes a pop-up layer module and a background module; and the popup layer module is configured to respond to the user clicking the browser extension plug-in icon, call the host information set which is stored in the background module of the browser extension plug-in and takes effect of the current page, and display the host information set which takes effect of the current page to the user.
In some embodiments, the request listening unit 602 includes an injection module and a background module; the injection module is configured to: after the current page of the browser is loaded, acquiring the domain name of the current page, and sending the domain name of the current page to a background module of the browser extension plug-in; the back-office module is configured to: and judging whether the domain name of the current page of the browser belongs to the domain name set of the test environment.
Further embodiments of the browser extension plug-in of the present disclosure are described below in conjunction with FIG. 7.
Fig. 7 is a schematic structural diagram of a browser extension plug-in according to further embodiments of the present disclosure. As shown in fig. 7, the browser extension plug-in 70 of this embodiment includes: a memory 710 and a processor 720 coupled to the memory 710, the processor 720 being configured to perform the information processing method of any of the foregoing embodiments based on instructions stored in the memory 710.
Memory 710 may include, for example, system memory, fixed non-volatile storage media, and the like. The system memory stores, for example, an operating system, an application program, a Boot Loader (Boot Loader), and other programs.
The information processing apparatus 70 may further include an input-output interface 730, a network interface 740, a storage interface 750, and the like. These interfaces 730, 740, 750, as well as the memory 710 and the processor 720, may be connected, for example, by a bus 760. The input/output interface 730 provides a connection interface for input/output devices such as a display, a mouse, a keyboard, and a touch screen. The network interface 740 provides a connection interface for various networking devices. The storage interface 750 provides a connection interface for external storage devices such as an SD card and a usb disk.
The present disclosure also includes a computer-readable storage medium having stored thereon computer instructions that, when executed by a processor, implement the information processing method in any of the foregoing embodiments.
The present disclosure is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the disclosure. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The above description is only exemplary of the present disclosure and is not intended to limit the present disclosure, so that any modification, equivalent replacement, or improvement made within the spirit and principle of the present disclosure should be included in the scope of the present disclosure.

Claims (18)

1. An information processing method comprising:
the browser extension plug-in responds to the opening of a browser by a user and generates a candidate host information set according to a pre-configured test environment configuration file;
the method comprises the steps that a browser extension plug-in monitors request information sent by a current page of a browser and extracts an IP address and a domain name in the request information;
the browser extension plug-in adds the test environment host information matched with the IP address and the domain name in the candidate host information set into the host information set with the current page in effect;
and the browser extension plug-in responds to the test environment host information of the current page acquired by the user and displays the host information set of the current page in effect to the user.
2. The information processing method of claim 1, wherein the generating a set of candidate host information from a preconfigured test environment profile comprises:
reading host information configured for each test environment by a user from a pre-configured test environment configuration file;
and generating a candidate host information set by utilizing the host information configured for each test environment by the user.
3. The information processing method according to claim 1, wherein the browser extension plug-in monitors request information sent by a current page of a browser, and extracting an IP address and a domain name in the request information comprises:
the browser extension plug-in responds to the opening of a browser by a user and generates a testing environment domain name set according to a pre-configured testing environment configuration file;
the browser extension plug-in responds to the completion of the loading of the current page of the browser and judges whether the domain name of the current page of the browser belongs to a domain name set of a test environment or not;
and monitoring request information sent by the current page of the browser and extracting an IP address and a domain name in the request information by the browser extension plug-in under the condition of confirming that the domain name of the current page of the browser belongs to the domain name set of the test environment.
4. The information processing method of claim 3, wherein the generating a testing environment domain name set according to a preconfigured testing environment profile comprises:
and generating a testing environment domain name set by utilizing the domain name in the host information configured for each testing environment by the user read from the pre-configured testing environment configuration file.
5. The information processing method of claim 1, wherein the displaying to the user the set of host information for which the current page is in effect comprises:
and displaying relevant information of the undetected test environment to the user under the condition that the valid host information set of the current page is an empty set.
6. The information processing method of claim 1, wherein the displaying to the user the set of host information for which the current page is in effect comprises:
extracting test environment names corresponding to each element in a host information set with a current page effective from a pre-configured test environment configuration file;
and displaying the valid host information set of the current page and the test environment name corresponding to each element to a user.
7. The information processing method according to claim 1, wherein the browser extension plug-in includes a popup layer module and a background module;
the step of responding to the test environment host information of the current page acquired by the user and displaying the active host information set of the current page to the user comprises the following steps: and responding to the user clicking the browser extension plug-in icon, calling the host information set with the current page in effect stored in the background module of the browser extension plug-in by the pop-up layer module, and displaying the host information set with the current page in effect to the user.
8. The information processing method according to claim 3, wherein the browser extension plug-in includes an injection module and a background module;
the step of judging whether the domain name of the current page of the browser belongs to the domain name set of the test environment in response to the completion of the loading of the current page of the browser comprises the following steps: after the current page of the browser is loaded, acquiring the domain name of the current page through an injection module, and sending the domain name of the current page to a background module of the browser extension plug-in; and judging whether the domain name of the current page of the browser belongs to the domain name set of the test environment through a background module.
9. A browser extension plug-in, comprising:
the information generating unit is configured to respond to the opening of a browser by a user and generate a candidate host information set according to a pre-configured test environment configuration file;
the request monitoring unit is configured to monitor request information sent by a current page of a browser and extract an IP address and a domain name in the request information;
the information processing unit is configured to add the test environment host information matched with the IP address and the domain name in the candidate host information set into a host information set with a current page effective;
and the information display unit is configured to respond to the test environment host information of the current page acquired by the user and display the active host information set of the current page to the user.
10. The browser extension plug-in of claim 9, wherein the information generating unit is configured to:
reading host information configured for each test environment by a user from a pre-configured test environment configuration file;
and generating a candidate host information set by utilizing the host information configured for each test environment by the user.
11. The browser extension plug-in of claim 9, wherein the request listening unit is configured to:
responding to a browser opened by a user, and generating a testing environment domain name set according to a pre-configured testing environment configuration file;
responding to the completion of the loading of the current page of the browser, and judging whether the domain name of the current page of the browser belongs to a domain name set of a test environment or not;
and monitoring request information sent by the current page of the browser under the condition of confirming that the domain name of the current page of the browser belongs to a domain name set of a test environment, and extracting an IP address and a domain name in the request information.
12. The browser extension plug-in of claim 11, wherein the request listening unit is configured to:
and generating a testing environment domain name set by utilizing the domain name in the host information configured for each testing environment by the user read from the pre-configured testing environment configuration file.
13. The browser extension plug-in of claim 9, wherein the information display unit is configured to:
and displaying relevant information of the undetected test environment to the user under the condition that the valid host information set of the current page is an empty set.
14. The browser extension plug-in of claim 9, wherein the information display unit is configured to:
extracting test environment names corresponding to each element in a host information set with a current page effective from a pre-configured test environment configuration file;
and displaying the valid host information set of the current page and the test environment name corresponding to each element to a user.
15. The browser extension plug-in of claim 9, wherein the information display unit comprises a popup layer module and a background module;
the popup layer module is configured to respond to a user clicking a browser extension plug-in icon, call a host information set, stored in a background module of the browser extension plug-in, of a current page in effect, and display the host information set of the current page in effect to the user.
16. The browser extension plug-in of claim 11, wherein the request listening unit comprises an injection module and a background module;
the injection module is configured to: after the current page of the browser is loaded, acquiring the domain name of the current page, and sending the domain name of the current page to a background module of the browser extension plug-in;
the back-office module is configured to: and judging whether the domain name of the current page of the browser belongs to the domain name set of the test environment.
17. A browser extension plug-in, comprising:
a memory; and
a processor coupled to the memory, the processor configured to execute the information processing method of any one of claims 1 to 8 based on instructions stored in the memory.
18. A computer-readable storage medium, wherein the computer-readable storage medium stores computer instructions which, when executed by a processor, implement the information processing method according to any one of claims 1 to 8.
CN202010598763.6A 2020-06-28 2020-06-28 Information processing method, apparatus and computer readable storage medium Active CN113765731B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010598763.6A CN113765731B (en) 2020-06-28 2020-06-28 Information processing method, apparatus and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010598763.6A CN113765731B (en) 2020-06-28 2020-06-28 Information processing method, apparatus and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN113765731A true CN113765731A (en) 2021-12-07
CN113765731B CN113765731B (en) 2023-09-05

Family

ID=78785444

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010598763.6A Active CN113765731B (en) 2020-06-28 2020-06-28 Information processing method, apparatus and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN113765731B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118041824A (en) * 2024-04-12 2024-05-14 杭州优云科技股份有限公司 Method and device for testing bypass mirror function, electronic equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101483648A (en) * 2009-02-20 2009-07-15 杭州华三通信技术有限公司 Method, system, apparatus and DNS server for DNS buffer probe
CN103973506A (en) * 2013-01-30 2014-08-06 腾讯科技(深圳)有限公司 Domain name verifying method, device and system
CN106209486A (en) * 2015-05-06 2016-12-07 阿里巴巴集团控股有限公司 Detection method, browser, service end and the system that domain name mapping comes into force
CN107632990A (en) * 2016-07-19 2018-01-26 北京京东尚科信息技术有限公司 The methods of exhibiting and device of a kind of information

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101483648A (en) * 2009-02-20 2009-07-15 杭州华三通信技术有限公司 Method, system, apparatus and DNS server for DNS buffer probe
CN103973506A (en) * 2013-01-30 2014-08-06 腾讯科技(深圳)有限公司 Domain name verifying method, device and system
CN106209486A (en) * 2015-05-06 2016-12-07 阿里巴巴集团控股有限公司 Detection method, browser, service end and the system that domain name mapping comes into force
CN107632990A (en) * 2016-07-19 2018-01-26 北京京东尚科信息技术有限公司 The methods of exhibiting and device of a kind of information

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118041824A (en) * 2024-04-12 2024-05-14 杭州优云科技股份有限公司 Method and device for testing bypass mirror function, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN113765731B (en) 2023-09-05

Similar Documents

Publication Publication Date Title
US9026583B2 (en) Method and apparatus for polymorphic serialization
US8645760B2 (en) Alternate procedures assisting computer users in solving problems related to error and informational messages
US20110258609A1 (en) Method and system for software defect reporting
CN103984626B (en) A kind of method and device for generating test case script
US10084637B2 (en) Automatic task tracking
US11741002B2 (en) Test automation systems and methods using logical identifiers
WO2018184361A1 (en) Application test method, server, terminal, and storage media
US9529691B2 (en) Monitoring and correlating a binary process in a distributed business transaction
EP3848824A1 (en) Landing page processing method, apparatus, device and medium
CN113051514B (en) Element positioning method and device, electronic equipment and storage medium
US20200293592A1 (en) Methods and systems for browser extension used to generate relative xpath, absolute xpath and/or css selectors
CN114564203A (en) Service operation method and device, electronic equipment and readable medium
CN115454400A (en) Interface parameter processing method, device, equipment, medium and program product
CN106649531A (en) Webpage detection method and device
CN114995859A (en) Page hot updating method, device, equipment and storage medium
CN111431767A (en) Multi-browser resource synchronization method and device, computer equipment and storage medium
CN113765731B (en) Information processing method, apparatus and computer readable storage medium
US20080154574A1 (en) Application emulation on a non-production computer system
CN110362341A (en) Business management method, device, equipment and storage medium based on micro services framework
CN110838929A (en) System error checking method and system error checking device
CN115481025A (en) Script recording method and device for automatic test, computer equipment and medium
CN111459793B (en) Full life cycle software automatic test method and device
CN114462030A (en) Privacy policy processing and evidence obtaining method, device, equipment and storage medium
CN111488230A (en) Method and device for modifying log output level, electronic equipment and storage medium
US12079298B2 (en) Methods and systems for browser extension used to generate relative XPath, absolute XPath and/or CSS selectors

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