CN116561013B - Test methods, devices, electronic equipment and media based on the target service framework - Google Patents
Test methods, devices, electronic equipment and media based on the target service framework Download PDFInfo
- Publication number
- CN116561013B CN116561013B CN202310806303.1A CN202310806303A CN116561013B CN 116561013 B CN116561013 B CN 116561013B CN 202310806303 A CN202310806303 A CN 202310806303A CN 116561013 B CN116561013 B CN 116561013B
- Authority
- CN
- China
- Prior art keywords
- service
- protocol
- test
- web
- framework
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Prevention of errors by analysis, debugging or testing of software
- G06F11/3698—Environments for analysis, debugging or testing of software
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Prevention of errors by analysis, debugging or testing of software
- G06F11/3668—Testing of software
- G06F11/3672—Test management
- G06F11/3688—Test management for test execution, e.g. scheduling of test suites
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Prevention of errors by analysis, debugging or testing of software
- G06F11/3668—Testing of software
- G06F11/3696—Methods or tools to render software testable
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Debugging And Monitoring (AREA)
Abstract
Description
技术领域Technical field
本发明涉及计算机技术领域,可以应用于金融技术领域,更具体地涉及一种基于目标服务框架的测试方法、装置、设备、介质和程序产品。The present invention relates to the field of computer technology and can be applied to the field of financial technology, and more specifically to a testing method, device, equipment, medium and program product based on a target service framework.
背景技术Background technique
JSON RPC是一个无状态且轻量级的远程过程调用传送协议,其传递内容透过JSON为主。由于JSON是一种文本数据格式(非二进制数据),JSON RPC服务在实现时,既可以用RPC的方式调用其服务,也可以用web方式(HTTP)调用其服务。在使用web服务时,现有的方法通常采用一些三方工具向RPC服务发送HTTP请求进行测试。然而,依赖于三方工具,会导致测试效率的降低。如在某些无法安装三方工具的封闭环境中;如可能出现不同的三方工具不兼容的问题等。JSON RPC is a stateless and lightweight remote procedure call transmission protocol, and its transmission content is mainly through JSON. Since JSON is a text data format (non-binary data), when the JSON RPC service is implemented, its service can be called either by RPC or by web (HTTP). When using web services, existing methods usually use some third-party tools to send HTTP requests to RPC services for testing. However, relying on third-party tools will lead to a reduction in testing efficiency. For example, in some closed environments where third-party tools cannot be installed; for example, there may be incompatibility issues with different third-party tools, etc.
发明内容Contents of the invention
鉴于上述问题,本发明提供了基于目标服务框架的测试方法、装置、设备、介质和程序产品,通过响应于接收到测试服务请求,确定与测试服务请求对应的协议;基于预设的协议调度规则,调用目标服务框架中与协议匹配的服务;其中,目标服务框架包括远程过程调用服务框架,与协议匹配的服务包括Web测试服务;基于Web测试服务将测试服务请求发送至目标服务框架中的处理模块,以进行测试服务处理,得到结果信息;以及基于Web测试服务发送结果信息,能够实现自动化测试服务,整个过程不需要依赖三方工具,也不需要登录任何三方服务,从而提高了开发和测试效率。In view of the above problems, the present invention provides a test method, device, equipment, medium and program product based on the target service framework. By responding to the received test service request, the protocol corresponding to the test service request is determined; based on the preset protocol scheduling rules , calling services in the target service framework that match the protocol; among them, the target service framework includes the remote procedure call service framework, and the services that match the protocol include the Web test service; based on the Web test service, the test service request is sent to the processing in the target service framework module to perform test service processing and obtain result information; and to send result information based on Web test services, which can realize automated testing services. The entire process does not need to rely on third-party tools or log in to any third-party services, thereby improving development and testing efficiency. .
根据本发明的第一个方面,提供了一种基于目标服务框架的测试方法,包括:响应于接收到测试服务请求,确定与所述测试服务请求对应的协议;基于预设的协议调度规则,调用所述目标服务框架中与所述协议匹配的服务;其中,所述目标服务框架包括远程过程调用服务框架,所述与协议匹配的服务包括Web测试服务;基于所述Web测试服务将所述测试服务请求发送至所述目标服务框架中的处理模块,以进行测试服务处理,得到结果信息;以及基于所述Web测试服务发送所述结果信息。According to a first aspect of the present invention, a testing method based on a target service framework is provided, including: in response to receiving a test service request, determining a protocol corresponding to the test service request; based on preset protocol scheduling rules, Call the service in the target service framework that matches the protocol; wherein the target service framework includes a remote procedure call service framework, and the service that matches the protocol includes a Web test service; based on the Web test service, the The test service request is sent to the processing module in the target service framework to perform test service processing and obtain result information; and the result information is sent based on the Web test service.
根据本发明实施例,所述方法还包括:将所述Web测试服务嵌入所述远程过程调用服务框架。According to an embodiment of the present invention, the method further includes: embedding the Web testing service into the remote procedure call service framework.
根据本发明实施例,所述Web测试服务包括前端测试页面和后端服务,所述将所述Web测试服务嵌入所述远程过程调用服务框架包括:将所述后端服务发送至所述远程过程调用服务框架;以及将前端测试页面的相关文件发送至所述远程过程调用服务框架的可执行文件中。According to an embodiment of the present invention, the Web test service includes a front-end test page and a back-end service, and embedding the Web test service into the remote procedure call service framework includes: sending the back-end service to the remote process Call the service framework; and send the relevant files of the front-end test page to the executable file of the remote procedure call service framework.
根据本发明实施例,所述协议包括:远程调用协议和/或超文本传输协议,所述与协议匹配的服务还包括远程调用业务服务。According to an embodiment of the present invention, the protocol includes: a remote invocation protocol and/or a hypertext transfer protocol, and the service matching the protocol further includes a remote invocation business service.
根据本发明实施例,所述预设的协议调度规则包括:在确定所述协议为所述远程调用协议的情况下,调用所述远程调用业务服务;以及在确定所述协议为所述超文本传输协议的情况下,调用所述Web测试服务。According to an embodiment of the present invention, the preset protocol scheduling rules include: when it is determined that the protocol is the remote invocation protocol, calling the remote invocation business service; and when it is determined that the protocol is the hypertext In case of transport protocol, call the web test service.
根据本发明实施例,所述方法还包括:配置协议入口,所述协议入口用于接收远程调用协议和/或超文本传输协议。According to an embodiment of the present invention, the method further includes: configuring a protocol entry, the protocol entry being used to receive remote call protocol and/or hypertext transfer protocol.
本发明的第二方面提供了一种基于目标服务框架的测试装置,包括:确定模块,用于响应于接收到测试服务请求,确定与所述测试服务请求对应的协议;调用模块,用于基于预设的协议调度规则,调用所述目标服务框架中与所述协议匹配的服务;其中,所述目标服务框架包括远程过程调用服务框架,所述与协议匹配的服务包括Web测试服务;第一发送模块,用于基于所述Web测试服务将所述测试服务请求发送至所述目标服务框架中的处理模块,以进行测试服务处理,得到结果信息;以及第二发送模块,用于基于所述Web测试服务发送所述结果信息。A second aspect of the present invention provides a testing device based on a target service framework, including: a determining module configured to determine a protocol corresponding to the test service request in response to receiving a test service request; and a calling module configured to determine the protocol corresponding to the test service request based on Preset protocol scheduling rules call services in the target service framework that match the protocol; wherein the target service framework includes a remote procedure call service framework, and the services that match the protocol include Web testing services; first a sending module, configured to send the test service request to the processing module in the target service framework based on the Web test service to perform test service processing and obtain result information; and a second sending module, configured to send the test service request based on the The web testing service sends the result information.
本发明的第三方面提供了一种电子设备,包括:一个或多个处理器;存储器,用于存储一个或多个程序,其中,当所述一个或多个程序被所述一个或多个处理器执行时,使得一个或多个处理器执行上述基于目标服务框架的测试方法。A third aspect of the present invention provides an electronic device, including: one or more processors; a memory for storing one or more programs, wherein when the one or more programs are processed by the one or more When the processor executes, one or more processors are caused to execute the above test method based on the target service framework.
本发明的第四方面还提供了一种计算机可读存储介质,其上存储有可执行指令,该指令被处理器执行时使处理器执行上述基于目标服务框架的测试方法。A fourth aspect of the present invention also provides a computer-readable storage medium on which executable instructions are stored. When executed by a processor, the instructions cause the processor to execute the above-mentioned testing method based on the target service framework.
本发明的第五方面还提供了一种计算机程序产品,包括计算机程序,该计算机程序被处理器执行时实现上述基于目标服务框架的测试方法。A fifth aspect of the present invention also provides a computer program product, including a computer program that implements the above-mentioned testing method based on the target service framework when executed by a processor.
本实施例提供的基于目标服务框架的测试方法,通过响应于接收到测试服务请求,确定与测试服务请求对应的协议;基于预设的协议调度规则,调用目标服务框架中与协议匹配的服务;其中,目标服务框架包括远程过程调用服务框架,与协议匹配的服务包括Web测试服务;基于Web测试服务将测试服务请求发送至目标服务框架中的处理模块,以进行测试服务处理,得到结果信息;以及基于Web测试服务发送结果信息,能够实现自动化测试服务,整个过程不需要依赖三方工具,也不需要登录任何三方服务,从而提高了开发和测试效率。The test method based on the target service framework provided by this embodiment determines the protocol corresponding to the test service request by responding to the received test service request; based on the preset protocol scheduling rules, calls the service matching the protocol in the target service framework; Among them, the target service framework includes a remote procedure call service framework, and the service matching the protocol includes a Web test service; based on the Web test service, the test service request is sent to the processing module in the target service framework to perform test service processing and obtain the result information; And by sending result information based on Web testing services, automated testing services can be realized. The entire process does not need to rely on third-party tools or log in to any third-party services, thus improving development and testing efficiency.
附图说明Description of the drawings
通过以下参照附图对本发明实施例的描述,本发明的上述内容以及其他目的、特征和优点将更为清楚,在附图中:The above and other objects, features and advantages of the present invention will become more apparent through the following description of embodiments of the present invention with reference to the accompanying drawings, in which:
图1示意性示出了根据本发明实施例的基于目标服务框架的测试方法、装置、设备、介质和程序产品的应用场景图;Figure 1 schematically shows an application scenario diagram of a test method, device, equipment, medium and program product based on the target service framework according to an embodiment of the present invention;
图2示意性示出了根据本发明一实施例的基于目标服务框架的测试方法的流程图;Figure 2 schematically shows a flow chart of a testing method based on the target service framework according to an embodiment of the present invention;
图3示意性示出了根据本发明另一实施例的基于目标服务框架的测试方法的执行流程图;Figure 3 schematically shows an execution flow chart of a testing method based on the target service framework according to another embodiment of the present invention;
图4示意性示出了根据本发明实施例的基于目标服务框架的测试装置的结构框图;以及Figure 4 schematically shows a structural block diagram of a test device based on the target service framework according to an embodiment of the present invention; and
图5示意性示出了根据本发明实施例的适于实现基于目标服务框架的测试方法的电子设备的方框图。FIG. 5 schematically shows a block diagram of an electronic device suitable for implementing a testing method based on a target service framework according to an embodiment of the present invention.
具体实施方式Detailed ways
以下,将参照附图来描述本发明的实施例。但是应该理解,这些描述只是示例性的,而并非要限制本发明的范围。在下面的详细描述中,为便于解释,阐述了许多具体的细节以提供对本发明实施例的全面理解。然而,明显地,一个或多个实施例在没有这些具体细节的情况下也可以被实施。此外,在以下说明中,省略了对公知结构和技术的描述,以避免不必要地混淆本发明的概念。Hereinafter, embodiments of the present invention will be described with reference to the accompanying drawings. However, it should be understood that these descriptions are exemplary only and are not intended to limit the scope of the invention. In the following detailed description, for convenience of explanation, numerous specific details are set forth to provide a comprehensive understanding of embodiments of the invention. It will be apparent, however, that one or more embodiments may be practiced without these specific details. Furthermore, in the following description, descriptions of well-known structures and techniques are omitted to avoid unnecessarily confusing the concepts of the present invention.
在此使用的术语仅仅是为了描述具体实施例,而并非意在限制本发明。在此使用的术语“包括”、“包含”等表明了所述特征、步骤、操作和/或部件的存在,但是并不排除存在或添加一个或多个其他特征、步骤、操作或部件。The terminology used herein is for the purpose of describing specific embodiments only and is not intended to be limiting of the invention. The terms "comprising," "comprising," and the like, as used herein, indicate the presence of stated features, steps, operations, and/or components but do not exclude the presence or addition of one or more other features, steps, operations, or components.
在此使用的所有术语(包括技术和科学术语)具有本领域技术人员通常所理解的含义,除非另外定义。应注意,这里使用的术语应解释为具有与本说明书的上下文相一致的含义,而不应以理想化或过于刻板的方式来解释。All terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art, unless otherwise defined. It should be noted that the terms used here should be interpreted to have meanings consistent with the context of this specification and should not be interpreted in an idealized or overly rigid manner.
在使用类似于“A、B和C等中至少一个”这样的表述的情况下,一般来说应该按照本领域技术人员通常理解该表述的含义来予以解释(例如,“具有A、B和C中至少一个的系统”应包括但不限于单独具有A、单独具有B、单独具有C、具有A和B、具有A和C、具有B和C、和/或具有A、B、C的系统等)。Where an expression similar to "at least one of A, B, C, etc." is used, it should generally be interpreted in accordance with the meaning that a person skilled in the art generally understands the expression to mean (e.g., "having A, B and C "A system with at least one of" shall include, but is not limited to, systems with A alone, B alone, C alone, A and B, A and C, B and C, and/or systems with A, B, C, etc. ).
本发明所涉及的术语解释包括如下。Explanations of terms involved in the present invention include the following.
JSON:一种轻量级的文本数据格式。JSON: A lightweight text data format.
RPC:远程过程调用,通过网络方式调用远程提供的服务。RPC: Remote procedure call, which calls remotely provided services through the network.
web服务:HTTP服务的一种,用户可以通过浏览器在网页上操作、向服务端发送请求。Web service: A type of HTTP service. Users can operate on the web page through the browser and send requests to the server.
本发明的实施例提供了一种基于目标服务框架的测试方法和装置,响应于接收到测试服务请求,确定与测试服务请求对应的协议;基于预设的协议调度规则,调用目标服务框架中与协议匹配的服务;其中,目标服务框架包括远程过程调用服务框架,与协议匹配的服务包括Web测试服务;基于Web测试服务将测试服务请求发送至目标服务框架中的处理模块,以进行测试服务处理,得到结果信息;以及基于Web测试服务发送结果信息。Embodiments of the present invention provide a testing method and device based on a target service framework. In response to receiving a test service request, determine the protocol corresponding to the test service request; based on the preset protocol scheduling rules, call the target service framework and Services that match the protocol; where, the target service framework includes a remote procedure call service framework, and services that match the protocol include a Web test service; based on the Web test service, the test service request is sent to the processing module in the target service framework for test service processing , obtain the result information; and send the result information based on the Web test service.
图1示意性示出了根据本发明实施例的基于目标服务框架的测试方法、装置、设备、介质和程序产品的应用场景图。Figure 1 schematically shows an application scenario diagram of a test method, device, equipment, medium and program product based on the target service framework according to an embodiment of the present invention.
如图1所示,根据该实施例的应用场景100可以包括终端设备101、102、103,网络104和服务器105。网络104用以在终端设备101、102、103和服务器105之间提供通信链路的介质。网络104可以包括各种连接类型,例如有线、无线通信链路或者光纤电缆等等。As shown in Figure 1, the application scenario 100 according to this embodiment may include terminal devices 101, 102, 103, a network 104 and a server 105. The network 104 is a medium used to provide communication links between the terminal devices 101, 102, 103 and the server 105. Network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables, among others.
用户可以使用终端设备101、102、103通过网络104与服务器105交互,以接收或发送消息等。终端设备101、102、103上可以安装有各种通讯客户端应用,例如购物类应用、网页浏览器应用、搜索类应用、即时通信工具、邮箱客户端、社交平台软件等(仅为示例)。Users can use terminal devices 101, 102, 103 to interact with the server 105 through the network 104 to receive or send messages, etc. Various communication client applications can be installed on the terminal devices 101, 102, and 103, such as shopping applications, web browser applications, search applications, instant messaging tools, email clients, social platform software, etc. (only examples).
终端设备101、102、103可以是具有显示屏并且支持网页浏览的各种电子设备,包括但不限于智能手机、平板电脑、膝上型便携计算机和台式计算机等等。The terminal devices 101, 102, and 103 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop computers, desktop computers, and the like.
服务器105可以是提供各种服务的服务器,例如对用户利用终端设备101、102、103所浏览的网站提供支持的后台管理服务器(仅为示例)。后台管理服务器可以对接收到的用户请求等数据进行分析等处理,并将处理结果(例如根据用户请求获取或生成的网页、信息、或数据等)反馈给终端设备。The server 105 may be a server that provides various services, such as a backend management server that provides support for websites browsed by users using the terminal devices 101, 102, and 103 (example only). The background management server can analyze and process received user requests and other data, and feed back the processing results (such as web pages, information, or data obtained or generated according to user requests) to the terminal device.
需要说明的是,本发明实施例所提供的基于目标服务框架的测试方法一般可以由服务器105执行。相应地,本发明实施例所提供的基于目标服务框架的测试装置一般可以设置于服务器105中。本发明实施例所提供的基于目标服务框架的测试方法也可以由不同于服务器105且能够与终端设备101、102、103和/或服务器105通信的服务器或服务器集群执行。相应地,本发明实施例所提供的基于目标服务框架的测试装置也可以设置于不同于服务器105且能够与终端设备101、102、103和/或服务器105通信的服务器或服务器集群中。It should be noted that the testing method based on the target service framework provided by the embodiment of the present invention can generally be executed by the server 105 . Correspondingly, the test device based on the target service framework provided by the embodiment of the present invention can generally be set up in the server 105 . The testing method based on the target service framework provided by the embodiment of the present invention can also be executed by a server or server cluster that is different from the server 105 and can communicate with the terminal devices 101, 102, 103 and/or the server 105. Correspondingly, the test device based on the target service framework provided by the embodiment of the present invention can also be set up in a server or server cluster that is different from the server 105 and can communicate with the terminal devices 101, 102, 103 and/or the server 105.
应该理解,图1中的终端设备、网络和服务器的数目仅仅是示意性的。根据实现需要,可以具有任意数目的终端设备、网络和服务器。It should be understood that the number of terminal devices, networks and servers in Figure 1 is only illustrative. Depending on implementation needs, there can be any number of end devices, networks, and servers.
以下将基于图1描述的场景,通过图2对公开实施例的基于目标服务框架的测试方法进行详细描述。The testing method based on the target service framework of the disclosed embodiment will be described in detail below based on the scenario described in FIG. 1 and through FIG. 2 .
图2示意性示出了根据本发明实施例的基于目标服务框架的测试方法的流程图。Figure 2 schematically shows a flow chart of a testing method based on the target service framework according to an embodiment of the present invention.
如图2所示,该实施例包括操作S210~操作S240,该基于目标服务框架的测试方法可以通过服务器执行。As shown in Figure 2, this embodiment includes operations S210 to S240, and the testing method based on the target service framework can be executed by the server.
在本发明的技术方案中,对数据的获取、收集、存储、使用、加工、传输、提供、公开和应用等处理,均符合相关法律法规的规定,采取了必要保密措施,且不违背公序良俗。In the technical solution of the present invention, the acquisition, collection, storage, use, processing, transmission, provision, disclosure and application of data are all in compliance with relevant laws and regulations, necessary confidentiality measures are taken, and do not violate public order and good customs.
在操作S210,响应于接收到测试服务请求,确定与测试服务请求对应的协议。In operation S210, in response to receiving the test service request, a protocol corresponding to the test service request is determined.
可以理解,用户可以发起测试服务请求,例如在浏览器上访问web服务。具体地,如用户点击页面显示的API接口、修改参数,即可发起请求进行测试。It can be understood that users can initiate test service requests, such as accessing web services on a browser. Specifically, if the user clicks on the API interface displayed on the page and modifies the parameters, he or she can initiate a request for testing.
在操作S220,基于预设的协议调度规则,调用目标服务框架中与协议匹配的服务。In operation S220, based on the preset protocol scheduling rules, services matching the protocol in the target service framework are called.
可以理解,协议调度规则用于确定被调用服务。It can be understood that protocol scheduling rules are used to determine the called service.
例如,协议可以包括远程调用协议(RPC),还可以包括超文本传输协议(HTTP)等。For example, the protocol may include Remote Call Protocol (RPC), Hypertext Transfer Protocol (HTTP), etc.
例如,服务可以包括Web测试服务,还可以包括远程调用业务服务等。For example, services may include web testing services, remote invocation of business services, etc.
例如,协议调度规则包括:在确定协议为远程调用协议的情况下,调用远程调用业务服务;以及在确定协议为超文本传输协议的情况下,调用Web测试服务。For example, the protocol scheduling rules include: when the protocol is determined to be a remote call protocol, call the remote call business service; and when the protocol is determined to be the Hypertext Transfer Protocol, call the Web test service.
对于本领域技术人员来说,协议、服务以及协议调度规则可以根据需求配置,对此不进行限定。For those skilled in the art, protocols, services and protocol scheduling rules can be configured according to needs, and there is no limit to this.
在操作S230,基于Web测试服务将测试服务请求发送至目标服务框架中的处理模块,以进行测试服务处理,得到结果信息。In operation S230, the test service request is sent to the processing module in the target service framework based on the Web test service to perform test service processing and obtain result information.
在操作S240,基于Web测试服务发送结果信息。In operation S240, result information is sent based on the Web test service.
举例来说,与测试服务请求对应的协议为HTTP协议。基于预设的协议调度规则,调用目标服务框架中的Web测试服务。Web测试服务收到测试服务请求后,将该测试服务请求转发至目标服务框架中的处理模块,处理模块收到该测试服务请求后,进行业务处理,如测试服务处理,得到结果信息。并将结果信息发送至Web测试服务。从而Web测试服务将收到的结果信息返回web前端。For example, the protocol corresponding to the test service request is the HTTP protocol. Based on the preset protocol scheduling rules, the Web test service in the target service framework is called. After the Web test service receives the test service request, it forwards the test service request to the processing module in the target service framework. After receiving the test service request, the processing module performs business processing, such as test service processing, and obtains result information. And send the result information to the web testing service. Thus, the web test service returns the received result information to the web front end.
可以理解,依赖于三方工具,在某些无法安装三方工具的封闭环境,会导致测试不方便。并且,不同开发人员可能使用不同的三方工具,不利于进行沟通交流,从而降低测试效率。It is understandable that relying on third-party tools will lead to inconvenient testing in some closed environments where third-party tools cannot be installed. Moreover, different developers may use different third-party tools, which is not conducive to communication and thus reduces testing efficiency.
本实施例提供的基于目标服务框架的测试方法,通过响应于接收到测试服务请求,确定与测试服务请求对应的协议;基于预设的协议调度规则,调用目标服务框架中与协议匹配的服务;其中,目标服务框架包括远程过程调用服务框架,与协议匹配的服务包括Web测试服务;基于Web测试服务将测试服务请求发送至目标服务框架中的处理模块,以进行测试服务处理,得到结果信息;以及基于Web测试服务发送结果信息,能够实现自动化测试服务,即基于远程过程调用服务框架中的Web测试服务,在浏览器上打开Web页面就可以进行自动化测试。整个过程不需要依赖三方工具,无需安装三方工具,也不需要登录任何三方服务,从而提高了开发和测试效率。The test method based on the target service framework provided by this embodiment determines the protocol corresponding to the test service request by responding to the received test service request; based on the preset protocol scheduling rules, calls the service matching the protocol in the target service framework; Among them, the target service framework includes a remote procedure call service framework, and the service matching the protocol includes a Web test service; based on the Web test service, the test service request is sent to the processing module in the target service framework to perform test service processing and obtain the result information; And sending result information based on the Web test service can realize automated testing services, that is, based on the Web testing service in the remote procedure call service framework, automated testing can be performed by opening the Web page on the browser. The entire process does not need to rely on third-party tools, install third-party tools, or log in to any third-party services, thus improving development and testing efficiency.
基于目标服务框架的测试方法,还包括:将Web测试服务嵌入远程过程调用服务框架。The testing method based on the target service framework also includes: embedding the Web test service into the remote procedure call service framework.
例如,Web测试服务包括前端测试页面和后端服务,将Web测试服务嵌入远程过程调用服务框架包括:将后端服务发送至远程过程调用服务框架;以及将前端测试页面的相关文件发送至远程过程调用服务框架的可执行文件中。For example, the Web testing service includes the front-end test page and the back-end service. Embedding the Web testing service into the remote procedure call service framework includes: sending the back-end service to the remote procedure call service framework; and sending the relevant files of the front-end test page to the remote process. In the executable file that calls the service framework.
图3示意性示出了根据本发明另一实施例的基于目标服务框架的测试方法的执行流程图。参见图3,目标服务框架300可以包括远程过程调用服务框架。该远程过程调用服务框架可以包括协议入口、远程调用业务服务、Web测试服务和处理模块。其中,远程调用客户端、远程调用业务服务以及处理模块是一条RPC业务流程,数据通过RPC协议传输。Web前端、Web测试服务以及处理模块可以实现RPC服务的自动化测试的业务流程,数据通过HTTP协议传输。Figure 3 schematically shows an execution flow chart of a testing method based on the target service framework according to another embodiment of the present invention. Referring to Figure 3, the target service framework 300 may include a remote procedure call service framework. The remote procedure call service framework may include protocol entry, remote call business service, Web test service and processing module. Among them, the remote calling client, remote calling business service and processing module are an RPC business process, and the data is transmitted through the RPC protocol. The Web front end, Web test service and processing module can realize the business process of automated testing of RPC services, and the data is transmitted through the HTTP protocol.
处理模块,用于接收参数(如JSON格式),进行业务处理,并返回处理结果(如JSON格式)。The processing module is used to receive parameters (such as JSON format), perform business processing, and return processing results (such as JSON format).
远程调用业务服务,用于对外提供RPC接口,接收RPC客户端的请求,并转发给处理模块进行处理。Remote calling business services are used to provide RPC interfaces to the outside world, receive requests from RPC clients, and forward them to the processing module for processing.
Web测试服务内置于远程过程调用服务框架,用于对外提供Web测试页面,接收Web前端的请求,并转发给处理模块进行处理。The Web test service is built into the remote procedure call service framework and is used to provide external Web test pages, receive requests from the Web front-end, and forward them to the processing module for processing.
协议入口,用于接收请求。Protocol entry, used to receive requests.
针对Web测试服务需要说明的是,Web测试服务是一个微型web服务,可以通过以下方式实现:1、开发前端测试页面(html页面,JS脚本等前端文件);2、开发后端服务(远程过程调用服务框架支持HTTP协议,因此可以直接基于远程过程调用服务框架实现Web测试服务的后端服务);3、Web测试服务后端服务 嵌入到远程过程调用服务框架中;4、将前端测试页面相关文件打包嵌入RPC服务中,如将前端页面的相关文件打包到RPC服务的二进制可执行文件中。What needs to be explained about the Web testing service is that the Web testing service is a micro web service that can be implemented in the following ways: 1. Develop front-end test pages (html pages, JS scripts and other front-end files); 2. Develop back-end services (remote processes The call service framework supports the HTTP protocol, so the back-end service of the Web test service can be implemented directly based on the remote procedure call service framework); 3. The Web test service back-end service is embedded in the remote procedure call service framework; 4. Related front-end test pages File packaging is embedded in the RPC service, such as packaging related files of the front-end page into the binary executable file of the RPC service.
为了更好的理解本发明,下面结合实施例进一步阐述本发明的内容,但本发明不仅仅局限于下面实施例。In order to better understand the present invention, the content of the present invention will be further described below in conjunction with the examples, but the present invention is not limited only to the following examples.
步骤1、用户实现业务服务及业务处理模块,完成RPC服务的开发,启动服务,通过配置参数启用内置的web测试服务;Step 1. The user implements the business service and business processing module, completes the development of the RPC service, starts the service, and enables the built-in web test service through configuration parameters;
步骤2、浏览器中输入服务的地址(ip加端口及url,如127.0.0.1:7777/demo),进入web测试界面;Step 2. Enter the service address (ip plus port and url, such as 127.0.0.1:7777/demo) in the browser to enter the web test interface;
步骤3、在web测试页面上选择API接口,点击发送,发起测试(此步可直接使用页面提供的默认请求参数,或修改请求参数后再发起测试);Step 3. Select the API interface on the web test page, click Send, and initiate the test (this step can directly use the default request parameters provided by the page, or modify the request parameters before initiating the test);
步骤4、web测试服务收到web前端发起的请求后,将请求转发给业务服务模块;Step 4. After receiving the request initiated by the web front-end, the web test service forwards the request to the business service module;
步骤5、业务处理服务模块收到请求后,进行业务处理,并将结果发回web测试服务;Step 5. After receiving the request, the business processing service module performs business processing and sends the results back to the web test service;
步骤6、web测试服务收到业务处理模块的结果后,将结果发回web前端。Step 6. After the web test service receives the results from the business processing module, it sends the results back to the web front end.
需要说明的是,步骤3中,web页面上可以显示RPC服务的API接口列表,并为每个API接口提供默认请求参数。API接口列表及默认请求参数是根据用户的proto文件自动生成。具体而言,用户先编写proto文件,定义RPC服务的API接口,及API接口的请求参数与响应结果的格式(请求与响应都是JSON格式,需要指明有哪些字段,字段是什么类型),然后用RPC框架提供的代码生成工具根据proto文件生成相应的代码,API接口列表与默认请求参数就是在解析proto文件自动生成。有了API接口列表及默认请求参数,用户就可以在页面上简单点击,实现自动化测试。It should be noted that in step 3, the API interface list of the RPC service can be displayed on the web page, and default request parameters are provided for each API interface. The API interface list and default request parameters are automatically generated based on the user's proto file. Specifically, the user first writes a proto file to define the API interface of the RPC service, as well as the request parameters of the API interface and the format of the response result (both the request and the response are in JSON format, and it is necessary to specify which fields are there and what types the fields are), and then Use the code generation tool provided by the RPC framework to generate corresponding code based on the proto file. The API interface list and default request parameters are automatically generated after parsing the proto file. With the API interface list and default request parameters, users can simply click on the page to implement automated testing.
需要说明的是,内置web服务可以通过配置参数控制是否开启,从而可以仅在测试阶段启用该web测试服务进行测试,服务上线后则关闭该web测试服务,避免暴露过多接口,以提高安全性。It should be noted that the built-in web service can be controlled through configuration parameters, so that the web test service can only be enabled for testing during the test phase. After the service is online, the web test service will be closed to avoid exposing too many interfaces to improve security. .
基于目标服务框架的测试方法,还包括:配置协议入口,协议入口用于接收远程调用协议和/或超文本传输协议。The testing method based on the target service framework also includes: configuring a protocol entry, which is used to receive the remote call protocol and/or hypertext transfer protocol.
协议入口:可以用于接收RPC客户端或web前端的请求,根据协议(RPC或HTTP)的不同,将请求转发给相应的服务,如RPC协议传输的数据转发给RPC业务服务,HTTP协议传输的数据转发给web测试服务。Protocol entrance: can be used to receive requests from RPC clients or web front-ends. Depending on the protocol (RPC or HTTP), the request is forwarded to the corresponding service. For example, the data transmitted by the RPC protocol is forwarded to the RPC business service, and the data transmitted by the HTTP protocol is forwarded to the RPC business service. The data is forwarded to the web testing service.
协议入口用于接收远程调用协议和/或超文本传输协议,因此可以只有一个协议入口。The protocol entry is used to receive remote call protocol and/or hypertext transfer protocol, so there can be only one protocol entry.
通过在同一个端口上支持RPC、HTTP两种协议实现,RPC业务服务与web测试服务共用同一个端口,这样做的好处是部署与使用更方便。可以理解,也可以采用两个端口的实现方式,RPC业务服务与web测试各占用一个端口。By supporting RPC and HTTP protocols on the same port, the RPC business service and the web test service share the same port. The advantage of this is that it is more convenient to deploy and use. It is understandable that the two-port implementation method can also be adopted, with RPC business service and web test each occupying one port.
进一步地, RPC业务服务与web测试服务还可以共用同一个业务处理模块,这样做不影响测试结果(业务处理结果),同时能够减少请求转发层次。可以理解,web测试服务收到的请求也可以转发给RPC业务服务,这样会多一次转发。Furthermore, the RPC business service and the web test service can also share the same business processing module. This does not affect the test results (business processing results) and can reduce the request forwarding level. It can be understood that the request received by the web test service can also be forwarded to the RPC business service, which will be forwarded one more time.
基于上述基于目标服务框架的测试方法,本发明还提供了一种基于目标服务框架的测试装置。以下将结合图4对该装置进行详细描述。Based on the above test method based on the target service framework, the present invention also provides a test device based on the target service framework. The device will be described in detail below with reference to FIG. 4 .
图4示意性示出了根据本发明实施例的基于目标服务框架的测试装置的结构框图。Figure 4 schematically shows a structural block diagram of a test device based on the target service framework according to an embodiment of the present invention.
如图4所示,该实施例的基于目标服务框架的测试装置400包括确定模块410、调用模块420、第一发送模块430和第二发送模块440。As shown in FIG. 4 , the test device 400 based on the target service framework of this embodiment includes a determination module 410 , a calling module 420 , a first sending module 430 and a second sending module 440 .
确定模块410,用于响应于接收到测试服务请求,确定与所述测试服务请求对应的协议;调用模块420,用于基于预设的协议调度规则,调用所述目标服务框架中与所述协议匹配的服务;其中,所述目标服务框架包括远程过程调用服务框架,所述与协议匹配的服务包括Web测试服务;第一发送模块430,用于基于所述Web测试服务将所述测试服务请求发送至所述目标服务框架中的处理模块,以进行测试服务处理,得到结果信息;以及第二发送模块440,用于基于所述Web测试服务发送所述结果信息。The determining module 410 is configured to determine the protocol corresponding to the test service request in response to receiving the test service request; the calling module 420 is configured to call the target service framework corresponding to the protocol based on the preset protocol scheduling rules. Matching services; wherein the target service framework includes a remote procedure call service framework, and the service matching the protocol includes a Web test service; the first sending module 430 is used to request the test service based on the Web test service Send to the processing module in the target service framework to perform test service processing and obtain result information; and a second sending module 440 for sending the result information based on the Web test service.
在一些实施例中,所述装置还包括:嵌入模块,所述嵌入模块用于将所述Web测试服务嵌入所述远程过程调用服务框架。In some embodiments, the apparatus further includes: an embedding module, the embedding module is used to embed the Web testing service into the remote procedure call service framework.
在一些实施例中,所述Web测试服务包括前端测试页面和后端服务,所述将所述Web测试服务嵌入所述远程过程调用服务框架包括:将所述后端服务发送至所述远程过程调用服务框架;以及将前端测试页面的相关文件发送至所述远程过程调用服务框架的可执行文件中。In some embodiments, the Web testing service includes a front-end test page and a back-end service, and embedding the Web testing service into the remote procedure call service framework includes: sending the back-end service to the remote process Call the service framework; and send the relevant files of the front-end test page to the executable file of the remote procedure call service framework.
在一些实施例中,所述协议包括:远程调用协议和/或超文本传输协议,所述与协议匹配的服务还包括远程调用业务服务。In some embodiments, the protocol includes: Remote Invocation Protocol and/or Hypertext Transfer Protocol, and the service matching the protocol further includes remote invocation of business services.
在一些实施例中,所述预设的协议调度规则包括:在确定所述协议为所述远程调用协议的情况下,调用所述远程调用业务服务;以及在确定所述协议为所述超文本传输协议的情况下,调用所述Web测试服务。In some embodiments, the preset protocol scheduling rules include: when it is determined that the protocol is the remote invocation protocol, calling the remote invocation business service; and when it is determined that the protocol is the hypertext In case of transport protocol, call the web test service.
在一些实施例中,所述装置还包括:配置模块,用于配置协议入口,所述协议入口用于接收远程调用协议和/或超文本传输协议。In some embodiments, the device further includes: a configuration module, configured to configure a protocol entry, and the protocol entry is used to receive remote call protocol and/or hypertext transfer protocol.
根据本发明的实施例,确定模块410、调用模块420、第一发送模块430和第二发送模块440中的任意多个模块可以合并在一个模块中实现,或者其中的任意一个模块可以被拆分成多个模块。或者,这些模块中的一个或多个模块的至少部分功能可以与其他模块的至少部分功能相结合,并在一个模块中实现。根据本发明的实施例,确定模块410、调用模块420、第一发送模块430和第二发送模块440中的至少一个可以至少被部分地实现为硬件电路,例如现场可编程门阵列(FPGA)、可编程逻辑阵列(PLA)、片上系统、基板上的系统、封装上的系统、专用集成电路(ASIC),或可以通过对电路进行集成或封装的任何其他的合理方式等硬件或固件来实现,或以软件、硬件以及固件三种实现方式中任意一种或以其中任意几种的适当组合来实现。或者,确定模块410、调用模块420、第一发送模块430和第二发送模块440中的至少一个可以至少被部分地实现为计算机程序模块,当该计算机程序模块被运行时,可以执行相应的功能。According to the embodiment of the present invention, any multiple modules among the determination module 410, the calling module 420, the first sending module 430 and the second sending module 440 can be combined and implemented in one module, or any one of the modules can be split. into multiple modules. Alternatively, at least part of the functionality of one or more of these modules may be combined with at least part of the functionality of other modules and implemented in one module. According to an embodiment of the present invention, at least one of the determining module 410, the calling module 420, the first sending module 430 and the second sending module 440 may be at least partially implemented as a hardware circuit, such as a field programmable gate array (FPGA), Implemented by hardware or firmware such as a programmable logic array (PLA), system on a chip, system on a substrate, system on a package, application specific integrated circuit (ASIC), or any other reasonable means of integrating or packaging circuits, Or it can be implemented in any one of the three implementation methods of software, hardware and firmware, or in an appropriate combination of any of them. Alternatively, at least one of the determining module 410, the calling module 420, the first sending module 430 and the second sending module 440 can be at least partially implemented as a computer program module, and when the computer program module is run, corresponding functions can be performed. .
图5示意性示出了根据本发明实施例的适于实现基于目标服务框架的测试方法的电子设备的方框图。FIG. 5 schematically shows a block diagram of an electronic device suitable for implementing a testing method based on a target service framework according to an embodiment of the present invention.
如图5所示,根据本发明实施例的电子设备500包括处理器501,其可以根据存储在只读存储器(ROM)502中的程序或者从存储部分508加载到随机访问存储器(RAM)503中的程序而执行各种适当的动作和处理。处理器501例如可以包括通用微处理器(例如CPU)、指令集处理器和/或相关芯片组和/或专用微处理器(例如,专用集成电路(ASIC))等等。处理器501还可以包括用于缓存用途的板载存储器。处理器501可以包括用于执行根据本发明实施例的方法流程的不同动作的单一处理单元或者是多个处理单元。As shown in Figure 5, an electronic device 500 according to an embodiment of the present invention includes a processor 501, which can be loaded into a random access memory (RAM) 503 according to a program stored in a read-only memory (ROM) 502 or from a storage part 508. program to perform various appropriate actions and processes. Processor 501 may include, for example, a general-purpose microprocessor (eg, a CPU), an instruction set processor and/or an associated chipset, and/or a special-purpose microprocessor (eg, an application specific integrated circuit (ASIC)), or the like. Processor 501 may also include onboard memory for caching purposes. The processor 501 may include a single processing unit or multiple processing units for performing different actions of the method flow according to the embodiment of the present invention.
在RAM 503中,存储有电子设备500操作所需的各种程序和数据。处理器 501、ROM502以及RAM 503通过总线504彼此相连。处理器501通过执行ROM 502和/或RAM 503中的程序来执行根据本发明实施例的方法流程的各种操作。需要注意,所述程序也可以存储在除ROM 502和RAM 503以外的一个或多个存储器中。处理器501也可以通过执行存储在所述一个或多个存储器中的程序来执行根据本发明实施例的方法流程的各种操作。In the RAM 503, various programs and data required for the operation of the electronic device 500 are stored. The processor 501, ROM 502 and RAM 503 are connected to each other through a bus 504. The processor 501 performs various operations according to the method flow of the embodiment of the present invention by executing programs in the ROM 502 and/or RAM 503. It should be noted that the program may also be stored in one or more memories other than ROM 502 and RAM 503. The processor 501 may also perform various operations according to the method flow of embodiments of the present invention by executing programs stored in the one or more memories.
根据本发明的实施例,电子设备500还可以包括输入/输出(I/O)接口505,输入/输出(I/O)接口505也连接至总线504。电子设备500还可以包括连接至I/O接口505的以下部件中的一项或多项:包括键盘、鼠标等的输入部分506;包括诸如阴极射线管(CRT)、液晶显示器(LCD)等以及扬声器等的输出部分507;包括硬盘等的存储部分508;以及包括诸如LAN卡、调制解调器等的网络接口卡的通信部分509。通信部分509经由诸如因特网的网络执行通信处理。驱动器510也根据需要连接至I/O接口505。可拆卸介质511,诸如磁盘、光盘、磁光盘、半导体存储器等等,根据需要安装在驱动器510上,以便于从其上读出的计算机程序根据需要被安装入存储部分508。According to an embodiment of the present invention, the electronic device 500 may further include an input/output (I/O) interface 505 that is also connected to the bus 504 . Electronic device 500 may also include one or more of the following components connected to I/O interface 505: an input portion 506 including a keyboard, mouse, etc.; including a cathode ray tube (CRT), liquid crystal display (LCD), etc., and an output section 507 such as a speaker; a storage section 508 including a hard disk and the like; and a communication section 509 including a network interface card such as a LAN card, a modem and the like. The communication section 509 performs communication processing via a network such as the Internet. Driver 510 is also connected to I/O interface 505 as needed. Removable media 511, such as magnetic disks, optical disks, magneto-optical disks, semiconductor memories, etc., are installed on the drive 510 as needed, so that a computer program read therefrom is installed into the storage portion 508 as needed.
本发明还提供了一种计算机可读存储介质,该计算机可读存储介质可以是上述实施例中描述的设备/装置/系统中所包含的;也可以是单独存在,而未装配入该设备/装置/系统中。上述计算机可读存储介质承载有一个或者多个程序,当上述一个或者多个程序被执行时,实现根据本发明实施例的方法。The present invention also provides a computer-readable storage medium. The computer-readable storage medium can be included in the equipment/device/system described in the above embodiments; it can also exist independently without being assembled into the equipment/system. in the device/system. The above computer-readable storage medium carries one or more programs. When the above one or more programs are executed, the method according to the embodiment of the present invention is implemented.
根据本发明的实施例,计算机可读存储介质可以是非易失性的计算机可读存储介质,例如可以包括但不限于:便携式计算机磁盘、硬盘、随机访问存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、便携式紧凑磁盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。在本发明中,计算机可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。例如,根据本发明的实施例,计算机可读存储介质可以包括上文描述的ROM 502和/或RAM 503和/或ROM 502和RAM 503以外的一个或多个存储器。According to embodiments of the present invention, the computer-readable storage medium may be a non-volatile computer-readable storage medium, which may include, but is not limited to, portable computer disks, hard disks, random access memory (RAM), and read-only memory (ROM). , erasable programmable read-only memory (EPROM or flash memory), portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination of the above. In the present invention, a computer-readable storage medium may be any tangible medium that contains or stores a program for use by or in conjunction with an instruction execution system, apparatus, or device. For example, according to embodiments of the present invention, the computer-readable storage medium may include one or more memories other than ROM 502 and/or RAM 503 and/or ROM 502 and RAM 503 described above.
本发明的实施例还包括一种计算机程序产品,其包括计算机程序,该计算机程序包含用于执行流程图所示的方法的程序代码。当计算机程序产品在计算机系统中运行时,该程序代码用于使计算机系统实现本发明实施例所提供的基于目标服务框架的测试方法。Embodiments of the invention also include a computer program product comprising a computer program containing program code for performing the method illustrated in the flowchart. When the computer program product is run in the computer system, the program code is used to enable the computer system to implement the test method based on the target service framework provided by the embodiment of the present invention.
在该计算机程序被处理器501执行时执行本发明实施例的系统/装置中限定的上述功能。根据本发明的实施例,上文描述的系统、装置、模块、单元等可以通过计算机程序模块来实现。When the computer program is executed by the processor 501, the above functions defined in the system/device of the embodiment of the present invention are performed. According to embodiments of the present invention, the systems, devices, modules, units, etc. described above may be implemented by computer program modules.
在一种实施例中,该计算机程序可以依托于光存储器件、磁存储器件等有形存储介质。在另一种实施例中,该计算机程序也可以在网络介质上以信号的形式进行传输、分发,并通过通信部分509被下载和安装,和/或从可拆卸介质511被安装。该计算机程序包含的程序代码可以用任何适当的网络介质传输,包括但不限于:无线、有线等等,或者上述的任意合适的组合。In one embodiment, the computer program may rely on tangible storage media such as optical storage devices and magnetic storage devices. In another embodiment, the computer program can also be transmitted and distributed in the form of a signal on a network medium, and downloaded and installed through the communication part 509, and/or installed from the removable medium 511. The program code contained in the computer program can be transmitted using any appropriate network medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.
在这样的实施例中,该计算机程序可以通过通信部分509从网络上被下载和安装,和/或从可拆卸介质511被安装。在该计算机程序被处理器501执行时,执行本发明实施例的系统中限定的上述功能。根据本发明的实施例,上文描述的系统、设备、装置、模块、单元等可以通过计算机程序模块来实现。In such embodiments, the computer program may be downloaded and installed from the network via communication portion 509 and/or installed from removable media 511 . When the computer program is executed by the processor 501, the above functions defined in the system of the embodiment of the present invention are performed. According to embodiments of the present invention, the systems, devices, devices, modules, units, etc. described above may be implemented by computer program modules.
根据本发明的实施例,可以以一种或多种程序设计语言的任意组合来编写用于执行本发明实施例提供的计算机程序的程序代码,具体地,可以利用高级过程和/或面向对象的编程语言、和/或汇编/机器语言来实施这些计算程序。程序设计语言包括但不限于诸如Java,C++,python,“C”语言或类似的程序设计语言。程序代码可以完全地在用户计算设备上执行、部分地在用户设备上执行、部分在远程计算设备上执行、或者完全在远程计算设备或服务器上执行。在涉及远程计算设备的情形中,远程计算设备可以通过任意种类的网络,包括局域网(LAN)或广域网(WAN),连接到用户计算设备,或者,可以连接到外部计算设备(例如利用因特网服务提供商来通过因特网连接)。According to the embodiments of the present invention, the program code for executing the computer program provided by the embodiments of the present invention may be written in any combination of one or more programming languages. Specifically, high-level procedures and/or object-oriented programming languages may be used. programming language, and/or assembly/machine language to implement these computational procedures. Programming languages include, but are not limited to, programming languages such as Java, C++, python, "C" language or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, partly on a remote computing device, or entirely on the remote computing device or server. In situations involving remote computing devices, the remote computing device may be connected to the user computing device through any kind of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device, such as provided by an Internet service. business to connect via the Internet).
附图中的流程图和框图,图示了按照本发明各种实施例的系统、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段、或代码的一部分,上述模块、程序段、或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。也应当注意,在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个接连地表示的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图或流程图中的每个方框、以及框图或流程图中的方框的组合,可以用执行规定的功能或操作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code that contains one or more logic functions that implement the specified executable instructions. It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown one after another may actually execute substantially in parallel, or they may sometimes execute in the reverse order, depending on the functionality involved. It will also be noted that each block in the block diagram or flowchart illustration, and combinations of blocks in the block diagram or flowchart illustration, can be implemented by special purpose hardware-based systems that perform the specified functions or operations, or may be implemented by special purpose hardware-based systems that perform the specified functions or operations. Achieved by a combination of specialized hardware and computer instructions.
本领域技术人员可以理解,本发明的各个实施例和/或权利要求中记载的特征可以进行多种组合和/或结合,即使这样的组合或结合没有明确记载于本发明中。特别地,在不脱离本发明精神和教导的情况下,本发明的各个实施例和/或权利要求中记载的特征可以进行多种组合和/或结合。所有这些组合和/或结合均落入本发明的范围。Those skilled in the art will understand that the features described in the various embodiments and/or claims of the present invention can be combined and/or combined in various ways, even if such combinations or combinations are not explicitly described in the present invention. In particular, various combinations and/or combinations of features recited in the various embodiments and/or claims of the invention may be made without departing from the spirit and teachings of the invention. All such combinations and/or combinations fall within the scope of the invention.
以上对本发明的实施例进行了描述。但是,这些实施例仅仅是为了说明的目的,而并非为了限制本发明的范围。尽管在以上分别描述了各实施例,但是这并不意味着各个实施例中的措施不能有利地结合使用。本发明的范围由所附权利要求及其等同物限定。不脱离本发明的范围,本领域技术人员可以做出多种替代和修改,这些替代和修改都应落在本发明的范围之内。The embodiments of the present invention have been described above. However, these examples are for illustrative purposes only and are not intended to limit the scope of the invention. Although each embodiment is described separately above, this does not mean that the measures in the various embodiments cannot be used in combination to advantage. The scope of the invention is defined by the appended claims and their equivalents. Without departing from the scope of the present invention, those skilled in the art can make various substitutions and modifications, and these substitutions and modifications should all fall within the scope of the present invention.
Claims (8)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202310806303.1A CN116561013B (en) | 2023-07-04 | 2023-07-04 | Test methods, devices, electronic equipment and media based on the target service framework |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202310806303.1A CN116561013B (en) | 2023-07-04 | 2023-07-04 | Test methods, devices, electronic equipment and media based on the target service framework |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN116561013A CN116561013A (en) | 2023-08-08 |
| CN116561013B true CN116561013B (en) | 2023-09-26 |
Family
ID=87496756
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202310806303.1A Active CN116561013B (en) | 2023-07-04 | 2023-07-04 | Test methods, devices, electronic equipment and media based on the target service framework |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN116561013B (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN117520210B (en) * | 2024-01-05 | 2024-04-16 | 芯瞳半导体技术(山东)有限公司 | System software testing method, target machine and remote testing central control machine |
Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| KR20080047248A (en) * | 2006-11-23 | 2008-05-28 | 한국전자통신연구원 | Remote security testing device and method of RPC-based software |
| CN110430275A (en) * | 2019-08-09 | 2019-11-08 | 中国工商银行股份有限公司 | Data processing method, system, calculates equipment and medium at device |
| CN110798380A (en) * | 2019-10-23 | 2020-02-14 | 北京奇艺世纪科技有限公司 | Data acquisition method, system, device, test equipment and test server |
| CN111382058A (en) * | 2018-12-29 | 2020-07-07 | 北京字节跳动网络技术有限公司 | A service testing method, device, server and storage medium |
| CN112181813A (en) * | 2020-09-17 | 2021-01-05 | 的卢技术有限公司 | Interface automation test method, system and computer readable storage medium |
| CN116069577A (en) * | 2023-01-31 | 2023-05-05 | 浪潮通用软件有限公司 | A kind of interface test method, equipment and medium of RPC service |
Family Cites Families (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| GB2514796A (en) * | 2013-06-04 | 2014-12-10 | Ibm | Web service testing |
| US9921945B2 (en) * | 2015-04-06 | 2018-03-20 | Adp, Llc | Automatic verification of JSON data |
| US20170286267A1 (en) * | 2016-04-01 | 2017-10-05 | Google Inc. | Fast and efficient continuous integration test system for large scale services |
| US10423472B2 (en) * | 2017-05-17 | 2019-09-24 | American Megatrends International, Llc | System and method for providing extended javascript object notation (JSON) remote procedure call (RPC) with mediator |
| US20200110584A1 (en) * | 2018-10-04 | 2020-04-09 | Electronic Arts Inc. | Automated code generation for functional testing of software applications |
| US11829283B2 (en) * | 2021-07-30 | 2023-11-28 | Oracle International Corporation | REST Api validation |
-
2023
- 2023-07-04 CN CN202310806303.1A patent/CN116561013B/en active Active
Patent Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| KR20080047248A (en) * | 2006-11-23 | 2008-05-28 | 한국전자통신연구원 | Remote security testing device and method of RPC-based software |
| CN111382058A (en) * | 2018-12-29 | 2020-07-07 | 北京字节跳动网络技术有限公司 | A service testing method, device, server and storage medium |
| CN110430275A (en) * | 2019-08-09 | 2019-11-08 | 中国工商银行股份有限公司 | Data processing method, system, calculates equipment and medium at device |
| CN110798380A (en) * | 2019-10-23 | 2020-02-14 | 北京奇艺世纪科技有限公司 | Data acquisition method, system, device, test equipment and test server |
| CN112181813A (en) * | 2020-09-17 | 2021-01-05 | 的卢技术有限公司 | Interface automation test method, system and computer readable storage medium |
| CN116069577A (en) * | 2023-01-31 | 2023-05-05 | 浪潮通用软件有限公司 | A kind of interface test method, equipment and medium of RPC service |
Also Published As
| Publication number | Publication date |
|---|---|
| CN116561013A (en) | 2023-08-08 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US11689626B2 (en) | Transport channel via web socket for ODATA | |
| CN110704200B (en) | Method and device for converting calling interface | |
| CN110858172A (en) | Automatic test code generation method and device | |
| CN109981719A (en) | Information processing method and its system, computer system and computer readable medium | |
| CN113360377B (en) | Test method and device | |
| CN113448578A (en) | Page data processing method, processing system, electronic device and readable storage medium | |
| WO2020088050A1 (en) | Information generation method and device | |
| CN114564203A (en) | Service operation method and device, electronic equipment and readable medium | |
| CN115134208A (en) | Message conversion method, device, electronic device and storage medium | |
| CN111783010B (en) | Webpage blank page monitoring method, device, terminal and storage medium | |
| CN115328627A (en) | Data processing method and device | |
| CN112769975B (en) | Data integration method and device, server and storage medium | |
| CN109788010A (en) | A kind of method and apparatus of data localization access | |
| CN116561013B (en) | Test methods, devices, electronic equipment and media based on the target service framework | |
| CN113176907A (en) | Interface data calling method and device, computer system and readable storage medium | |
| CN116662430A (en) | Data query method, device, equipment, medium and product applied to multi-system interaction | |
| CN113779018A (en) | A data processing method and device | |
| WO2022237826A1 (en) | User interface testing method and system, cluster, medium, and program product | |
| CN112015383A (en) | Login method and device | |
| CN111373377A (en) | Error handling | |
| CN114625458A (en) | Page data processing method and device, electronic equipment and storage medium | |
| CN112732547B (en) | Service testing method and device, storage medium and electronic equipment | |
| CN118885237A (en) | A method and device for calling application service | |
| CN111695986B (en) | Method and device for controlling accumulated gold image | |
| WO2019122011A1 (en) | Computer system and method for extracting dynamic content from websites |
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 |