[go: up one dir, main page]

CN118643243A - Browser control method, browser control device and readable storage medium - Google Patents

Browser control method, browser control device and readable storage medium Download PDF

Info

Publication number
CN118643243A
CN118643243A CN202411118352.7A CN202411118352A CN118643243A CN 118643243 A CN118643243 A CN 118643243A CN 202411118352 A CN202411118352 A CN 202411118352A CN 118643243 A CN118643243 A CN 118643243A
Authority
CN
China
Prior art keywords
interface
request
configuration
target test
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
CN202411118352.7A
Other languages
Chinese (zh)
Other versions
CN118643243B (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.)
Shenzhen Zhicheng Software Technology Service Co ltd
Shenzhen Smart City Technology Development Group Co ltd
Original Assignee
Shenzhen Zhicheng Software Technology Service Co ltd
Shenzhen Smart City Technology Development Group 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 Shenzhen Zhicheng Software Technology Service Co ltd, Shenzhen Smart City Technology Development Group Co ltd filed Critical Shenzhen Zhicheng Software Technology Service Co ltd
Priority to CN202411118352.7A priority Critical patent/CN118643243B/en
Publication of CN118643243A publication Critical patent/CN118643243A/en
Application granted granted Critical
Publication of CN118643243B publication Critical patent/CN118643243B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/955Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

本发明涉及电子数字数据处理技术领域,尤其涉及一种浏览器的控制方法、浏览器的控制设备以及可读存储介质。所述方法通过在触发配置进程时,输出接口提取信息配置界面;当所述接口提取信息配置界面接收到配置数据之后,基于所述配置数据确定目标测试接口;根据所述目标测试接口对应的配置数据,对所述目标测试接口对应的接口信息提取规则执行配置操作;当浏览器进入页面访问进程,或者接收到URL时,检测当前网页的接口请求;在检测到所述当前网页的接口请求为所述目标测试接口对应的接口请求时,调用已配置的所述目标测试接口对应的接口信息提取规则,提取所述接口请求对应的接口信息。实现了浏览器对接口信息的自动化提取和处理。

The present invention relates to the field of electronic digital data processing technology, and in particular to a browser control method, a browser control device, and a readable storage medium. The method outputs an interface extraction information configuration interface when a configuration process is triggered; after the interface extraction information configuration interface receives configuration data, a target test interface is determined based on the configuration data; according to the configuration data corresponding to the target test interface, a configuration operation is performed on an interface information extraction rule corresponding to the target test interface; when the browser enters a page access process or receives a URL, an interface request of the current web page is detected; when it is detected that the interface request of the current web page is an interface request corresponding to the target test interface, the configured interface information extraction rule corresponding to the target test interface is called to extract the interface information corresponding to the interface request. The method realizes the automatic extraction and processing of interface information by the browser.

Description

浏览器的控制方法、浏览器的控制设备以及可读存储介质Browser control method, browser control device and readable storage medium

技术领域Technical Field

本发明涉及电子数字数据处理技术领域,尤其涉及一种浏览器的控制方法、浏览器的控制设备以及可读存储介质。The present invention relates to the technical field of electronic digital data processing, and in particular to a browser control method, a browser control device and a readable storage medium.

背景技术Background Art

在进行网页接口测试之前,需要先由用户利用浏览器开发者工具,从网页请求中获取接口请求对应的接口信息,并根据网页接口测试工具的格式需求,将目标接口对应的接口信息转化成目标格式之后,复制到网页接口测试工具中进行网页接口的测试。Before conducting a web interface test, the user needs to use the browser developer tools to obtain the interface information corresponding to the interface request from the web request, and convert the interface information corresponding to the target interface into the target format according to the format requirements of the web interface testing tool, and then copy it to the web interface testing tool to test the web interface.

这种需要由用户通过浏览器开发者工具自行查找网页请求信息对应的接口信息的方式,是需要通过用户手动完成的,由于查找网页请求信息对应的接口信息这一过程繁杂,这导致获取的接口信息容易出错,且获取接口信息的效率较低。This method, which requires users to search for interface information corresponding to web page request information through browser developer tools, needs to be completed manually by users. Since the process of searching for interface information corresponding to web page request information is complicated, the obtained interface information is prone to errors and the efficiency of obtaining interface information is low.

上述内容仅用于辅助理解本发明的技术方案,并不代表承认上述内容是现有技术。The above contents are only used to assist in understanding the technical solution of the present invention and do not constitute an admission that the above contents are prior art.

发明内容Summary of the invention

本发明的主要目的在于提供一种浏览器的控制方法,旨在解决手动查找网页请求信息对应的接口信息这一过程较为繁杂,进而导致获取的接口信息容易出错,且获取接口信息的效率较低的问题。The main purpose of the present invention is to provide a browser control method, which aims to solve the problem that the process of manually searching for interface information corresponding to web page request information is relatively complicated, which leads to the problem that the interface information obtained is prone to errors and the efficiency of obtaining the interface information is low.

为实现上述目的,本发明提供的一种浏览器的控制方法,所述浏览器的控制方法包括以下步骤:To achieve the above object, the present invention provides a browser control method, which comprises the following steps:

在触发配置进程时,输出接口提取信息配置界面;When the configuration process is triggered, the output interface extracts the information configuration interface;

当所述接口提取信息配置界面接收到配置数据之后,基于所述配置数据确定目标测试接口;After the interface extraction information configuration interface receives the configuration data, determining the target test interface based on the configuration data;

根据所述目标测试接口对应的配置数据,对所述目标测试接口对应的接口信息提取规则执行配置操作;According to the configuration data corresponding to the target test interface, performing a configuration operation on the interface information extraction rule corresponding to the target test interface;

当浏览器进入页面访问进程,或者接收到URL时,检测当前网页的接口请求;When the browser enters the page access process or receives a URL, it detects the interface request of the current web page;

在检测到所述当前网页的接口请求为所述目标测试接口对应的接口请求时,调用已配置的所述目标测试接口对应的接口信息提取规则,提取所述接口请求对应的接口信息。When it is detected that the interface request of the current webpage is the interface request corresponding to the target test interface, the configured interface information extraction rule corresponding to the target test interface is called to extract the interface information corresponding to the interface request.

可选地,所述当浏览器进入页面访问进程,或者接收到URL时,检测当前网页的接口请求的步骤之后,还包括:Optionally, when the browser enters the page access process or receives the URL, after the step of detecting the interface request of the current web page, the method further includes:

在检测到所述网页的接口请求之后,验证所述接口请求是否为所述目标测试接口对应的接口请求;After detecting the interface request of the webpage, verifying whether the interface request is an interface request corresponding to the target test interface;

若否,输出是否将所述接口请求对应的接口作为目标测试接口的选择信息;If not, outputting selection information of whether to use the interface corresponding to the interface request as the target test interface;

当接收到响应的确定信息之后,将所述接口请求对应的接口作为所述目标测试接口,并执行所述在触发配置进程时,输出接口提取信息配置界面的步骤;After receiving the confirmation information of the response, the interface corresponding to the interface request is used as the target test interface, and the step of outputting the interface extraction information configuration interface when the configuration process is triggered is performed;

当接收到响应的否定信息之后,将所述接口请求对应的接口作为非测试接口,并在再次检测到所述接口请求时,不执行所述输出是否将所述接口请求对应的接口作为目标测试接口的选择信息的步骤。After receiving a negative response, the interface corresponding to the interface request is used as a non-test interface, and when the interface request is detected again, the step of outputting the selection information of whether to use the interface corresponding to the interface request as the target test interface is not performed.

可选地,所述在检测到所述网页的接口请求之后,验证所述接口请求是否为所述目标测试接口对应的接口请求的步骤包括:Optionally, after detecting the interface request of the webpage, the step of verifying whether the interface request is an interface request corresponding to the target test interface includes:

基于所述接口请求确定对应的接口类型;Determine a corresponding interface type based on the interface request;

当所述接口请求对应的接口类型与所述目标测试接口对应的接口类型匹配时,判定所述接口请求为所述目标测试接口对应的接口请求;When the interface type corresponding to the interface request matches the interface type corresponding to the target test interface, determining that the interface request is the interface request corresponding to the target test interface;

当所述接口请求对应的接口类型与所述目标测试接口对应的接口类型不匹配时,判定所述接口请求非所述目标测试接口对应的接口请求。When the interface type corresponding to the interface request does not match the interface type corresponding to the target test interface, it is determined that the interface request is not the interface request corresponding to the target test interface.

可选地,所述根据所述目标测试接口对应的配置数据,对所述目标测试接口对应的接口信息提取规则执行配置操作的步骤包括:Optionally, the step of performing a configuration operation on an interface information extraction rule corresponding to the target test interface according to the configuration data corresponding to the target test interface includes:

根据所述配置数据的类型,调用对应的配置策略;According to the type of the configuration data, calling a corresponding configuration strategy;

基于所述配置策略和所述配置数据,对所述目标测试接口对应的接口信息提取规则执行配置操作。Based on the configuration policy and the configuration data, a configuration operation is performed on the interface information extraction rule corresponding to the target test interface.

可选地,所述根据所述配置数据的类型,调用对应的配置策略的步骤包括:Optionally, the step of calling a corresponding configuration policy according to the type of the configuration data includes:

