CN116561013A - Test method, device, electronic equipment and medium based on target service framework - Google Patents
Test method, device, electronic equipment and medium based on target service framework Download PDFInfo
- Publication number
- CN116561013A CN116561013A CN202310806303.1A CN202310806303A CN116561013A CN 116561013 A CN116561013 A CN 116561013A CN 202310806303 A CN202310806303 A CN 202310806303A CN 116561013 A CN116561013 A CN 116561013A
- Authority
- CN
- China
- Prior art keywords
- service
- protocol
- test
- framework
- web
- 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
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
本发明提供了一种基于目标服务框架的测试方法、装置、设备、存储介质和程序产品,涉及计算机技术领域,可以应用于金融技术领域。该方法包括:响应于接收到测试服务请求,确定与测试服务请求对应的协议;基于预设的协议调度规则,调用目标服务框架中与协议匹配的服务;基于Web测试服务将测试服务请求发送至目标服务框架中的处理模块,以进行测试服务处理,得到结果信息;以及基于Web测试服务发送结果信息。
The invention provides a testing method, device, equipment, storage medium and program product based on the target service framework, relates to the field of computer technology, and can be applied to the field of financial technology. The method includes: in response to receiving the test service request, determining the protocol corresponding to the test service request; based on the preset protocol scheduling rule, invoking the service matching the protocol in the target service framework; based on the Web test service, sending the test service request to The processing module in the target service framework is used to process the test service and obtain the result information; and send the result information based on the Web test service.
Description
技术领域technical field
本发明涉及计算机技术领域,可以应用于金融技术领域,更具体地涉及一种基于目标服务框架的测试方法、装置、设备、介质和程序产品。The present invention relates to the field of computer technology, can be applied to the field of financial technology, and more specifically relates 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), the JSON RPC service can call its service in RPC mode or web mode (HTTP) when it is implemented. 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 decrease in testing efficiency. For example, in some closed environments where third-party tools cannot be installed; for example, different third-party tools may be incompatible.
发明内容Contents of the invention
鉴于上述问题,本发明提供了基于目标服务框架的测试方法、装置、设备、介质和程序产品,通过响应于接收到测试服务请求,确定与测试服务请求对应的协议;基于预设的协议调度规则,调用目标服务框架中与协议匹配的服务;其中,目标服务框架包括远程过程调用服务框架,与协议匹配的服务包括Web测试服务;基于Web测试服务将测试服务请求发送至目标服务框架中的处理模块,以进行测试服务处理,得到结果信息;以及基于Web测试服务发送结果信息,能够实现自动化测试服务,整个过程不需要依赖三方工具,也不需要登录任何三方服务,从而提高了开发和测试效率。In view of the above problems, the present invention provides a testing method, device, device, medium and program product based on a target service framework, by responding to receiving a testing service request, determining the protocol corresponding to the testing service request; based on preset protocol scheduling rules , call the service that matches the protocol in the target service framework; wherein, the target service framework includes the remote procedure call service framework, and the service that matches the protocol includes the Web test service; based on the Web test service, the test service request is sent to the target service framework for processing module to perform test service processing and obtain result information; and send result information based on Web test service, which can realize automated test service. The whole process does not need to rely on third-party tools, nor does it need to log in to any third-party service, thus improving the efficiency of development and testing .
根据本发明的第一个方面,提供了一种基于目标服务框架的测试方法,包括:响应于接收到测试服务请求,确定与所述测试服务请求对应的协议;基于预设的协议调度规则,调用所述目标服务框架中与所述协议匹配的服务;其中,所述目标服务框架包括远程过程调用服务框架,所述与协议匹配的服务包括Web测试服务;基于所述Web测试服务将所述测试服务请求发送至所述目标服务框架中的处理模块,以进行测试服务处理,得到结果信息;以及基于所述Web测试服务发送所述结果信息。According to a first aspect of the present invention, there is provided a testing method based on a target service framework, including: in response to receiving a testing service request, determining a protocol corresponding to the testing service request; based on preset protocol scheduling rules, Invoking a service matching the protocol in the target service framework; wherein 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 The test service request is sent to the processing module in the target service framework for test service processing to 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 test 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 procedure calling the service framework; and sending 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 call protocol and/or a hypertext transfer protocol, and the service matching the protocol further includes a remote call business service.
根据本发明实施例,所述预设的协议调度规则包括:在确定所述协议为所述远程调用协议的情况下,调用所述远程调用业务服务;以及在确定所述协议为所述超文本传输协议的情况下,调用所述Web测试服务。According to the embodiment of the present invention, the preset protocol scheduling rule includes: invoking the remote call business service when the protocol is determined to be the remote call protocol; and calling the remote call service when the protocol is determined to be 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, where the protocol entry is used to receive a remote call protocol and/or a hypertext transfer protocol.
本发明的第二方面提供了一种基于目标服务框架的测试装置,包括:确定模块,用于响应于接收到测试服务请求,确定与所述测试服务请求对应的协议;调用模块,用于基于预设的协议调度规则,调用所述目标服务框架中与所述协议匹配的服务;其中,所述目标服务框架包括远程过程调用服务框架,所述与协议匹配的服务包括Web测试服务;第一发送模块,用于基于所述Web测试服务将所述测试服务请求发送至所述目标服务框架中的处理模块,以进行测试服务处理,得到结果信息;以及第二发送模块,用于基于所述Web测试服务发送所述结果信息。A second aspect of the present invention provides a test device based on a target service framework, including: a determination module, configured to determine a protocol corresponding to the test service request in response to receiving a test service request; The preset protocol scheduling rule calls the service matching the protocol in the target service framework; 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 A sending module, configured to send the test service request to a 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; memory for storing one or more programs, wherein, when the one or more programs are used by the one or more When the processor is executed, one or more processors are made to execute the above-mentioned testing method based on the target service framework.
本发明的第四方面还提供了一种计算机可读存储介质,其上存储有可执行指令,该指令被处理器执行时使处理器执行上述基于目标服务框架的测试方法。The fourth aspect of the present invention also provides a computer-readable storage medium, on which executable instructions are stored, and when the instructions are executed by a processor, the processor executes the above-mentioned testing method based on the target service framework.
本发明的第五方面还提供了一种计算机程序产品,包括计算机程序,该计算机程序被处理器执行时实现上述基于目标服务框架的测试方法。The fifth aspect of the present invention also provides a computer program product, including a computer program, which implements the above-mentioned testing method based on the target service framework when the computer program is 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 receiving the test service request; based on the preset protocol scheduling rule, invokes the service matching the protocol in the target service framework; Wherein, 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 result information; And based on the web test service to send the result information, the automated test service can be realized. The whole process does not need to rely on third-party tools, nor does it need to log in to any third-party service, thus improving the efficiency of development and testing.
附图说明Description of drawings
通过以下参照附图对本发明实施例的描述,本发明的上述内容以及其他目的、特征和优点将更为清楚,在附图中:Through the following description of the embodiments of the present invention with reference to the accompanying drawings, the above content and other objects, features and advantages of the present invention will be more clear, in the accompanying drawings:
图1示意性示出了根据本发明实施例的基于目标服务框架的测试方法、装置、设备、介质和程序产品的应用场景图;FIG. 1 schematically shows an application scenario diagram of a testing method, device, device, medium, and program product based on a target service framework according to an embodiment of the present invention;
图2示意性示出了根据本发明一实施例的基于目标服务框架的测试方法的流程图;FIG. 2 schematically shows a flow chart of a testing method based on a target service framework according to an embodiment of the present invention;
图3示意性示出了根据本发明另一实施例的基于目标服务框架的测试方法的执行流程图;FIG. 3 schematically shows an execution flowchart of a testing method based on a target service framework according to another embodiment of the present invention;
图4示意性示出了根据本发明实施例的基于目标服务框架的测试装置的结构框图;以及Fig. 4 schematically shows a structural block diagram of a testing device based on a 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 drawings. It should be understood, however, that these descriptions are exemplary only and are not intended to limit the scope of the present invention. In the following detailed description, for purposes of explanation, numerous specific details are set forth in order to provide a thorough understanding of the embodiments of the invention. It may be evident, however, that one or more embodiments may be practiced without these specific details. Also, in the following description, descriptions of well-known structures and techniques are omitted to avoid unnecessarily obscuring the concept of the present invention.
在此使用的术语仅仅是为了描述具体实施例,而并非意在限制本发明。在此使用的术语“包括”、“包含”等表明了所述特征、步骤、操作和/或部件的存在,但是并不排除存在或添加一个或多个其他特征、步骤、操作或部件。The terminology used herein is for the purpose of describing particular embodiments only, and is not intended to be limiting of the invention. The terms "comprising", "comprising", etc. 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 meanings commonly understood by those skilled in the art, unless otherwise defined. It should be noted that the terms used herein should be interpreted to have a meaning consistent with the context of this specification, and 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 expressions such as "at least one of A, B, and C, etc." are used, they should generally be interpreted as those skilled in the art would normally understand the expression (for example, "having A, B, and C A system of at least one of "shall include, but not be limited to, systems with A alone, B alone, C alone, A and B, A and C, B and C, and/or 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 invokes services provided remotely 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测试服务发送结果信息。The embodiment of the present invention provides a test method and device based on the target service framework, in response to receiving the 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 Protocol-matched services; wherein, the target service framework includes a remote procedure call service framework, and the protocol-matched service 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 for test service processing , to obtain the result information; and send the result information based on the Web test service.
图1示意性示出了根据本发明实施例的基于目标服务框架的测试方法、装置、设备、介质和程序产品的应用场景图。Fig. 1 schematically shows an application scenario diagram of a testing method, device, device, medium and program product based on a 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 FIG. 1 , an application scenario 100 according to this embodiment may include terminal devices 101 , 102 , and 103 , a network 104 and a server 105 . The network 104 is used as a medium for providing communication links between the terminal devices 101 , 102 , 103 and the server 105 . Network 104 may include various connection types, such as wires, 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 server 105 via network 104 to receive or send messages and the like. Various communication client applications can be installed on the terminal devices 101, 102, 103, such as shopping applications, web browser applications, search applications, instant messaging tools, email clients, social platform software, etc. (just examples).
终端设备101、102、103可以是具有显示屏并且支持网页浏览的各种电子设备,包括但不限于智能手机、平板电脑、膝上型便携计算机和台式计算机等等。The terminal devices 101, 102, 103 may be various electronic devices with display screens 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 background management server that supports websites browsed by users using the terminal devices 101 , 102 , 103 (just an example). The background management server can analyze and process received data such as user requests, and feed back processing results (such as webpages, information, or data, etc. 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 testing device based on the target service framework provided by the embodiment of the present invention can generally be set in the server 105 . The testing method based on the target service framework provided by the embodiment of the present invention may 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 testing device based on the target service framework provided by the embodiment of the present invention may also be set in a server or a 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 numbers of terminal devices, networks and servers in Fig. 1 are only illustrative. According to the implementation needs, there can be any number of terminal devices, networks and servers.
以下将基于图1描述的场景,通过图2对公开实施例的基于目标服务框架的测试方法进行详细描述。Based on the scenario described in FIG. 1 , the testing method based on the target service framework of the disclosed embodiment will be described in detail below through FIG. 2 .
图2示意性示出了根据本发明实施例的基于目标服务框架的测试方法的流程图。Fig. 2 schematically shows a flowchart of a testing method based on a target service framework according to an embodiment of the present invention.
如图2所示,该实施例包括操作S210~操作S240,该基于目标服务框架的测试方法可以通过服务器执行。As shown in FIG. 2 , this embodiment includes operation S210 to operation S240, and the testing method based on the target service framework can be executed by a 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 have been taken, and they 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 the user can initiate a test service request, such as accessing a web service on a browser. Specifically, if the user clicks on the API interface displayed on the page and modifies parameters, a request can be initiated for testing.
在操作S220,基于预设的协议调度规则,调用目标服务框架中与协议匹配的服务。In operation S220, based on a preset protocol scheduling rule, a service matching the protocol in the target service framework is invoked.
可以理解,协议调度规则用于确定被调用服务。It can be understood that the protocol scheduling rule is used to determine the called service.
例如,协议可以包括远程调用协议(RPC),还可以包括超文本传输协议(HTTP)等。For example, the protocol may include Remote Call Protocol (RPC), and may also include Hypertext Transfer Protocol (HTTP), etc.
例如,服务可以包括Web测试服务,还可以包括远程调用业务服务等。For example, the service may include a Web test service, and may also include a remote call business service, and the like.
例如,协议调度规则包括:在确定协议为远程调用协议的情况下,调用远程调用业务服务;以及在确定协议为超文本传输协议的情况下,调用Web测试服务。For example, the protocol scheduling rule includes: invoking the remote invocation business service if the protocol is determined to be the remote invocation protocol; and invoking the Web test service in the condition that the protocol is determined to be the hypertext transfer protocol.
对于本领域技术人员来说,协议、服务以及协议调度规则可以根据需求配置,对此不进行限定。For those skilled in the art, protocols, services, and protocol scheduling rules can be configured according to requirements, which are not limited.
在操作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 process the test service and obtain result information.
在操作S240,基于Web测试服务发送结果信息。In operation S240, result information is transmitted based on the web testing 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, call the Web test service in the target service framework. 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, to obtain result information. And send the result information to the Web test 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 make testing inconvenient in some closed environments where third-party tools cannot be installed. Moreover, different developers may use different three-party tools, which is not conducive to communication, thereby reducing 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 receiving the test service request; based on the preset protocol scheduling rule, invokes the service matching the protocol in the target service framework; Wherein, 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 result information; And based on the web test service sending result information, the automated test service can be realized, that is, based on the web test service in the remote procedure call service framework, the automated test can be performed by opening the web page on the browser. The whole process does not need to rely on third-party tools, does not need to install third-party tools, and does not need to log in to any third-party services, thus improving the efficiency of development and testing.
基于目标服务框架的测试方法,还包括:将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 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 procedure call service framework; and sending the relevant files of the front-end test page to the remote procedure In the executable that calls the service framework.
图3示意性示出了根据本发明另一实施例的基于目标服务框架的测试方法的执行流程图。参见图3,目标服务框架300可以包括远程过程调用服务框架。该远程过程调用服务框架可以包括协议入口、远程调用业务服务、Web测试服务和处理模块。其中,远程调用客户端、远程调用业务服务以及处理模块是一条RPC业务流程,数据通过RPC协议传输。Web前端、Web测试服务以及处理模块可以实现RPC服务的自动化测试的业务流程,数据通过HTTP协议传输。Fig. 3 schematically shows an execution flowchart of a testing method based on a target service framework according to another embodiment of the present invention. Referring to FIG. 3, the target service framework 300 may include a remote procedure call service framework. The remote procedure call service framework may include a protocol entry, a remote call business service, a Web test service and a processing module. Among them, the remote call client, the remote call business service and the 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 the automated test of the RPC service, 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 the processing result (such as JSON format).
远程调用业务服务,用于对外提供RPC接口,接收RPC客户端的请求,并转发给处理模块进行处理。The remote call business service is used to provide an RPC interface 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, which is used to provide the web test page externally, receive the request from the web front end, and forward it 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 for the Web test service is that the Web test service is a micro web service, which 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 process The call service framework supports the HTTP protocol, so the backend service of the Web test service can be realized directly based on the remote procedure call service framework); 3. The backend service of the Web test service is embedded in the remote procedure call service framework; 4. The front-end test page is related to File packaging is embedded in the RPC service, such as packaging the relevant 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 is further described below in conjunction with the examples, but the present invention is not limited 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 start the test (in this step, you can directly use the default request parameters provided by the page, or start the test after modifying the request parameters);
步骤4、web测试服务收到web前端发起的请求后,将请求转发给业务服务模块;Step 4. After the web test service receives the request initiated by the web front end, it 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 result back to the web test service;
步骤6、web测试服务收到业务处理模块的结果后,将结果发回web前端。Step 6. After the web test service receives the result of the business processing module, it sends the result 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, a list of API interfaces of the RPC service may 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 the proto file, defines the API interface of the RPC service, and the format of the request parameters and response results of the API interface (the request and response are both in JSON format, and it is necessary to specify which fields are there and what type the fields are), and then Use the code generation tool provided by the RPC framework to generate the corresponding code according to the proto file, and the API interface list and default request parameters are automatically generated by parsing the proto file. With the API interface list and default request parameters, users can simply click on the page to realize automated testing.
需要说明的是,内置web服务可以通过配置参数控制是否开启,从而可以仅在测试阶段启用该web测试服务进行测试,服务上线后则关闭该web测试服务,避免暴露过多接口,以提高安全性。It should be noted that the built-in web service can be enabled or disabled through configuration parameters, so that the web test service can be enabled for testing only in the test phase, and the web test service will be closed after the service is launched to avoid exposing too many interfaces to improve security .
基于目标服务框架的测试方法,还包括:配置协议入口,协议入口用于接收远程调用协议和/或超文本传输协议。The testing method based on the target service framework further includes: configuring a protocol entry, the protocol entry is used to receive the remote calling protocol and/or the hypertext transfer protocol.
协议入口:可以用于接收RPC客户端或web前端的请求,根据协议(RPC或HTTP)的不同,将请求转发给相应的服务,如RPC协议传输的数据转发给RPC业务服务,HTTP协议传输的数据转发给web测试服务。Protocol entry: It can be used to receive requests from RPC clients or web front ends, and forward requests to corresponding services according to different protocols (RPC or HTTP), such as forwarding data transmitted by RPC protocol to RPC business services, and data transmitted by HTTP protocol The data is forwarded to the web testing service.
协议入口用于接收远程调用协议和/或超文本传输协议,因此可以只有一个协议入口。The protocol entry is used to receive the remote call protocol and/or the hypertext transfer protocol, so there may be only one protocol entry.
通过在同一个端口上支持RPC、HTTP两种协议实现,RPC业务服务与web测试服务共用同一个端口,这样做的好处是部署与使用更方便。可以理解,也可以采用两个端口的实现方式,RPC业务服务与web测试各占用一个端口。By supporting RPC and HTTP 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 can be understood that the implementation of two ports can also be adopted, and the RPC business service and the web test each occupy one port.
进一步地, RPC业务服务与web测试服务还可以共用同一个业务处理模块,这样做不影响测试结果(业务处理结果),同时能够减少请求转发层次。可以理解,web测试服务收到的请求也可以转发给RPC业务服务,这样会多一次转发。Furthermore, the RPC business service and the web test service can also share the same business processing module, which does not affect the test result (business processing result), and can reduce the request forwarding level at the same time. 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-mentioned testing method based on the target service framework, the present invention also provides a testing device based on the target service framework. The device will be described in detail below with reference to FIG. 4 .
图4示意性示出了根据本发明实施例的基于目标服务框架的测试装置的结构框图。Fig. 4 schematically shows a structural block diagram of a testing device based on a target service framework according to an embodiment of the present invention.
如图4所示,该实施例的基于目标服务框架的测试装置400包括确定模块410、调用模块420、第一发送模块430和第二发送模块440。As shown in FIG. 4 , the testing device 400 based on the target service framework of this embodiment includes a determining 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 determination module 410 is used to determine the protocol corresponding to the test service request in response to receiving the test service request; the calling module 420 is used to call the protocol in the target service framework based on the preset protocol scheduling rule. Matching service; 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 configured 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 to obtain result information; and the second sending module 440 is used to send the result information based on the Web test service.
在一些实施例中,所述装置还包括:嵌入模块,所述嵌入模块用于将所述Web测试服务嵌入所述远程过程调用服务框架。In some embodiments, the device further includes: an embedding module, configured to embed the Web testing service into the remote procedure call service framework.
在一些实施例中,所述Web测试服务包括前端测试页面和后端服务,所述将所述Web测试服务嵌入所述远程过程调用服务框架包括:将所述后端服务发送至所述远程过程调用服务框架;以及将前端测试页面的相关文件发送至所述远程过程调用服务框架的可执行文件中。In some embodiments, 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 calling the service framework; and sending 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: a remote call protocol and/or a hypertext transfer protocol, and the service matching the protocol further includes a remote call service.
在一些实施例中,所述预设的协议调度规则包括:在确定所述协议为所述远程调用协议的情况下,调用所述远程调用业务服务;以及在确定所述协议为所述超文本传输协议的情况下,调用所述Web测试服务。In some embodiments, the preset protocol scheduling rule includes: invoking the remote call business service when the protocol is determined to be the remote call protocol; and calling the remote call service when the protocol is determined to be 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 a remote call protocol and/or a hypertext transfer protocol.
根据本发明的实施例,确定模块410、调用模块420、第一发送模块430和第二发送模块440中的任意多个模块可以合并在一个模块中实现,或者其中的任意一个模块可以被拆分成多个模块。或者,这些模块中的一个或多个模块的至少部分功能可以与其他模块的至少部分功能相结合,并在一个模块中实现。根据本发明的实施例,确定模块410、调用模块420、第一发送模块430和第二发送模块440中的至少一个可以至少被部分地实现为硬件电路,例如现场可编程门阵列(FPGA)、可编程逻辑阵列(PLA)、片上系统、基板上的系统、封装上的系统、专用集成电路(ASIC),或可以通过对电路进行集成或封装的任何其他的合理方式等硬件或固件来实现,或以软件、硬件以及固件三种实现方式中任意一种或以其中任意几种的适当组合来实现。或者,确定模块410、调用模块420、第一发送模块430和第二发送模块440中的至少一个可以至少被部分地实现为计算机程序模块,当该计算机程序模块被运行时,可以执行相应的功能。According to an embodiment of the present invention, any number of modules in the determination module 410, the calling module 420, the first sending module 430, and the second sending module 440 can be implemented in one module, or any one of the modules can be split into multiple modules. Alternatively, at least part of the functions of one or more of these modules may be combined with at least part of the functions 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), programmable logic array (PLA), system-on-chip, system-on-substrate, system-on-package, application-specific integrated circuit (ASIC), or any other reasonable means of integrating or packaging circuits, such as hardware or firmware, Or it may be realized by any one of software, hardware and firmware, or by 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 may be at least partially implemented as a computer program module, and when the computer program module is executed, corresponding functions may 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 FIG. 5 , an electronic device 500 according to an embodiment of the present invention includes a processor 501 that 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 section 508 Various appropriate actions and processing are performed by the program. The processor 501 may include, for example, a general-purpose microprocessor (eg, a CPU), an instruction set processor and/or a related chipset, and/or a special-purpose microprocessor (eg, an application-specific integrated circuit (ASIC)), and the like. Processor 501 may also include on-board memory for caching purposes. The processor 501 may include a single processing unit or a plurality of processing units for executing 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 necessary 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 executes various operations according to the method flow of the embodiment of the present invention by executing the programs in the ROM 502 and/or the 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 execute various operations of the method flow according to the embodiment of the present invention by executing the 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 which is also connected to the bus 504 . The electronic device 500 may also include one or more of the following components connected to the I/O interface 505: an input part 506 including a keyboard, a mouse, etc.; including a cathode ray tube (CRT), a liquid crystal display (LCD), etc. An output section 507 of a speaker or the like; a storage section 508 including a hard disk or the like; and a communication section 509 including a network interface card such as a LAN card, a modem, or the like. The communication section 509 performs communication processing via a network such as the Internet. A drive 510 is also connected to the I/O interface 505 as needed. A removable medium 511 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc. is mounted on the drive 510 as necessary so that a computer program read therefrom is installed into the storage section 508 as necessary.
本发明还提供了一种计算机可读存储介质,该计算机可读存储介质可以是上述实施例中描述的设备/装置/系统中所包含的;也可以是单独存在,而未装配入该设备/装置/系统中。上述计算机可读存储介质承载有一个或者多个程序,当上述一个或者多个程序被执行时,实现根据本发明实施例的方法。The present invention also provides a computer-readable storage medium. The computer-readable storage medium may be included in the device/apparatus/system described in the above embodiments; it may also exist independently without being assembled into the device/system device/system. The above-mentioned computer-readable storage medium carries one or more programs, and when the above-mentioned 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 an embodiment of the present invention, the computer-readable storage medium may be a non-volatile computer-readable storage medium, such as but not limited to: portable computer disk, hard disk, random access memory (RAM), 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 that can be used by or in conjunction with an instruction execution system, apparatus, or device. For example, according to an embodiment of the present invention, a 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 present invention also include a computer program product, which includes a computer program including program codes for executing the methods shown in the flowcharts. When the computer program product runs in the computer system, the program code is used to make the computer system realize the testing 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-mentioned functions defined in the system/device of the embodiment of the present invention are performed. According to the embodiments of the present invention, the above-described systems, devices, modules, units, etc. 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, 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 by any appropriate network medium, including but not limited to: wireless, wired, etc., or any appropriate combination of the above.
在这样的实施例中,该计算机程序可以通过通信部分509从网络上被下载和安装,和/或从可拆卸介质511被安装。在该计算机程序被处理器501执行时,执行本发明实施例的系统中限定的上述功能。根据本发明的实施例,上文描述的系统、设备、装置、模块、单元等可以通过计算机程序模块来实现。In such an embodiment, the computer program may be downloaded and installed from a network via communication portion 509 and/or installed from removable media 511 . When the computer program is executed by the processor 501, the above-mentioned functions defined in the system of the embodiment of the present invention are performed. According to the embodiments of the present invention, the above-described systems, devices, devices, modules, units, etc. may be implemented by computer program modules.
根据本发明的实施例,可以以一种或多种程序设计语言的任意组合来编写用于执行本发明实施例提供的计算机程序的程序代码,具体地,可以利用高级过程和/或面向对象的编程语言、和/或汇编/机器语言来实施这些计算程序。程序设计语言包括但不限于诸如Java,C++,python,“C”语言或类似的程序设计语言。程序代码可以完全地在用户计算设备上执行、部分地在用户设备上执行、部分在远程计算设备上执行、或者完全在远程计算设备或服务器上执行。在涉及远程计算设备的情形中,远程计算设备可以通过任意种类的网络,包括局域网(LAN)或广域网(WAN),连接到用户计算设备,或者,可以连接到外部计算设备(例如利用因特网服务提供商来通过因特网连接)。According to the embodiments of the present invention, the program codes for executing the computer programs provided by the embodiments of the present invention can be written in any combination of one or more programming languages, specifically, high-level procedural and/or object-oriented programming language, and/or assembly/machine language to implement these computing programs. Programming languages include, but are not limited to, programming languages such as Java, C++, python, "C" or similar programming languages. The program code can execute entirely on the user computing device, partly on the user device, partly on the remote computing device, or entirely on the remote computing device or server. In cases involving a remote computing device, 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 it may be connected to an external computing device (for example, using an Internet service provider). business to connect via the Internet).
附图中的流程图和框图,图示了按照本发明各种实施例的系统、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段、或代码的一部分,上述模块、程序段、或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。也应当注意,在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个接连地表示的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图或流程图中的每个方框、以及框图或流程图中的方框的组合,可以用执行规定的功能或操作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。The flowchart 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 a flowchart or block diagram may represent a module, program segment, or portion of code that includes one or more logical functions for implementing 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 in succession may, in fact, be executed substantially concurrently, or they may sometimes be executed in the reverse order, depending upon the functionality involved. It should also be noted that each block in the block diagrams or flowchart illustrations, and combinations of blocks in the block diagrams or flowchart illustrations, can be implemented by a dedicated hardware-based system that performs the specified function or operation, or can be implemented by a A combination of dedicated hardware and computer instructions.
本领域技术人员可以理解,本发明的各个实施例和/或权利要求中记载的特征可以进行多种组合和/或结合,即使这样的组合或结合没有明确记载于本发明中。特别地,在不脱离本发明精神和教导的情况下,本发明的各个实施例和/或权利要求中记载的特征可以进行多种组合和/或结合。所有这些组合和/或结合均落入本发明的范围。Those skilled in the art can understand that various combinations and/or combinations of the features described in various embodiments and/or claims of the present invention can be made, even if such combinations or combinations are not explicitly recorded in the present invention. In particular, without departing from the spirit and teaching of the present invention, the various embodiments of the present invention and/or the features recited in the claims can be combined and/or combined in various ways. All such combinations and/or combinations fall within the scope of the present 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 present invention. Although the various embodiments have been described separately above, this does not mean that the measures in the various embodiments cannot be advantageously used in combination. The scope of the invention is defined by the appended claims and their equivalents. Those skilled in the art can make various substitutions and modifications without departing from the scope of the present invention, and these substitutions and modifications should all fall within the scope of the present invention.
Claims (9)
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 true CN116561013A (en) | 2023-08-08 |
| CN116561013B 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) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN117520210A (en) * | 2024-01-05 | 2024-02-06 | 芯瞳半导体技术(山东)有限公司 | System software testing method, target machine and remote testing central control machine |
Citations (12)
| 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 |
| US20160127409A1 (en) * | 2013-06-04 | 2016-05-05 | International Business Machines Corporation | Web service testing |
| US20160292242A1 (en) * | 2015-04-06 | 2016-10-06 | 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 |
| US20180336077A1 (en) * | 2017-05-17 | 2018-11-22 | American Megatrends, Inc. | System and method for providing extended javascript object notation (json) remote procedure call (rpc) with mediator |
| 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 |
| US20200110584A1 (en) * | 2018-10-04 | 2020-04-09 | Electronic Arts Inc. | Automated code generation for functional testing of software applications |
| 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 |
| US20230047837A1 (en) * | 2021-07-30 | 2023-02-16 | Oracle International Corporation | REST API Validation |
| CN116069577A (en) * | 2023-01-31 | 2023-05-05 | 浪潮通用软件有限公司 | A kind of interface test method, equipment and medium of RPC service |
-
2023
- 2023-07-04 CN CN202310806303.1A patent/CN116561013B/en active Active
Patent Citations (12)
| 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 |
| US20160127409A1 (en) * | 2013-06-04 | 2016-05-05 | International Business Machines Corporation | Web service testing |
| US20160292242A1 (en) * | 2015-04-06 | 2016-10-06 | 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 |
| US20180336077A1 (en) * | 2017-05-17 | 2018-11-22 | American Megatrends, Inc. | 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 |
| 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 |
| US20230047837A1 (en) * | 2021-07-30 | 2023-02-16 | Oracle International Corporation | REST API Validation |
| CN116069577A (en) * | 2023-01-31 | 2023-05-05 | 浪潮通用软件有限公司 | A kind of interface test method, equipment and medium of RPC service |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN117520210A (en) * | 2024-01-05 | 2024-02-06 | 芯瞳半导体技术(山东)有限公司 | System software testing method, target machine and remote testing central control machine |
| CN117520210B (en) * | 2024-01-05 | 2024-04-16 | 芯瞳半导体技术(山东)有限公司 | System software testing method, target machine and remote testing central control machine |
Also Published As
| Publication number | Publication date |
|---|---|
| CN116561013B (en) | 2023-09-26 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN110457144B (en) | Method, device, medium and equipment for realizing front-end application | |
| CN108416021B (en) | Browser webpage content processing method and device, electronic equipment and readable medium | |
| CN109981719A (en) | Information processing method and its system, computer system and computer readable medium | |
| CN113360377B (en) | Test method and device | |
| CN110109983A (en) | A kind of method and apparatus operating Redis database | |
| CN112015384A (en) | Interface mapping method and device | |
| CN114564203A (en) | Service operation method and device, electronic equipment and readable medium | |
| CN113761871A (en) | Rich text rendering method, apparatus, electronic device and storage medium | |
| CN115134208A (en) | Message conversion method, device, electronic device and storage medium | |
| CN115328627A (en) | Data processing method and device | |
| CN112769975B (en) | Data integration method and device, server and storage medium | |
| CN113176907A (en) | Interface data calling method and device, computer system and readable storage medium | |
| CN116561013B (en) | Test methods, devices, electronic equipment and media based on the target service framework | |
| CN110377273B (en) | Data processing method, device, medium and electronic equipment | |
| CN113779018A (en) | A data processing method and device | |
| CN116662430A (en) | Data query method, device, equipment, medium and product applied to multi-system interaction | |
| CN113791777A (en) | Picture display method and device, computer readable storage medium and electronic equipment | |
| CN115600023A (en) | Client page jump method, device, equipment and storage medium | |
| CN112015383A (en) | Login method and device | |
| CN112149392A (en) | A rich text editing method and device | |
| CN111953718A (en) | A kind of page debugging method and device | |
| CN118885237A (en) | A method and device for calling application service | |
| CN118972431A (en) | AI model request processing method, computer equipment, medium and product | |
| CN116781586A (en) | A gRPC traffic analysis method, device, equipment and medium | |
| CN115756462A (en) | Webpage generation method and device, electronic equipment and storage medium |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |