CN115065627A - Parameter modification method and device, electronic equipment and storage medium - Google Patents

Parameter modification method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN115065627A
CN115065627A CN202210555650.7A CN202210555650A CN115065627A CN 115065627 A CN115065627 A CN 115065627A CN 202210555650 A CN202210555650 A CN 202210555650A CN 115065627 A CN115065627 A CN 115065627A
Authority
CN
China
Prior art keywords
parameter
target
modified
default
network request
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
CN202210555650.7A
Other languages
Chinese (zh)
Other versions
CN115065627B (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 QIYI Century Science and Technology Co Ltd
Original Assignee
Beijing QIYI Century Science and 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 QIYI Century Science and Technology Co Ltd filed Critical Beijing QIYI Century Science and Technology Co Ltd
Priority to CN202210555650.7A priority Critical patent/CN115065627B/en
Publication of CN115065627A publication Critical patent/CN115065627A/en
Application granted granted Critical
Publication of CN115065627B publication Critical patent/CN115065627B/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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0813Configuration setting characterised by the conditions triggering a change of settings

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer And Data Communications (AREA)
  • Stored Programmes (AREA)

Abstract

The embodiment of the invention provides a parameter modification method, a parameter modification device, electronic equipment and a storage medium, wherein the method comprises the following steps: acquiring a parameter to be modified and a target parameter corresponding to the parameter to be modified in a parameter editing page of a target application; replacing a default method for initiating a network request in the target application with a target method, wherein both the default method and the target method are used for initiating the network request; if the default parameter in the target method comprises the parameter to be modified, searching the position of the default parameter corresponding to the parameter to be modified in the target method; and replacing the default parameters at the position with the target parameters, and calling the target method subjected to parameter replacement to initiate a network request so as to connect to the environment corresponding to the target parameters. This allows for dynamic modification of relevant parameters in the network request, which may be linked to the corresponding environment.

Description

Parameter modification method and device, electronic equipment and storage medium
Technical Field
The present invention relates to the field of data processing technologies, and in particular, to a parameter modification method and apparatus, an electronic device, and a storage medium.
Background
When a business function is developed and accepted, the development and acceptance of the business function are usually performed in a test environment, but not in an online environment, so that the development and acceptance of the business function both require connection of the test environment, but for non-developers, the connection of the test environment is time-consuming, and therefore, some methods or tools are required to reduce the time loss caused by the connection of the test environment.
In the related art, Charles packet capturing tool is usually used to modify the related parameters in the network request, so as to connect the test environment. However, the Charles bale plucking tool is used to connect the test environment, on one hand, the charging of the Charles bale plucking tool increases financial expenses, on the other hand, the Charles bale plucking tool has certain learning cost, and non-developers need to spend certain time to learn the Charles bale plucking tool.
Disclosure of Invention
In order to solve the technical problems that the Charles bale plucking tool charges to increase financial expenses and the Charles bale plucking tool has certain learning cost and non-developers need to spend certain time to learn the Charles bale plucking tool on one hand when the Charles bale plucking tool is used for connecting a test environment, the embodiment of the invention provides a parameter modification method, a parameter modification device, electronic equipment and a storage medium. The specific technical scheme is as follows:
in a first aspect of the embodiments of the present invention, a parameter modification method is provided first, where the method includes:
acquiring a parameter to be modified and a target parameter corresponding to the parameter to be modified in a parameter editing page of a target application;
replacing a default method for initiating a network request in the target application with a target method, wherein both the default method and the target method are used for initiating the network request;
if the default parameter in the target method comprises the parameter to be modified, searching the position of the default parameter corresponding to the parameter to be modified in the target method;
and replacing the default parameters at the position with the target parameters, and calling the target method subjected to parameter replacement to initiate a network request to connect to the environment corresponding to the target parameters.
In an optional embodiment, an edit button is included in the current page of the target application;
the method for acquiring the parameters to be modified and the target parameters corresponding to the parameters to be modified in the parameter editing page of the target application comprises the following steps:
under the condition that the preset operation trigger of the user for the editing button is monitored, jumping from the current page to a parameter editing page;
and acquiring a parameter to be modified and a target parameter corresponding to the parameter to be modified in the parameter editing page.
In an optional embodiment, the parameter editing page includes a save button, and the method further includes:
under the condition that the preset operation trigger of the user for the storage button is monitored, storing the parameter to be modified and the target parameter;
jumping to the current page from the parameter editing page, and displaying the parameter to be modified and the target parameter in the current page.
In an optional embodiment, before performing the replacing of the default method of initiating the network request in the target application with the target method, the method further comprises:
monitoring whether the preset operation of the user for the parameter to be modified and the target parameter is triggered or not in the current page;
and under the condition that the preset operation trigger of the user for the parameter to be modified and the target parameter is monitored, the step of replacing the default method for initiating the network request in the target application with the target method is executed.
In an optional embodiment, in the case that the preset operation trigger of the user for the parameter to be modified and the target parameter is monitored, the step of replacing the default method for initiating the network request in the target application with the target method is executed, and includes:
under the condition that the preset operation trigger of the user for the parameter to be modified and the target parameter is monitored, whether the initiation opportunity of the network request is reached is monitored;
and if the initiation opportunity of the network request arrives, executing the step of replacing the default method for initiating the network request in the target application with the target method.
In an optional embodiment, the method further comprises:
calling the default method to initiate a default network request under the condition that the preset operation trigger of the user for the parameter to be modified and the target parameter is not monitored;
requesting a connection to a corresponding default context through the default network.
In an optional embodiment, the method further comprises:
and if the default parameters in the target method do not contain the parameters to be modified, triggering an alarm that the modification of the related parameters in the network request fails.
In a second aspect of the embodiments of the present invention, there is also provided a parameter modification apparatus, including:
the parameter acquiring module is used for acquiring a parameter to be modified and a target parameter corresponding to the parameter to be modified in a parameter editing page of a target application;
a method switching module, configured to replace a default method for initiating a network request in the target application with a target method, where both the default method and the target method are used for initiating a network request;
a location searching module, configured to search, if a default parameter in the target method includes the parameter to be modified, a location of the default parameter corresponding to the parameter to be modified in the target method;
and the parameter replacing module is used for replacing the default parameters at the position with the target parameters, calling the target method subjected to parameter replacement to initiate a network request so as to be connected to the environment corresponding to the target parameters.
In a third aspect of the embodiments of the present invention, there is further provided an electronic device, including a processor, a communication interface, a memory, and a communication bus, where the processor, the communication interface, and the memory complete communication with each other through the communication bus;
a memory for storing a computer program;
a processor, configured to implement the parameter modification method according to any one of the first aspect described above when executing a program stored in a memory.
In a fourth aspect of the embodiments of the present invention, there is also provided a storage medium, in which instructions are stored, and when the instructions are executed on a computer, the instructions cause the computer to execute the parameter modification method according to any one of the first aspect.
In a fifth aspect of the embodiments of the present invention, there is also provided a computer program product containing instructions which, when run on a computer, cause the computer to perform any of the above-described parameter modification methods.
According to the technical scheme provided by the embodiment of the invention, the parameter to be modified and the target parameter corresponding to the parameter to be modified are obtained in the parameter editing page of the target application, the default method for initiating the network request in the target application is replaced by the target method, wherein both the default method and the target method are used for initiating the network request, if the default parameter in the target method contains the parameter to be modified, the position of the default parameter corresponding to the parameter to be modified in the target method is searched, the default parameter at the position is replaced by the target parameter, and the target method after parameter replacement is called to initiate the network request so as to be connected to the environment corresponding to the target parameter. By providing the target application, acquiring the parameter to be modified and the target parameter corresponding to the parameter to be modified in a parameter editing page of the target application, replacing a default method for initiating the network request in the target application with the target method, replacing the default parameter corresponding to the parameter to be modified in the target method with the target parameter, calling the target method subjected to parameter replacement to initiate the network request so as to be connected to the environment corresponding to the target parameter, and dynamically modifying the related parameter in the network request so as to be connected to the corresponding environment.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.
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, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without inventive exercise.
Fig. 1 is a schematic flow chart illustrating an implementation of a parameter modification method according to an embodiment of the present invention;
fig. 2 is a schematic diagram illustrating an embodiment of obtaining a domain name host of an original online environment and a domain name host of a test environment;
fig. 3 is a schematic diagram illustrating a domain name host of an original online environment and a domain name host of a test environment according to an embodiment of the present invention;
fig. 4 is a schematic diagram illustrating selection of a domain name host of an original online environment and a domain name host of a test environment in an embodiment of the present invention;
FIG. 5 is a schematic structural diagram of a parameter modification apparatus according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of an electronic device shown in the embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be obtained by a person skilled in the art without any inventive step based on the embodiments of the present invention, are within the scope of the present invention.
As shown in fig. 1, an implementation flow diagram of a parameter modification method provided in an embodiment of the present invention is shown, where the method is applied to an electronic device, and specifically includes the following steps:
s101, acquiring a parameter to be modified and a target parameter corresponding to the parameter to be modified in a parameter editing page of a target application.
In the embodiment of the invention, the iOS application written by the Objective-C language is provided, and the purpose of dynamically modifying the relevant parameters in the network request can be realized through the iOS application written by the Objective-C language. Specifically, in a parameter editing page of the target application, that is, in a parameter editing page of the iOS application written in Objective-C language, a user may input a parameter to be modified and a target parameter corresponding to the parameter to be modified, and thus, the embodiment of the present invention may obtain the parameter to be modified and the target parameter corresponding to the parameter to be modified, which are input by the user.
For example, in a parameter editing page of an iOS application written in Objective-C language, a user may input a domain name host of an original online environment and a domain name host of a test environment, and thus, the embodiment of the present invention may obtain the domain name host of the original online environment and the domain name host of the test environment, which are input by the user. The domain name host of the original online environment and the domain name host of the test environment may be as shown in table 1 below.
Domain name host of original online environment Domain name host of test environment
Iface.iqiyi.com 10.130.138.152
Iface2.iqiyi.com 111.206.13.99
…… ……
TABLE 1
Wherein, Apple provides related API to dynamically realize method replacement in Objective-C language, and the bottom layer of the API is the realization of replacing the original function by using the dynamic property of Objective-C language in operation. Therefore, by means of the dynamic property of the Objective-C language, the API is called to dynamically replace the method A which is executed in the iOS application written by the Objective-C language and used for initiating the network request with the method B, and the method A and the method B are both used for initiating the network request. With this feature, an edit portal can be provided in the iOS application written in the Objective-C language, in which a user can edit relevant parameters of a network request, such as modifying information such as a domain name, to connect to a test environment.
The current page of the iOS application written in the Objective-C language therefore includes an edit button, i.e. the above-mentioned edit entry. In the embodiment of the invention, whether the preset operation of the user for the editing button is triggered can be monitored, the current page jumps to the parameter editing page under the condition that the preset operation of the user for the editing button is triggered is monitored, and the parameter to be modified and the target parameter corresponding to the parameter to be modified can be input by the user in the parameter editing page.
For example, as shown in fig. 2, a current page of the iOS application written in the Objective-C language includes an edit button, where the edit button is the edit entry, and the embodiment of the present invention may monitor whether a click operation of a user on the edit button is triggered, and jump from the current page to the parameter edit page when the click operation of the user on the edit button is triggered.
In addition, in the embodiment of the present invention, the parameter editing page of the iOS application written in the Objective-C language includes the save button, so that the user can save the parameter to be modified and the target parameter corresponding to the parameter to be modified after inputting the parameter to be modified and the target parameter corresponding to the parameter to be modified, so as to monitor whether the preset operation of the user for the save button is triggered, and save the parameter to be modified and the target parameter under the condition that the preset operation of the user for the save button is triggered, and jump from the parameter editing page to the current page, and display the parameter to be modified and the target parameter in the current page.
For example, a parameter editing page of an iOS application written in Objective-C language includes a save button, so that a user can save after inputting a domain name host of an original online environment and a domain name host of a test environment, and thus, in the embodiment of the present invention, whether a click operation of the user for the save button is triggered is monitored, and in a case where the click operation of the user for the save button is triggered, the domain name host of the original online environment and the domain name host of the test environment are saved, the parameter editing page jumps to a current page, and the domain name host of the original online environment and the domain name host of the test environment are displayed in the current page, as shown in fig. 3.
The preset operation may be, for example, a click operation, for example, a tap operation, for example, a medium press operation, for example, a heavy press operation, which is not limited in this embodiment of the present invention. In addition, for the network request, a plurality of fields are generally included, each field corresponds to one parameter, and the parameter to be modified and the target parameter may correspond to a certain field in the network request.
S102, replacing a default method for initiating the network request in the target application with a target method, wherein the default method and the target method are both used for initiating the network request.
In the embodiment of the invention, because the Objective-C language has dynamic property, the method a for initiating the network request executed in the iOS application written by the Objective-C language can be dynamically replaced by the method B by utilizing the dynamic property, so that the target method can be replaced by the default method for initiating the network request in the iOS application written by the Objective-C language, wherein the default method and the target method are both used for initiating the network request.
For example, the iOS application written in the Objective-C language includes a method a and a method B for initiating a network request, and both the method a and the method B can initiate the network request in terms of functional implementation, but the difference is that the method a is used for initiating the network request to connect to the online environment, and the method B is used for initiating the network request to connect to the test environment, so the method a for initiating the network request is replaced by the method B in the iOS application written in the Objective-C language.
Before replacing the default method for initiating the network request in the target application (namely the iOS application written by the Objective-C language) with the target method, monitoring whether the preset operation of the user for the parameter to be modified and the target parameter is triggered or not in the current page of the iOS application written by the Objective-C language, and executing the step of replacing the default method for initiating the network request in the target application with the target method under the condition that the preset operation of the user for the parameter to be modified and the target parameter is triggered.
For example, in the current page of the iOS application written in Objective-C language, whether the click operation of the user on the domain name host of the original online environment and the domain name host of the test environment is triggered is monitored, and in the case that the click operation of the user on the domain name host of the original online environment and the domain name host of the test environment is triggered, the domain name host of the original online environment and the domain name host of the test environment are selected, the row where the domain name host of the original online environment and the domain name host of the test environment are located has a check value, as shown in fig. 4, it is described that the relevant domain name in the network request is modified according to the domain name host of the original online environment and the domain name host of the test environment, and at this time, the method a of initiating the network request may be replaced by the method B in the iOS application written in Objective-C language.
It should be noted that, in the embodiment of the present invention, only the relevant parameters in the network request are modified, and the initiation timing of the network request is not changed, so that under the condition that the preset operation trigger of the user for the parameters to be modified and the target parameters is monitored, whether the initiation timing of the network request arrives is monitored, and if the initiation timing of the network request arrives, the step of replacing the default method for initiating the network request in the target application with the target method is executed.
For example, under the condition that the click operation trigger of the user for the domain name host of the original online environment and the domain name host of the test environment is monitored, whether the initiation timing of the network request arrives is monitored, and if the initiation timing of the network request arrives, the method A for initiating the network request can be replaced by the method B in the iOS application written by the Objective-C language, and the method B is called to initiate the network request.
It should be noted that, for the iOS application written in the Objective-C language, some resources, such as video resources, are displayed on the iOS application, and when a user clicks a certain video resource, a network request needs to be initiated at this time, that is, it is considered that the initiation timing of the network request arrives, and certainly, the initiation timing of the network request may also arrive under other conditions, which is not limited in the embodiment of the present invention.
In addition, in a period of time, under the condition that the preset operation trigger of the user for the parameters to be modified and the target parameters is not monitored, it indicates that the user does not intend to modify the relevant parameters in the network request, at this time, a default method for initiating the network request in the iOS application written by the Objective-C language can be called, and the default network request is initiated, so that the user can be connected to the corresponding default environment through the default network request.
For example, when the click operation trigger of the user for the domain name host of the original online environment and the domain name host of the test environment is not monitored, it indicates that the user does not intend to modify the related domain name in the network request, and at this time, the method a for initiating the network request in the iOS application written in the Objective-C language may be invoked to initiate the default network request, so that the user may connect to the corresponding online environment through the default network request.
S103, if the default parameter in the target method comprises the parameter to be modified, searching the position of the default parameter corresponding to the parameter to be modified in the target method.
In the embodiment of the invention, for the target method, whether the default parameter in the target method contains the parameter to be modified is checked, if the default parameter in the target method contains the parameter to be modified, the default parameter which is consistent with the parameter to be modified exists in the default parameter, and at this time, the position of the default parameter corresponding to the parameter to be modified in the target method is searched.
For example, in the embodiment of the present invention, for the target method, it is checked whether the default parameter in the target method includes the domain name host of the original online environment, and if the default parameter in the target method includes the domain name host of the original online environment, the position of the default parameter corresponding to the domain name host of the original online environment in the target method is searched, where the default parameter is consistent with the domain name host of the original online environment.
In addition, if the default parameter in the target method does not contain the parameter to be modified, which indicates that the parameter to be modified may be entered incorrectly, an alarm that the modification of the relevant parameter in the network request fails may be triggered, and then the user may be reminded to edit the parameter to be modified again.
S104, replacing the default parameters at the position with the target parameters, calling the target method subjected to parameter replacement to initiate a network request so as to connect to the environment corresponding to the target parameters.
In the embodiment of the invention, the position of the default parameter corresponding to the parameter to be modified in the target method is searched, so that the default parameter at the position can be replaced by the target parameter, and the target method after parameter replacement is called to initiate a network request so as to be connected to the environment corresponding to the target parameter.
The target method which is replaced by the parameters is called to initiate the network request, the related parameters in the network request are modified completely, the purpose of dynamically modifying the related parameters in the network request is achieved, and therefore the network request can be connected to the environment corresponding to the target parameters.
For example, the location of the default parameter corresponding to the domain name host of the original online environment in method B is searched, so that the default parameter at the location is replaced by the domain name host of the test environment, and method B subjected to parameter replacement is called to initiate a network request to connect to the test environment.
The method B which is replaced by the parameters is called to initiate the network request, and the related parameters in the network request are modified completely, so that the purpose of dynamically modifying the related parameters in the network request is achieved, and the network request can be connected to the corresponding test environment.
Through the above description of the technical solution provided by the embodiment of the present invention, in a parameter editing page of a target application, a parameter to be modified and a target parameter corresponding to the parameter to be modified are obtained, and a default method for initiating a network request in the target application is replaced by a target method, where both the default method and the target method are used to initiate a network request, and if the default parameter in the target method includes the parameter to be modified, a position of the default parameter corresponding to the parameter to be modified in the target method is searched, the default parameter at the position is replaced by the target parameter, and the target method subjected to parameter replacement is called to initiate a network request to connect to an environment corresponding to the target parameter.
By providing the target application, acquiring the parameter to be modified and the target parameter corresponding to the parameter to be modified in a parameter editing page of the target application, replacing a default method for initiating the network request in the target application with the target method, replacing the default parameter corresponding to the parameter to be modified in the target method with the target parameter, calling the target method subjected to parameter replacement to initiate the network request so as to be connected to the environment corresponding to the target parameter, and dynamically modifying the related parameter in the network request so as to be connected to the corresponding environment.
Corresponding to the above method embodiment, an embodiment of the present invention further provides a parameter modification apparatus, as shown in fig. 5, the apparatus may include: a parameter obtaining module 510, a method switching module 520, a location searching module 530, and a parameter replacing module 540.
A parameter obtaining module 510, configured to obtain a parameter to be modified and a target parameter corresponding to the parameter to be modified in a parameter editing page of a target application;
a method switching module 520, configured to replace a default method for initiating a network request in the target application with a target method, where both the default method and the target method are used for initiating a network request;
a location searching module 530, configured to search, if the default parameter in the target method includes the parameter to be modified, a location of the default parameter in the target method corresponding to the parameter to be modified;
a parameter replacing module 540, configured to replace the default parameter at the location with the target parameter, and invoke the target method subjected to parameter replacement to initiate a network request to connect to an environment corresponding to the target parameter.
An embodiment of the present invention further provides an electronic device, as shown in fig. 6, including a processor 61, a communication interface 62, a memory 63, and a communication bus 64, where the processor 61, the communication interface 62, and the memory 63 complete mutual communication through the communication bus 64,
a memory 63 for storing a computer program;
the processor 61 is configured to implement the following steps when executing the program stored in the memory 63:
acquiring a parameter to be modified and a target parameter corresponding to the parameter to be modified in a parameter editing page of a target application; replacing a default method for initiating a network request in the target application with a target method, wherein both the default method and the target method are used for initiating the network request; if the default parameters in the target method comprise the parameters to be modified, searching the positions of the default parameters corresponding to the parameters to be modified in the target method; and replacing the default parameters at the position with the target parameters, and calling the target method subjected to parameter replacement to initiate a network request so as to connect to the environment corresponding to the target parameters.
The communication bus mentioned in the electronic device may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.
The communication interface is used for communication between the electronic equipment and other equipment.
The Memory may include a Random Access Memory (RAM) or a non-volatile Memory (non-volatile Memory), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like; the Integrated Circuit may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, a discrete Gate or transistor logic device, or a discrete hardware component.
In yet another embodiment of the present invention, a storage medium is further provided, which stores instructions that, when executed on a computer, cause the computer to perform the parameter modification method described in any of the above embodiments.
In a further embodiment of the present invention, there is also provided a computer program product containing instructions which, when run on a computer, cause the computer to perform the parameter modification method as described in any of the above embodiments.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the invention to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored on a storage medium or transmitted from one storage medium to another, for example, from one website, computer, server, or data center to another website, computer, server, or data center via wire (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The storage medium may be any available medium that can be accessed by a computer or a data storage device including one or more available media integrated servers, data centers, and the like. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in the process, method, article, or apparatus that comprises the element.
All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, as for the system embodiment, since it is substantially similar to the method embodiment, the description is relatively simple, and reference may be made to the partial description of the method embodiment for relevant points.
The above description is only for the preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention shall fall within the protection scope of the present invention.

Claims (10)

1. A method of parameter modification, the method comprising:
acquiring a parameter to be modified and a target parameter corresponding to the parameter to be modified in a parameter editing page of a target application;
replacing a default method for initiating a network request in the target application with a target method, wherein both the default method and the target method are used for initiating the network request;
if the default parameter in the target method comprises the parameter to be modified, searching the position of the default parameter corresponding to the parameter to be modified in the target method;
and replacing the default parameters at the position with the target parameters, and calling the target method subjected to parameter replacement to initiate a network request to connect to the environment corresponding to the target parameters.
2. The method of claim 1, wherein an edit button is included in a current page of the target application;
the method for acquiring the parameters to be modified and the target parameters corresponding to the parameters to be modified in the parameter editing page of the target application comprises the following steps:
under the condition that the preset operation trigger of the user for the editing button is monitored, jumping from the current page to a parameter editing page;
and acquiring a parameter to be modified and a target parameter corresponding to the parameter to be modified in the parameter editing page.
3. The method of claim 2, wherein the parameter editing page includes a save button therein, the method further comprising:
under the condition that the preset operation trigger of the user for the storage button is monitored, storing the parameter to be modified and the target parameter;
and jumping to the current page from the parameter editing page, and displaying the parameter to be modified and the target parameter in the current page.
4. The method of claim 3, wherein prior to performing the replacing of the default method of initiating the network request in the target application with the target method, the method further comprises:
monitoring whether the preset operation of the user for the parameter to be modified and the target parameter is triggered or not in the current page;
and under the condition that the preset operation trigger of the user for the parameter to be modified and the target parameter is monitored, replacing the default method for initiating the network request in the target application with the target method.
5. The method according to claim 4, wherein the step of replacing the default method of initiating the network request in the target application with the target method is performed when the preset operation trigger of the user for the parameter to be modified and the target parameter is monitored, and includes:
under the condition that the preset operation trigger of the user for the parameter to be modified and the target parameter is monitored, whether the initiation opportunity of the network request is reached is monitored;
and if the initiation opportunity of the network request arrives, executing the step of replacing the default method for initiating the network request in the target application with the target method.
6. The method of claim 4, further comprising:
calling the default method to initiate a default network request under the condition that the preset operation trigger of the user for the parameter to be modified and the target parameter is not monitored;
requesting a connection to a corresponding default context through the default network.
7. The method of claim 1, further comprising:
and if the default parameters in the target method do not contain the parameters to be modified, triggering an alarm that the modification of the related parameters in the network request fails.
8. A parameter modification apparatus, characterized in that the apparatus comprises:
the parameter acquiring module is used for acquiring a parameter to be modified and a target parameter corresponding to the parameter to be modified in a parameter editing page of a target application;
a method switching module, configured to replace a default method for initiating a network request in the target application with a target method, where both the default method and the target method are used for initiating a network request;
a position searching module, configured to search, if a default parameter in the target method includes the parameter to be modified, a position of the default parameter in the target method, where the default parameter corresponds to the parameter to be modified;
and the parameter replacement module is used for replacing the default parameters at the positions with the target parameters, calling the target method subjected to parameter replacement to initiate a network request so as to connect to the environment corresponding to the target parameters.
9. The electronic equipment is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor and the communication interface are used for realizing the communication between the processor and the memory through the communication bus;
a memory for storing a computer program;
a processor for implementing the method steps of any one of claims 1 to 7 when executing a program stored in the memory.
10. A storage medium on which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1 to 7.
CN202210555650.7A 2022-05-20 2022-05-20 Parameter modification method and device, electronic equipment and storage medium Active CN115065627B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210555650.7A CN115065627B (en) 2022-05-20 2022-05-20 Parameter modification method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210555650.7A CN115065627B (en) 2022-05-20 2022-05-20 Parameter modification method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN115065627A true CN115065627A (en) 2022-09-16
CN115065627B CN115065627B (en) 2024-04-12

Family

ID=83198118

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210555650.7A Active CN115065627B (en) 2022-05-20 2022-05-20 Parameter modification method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115065627B (en)

Citations (24)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020065911A1 (en) * 2000-10-03 2002-05-30 Von Klopp Ana H. HTTP transaction monitor with edit and replay capacity
CN105099816A (en) * 2015-07-02 2015-11-25 北京航空航天大学 Universal comprehensive detection device and method for aviation mission electronic systems
CN106664223A (en) * 2015-06-18 2017-05-10 华为技术有限公司 Detection method and detection device for the number of shared access hosts
CN109460279A (en) * 2018-12-14 2019-03-12 平安城市建设科技(深圳)有限公司 Forms pages development approach, device, equipment and storage medium based on small routine
CN109683915A (en) * 2018-12-03 2019-04-26 深圳市广和通无线股份有限公司 Parameter amending method, device, computer equipment and storage medium
US20190260663A1 (en) * 2018-02-17 2019-08-22 Fortinet, Inc. Deriving test profiles based on security and network telemetry information extracted from the target network environment
CN110399135A (en) * 2018-06-05 2019-11-01 腾讯科技(深圳)有限公司 A kind of method and device for installing application program
CN110688600A (en) * 2019-09-09 2020-01-14 平安普惠企业管理有限公司 Online editing method, device and equipment based on HTML (Hypertext markup language) page and storage medium
CN110830305A (en) * 2019-11-14 2020-02-21 深圳绿米联创科技有限公司 Method and device for accessing wireless device to WIFI network, electronic device and storage medium
CN110858173A (en) * 2018-08-23 2020-03-03 北京搜狗科技发展有限公司 Data processing method and device and data processing device
CN110875858A (en) * 2018-08-31 2020-03-10 北京京东尚科信息技术有限公司 Application test data capturing method, system, equipment and storage medium
US20200159591A1 (en) * 2018-11-16 2020-05-21 International Business Machines Corporation Application program interface based service lookup in a service architecture
WO2020119434A1 (en) * 2018-12-15 2020-06-18 深圳壹账通智能科技有限公司 Method and apparatus for interface data processing, method and apparatus for automated testing, device, and medium
US20200319855A1 (en) * 2019-04-02 2020-10-08 Mz Ip Holdings, Llc Parameter modification of virtual entities for client applications
WO2020236699A1 (en) * 2019-05-20 2020-11-26 Citrix Systems, Inc. Network traffic steering with programmatically generated proxy auto-configuration files
WO2020253389A1 (en) * 2019-06-19 2020-12-24 深圳壹账通智能科技有限公司 Page translation method and apparatus, medium, and electronic device
CN112187570A (en) * 2020-09-15 2021-01-05 中信银行股份有限公司 Risk detection method and device, electronic equipment and readable storage medium
CN112612546A (en) * 2020-12-24 2021-04-06 广州虎牙科技有限公司 Page loading method and device, electronic equipment and storage medium
CN112910722A (en) * 2019-12-04 2021-06-04 北京达佳互联信息技术有限公司 Network request testing method, device, terminal and storage medium
CN113312036A (en) * 2021-06-15 2021-08-27 曙光信息产业(北京)有限公司 Large-screen display method, device and equipment of Web page and storage medium
CN113704590A (en) * 2021-09-06 2021-11-26 挂号网(杭州)科技有限公司 Webpage data acquisition method and device, electronic equipment and storage medium
CN113992507A (en) * 2021-10-11 2022-01-28 新华三信息安全技术有限公司 Method, device, server and storage medium for determining default parameter value
CN114268542A (en) * 2021-12-21 2022-04-01 奇安信科技集团股份有限公司 Network card information modification method and device, storage medium and computer equipment
CN114357574A (en) * 2021-12-20 2022-04-15 万翼科技有限公司 Component editing method, device, equipment and storage medium based on parameterized drive

Patent Citations (24)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020065911A1 (en) * 2000-10-03 2002-05-30 Von Klopp Ana H. HTTP transaction monitor with edit and replay capacity
CN106664223A (en) * 2015-06-18 2017-05-10 华为技术有限公司 Detection method and detection device for the number of shared access hosts
CN105099816A (en) * 2015-07-02 2015-11-25 北京航空航天大学 Universal comprehensive detection device and method for aviation mission electronic systems
US20190260663A1 (en) * 2018-02-17 2019-08-22 Fortinet, Inc. Deriving test profiles based on security and network telemetry information extracted from the target network environment
CN110399135A (en) * 2018-06-05 2019-11-01 腾讯科技(深圳)有限公司 A kind of method and device for installing application program
CN110858173A (en) * 2018-08-23 2020-03-03 北京搜狗科技发展有限公司 Data processing method and device and data processing device
CN110875858A (en) * 2018-08-31 2020-03-10 北京京东尚科信息技术有限公司 Application test data capturing method, system, equipment and storage medium
US20200159591A1 (en) * 2018-11-16 2020-05-21 International Business Machines Corporation Application program interface based service lookup in a service architecture
CN109683915A (en) * 2018-12-03 2019-04-26 深圳市广和通无线股份有限公司 Parameter amending method, device, computer equipment and storage medium
CN109460279A (en) * 2018-12-14 2019-03-12 平安城市建设科技(深圳)有限公司 Forms pages development approach, device, equipment and storage medium based on small routine
WO2020119434A1 (en) * 2018-12-15 2020-06-18 深圳壹账通智能科技有限公司 Method and apparatus for interface data processing, method and apparatus for automated testing, device, and medium
US20200319855A1 (en) * 2019-04-02 2020-10-08 Mz Ip Holdings, Llc Parameter modification of virtual entities for client applications
WO2020236699A1 (en) * 2019-05-20 2020-11-26 Citrix Systems, Inc. Network traffic steering with programmatically generated proxy auto-configuration files
WO2020253389A1 (en) * 2019-06-19 2020-12-24 深圳壹账通智能科技有限公司 Page translation method and apparatus, medium, and electronic device
CN110688600A (en) * 2019-09-09 2020-01-14 平安普惠企业管理有限公司 Online editing method, device and equipment based on HTML (Hypertext markup language) page and storage medium
CN110830305A (en) * 2019-11-14 2020-02-21 深圳绿米联创科技有限公司 Method and device for accessing wireless device to WIFI network, electronic device and storage medium
CN112910722A (en) * 2019-12-04 2021-06-04 北京达佳互联信息技术有限公司 Network request testing method, device, terminal and storage medium
CN112187570A (en) * 2020-09-15 2021-01-05 中信银行股份有限公司 Risk detection method and device, electronic equipment and readable storage medium
CN112612546A (en) * 2020-12-24 2021-04-06 广州虎牙科技有限公司 Page loading method and device, electronic equipment and storage medium
CN113312036A (en) * 2021-06-15 2021-08-27 曙光信息产业(北京)有限公司 Large-screen display method, device and equipment of Web page and storage medium
CN113704590A (en) * 2021-09-06 2021-11-26 挂号网(杭州)科技有限公司 Webpage data acquisition method and device, electronic equipment and storage medium
CN113992507A (en) * 2021-10-11 2022-01-28 新华三信息安全技术有限公司 Method, device, server and storage medium for determining default parameter value
CN114357574A (en) * 2021-12-20 2022-04-15 万翼科技有限公司 Component editing method, device, equipment and storage medium based on parameterized drive
CN114268542A (en) * 2021-12-21 2022-04-01 奇安信科技集团股份有限公司 Network card information modification method and device, storage medium and computer equipment

Also Published As

Publication number Publication date
CN115065627B (en) 2024-04-12

Similar Documents

Publication Publication Date Title
US11755387B1 (en) Updating code of an app feature based on a value of a query feature
US8756593B2 (en) Map generator for representing interrelationships between app features forged by dynamic pointers
US8589876B1 (en) Detection of central-registry events influencing dynamic pointers and app feature dependencies
CN112199300B (en) Interface testing method and device, electronic equipment and storage medium
CN110798380B (en) Data acquisition method, system, device, test equipment and test server
CN110879781B (en) Program debugging method, device, electronic equipment and computer readable storage medium
CN107870989A (en) webpage generating method and terminal device
CN107807841B (en) Server simulation method, device, equipment and readable storage medium
CN113760763A (en) Software testing method, device, server and system
CN112882933A (en) Script recording method, device, equipment and storage medium
CN111679976A (en) Method and device for searching page object
CN111694550A (en) Page display control method, device and system
CN112995765A (en) Network resource display method and device
CN110941752B (en) Information searching method, data processing method and equipment
CN110708270B (en) Abnormal link detection method and device
CN115065627A (en) Parameter modification method and device, electronic equipment and storage medium
CN110049374B (en) Focus frame determination method and device
CN111124712A (en) Event notification method, device, server and storage medium
CN110674386B (en) Resource recommendation method, device and storage medium
CN111367703A (en) Troubleshooting method and device
CN110888643A (en) Page processing method and device
CN112540820A (en) User interface updating method and device and electronic equipment
CN108399223B (en) Data acquisition method and device and electronic equipment
CN113392022B (en) Test requirement analysis method, device, computer readable medium and program product
CN111949510A (en) Test processing method and device, electronic equipment and readable storage medium

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