当所述配置数据的类型为基于所述接口提取信息配置界面选定的配置数据时,调用根据选定的配置数据执行配置操作的配置策略;When the type of the configuration data is the configuration data selected based on the interface extraction information configuration interface, calling a configuration strategy for performing a configuration operation according to the selected configuration data;

当所述配置数据的类型为正则表达式时,调用正则表达式配置策略;When the type of the configuration data is a regular expression, calling a regular expression configuration strategy;

当所述配置数据的类型为文本数据时,调用基于自然语言模型的配置策略。When the type of the configuration data is text data, a configuration strategy based on a natural language model is called.

可选地,所述基于所述配置策略和所述配置数据,对所述目标测试接口对应的接口信息提取规则执行配置操作的步骤包括:Optionally, the step of performing a configuration operation on an interface information extraction rule corresponding to the target test interface based on the configuration policy and the configuration data includes:

当所述配置策略为所述基于自然语言模型的配置策略时,调用预训练的自然语言模型;When the configuration strategy is the configuration strategy based on the natural language model, calling a pre-trained natural language model;

将所述配置数据作为所述自然语言模型的输入参数输入至所述自然语言模型,获得所述配置数据对应的执行代码;Inputting the configuration data into the natural language model as an input parameter of the natural language model to obtain an execution code corresponding to the configuration data;

根据所述执行代码,对所述目标测试接口对应的接口信息提取规则执行配置操作。According to the execution code, a configuration operation is performed on the interface information extraction rule corresponding to the target test interface.

可选地,所述在检测到网页的接口请求为所述目标测试接口对应的接口请求时,调用已配置的所述目标测试接口对应的接口信息提取规则,提取所述接口请求对应的接口信息的步骤包括:Optionally, when it is detected that the interface request of the webpage is the interface request corresponding to the target test interface, calling the configured interface information extraction rule corresponding to the target test interface, the step of extracting the interface information corresponding to the interface request includes:

调用已配置的所述目标测试接口对应的接口信息提取规则,匹配所述接口请求对应的目标接口信息,并提取所述目标接口信息,所述目标接口信息包括请求URL、请求方法、请求头、请求参数中的至少一项。Call the configured interface information extraction rule corresponding to the target test interface, match the target interface information corresponding to the interface request, and extract the target interface information, wherein the target interface information includes at least one of the request URL, request method, request header, and request parameters.

可选地,所述在检测到网页的接口请求为所述目标测试接口对应的接口请求时,调用已配置的所述目标测试接口对应的接口信息提取规则,提取所述接口请求对应的接口信息的步骤之后,还包括:Optionally, when detecting that the interface request of the webpage is an interface request corresponding to the target test interface, calling the configured interface information extraction rule corresponding to the target test interface to extract the interface information corresponding to the interface request further includes:

根据绑定的接口测试工具,确定所述接口信息的导出格式;Determine the export format of the interface information according to the bound interface testing tool;

将所述接口信息导出为所述导出格式的接口测试数据,并保存为一个集合文件;Exporting the interface information into interface test data in the export format and saving it as a collection file;

将所述集合文件输入至所述接口测试工具,获得所述目标测试接口的测试结果。The collection file is input into the interface testing tool to obtain the test result of the target test interface.

此外,为实现上述目的,本发明还提供一种浏览器的控制设备,所述浏览器的控制设备包括存储器、处理器及存储在所述存储器上并可在所述处理器上运行的浏览器的控制程序,所述浏览器的控制程序被所述处理器执行时实现如上所述的浏览器的控制方法的步骤。In addition, to achieve the above-mentioned purpose, the present invention also provides a browser control device, which includes a memory, a processor, and a browser control program stored in the memory and executable on the processor, and the browser control program implements the steps of the browser control method described above when executed by the processor.

此外,为实现上述目的,本发明还提供一种计算机可读存储介质,所述计算机可读存储介质上存储有浏览器的控制程序,所述浏览器的控制程序被处理器执行时实现如上所述的浏览器的控制方法的步骤。In addition, to achieve the above-mentioned purpose, the present invention also provides a computer-readable storage medium, on which a browser control program is stored, and when the browser control program is executed by a processor, the steps of the browser control method described above are implemented.

本发明实施例提供一种浏览器的控制方法、浏览器的控制设备以及可读存储介质,通过输出接口提取信息配置界面,接收用户对接口提取信息规则进行配置的配置信息,以及用户指定的目标测试接口。接口提取信息配置界面接收到用户输入的配置数据后,解析配置数据并确定目标测试接口,进而确定后续需要执行配置操作的接口信息提取规则。根据目标测试接口对应的配置数据,执行接口信息提取规则的配置操作。也即根据用户对目标测试接口的特点和需求,配置接口信息提取规则,以提高后续检测接口请求和提取接口信息的过程中,检测到的接口请求的正确性,以及提取到的接口信息的正确性。当浏览器进入页面访问进程或接收到URL时,检测当前网页的接口请求,并在检测到接口请求是目标测试接口对应的接口请求时,调用已配置的接口信息提取规则来提取该接口请求对应接口的接口信息。实现了浏览器对接口信息的自动化提取和处理,使浏览器可以自动提取目标测试接口的接口信息。The embodiment of the present invention provides a browser control method, a browser control device and a readable storage medium, which receive configuration information configured by a user for an interface extraction information rule and a target test interface specified by the user through an output interface extraction information configuration interface. After receiving the configuration data input by the user, the interface extraction information configuration interface parses the configuration data and determines the target test interface, and then determines the interface information extraction rule that needs to perform the configuration operation subsequently. According to the configuration data corresponding to the target test interface, the configuration operation of the interface information extraction rule is performed. That is, according to the characteristics and requirements of the user for the target test interface, the interface information extraction rule is configured to improve the correctness of the interface request detected in the subsequent detection of the interface request and the extraction of the interface information, and the correctness of the extracted interface information. When the browser enters the page access process or receives the URL, the interface request of the current webpage is detected, and when it is detected that the interface request is the interface request corresponding to the target test interface, the configured interface information extraction rule is called to extract the interface information of the interface corresponding to the interface request. The automatic extraction and processing of the interface information by the browser is realized, so that the browser can automatically extract the interface information of the target test interface.

附图说明BRIEF DESCRIPTION OF THE DRAWINGS

此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本发明的实施例,并与说明书一起用于解释本发明的原理。为了更清楚地说明本发明实施例的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,对于本领域普通技术人员而言,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。The drawings herein are incorporated into and constitute a part of the specification, illustrate embodiments consistent with the present invention, and together with the specification are used to explain the principles of the present invention. In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the description of the embodiments are briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without creative labor.

图1为本发明实施例涉及的浏览器的控制设备的硬件运行环境的架构示意图;FIG1 is a schematic diagram of the architecture of a hardware operating environment of a browser control device according to an embodiment of the present invention;

图2为本发明浏览器的控制方法的第一实施例的流程示意图;FIG2 is a schematic flow chart of a first embodiment of a method for controlling a browser according to the present invention;

图3为本发明浏览器的控制方法的第二实施例的流程示意图;FIG3 is a schematic flow chart of a second embodiment of a method for controlling a browser according to the present invention;

图4为本发明浏览器的控制方法的第三实施例的流程示意图。FIG. 4 is a schematic flow chart of a third embodiment of a method for controlling a browser according to the present invention.

本发明目的的实现、功能特点及优点将结合实施例,参照附图作进一步说明。The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings.

具体实施方式DETAILED DESCRIPTION

本申请浏览器的控制方法,通过在触发配置进程时,输出接口提取信息配置界面;当所述接口提取信息配置界面接收到配置数据之后,基于所述配置数据确定目标测试接口;根据所述目标测试接口对应的配置数据,对所述目标测试接口对应的接口信息提取规则执行配置操作;当浏览器进入页面访问进程,或者接收到URL时,检测当前网页的接口请求;在检测到所述当前网页的接口请求为所述目标测试接口对应的接口请求时,调用已配置的所述目标测试接口对应的接口信息提取规则,提取所述接口请求对应的接口信息。实现了浏览器对接口信息的自动化提取和处理。The control method of the browser of the present application is as follows: when the configuration process is triggered, an interface extraction information configuration interface is output; after the interface extraction information configuration interface receives configuration data, a target test interface is determined based on the configuration data; according to the configuration data corresponding to the target test interface, a configuration operation is performed on the interface information extraction rule corresponding to the target test interface; when the browser enters the page access process or receives a URL, an interface request of the current web page is detected; when it is detected that the interface request of the current web page is an interface request corresponding to the target test interface, the configured interface information extraction rule corresponding to the target test interface is called to extract the interface information corresponding to the interface request. The automatic extraction and processing of interface information by the browser is realized.

为了更好地理解上述技术方案,下面将参照附图更详细地描述本公开的示例性实施例。虽然附图中显示了本公开的示例性实施例,然而应当理解,可以以各种形式实现本公开而不应被这里阐述的实施例所限制。相反,提供这些实施例是为了能够更透彻地理解本公开,并且能够将本公开的范围完整地传达给本领域的技术人员。In order to better understand the above technical solution, exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments described herein. On the contrary, these embodiments are provided to enable a more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.

作为一种实现方案,图1为本发明实施例方案涉及的浏览器的控制设备的硬件运行环境的架构示意图。As an implementation scheme, FIG1 is a schematic diagram of the architecture of the hardware operating environment of the browser control device involved in the embodiment of the present invention.

如图1所示,该浏览器的控制设备可以包括:处理器101,例如核心处理器,存储器102,通信总线103。其中,存储器102可以是高速的随机存取存储器(Random AccessMemory,RAM)存储器,也可以是稳定的非易失性存储器(Non-Volatile Memory,NVM),例如磁盘存储器。存储器102可选的还可以是独立于前述处理器101的存储装置。通信总线103用于实现这些组件之间的连接通信。As shown in FIG1 , the control device of the browser may include: a processor 101, such as a core processor, a memory 102, and a communication bus 103. The memory 102 may be a high-speed random access memory (RAM) memory, or a stable non-volatile memory (NVM), such as a disk memory. The memory 102 may optionally be a storage device independent of the aforementioned processor 101. The communication bus 103 is used to realize the connection and communication between these components.

本领域技术人员可以理解,图1中示出的结构并不构成对浏览器的控制设备的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。Those skilled in the art will appreciate that the structure shown in FIG. 1 does not constitute a limitation on the control device of the browser, and may include more or fewer components than shown in the figure, or a combination of certain components, or a different arrangement of components.

如图1所示,作为一种计算机可读存储介质的存储器102中可以包括操作系统、数据存储模块、网络通信模块、用户接口模块以及浏览器的控制程序。As shown in FIG. 1 , the memory 102 as a computer-readable storage medium may include an operating system, a data storage module, a network communication module, a user interface module, and a browser control program.

在图1所示的浏览器的控制设备中,处理器101、存储器102可以设置在浏览器的控制设备中,所述浏览器的控制设备通过处理器101调用存储器102中存储的浏览器的控制程序,并执行以下操作:In the browser control device shown in FIG1 , the processor 101 and the memory 102 may be arranged in the browser control device, and the browser control device calls the browser control program stored in the memory 102 through the processor 101, and performs the following operations:

在触发配置进程时,输出接口提取信息配置界面;When the configuration process is triggered, the output interface extracts the information configuration interface;

当所述接口提取信息配置界面接收到配置数据之后,基于所述配置数据确定目标测试接口;After the interface extraction information configuration interface receives the configuration data, determining the target test interface based on the configuration data;

根据所述目标测试接口对应的配置数据,对所述目标测试接口对应的接口信息提取规则执行配置操作;According to the configuration data corresponding to the target test interface, performing a configuration operation on the interface information extraction rule corresponding to the target test interface;

当浏览器进入页面访问进程,或者接收到URL时,检测当前网页的接口请求;When the browser enters the page access process or receives a URL, it detects the interface request of the current web page;

在检测到所述当前网页的接口请求为所述目标测试接口对应的接口请求时,调用已配置的所述目标测试接口对应的接口信息提取规则,提取所述接口请求对应的接口信息。When it is detected that the interface request of the current webpage is the interface request corresponding to the target test interface, the configured interface information extraction rule corresponding to the target test interface is called to extract the interface information corresponding to the interface request.

在一实施例中,处理器101可以用于调用存储器102中存储的浏览器的控制程序,并执行以下操作:In one embodiment, the processor 101 may be used to call a control program of the browser stored in the memory 102 and perform the following operations:

在检测到所述网页的接口请求之后,验证所述接口请求是否为所述目标测试接口对应的接口请求;After detecting the interface request of the webpage, verifying whether the interface request is an interface request corresponding to the target test interface;

若否,输出是否将所述接口请求对应的接口作为目标测试接口的选择信息;If not, outputting selection information of whether to use the interface corresponding to the interface request as the target test interface;

当接收到响应的确定信息之后,将所述接口请求对应的接口作为所述目标测试接口,并执行所述在触发配置进程时,输出接口提取信息配置界面的步骤;After receiving the confirmation information of the response, the interface corresponding to the interface request is used as the target test interface, and the step of outputting the interface extraction information configuration interface when the configuration process is triggered is performed;

当接收到响应的否定信息之后,将所述接口请求对应的接口作为非测试接口,并在再次检测到所述接口请求时,不执行所述输出是否将所述接口请求对应的接口作为目标测试接口的选择信息的步骤。After receiving a negative response, the interface corresponding to the interface request is used as a non-test interface, and when the interface request is detected again, the step of outputting the selection information of whether to use the interface corresponding to the interface request as the target test interface is not performed.

在一实施例中,处理器101可以用于调用存储器102中存储的浏览器的控制程序,并执行以下操作:In one embodiment, the processor 101 may be used to call a control program of the browser stored in the memory 102 and perform the following operations:

基于所述接口请求确定对应的接口类型;Determine a corresponding interface type based on the interface request;

当所述接口请求对应的接口类型与所述目标测试接口对应的接口类型匹配时,判定所述接口请求为所述目标测试接口对应的接口请求;When the interface type corresponding to the interface request matches the interface type corresponding to the target test interface, determining that the interface request is the interface request corresponding to the target test interface;

当所述接口请求对应的接口类型与所述目标测试接口对应的接口类型不匹配时,判定所述接口请求非所述目标测试接口对应的接口请求。When the interface type corresponding to the interface request does not match the interface type corresponding to the target test interface, it is determined that the interface request is not the interface request corresponding to the target test interface.

在一实施例中,处理器101可以用于调用存储器102中存储的浏览器的控制程序,并执行以下操作:In one embodiment, the processor 101 may be used to call a control program of the browser stored in the memory 102 and perform the following operations:

根据所述配置数据的类型,调用对应的配置策略;According to the type of the configuration data, calling a corresponding configuration strategy;

基于所述配置策略和所述配置数据,对所述目标测试接口对应的接口信息提取规则执行配置操作。Based on the configuration policy and the configuration data, a configuration operation is performed on the interface information extraction rule corresponding to the target test interface.

在一实施例中,处理器101可以用于调用存储器102中存储的浏览器的控制程序,并执行以下操作:In one embodiment, the processor 101 may be used to call a control program of the browser stored in the memory 102 and perform the following operations:

当所述配置数据的类型为基于所述接口提取信息配置界面选定的配置数据时,调用根据选定的配置数据执行配置操作的配置策略;When the type of the configuration data is the configuration data selected based on the interface extraction information configuration interface, calling a configuration strategy for performing a configuration operation according to the selected configuration data;

当所述配置数据的类型为正则表达式时,调用正则表达式配置策略;When the type of the configuration data is a regular expression, calling a regular expression configuration strategy;

当所述配置数据的类型为文本数据时,调用基于自然语言模型的配置策略。When the type of the configuration data is text data, a configuration strategy based on a natural language model is called.

在一实施例中,处理器101可以用于调用存储器102中存储的浏览器的控制程序,并执行以下操作:In one embodiment, the processor 101 may be used to call a control program of the browser stored in the memory 102 and perform the following operations:

当所述配置策略为所述基于自然语言模型的配置策略时,调用预训练的自然语言模型;When the configuration strategy is the configuration strategy based on the natural language model, calling a pre-trained natural language model;

将所述配置数据作为所述自然语言模型的输入参数输入至所述自然语言模型,获得所述配置数据对应的执行代码;Inputting the configuration data into the natural language model as an input parameter of the natural language model to obtain an execution code corresponding to the configuration data;

根据所述执行代码,对所述目标测试接口对应的接口信息提取规则执行配置操作。According to the execution code, a configuration operation is performed on the interface information extraction rule corresponding to the target test interface.

在一实施例中,处理器101可以用于调用存储器102中存储的浏览器的控制程序,并执行以下操作:In one embodiment, the processor 101 may be used to call a control program of the browser stored in the memory 102 and perform the following operations:

调用已配置的所述目标测试接口对应的接口信息提取规则,匹配所述接口请求对应的目标接口信息,并提取所述目标接口信息,所述目标接口信息包括请求URL、请求方法、请求头、请求参数中的至少一项。Call the configured interface information extraction rule corresponding to the target test interface, match the target interface information corresponding to the interface request, and extract the target interface information, wherein the target interface information includes at least one of the request URL, request method, request header, and request parameters.

在一实施例中,处理器101可以用于调用存储器102中存储的浏览器的控制程序,并执行以下操作:In one embodiment, the processor 101 may be used to call a control program of the browser stored in the memory 102 and perform the following operations:

根据绑定的接口测试工具,确定所述接口信息的导出格式;Determine the export format of the interface information according to the bound interface testing tool;

将所述接口信息导出为所述导出格式的接口测试数据,并保存为一个集合文件;Exporting the interface information into interface test data in the export format and saving it as a collection file;

将所述集合文件输入至所述接口测试工具,获得所述目标测试接口的测试结果。The collection file is input into the interface testing tool to obtain the test result of the target test interface.

基于上述浏览器的控制设备的硬件架构,提出本发明浏览器的控制方法的实施例。Based on the hardware architecture of the above-mentioned browser control device, an embodiment of the browser control method of the present invention is proposed.

参照图2,在第一实施例中,所述浏览器的控制方法包括以下步骤:2, in a first embodiment, the browser control method includes the following steps:

步骤S100:在触发配置进程时,输出接口提取信息配置界面。Step S100: When the configuration process is triggered, the output interface extracts the information configuration interface.

在本实施例中,在触发浏览器测试接口的配置进程时,浏览器输出一个接口提取信息配置界面。需要说明的是,这里的接口提取信息配置界面为用户提供了一个交互式操作界面,用于接收用户输入的配置数据,以及用于配置和设置目标测试接口的相关信息。In this embodiment, when the configuration process of the browser test interface is triggered, the browser outputs an interface extraction information configuration interface. It should be noted that the interface extraction information configuration interface here provides an interactive operation interface for the user to receive the configuration data input by the user and the relevant information for configuring and setting the target test interface.

基于接口提取信息配置界面,用户可以输入特定的配置数据,例如选择目标测试接口,以及选择是否提取目标测试接口的URL、请求方法、请求头、请求参数等信息。通过接口提取信息配置界面,用户可以根据实际需要和目标测试接口的特点进行信息提取的配置,这样可以确保能够提取所需的接口测试信息。Based on the interface extraction information configuration interface, users can enter specific configuration data, such as selecting the target test interface, and whether to extract the target test interface's URL, request method, request header, request parameters and other information. Through the interface extraction information configuration interface, users can configure information extraction according to actual needs and the characteristics of the target test interface, so as to ensure that the required interface test information can be extracted.

步骤S200:当所述接口提取信息配置界面接收到配置数据之后,基于所述配置数据确定目标测试接口。Step S200: After the interface extraction information configuration interface receives configuration data, a target test interface is determined based on the configuration data.

在本实施例中,在接口提取信息配置界面接收到浏览器测试接口的配置数据之后,读取配置数据中的接口标识,进而基于接口标识确定目标测试接口。可选地,目标测试接口可以是登录接口、注册接口、密码找回接口、支付接口等。需要说明的是,目标测试接口的选择是根据具体的需求和系统的特点来确定的,可以根据实际情况进行调整。可以理解地,这里的目标测试接口指的是浏览器访问的网页中,需要进行测试的特定接口。In this embodiment, after the interface extraction information configuration interface receives the configuration data of the browser test interface, the interface identifier in the configuration data is read, and then the target test interface is determined based on the interface identifier. Optionally, the target test interface can be a login interface, a registration interface, a password retrieval interface, a payment interface, etc. It should be noted that the selection of the target test interface is determined based on specific needs and system characteristics, and can be adjusted according to actual conditions. It can be understood that the target test interface here refers to a specific interface that needs to be tested in the web page accessed by the browser.

步骤S300:根据所述目标测试接口对应的配置数据,对所述目标测试接口对应的接口信息提取规则执行配置操作。Step S300: According to the configuration data corresponding to the target test interface, a configuration operation is performed on the interface information extraction rule corresponding to the target test interface.

在本实施例中,在确定目标测试接口之后,匹配目标测试接口对应的接口信息提取规则,然后,根据配置数据中,目标测试接口对应的配置数据,对各个目标测试接口的接口信息提取规则执行配置动作。In this embodiment, after determining the target test interface, the interface information extraction rule corresponding to the target test interface is matched, and then, according to the configuration data corresponding to the target test interface in the configuration data, the configuration action is executed on the interface information extraction rule of each target test interface.

可选地,在对各个目标测试接口的接口信息提取规则执行配置动作之前,先根据所述配置数据的类型,调用对应的配置策略,然后再基于所述配置策略和所述配置数据,对所述目标测试接口对应的接口信息提取规则执行配置操作。Optionally, before executing configuration actions on the interface information extraction rules of each target test interface, the corresponding configuration strategy is called according to the type of the configuration data, and then the configuration operation is executed on the interface information extraction rules corresponding to the target test interface based on the configuration strategy and the configuration data.

具体地,当所述配置数据的类型为基于所述接口提取信息配置界面选定的配置数据时,调用根据选定的配置数据执行配置操作的配置策略;当所述配置数据的类型为正则表达式时,调用正则表达式配置策略;当所述配置数据的类型为文本数据时,调用基于自然语言模型的配置策略。Specifically, when the type of the configuration data is the configuration data selected based on the interface extraction information configuration interface, a configuration strategy is called to perform configuration operations according to the selected configuration data; when the type of the configuration data is a regular expression, a regular expression configuration strategy is called; when the type of the configuration data is text data, a configuration strategy based on a natural language model is called.

由于通过接口提取信息配置界面选定的配置数据为预定义的选项和参数,需要根据这些选项参数执行特定的配置操作,因此,如果配置数据的类型为基于接口提取信息配置界面选定的配置数据,需要调用根据选定的配置数据执行配置操作的配置策略,对各个目标测试接口的接口信息提取规则进行配置。由于正则表达式用于匹配和提取特定格式的文本信息,因此,如果配置数据的类型是正则表达式,需要调用正则表达式配置策略,实现在接口信息提取规则的配置过程中,通过正则表达式来定义匹配规则,进而配置接口信息提取规则提取目标接口的信息的规则。当配置数据的类型为文本数据时,通过调用基于自然语言模型的配置策略,实现通过自然语言处理技术和机器学习算法来解析和理解配置数据,从而根据配置数据自动进行配置操作。Since the configuration data selected through the interface information extraction configuration interface are predefined options and parameters, specific configuration operations need to be performed based on these option parameters. Therefore, if the type of configuration data is configuration data selected based on the interface information extraction configuration interface, it is necessary to call a configuration strategy that performs configuration operations based on the selected configuration data to configure the interface information extraction rules of each target test interface. Since regular expressions are used to match and extract text information in a specific format, if the type of configuration data is a regular expression, it is necessary to call a regular expression configuration strategy to define matching rules through regular expressions during the configuration process of the interface information extraction rules, and then configure the interface information extraction rules to extract the information of the target interface. When the type of configuration data is text data, by calling a configuration strategy based on a natural language model, the configuration data can be parsed and understood through natural language processing technology and machine learning algorithms, so that configuration operations can be automatically performed according to the configuration data.

这样做的目的是为了根据配置数据的类型,选择相应的配置策略来执行配置操作,以确保目标测试接口对应的接口信息提取规则能够正确地被配置。进而增强了浏览器的控制功能,使浏览器能够自行执行提取目标测试接口的接口信息的动作。The purpose of this is to select the corresponding configuration strategy to perform the configuration operation according to the type of configuration data, so as to ensure that the interface information extraction rule corresponding to the target test interface can be correctly configured. This further enhances the control function of the browser, so that the browser can automatically perform the action of extracting the interface information of the target test interface.

作为一种可选的实施方式,当所述配置策略为根据选定的配置数据执行配置操作的配置策略时,提取配置数据中选定的配置选项,并匹配目标测试接口的接口信息提取规则中的参数;然后根据配置数据中选定的配置选项,对目标测试接口的接口信息提取规则中的参数进行配置,以实现对所述目标测试接口对应的接口信息提取规则执行配置操作。As an optional implementation, when the configuration strategy is a configuration strategy for performing configuration operations based on selected configuration data, the configuration options selected in the configuration data are extracted, and the parameters in the interface information extraction rules of the target test interface are matched; then, based on the configuration options selected in the configuration data, the parameters in the interface information extraction rules of the target test interface are configured to implement the configuration operation on the interface information extraction rules corresponding to the target test interface.

作为另一种可选的实施方式,当所述配置策略为正则表达式配置策略时,对接收到的正则表达式执行分析动作,确定需要提取的目标接口的请求URL、请求方法、请求头、请求参数等信息;然后,根据需要提取的目标接口的信息,对目标测试接口的接口信息提取规则中的对应的参数进行配置,以实现对所述目标测试接口对应的接口信息提取规则执行配置操作。As another optional implementation, when the configuration strategy is a regular expression configuration strategy, an analysis action is performed on the received regular expression to determine the request URL, request method, request header, request parameters and other information of the target interface that needs to be extracted; then, according to the information of the target interface that needs to be extracted, the corresponding parameters in the interface information extraction rules of the target test interface are configured to implement the configuration operation on the interface information extraction rules corresponding to the target test interface.

作为又一种可选的实施方式,当所述配置策略为所述基于自然语言模型的配置策略时,调用预训练的自然语言模型;然后,将所述配置数据作为所述自然语言模型的输入参数输入至所述自然语言模型,获得所述配置数据对应的执行代码;进而根据所述执行代码,对所述目标测试接口对应的接口信息提取规则执行配置操作。As another optional implementation, when the configuration strategy is the configuration strategy based on the natural language model, a pre-trained natural language model is called; then, the configuration data is input into the natural language model as an input parameter of the natural language model to obtain an execution code corresponding to the configuration data; and then, according to the execution code, a configuration operation is performed on the interface information extraction rule corresponding to the target test interface.

调用预训练的自然语言模型,将配置数据作为自然语言的输入,并获得与配置需求相对应的执行代码。这样即使配置需求发生变化或新增了一些特定的接口信息提取规则,可以直接通过修改文本数据类型的配置数据来调整接口信息提取规则,无需重新编写和调整正则表达式规则。这样做的目的是为了通过预训练的自然语言模型将配置数据转换为执行代码,简化了配置操作,提高了配置的准确性和效率,使接口信息提取规则的配置过程更加智能化和自动化。Call the pre-trained natural language model, use the configuration data as natural language input, and obtain the execution code corresponding to the configuration requirements. In this way, even if the configuration requirements change or some specific interface information extraction rules are added, the interface information extraction rules can be adjusted directly by modifying the configuration data of the text data type, without rewriting and adjusting the regular expression rules. The purpose of this is to convert the configuration data into execution code through the pre-trained natural language model, simplify the configuration operation, improve the accuracy and efficiency of the configuration, and make the configuration process of the interface information extraction rules more intelligent and automated.

步骤S400:当浏览器进入页面访问进程,或者接收到URL时,检测当前网页的接口请求。Step S400: When the browser enters the page access process or receives a URL, it detects the interface request of the current web page.

在本实施例中,在完成对目标测试接口对应的接口信息提取规则的配置操作之后,进入对浏览器的监测进程,当监测到浏览器进入页面访问进程,或者接收到URL时,对当前网页的接口请求执行检测动作。In this embodiment, after completing the configuration operation of the interface information extraction rules corresponding to the target test interface, the monitoring process of the browser is entered. When the browser is monitored to enter the page access process or receive the URL, the detection action is performed on the interface request of the current web page.

浏览器开始加载网页并进行页面渲染的过程,会通过网络请求获取页面相关的资源。其中包括网页的HTML(Hyper Text Markup Language,超文本标记语言)、CSS(Cascading Style Sheets,层叠样式表)、JavaScript文件以及其他外部资源等。在这个过程中,浏览器会发送HTTP(HypertextTransfer Protocol,超文本传输协议)请求来获取这些资源,并通过接收到的响应来加载和显示网页内容。在这个过程中,如果正在加载的网页中包含了目标测试接口的接口请求,将被浏览器的控制方法检测到。When the browser starts loading a web page and rendering the page, it will obtain page-related resources through network requests. These include the web page's HTML (Hyper Text Markup Language), CSS (Cascading Style Sheets), JavaScript files, and other external resources. During this process, the browser will send HTTP (Hypertext Transfer Protocol) requests to obtain these resources, and load and display the web page content through the received response. During this process, if the web page being loaded contains an interface request for the target test interface, it will be detected by the browser's control method.

步骤S500:在检测到所述当前网页的接口请求为所述目标测试接口对应的接口请求时,调用已配置的所述目标测试接口对应的接口信息提取规则,提取所述接口请求对应的接口信息。Step S500: when it is detected that the interface request of the current webpage is the interface request corresponding to the target test interface, the configured interface information extraction rule corresponding to the target test interface is called to extract the interface information corresponding to the interface request.

在本实施例中,在检测到所述当前网页的接口请求时,先验证接口请求是否为目标测试接口对应的接口请求。在当前网页的接口请求为所述目标测试接口对应的接口请求,才调用已配置的所述目标测试接口对应的接口信息提取规则,提取所述接口请求对应的接口信息。In this embodiment, when the interface request of the current webpage is detected, it is first verified whether the interface request is the interface request corresponding to the target test interface. Only when the interface request of the current webpage is the interface request corresponding to the target test interface, the configured interface information extraction rule corresponding to the target test interface is called to extract the interface information corresponding to the interface request.

需要说明的是,提取的接口信息将用于接口测试。可选地,若要测试接口请求对应接口的功能,则提取的接口信息包括用户交互数据、数据交互数据或者系统操作数据等接口信息;若要测试接口请求对应接口的性能,则提取的接口信息包括接口的响应时间或者并发处理时间等接口信息。It should be noted that the extracted interface information will be used for interface testing. Optionally, if the function of the interface corresponding to the interface request is to be tested, the extracted interface information includes interface information such as user interaction data, data interaction data or system operation data; if the performance of the interface corresponding to the interface request is to be tested, the extracted interface information includes interface response time or concurrent processing time and other interface information.

可选地,在检测到网页的接口请求为所述目标测试接口对应的接口请求时,调用已配置的所述目标测试接口对应的接口信息提取规则,匹配所述接口请求对应的目标接口信息,并提取所述目标接口信息,所述目标接口信息包括请求URL、请求方法、请求头、请求参数中的至少一项。Optionally, when it is detected that the interface request of the web page is an interface request corresponding to the target test interface, the configured interface information extraction rule corresponding to the target test interface is called to match the target interface information corresponding to the interface request, and extract the target interface information, wherein the target interface information includes at least one of the request URL, request method, request header, and request parameters.

在本实施例提供的技术方案中,通过输出接口提取信息配置界面,接收用户对接口提取信息规则进行配置的配置信息,以及用户指定的目标测试接口。接口提取信息配置界面接收到用户输入的配置数据后,解析配置数据并确定目标测试接口,进而确定后续需要执行配置操作的接口信息提取规则。根据目标测试接口对应的配置数据,执行接口信息提取规则的配置操作。也即根据用户对目标测试接口的特点和需求,配置接口信息提取规则,以提高后续检测接口请求和提取接口信息的过程中,检测到的接口请求的正确性,以及提取到的接口信息的正确性。当浏览器进入页面访问进程或接收到URL时,检测当前网页的接口请求,并在检测到接口请求是目标测试接口对应的接口请求时,调用已配置的接口信息提取规则来提取该接口请求对应接口的接口信息。实现了浏览器对接口信息的自动化提取和处理,使浏览器可以自动提取目标测试接口的接口信息。In the technical solution provided in this embodiment, the configuration information configured by the user for the interface extraction information rule and the target test interface specified by the user are received through the output interface extraction information configuration interface. After receiving the configuration data input by the user, the interface extraction information configuration interface parses the configuration data and determines the target test interface, and then determines the interface information extraction rule that needs to perform the configuration operation later. According to the configuration data corresponding to the target test interface, the configuration operation of the interface information extraction rule is performed. That is, according to the characteristics and requirements of the user for the target test interface, the interface information extraction rule is configured to improve the correctness of the interface request detected in the subsequent detection of the interface request and the extraction of the interface information, and the correctness of the extracted interface information. When the browser enters the page access process or receives the URL, the interface request of the current webpage is detected, and when it is detected that the interface request is the interface request corresponding to the target test interface, the configured interface information extraction rule is called to extract the interface information of the interface corresponding to the interface request. The automatic extraction and processing of the interface information by the browser is realized, so that the browser can automatically extract the interface information of the target test interface.

参照图3,基于上述实施例,在第二实施例中,所述当浏览器进入页面访问进程,或者接收到URL时,检测当前网页的接口请求的步骤之后,还包括:3 , based on the above embodiment, in the second embodiment, after the step of detecting the interface request of the current web page when the browser enters the page access process or receives the URL, the step further includes:

步骤S610:在检测到所述网页的接口请求之后,验证所述接口请求是否为所述目标测试接口对应的接口请求;Step S610: after detecting the interface request of the webpage, verify whether the interface request is an interface request corresponding to the target test interface;

步骤S620:若否,输出是否将所述接口请求对应的接口作为目标测试接口的选择信息;Step S620: If not, outputting selection information of whether to use the interface corresponding to the interface request as the target test interface;

步骤S630:当接收到响应的确定信息之后,将所述接口请求对应的接口作为所述目标测试接口,并执行所述在触发配置进程时,输出接口提取信息配置界面的步骤;Step S630: after receiving the confirmation information of the response, taking the interface corresponding to the interface request as the target test interface, and executing the step of outputting the interface extraction information configuration interface when the configuration process is triggered;

步骤S640:当接收到响应的否定信息之后,将所述接口请求对应的接口作为非测试接口,并在再次检测到所述接口请求时,不执行所述输出是否将所述接口请求对应的接口作为目标测试接口的选择信息的步骤。Step S640: After receiving a negative response, the interface corresponding to the interface request is used as a non-test interface, and when the interface request is detected again, the step of outputting the selection information of whether to use the interface corresponding to the interface request as the target test interface is not executed.

在本实施例中,浏览器在检测到当前网页的接口请求之后,需要先验证该接口请求是否为目标测试接口对应的接口请求。In this embodiment, after detecting the interface request of the current web page, the browser needs to first verify whether the interface request is an interface request corresponding to the target test interface.

作为一种可选的实施方式,基于所述接口请求确定对应的接口类型,然后验证所述接口请求对应的接口类型是否与所述目标测试接口对应的接口类型匹配。当所述接口请求对应的接口类型与所述目标测试接口对应的接口类型匹配时,判定所述接口请求为所述目标测试接口对应的接口请求;当所述接口请求对应的接口类型与所述目标测试接口对应的接口类型不匹配时,判定所述接口请求非所述目标测试接口对应的接口请求。其中,通过分析接口请求的参数、路径、方法等信息,可以确定该接口的类型。As an optional implementation, the corresponding interface type is determined based on the interface request, and then it is verified whether the interface type corresponding to the interface request matches the interface type corresponding to the target test interface. When the interface type corresponding to the interface request matches the interface type corresponding to the target test interface, the interface request is determined to be the interface request corresponding to the target test interface; when the interface type corresponding to the interface request does not match the interface type corresponding to the target test interface, the interface request is determined to be the interface request not corresponding to the target test interface. The type of the interface can be determined by analyzing the parameters, path, method and other information of the interface request.

可选地,根据接口的用途和实现方式,对接口进行分类,则接口类型包括数据库接口、文件接口和第三方接口等。这里的数据库接口指的是用于与数据库系统进行交互,用于执行数据库查询、更新、插入和删除操作的接口,数据库接口包括但不限于JDBC(JavaDatabase Connectivity,Java数据库连接)和ODBC(Open Database Connectivity,开放数据库连接)等。这里的文件接口指的是用于读取和写入本地或远程文件,用于访问文件系统的结构、文件夹和文件,并对其进行操作的接口,文件接口包括但不限于文件管理系统的API(Application Programming Interface,应用程序编程接口)和FTP(File TransferProtocol,文件传输协议)等。这里的第三方接口指的是用于获取外部服务,如支付、地图、社交媒体等,或者进行数据交换的接口。Optionally, interfaces are classified according to their purpose and implementation methods, and the interface types include database interfaces, file interfaces, and third-party interfaces. The database interface here refers to an interface used to interact with a database system and perform database query, update, insert, and delete operations. Database interfaces include but are not limited to JDBC (Java Database Connectivity) and ODBC (Open Database Connectivity). The file interface here refers to an interface used to read and write local or remote files, access the structure, folders, and files of a file system, and operate on them. The file interface includes but is not limited to the API (Application Programming Interface) and FTP (File Transfer Protocol) of a file management system. The third-party interface here refers to an interface used to obtain external services, such as payment, maps, social media, etc., or to exchange data.

通过确定接口请求对应的接口类型,然后验证所述接口请求对应的接口类型是否与所述目标测试接口对应的接口类型匹配。这样做的目的是为了实现对接口请求的筛选和判定,避免将不相关的接口请求误判为目标测试接口的请求,确保浏览器只对目标测试接口对应的接口请求进行接口信息的提取,进一步提高了接口信息提取的准确性。By determining the interface type corresponding to the interface request, and then verifying whether the interface type corresponding to the interface request matches the interface type corresponding to the target test interface. The purpose of this is to implement the screening and determination of interface requests, avoid misjudging irrelevant interface requests as requests of the target test interface, ensure that the browser only extracts interface information for interface requests corresponding to the target test interface, and further improve the accuracy of interface information extraction.

在本实施例中,在判定接口请求非所述目标测试接口对应的接口请求之后,浏览器输出是否将所述接口请求对应的接口作为目标测试接口的选择信息。用户可以通过输出的选择信息选择是否将所述接口请求对应的接口作为目标测试接口,然后将选择的结果作为选择信息的响应返回至浏览器。当浏览器接收到响应的确定信息之后,将所述接口请求对应的接口作为所述目标测试接口,并执行所述在触发配置进程时,输出接口提取信息配置界面的步骤,进而执行配置该接口请求对应的接口信息提取规则的操作。当浏览器接收到响应的否定信息之后,将所述接口请求对应的接口作为非测试接口,并在再次检测到所述接口请求时,不执行所述输出是否将所述接口请求对应的接口作为目标测试接口的选择信息的步骤。In this embodiment, after determining that the interface request is not an interface request corresponding to the target test interface, the browser outputs selection information on whether to use the interface corresponding to the interface request as the target test interface. The user can choose whether to use the interface corresponding to the interface request as the target test interface through the output selection information, and then return the result of the selection to the browser as a response to the selection information. After the browser receives the confirmation information of the response, the interface corresponding to the interface request is used as the target test interface, and the step of outputting the interface extraction information configuration interface when the configuration process is triggered is executed, and then the operation of configuring the interface information extraction rules corresponding to the interface request is executed. After the browser receives the negative information of the response, the interface corresponding to the interface request is used as a non-test interface, and when the interface request is detected again, the step of outputting the selection information on whether to use the interface corresponding to the interface request as the target test interface is not executed.

在本实施例提供的技术方案中,通过验证接口请求是否为目标测试接口的请求,进而决定是否进行后续的接口信息提取操作。通过在接口请求不是目标测试接口的情况下,输出选择信息,询问用户是否将该接口作为目标测试接口,以适应可能发生的变化,允许用户在运行过程中动态选择需要测试的接口,增加了接口信息提取的灵活性和可扩展性。通过在接口请求被确认为目标测试接口的情况下,将该接口请求作为目标测试接口,并执行接口信息提取规则的配置过程,以实现对该接口请求对应的接口进行接口信息的提取。通过在接收到否定信息后,将该接口请求标记为非测试接口,不再执行输出选择信息的步骤,进而避免对非目标测试接口进行重复的选择询问,提高了接口信息提取的效率。In the technical solution provided in this embodiment, by verifying whether the interface request is a request for the target test interface, it is decided whether to perform the subsequent interface information extraction operation. By outputting selection information when the interface request is not the target test interface, asking the user whether to use the interface as the target test interface to adapt to possible changes, the user is allowed to dynamically select the interface to be tested during operation, thereby increasing the flexibility and scalability of interface information extraction. By using the interface request as the target test interface when the interface request is confirmed to be the target test interface, and executing the configuration process of the interface information extraction rule, the interface information of the interface corresponding to the interface request is extracted. By marking the interface request as a non-test interface after receiving the negative information, the step of outputting the selection information is no longer executed, thereby avoiding repeated selection inquiries for non-target test interfaces, and improving the efficiency of interface information extraction.

参照图4,基于上述实施例,在第三实施例中,所述在检测到网页的接口请求为所述目标测试接口对应的接口请求时,调用已配置的所述目标测试接口对应的接口信息提取规则,提取所述接口请求对应的接口信息的步骤之后,还包括:4, based on the above embodiment, in a third embodiment, when it is detected that the interface request of the webpage is the interface request corresponding to the target test interface, the configured interface information extraction rule corresponding to the target test interface is called, and after the step of extracting the interface information corresponding to the interface request, the step further includes:

步骤S710:根据绑定的接口测试工具,确定所述接口信息的导出格式;Step S710: Determine the export format of the interface information according to the bound interface testing tool;

步骤S720:将所述接口信息导出为所述导出格式的接口测试数据,并保存为一个集合文件;Step S720: exporting the interface information into interface test data in the export format, and saving it as a collection file;

步骤S730:将所述集合文件输入至所述接口测试工具,获得所述目标测试接口的测试结果。Step S730: input the collection file into the interface testing tool to obtain the test result of the target test interface.

在本实施例中,在提取到接口信息之后,将提取到的接口信息导出为接口测试数据。这里的接口测试数据可以包括接口的URL、请求方法、请求参数、预期响应等信息。然后,将导出的接口测试数据输入到接口测试工具中,执行测试,获取目标测试接口的测试结果。In this embodiment, after the interface information is extracted, the extracted interface information is exported as interface test data. The interface test data here may include information such as the URL, request method, request parameters, and expected response of the interface. Then, the exported interface test data is input into the interface test tool, the test is executed, and the test result of the target test interface is obtained.

在本实施例中,由于不同的接口测试工具可能使用不同的接口测试数据格式,如JSON、XML、CSV等,因此需要根据绑定的接口测试工具,确定所述接口信息的导出格式。In this embodiment, since different interface testing tools may use different interface testing data formats, such as JSON, XML, CSV, etc., it is necessary to determine the export format of the interface information according to the bound interface testing tool.

接口测试工具可以根据导出的接口测试数据发送请求,并验证响应是否符合预期,以评估目标测试接口的性能、稳定性和准确性。The interface testing tool can send requests based on the exported interface test data and verify whether the responses are as expected to evaluate the performance, stability, and accuracy of the target test interface.

示例性地,假设有一个名为“example.com”的网站,该网站包含多个页面和相关的接口。在对接口信息提取规则执行配置操作之后,在浏览器访问“example.com”的某个页面时,检测到页面的接口请求,并提取出接口请求对应的接口信息。For example, suppose there is a website named "example.com" which contains multiple pages and related interfaces. After the interface information extraction rule is configured, when a browser accesses a page of "example.com", the interface request of the page is detected and the interface information corresponding to the interface request is extracted.

假设用户在该网站中点击“登录”按钮,触发了登录接口的请求。浏览器检测到该接口请求,并提取出对应的登录接口的请求URL、请求方法、请求头、请求参数等信息。Assume that the user clicks the "Login" button on the website, triggering a request for the login interface. The browser detects the interface request and extracts the corresponding login interface request URL, request method, request header, request parameters and other information.

假设绑定的接口测试工具的输入文件的格式为XML格式,则确定接口信息的导出格式为XML格式。然后浏览器将提取的接口信息转化为XML格式的接口测试数据,并将其保存为一个XML集合文件。然后,将该XML集合文件导入至绑定的接口测试工具对登录接口进行测试和分析,并得到相应的测试结果。Assuming that the format of the input file of the bound interface test tool is XML format, the export format of the interface information is determined to be XML format. Then the browser converts the extracted interface information into interface test data in XML format and saves it as an XML collection file. Then, the XML collection file is imported into the bound interface test tool to test and analyze the login interface and obtain the corresponding test results.

在本实施例提供的技术方案中,通过确定导出格式,可以确保接口信息在后续的测试工具中能够被正确解析和使用。通过将提取到的接口信息导出为指定格式的接口测试数据,并将其保存为一个集合文件。集合文件包含了多个接口的测试数据,以实现批量执行接口测试。通过将导出的集合文件输入到接口测试工具中,用于执行接口测试,以获得目标测试接口的测试结果。In the technical solution provided in this embodiment, by determining the export format, it can be ensured that the interface information can be correctly parsed and used in subsequent test tools. By exporting the extracted interface information into interface test data in a specified format and saving it as a collection file. The collection file contains test data for multiple interfaces to implement batch execution of interface tests. By inputting the exported collection file into the interface test tool, it is used to perform interface testing to obtain the test results of the target test interface.

通过将检测到的目标测试接口的请求提取出接口信息,并根据接口测试工具对应的导出格式,将接口信息导出为接口测试数据输入至接口测试工具进行测试,以验证目标测试接口的功能和性能是否符合预期。实现了自动提取网页的接口请求对应的接口信息,并将其转化为兼容各自接口测试工具格式的数据,进而可以直接导入到各个接口测试工具中使用。The interface information is extracted from the detected target test interface request, and according to the export format corresponding to the interface test tool, the interface information is exported as interface test data and input into the interface test tool for testing to verify whether the function and performance of the target test interface meet expectations. The interface information corresponding to the interface request of the web page is automatically extracted and converted into data compatible with the format of each interface test tool, which can then be directly imported into each interface test tool for use.

此外,本领域普通技术人员可以理解的是实现上述实施例的方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成。该计算机程序包括程序指令,计算机程序可以存储于一存储介质中,该存储介质为计算机可读存储介质。该程序指令被浏览器的控制设备中的至少一个处理器执行,以实现上述方法的实施例的流程步骤。In addition, it can be understood by those skilled in the art that all or part of the processes in the method for implementing the above embodiment can be completed by instructing the relevant hardware through a computer program. The computer program includes program instructions, and the computer program can be stored in a storage medium, which is a computer-readable storage medium. The program instructions are executed by at least one processor in the control device of the browser to implement the process steps of the embodiment of the above method.

因此,本发明还提供一种计算机可读存储介质,所述计算机可读存储介质存储有浏览器的控制程序,所述浏览器的控制程序被处理器执行时实现如上实施例所述的浏览器的控制方法的各个步骤。Therefore, the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a browser control program, and when the browser control program is executed by a processor, the various steps of the browser control method described in the above embodiment are implemented.

其中,所述计算机可读存储介质可以是U盘、移动硬盘、只读存储器(Read-OnlyMemory,ROM)、磁碟或者光盘等各种可以存储程序代码的计算机可读存储介质。The computer-readable storage medium may be a USB flash drive, a mobile hard disk, a read-only memory (ROM), a magnetic disk, or an optical disk, etc., which are computer-readable storage media that can store program codes.

需要说明的是,由于本申请实施例提供的存储介质,为实施本申请实施例的方法所采用的存储介质,故而基于本申请实施例所介绍的方法,本领域所属人员能够了解该存储介质的具体结构及变形,故而在此不再赘述。凡是本申请实施例的方法所采用的存储介质都属于本申请所欲保护的范围。It should be noted that since the storage medium provided in the embodiment of the present application is the storage medium used to implement the method of the embodiment of the present application, based on the method introduced in the embodiment of the present application, the person skilled in the art can understand the specific structure and deformation of the storage medium, so it is not repeated here. All storage media used in the method of the embodiment of the present application belong to the scope of protection of this application.

本领域内的技术人员应明白,本发明的实施例可提供为方法、系统或计算机程序产品。因此,本发明可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。It should be understood by those skilled in the art that embodiments of the present invention may be provided as methods, systems or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware aspects. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

本发明是参照根据本发明实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present invention is described with reference to the flowcharts and/or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present invention. It should be understood that each process and/or box in the flowchart and/or block diagram, as well as the combination of the processes and/or boxes in the flowchart and/or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device produce a device for implementing the functions specified in one or more processes in the flowchart and/or one or more boxes in the block diagram.

这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device that implements the functions specified in one or more processes in the flowchart and/or one or more boxes in the block diagram.

这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions may also be loaded onto a computer or other programmable data processing device so that a series of operational steps are executed on the computer or other programmable device to produce a computer-implemented process, whereby the instructions executed on the computer or other programmable device provide steps for implementing the functions specified in one or more processes in the flowchart and/or one or more boxes in the block diagram.

应当注意的是,在权利要求中,不应将位于括号之间的任何参考符号构造成对权利要求的限制。单词“包含”不排除存在未列在权利要求中的部件或步骤。位于部件之前的单词“一”或“一个”不排除存在多个这样的部件。本发明可以借助于包括有若干不同部件的硬件以及借助于适当编程的计算机来实现。在列举了若干装置的单元权利要求中,这些装置中的若干个可以是通过同一个硬件项来具体体现。单词第一、第二以及第三等的使用不表示任何顺序。可将这些单词解释为名称。It should be noted that in the claims, any reference signs placed between parentheses shall not be construed as limiting the claims. The word "comprising" does not exclude the presence of components or steps not listed in the claim. The word "a" or "an" preceding a component does not exclude the presence of a plurality of such components. The invention may be implemented by means of hardware comprising several different components and by means of a suitably programmed computer. In a unit claim enumerating several means, several of these means may be embodied by one and the same item of hardware. The use of the words first, second and third etc. does not indicate any order. These words may be interpreted as names.

尽管已描述了本发明的优选实施例,但本领域内的技术人员一旦得知了基本创造性概念,则可对这些实施例做出另外的变更和修改。所以,所附权利要求意欲解释为包括优选实施例以及落入本发明范围的所有变更和修改。Although the preferred embodiments of the present invention have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the present invention.

显然,本领域的技术人员可以对本发明进行各种改动和变型而不脱离本发明的精神和范围。这样,倘若本发明的这些修改和变型属于本发明权利要求及其等同技术的范围之内,则本发明也意图包含这些改动和变型在内。Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.

Claims (10)

1.一种浏览器的控制方法,其特征在于,所述浏览器的控制方法包括以下步骤:1. A method for controlling a browser, characterized in that the method for controlling a browser comprises the following steps: 在触发配置进程时,输出接口提取信息配置界面;When the configuration process is triggered, the output interface extracts the information configuration interface; 当所述接口提取信息配置界面接收到配置数据之后,基于所述配置数据确定目标测试接口;After the interface extraction information configuration interface receives the configuration data, determining the target test interface based on the configuration data; 根据所述目标测试接口对应的配置数据,对所述目标测试接口对应的接口信息提取规则执行配置操作;According to the configuration data corresponding to the target test interface, performing a configuration operation on the interface information extraction rule corresponding to the target test interface; 当浏览器进入页面访问进程,或者接收到URL时,检测当前网页的接口请求;When the browser enters the page access process or receives a URL, it detects the interface request of the current web page; 在检测到所述当前网页的接口请求为所述目标测试接口对应的接口请求时,调用已配置的所述目标测试接口对应的接口信息提取规则,提取所述接口请求对应的接口信息。When it is detected that the interface request of the current webpage is the interface request corresponding to the target test interface, the configured interface information extraction rule corresponding to the target test interface is called to extract the interface information corresponding to the interface request. 2.如权利要求1所述的浏览器的控制方法,其特征在于,所述当浏览器进入页面访问进程,或者接收到URL时,检测当前网页的接口请求的步骤之后,还包括:2. The method for controlling a browser according to claim 1, characterized in that after the step of detecting the interface request of the current web page when the browser enters the page access process or receives the URL, the method further comprises: 在检测到所述网页的接口请求之后,验证所述接口请求是否为所述目标测试接口对应的接口请求;After detecting the interface request of the webpage, verifying whether the interface request is an interface request corresponding to the target test interface; 若否,输出是否将所述接口请求对应的接口作为目标测试接口的选择信息;If not, outputting selection information of whether to use the interface corresponding to the interface request as the target test interface; 当接收到响应的确定信息之后,将所述接口请求对应的接口作为所述目标测试接口,并执行所述在触发配置进程时,输出接口提取信息配置界面的步骤;After receiving the confirmation information of the response, the interface corresponding to the interface request is used as the target test interface, and the step of outputting the interface extraction information configuration interface when the configuration process is triggered is performed; 当接收到响应的否定信息之后,将所述接口请求对应的接口作为非测试接口,并在再次检测到所述接口请求时,不执行所述输出是否将所述接口请求对应的接口作为目标测试接口的选择信息的步骤。After receiving a negative response, the interface corresponding to the interface request is used as a non-test interface, and when the interface request is detected again, the step of outputting the selection information of whether to use the interface corresponding to the interface request as the target test interface is not performed. 3.如权利要求2所述的浏览器的控制方法,其特征在于,所述在检测到所述网页的接口请求之后,验证所述接口请求是否为所述目标测试接口对应的接口请求的步骤包括:3. The browser control method according to claim 2, wherein after detecting the interface request of the web page, the step of verifying whether the interface request is an interface request corresponding to the target test interface comprises: 基于所述接口请求确定对应的接口类型;Determine a corresponding interface type based on the interface request; 当所述接口请求对应的接口类型与所述目标测试接口对应的接口类型匹配时,判定所述接口请求为所述目标测试接口对应的接口请求;When the interface type corresponding to the interface request matches the interface type corresponding to the target test interface, determining that the interface request is the interface request corresponding to the target test interface; 当所述接口请求对应的接口类型与所述目标测试接口对应的接口类型不匹配时,判定所述接口请求非所述目标测试接口对应的接口请求。When the interface type corresponding to the interface request does not match the interface type corresponding to the target test interface, it is determined that the interface request is not the interface request corresponding to the target test interface. 4.如权利要求1所述的浏览器的控制方法,其特征在于,所述根据所述目标测试接口对应的配置数据,对所述目标测试接口对应的接口信息提取规则执行配置操作的步骤包括:4. The browser control method according to claim 1, wherein the step of performing a configuration operation on the interface information extraction rule corresponding to the target test interface according to the configuration data corresponding to the target test interface comprises: 根据所述配置数据的类型,调用对应的配置策略;According to the type of the configuration data, calling a corresponding configuration strategy; 基于所述配置策略和所述配置数据,对所述目标测试接口对应的接口信息提取规则执行配置操作。Based on the configuration policy and the configuration data, a configuration operation is performed on the interface information extraction rule corresponding to the target test interface. 5.如权利要求4所述的浏览器的控制方法,其特征在于,所述根据所述配置数据的类型,调用对应的配置策略的步骤包括:5. The browser control method according to claim 4, wherein the step of calling a corresponding configuration policy according to the type of the configuration data comprises: 当所述配置数据的类型为基于所述接口提取信息配置界面选定的配置数据时,调用根据选定的配置数据执行配置操作的配置策略;When the type of the configuration data is the configuration data selected based on the interface extraction information configuration interface, calling a configuration strategy for performing a configuration operation according to the selected configuration data; 当所述配置数据的类型为正则表达式时,调用正则表达式配置策略;When the type of the configuration data is a regular expression, calling a regular expression configuration strategy; 当所述配置数据的类型为文本数据时,调用基于自然语言模型的配置策略。When the type of the configuration data is text data, a configuration strategy based on a natural language model is called. 6.如权利要求5所述的浏览器的控制方法,其特征在于,所述基于所述配置策略和所述配置数据,对所述目标测试接口对应的接口信息提取规则执行配置操作的步骤包括:6. The browser control method according to claim 5, wherein the step of performing a configuration operation on the interface information extraction rule corresponding to the target test interface based on the configuration policy and the configuration data comprises: 当所述配置策略为所述基于自然语言模型的配置策略时,调用预训练的自然语言模型;When the configuration strategy is the configuration strategy based on the natural language model, calling a pre-trained natural language model; 将所述配置数据作为所述自然语言模型的输入参数输入至所述自然语言模型,获得所述配置数据对应的执行代码;Inputting the configuration data into the natural language model as an input parameter of the natural language model to obtain an execution code corresponding to the configuration data; 根据所述执行代码,对所述目标测试接口对应的接口信息提取规则执行配置操作。According to the execution code, a configuration operation is performed on the interface information extraction rule corresponding to the target test interface. 7.如权利要求1所述的浏览器的控制方法,其特征在于,所述在检测到网页的接口请求为所述目标测试接口对应的接口请求时,调用已配置的所述目标测试接口对应的接口信息提取规则,提取所述接口请求对应的接口信息的步骤包括:7. The method for controlling a browser according to claim 1, wherein when it is detected that the interface request of the webpage is the interface request corresponding to the target test interface, calling the configured interface information extraction rule corresponding to the target test interface, the step of extracting the interface information corresponding to the interface request comprises: 调用已配置的所述目标测试接口对应的接口信息提取规则,匹配所述接口请求对应的目标接口信息,并提取所述目标接口信息,所述目标接口信息包括请求URL、请求方法、请求头、请求参数中的至少一项。Call the configured interface information extraction rule corresponding to the target test interface, match the target interface information corresponding to the interface request, and extract the target interface information, wherein the target interface information includes at least one of the request URL, request method, request header, and request parameters. 8.如权利要求1所述的浏览器的控制方法,其特征在于,所述在检测到网页的接口请求为所述目标测试接口对应的接口请求时,调用已配置的所述目标测试接口对应的接口信息提取规则,提取所述接口请求对应的接口信息的步骤之后,还包括:8. The method for controlling a browser according to claim 1, characterized in that after the step of calling the configured interface information extraction rule corresponding to the target test interface to extract the interface information corresponding to the interface request when the interface request of the webpage is detected to be the interface request corresponding to the target test interface, the method further comprises: 根据绑定的接口测试工具,确定所述接口信息的导出格式;Determine the export format of the interface information according to the bound interface testing tool; 将所述接口信息导出为所述导出格式的接口测试数据,并保存为一个集合文件;Exporting the interface information into interface test data in the export format and saving it as a collection file; 将所述集合文件输入至所述接口测试工具,获得所述目标测试接口的测试结果。The collection file is input into the interface testing tool to obtain the test result of the target test interface. 9.一种浏览器的控制设备,其特征在于,所述浏览器的控制设备包括:存储器、处理器及存储在所述存储器上并可在所述处理器上运行的浏览器的控制程序,所述浏览器的控制程序配置为实现如权利要求1至8中任一项所述的浏览器的控制方法的步骤。9. A browser control device, characterized in that the browser control device comprises: a memory, a processor, and a browser control program stored in the memory and executable on the processor, wherein the browser control program is configured to implement the steps of the browser control method as described in any one of claims 1 to 8. 10.一种可读存储介质,其特征在于,所述可读存储介质上存储有浏览器的控制程序,所述浏览器的控制程序被处理器执行时实现如权利要求1至8任一项所述的浏览器的控制方法的步骤。10. A readable storage medium, characterized in that a browser control program is stored on the readable storage medium, and when the browser control program is executed by a processor, the steps of the browser control method according to any one of claims 1 to 8 are implemented.
CN202411118352.7A 2024-08-15 2024-08-15 Browser control method, browser control device and readable storage medium Active CN118643243B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202411118352.7A CN118643243B (en) 2024-08-15 2024-08-15 Browser control method, browser control device and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202411118352.7A CN118643243B (en) 2024-08-15 2024-08-15 Browser control method, browser control device and readable storage medium

Publications (2)

Publication Number Publication Date
CN118643243A true CN118643243A (en) 2024-09-13
CN118643243B CN118643243B (en) 2024-11-22

Family

ID=92665091

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202411118352.7A Active CN118643243B (en) 2024-08-15 2024-08-15 Browser control method, browser control device and readable storage medium

Country Status (1)

Country Link
CN (1) CN118643243B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113608962A (en) * 2021-07-30 2021-11-05 平安普惠企业管理有限公司 Method, device and equipment for predicting abnormal application interface and storage medium
CN115185717A (en) * 2022-09-14 2022-10-14 北京达佳互联信息技术有限公司 Interface calling method and device, electronic equipment and storage medium
CN117827923A (en) * 2024-01-02 2024-04-05 重庆长安汽车股份有限公司 Query demand processing method and device, computer equipment and storage medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113608962A (en) * 2021-07-30 2021-11-05 平安普惠企业管理有限公司 Method, device and equipment for predicting abnormal application interface and storage medium
CN115185717A (en) * 2022-09-14 2022-10-14 北京达佳互联信息技术有限公司 Interface calling method and device, electronic equipment and storage medium
CN117827923A (en) * 2024-01-02 2024-04-05 重庆长安汽车股份有限公司 Query demand processing method and device, computer equipment and storage medium

Also Published As

Publication number Publication date
CN118643243B (en) 2024-11-22

Similar Documents

Publication Publication Date Title
CN110427331B (en) Method for automatically generating performance test script based on interface test tool
CN111367976B (en) Method and device for exporting EXCEL file data based on JAVA reflection mechanism
CN111949522B (en) Automatic testing method and device for user interface
CN110162457A (en) Test method, device, equipment and the storage medium of user interface
JP7161538B2 (en) Systems, apparatus and methods for processing and managing web traffic data
CN111858376A (en) Request message generation method and interface test method
CN107592358A (en) Application program interface calling method and device based on HTTP service
CN110659191B (en) Buried data analysis method, buried data analysis device, computer equipment and storage medium
CN110334019B (en) Test method, test device and readable storage medium
CN118964182A (en) An interface testing method and related device
CN118643243A (en) Browser control method, browser control device and readable storage medium
CN118551993A (en) Task allocation method, device, equipment, medium and product
CN112631920A (en) Test method, test device, electronic equipment and readable storage medium
CN117033204A (en) Test code generation method and device, electronic equipment and storage medium
CN113407450A (en) Interface testing method, device, equipment and medium based on automatic parameter identification
CN114296738A (en) Method for determining compiled directory, computer equipment and storage medium
CN113641345A (en) Mapping configuration-based point burying method and device, electronic equipment and storage medium
CN112559345A (en) LoadRunner-based interface testing method, computer equipment and storage medium
CN113762671A (en) Risk assessment method, device and system
CN118643007B (en) Interface document parsing method, device and storage medium
CN114528013B (en) Text generation method, device, electronic device, storage medium and product
JP7344614B1 (en) Systems, methods, and programs for testing website vulnerabilities
CN118796672A (en) Method, device, apparatus and computer program product for testing a test suite
CN118377699A (en) Test file generation method and computing device
CN117633030A (en) Internet content analysis methods, devices, equipment and storage media

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