WO2019196213A1 - Interface test method, apparatus and device, and computer-readable storage medium - Google Patents
Interface test method, apparatus and device, and computer-readable storage medium Download PDFInfo
- Publication number
- WO2019196213A1 WO2019196213A1 PCT/CN2018/094104 CN2018094104W WO2019196213A1 WO 2019196213 A1 WO2019196213 A1 WO 2019196213A1 CN 2018094104 W CN2018094104 W CN 2018094104W WO 2019196213 A1 WO2019196213 A1 WO 2019196213A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- tested
- http
- interface
- version number
- sampler
- 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.)
- Ceased
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/50—Testing arrangements
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/08—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
Definitions
- a processing module configured to process the data to be tested according to the processing manner, to obtain the processed data to be tested
- FIG. 1 is a schematic flowchart of a first embodiment of an interface testing method according to the present application.
- FIG. 1 is a schematic flowchart of a first embodiment of an interface test method according to the present application.
- the embodiments of the present application provide an embodiment of the interface testing method. It should be noted that although the logical order is shown in the flowchart, in some cases, the illustrated or described may be performed in an order different from the ones described herein. A step of.
- Real-time detection detects whether a selection command to select the HTTP interface path to be tested is detected. After detecting the selection instruction of the selected path, the version number of the HTTP interface to be tested is obtained according to the selection instruction. It can be understood that the path of an HTTP interface to be tested corresponds to a version of the HTTP interface to be tested.
- the selection instruction may be triggered by the user clicking on the path of the HTTP interface to be tested, or triggered by the user entering the path of the HTTP interface to be tested on a specific input interface.
- step c the processed data to be tested is sent to the HTTP sampler, and the HTTP is obtained in a byte stream manner. The value corresponding to the data to be tested after processing in the sampler.
- HTTP The sampler is a component that is specifically used to simulate the HTTP protocol interface, so when the data to be tested is sent to HTTP After the sampler, the data to be tested passes the HTTP interface to be tested. Since the byte stream can be used for any type of object, including binary objects, HTTP can be extracted through the byte stream. Any type of data to be tested in the sampler allows the interface test method to be used to test whether different types of data can successfully pass the HTTP interface.
- Step d parsing the value, obtaining a plaintext corresponding to the value, and sending the plaintext to the HTTP
- the test result of the HTTP interface to be tested is obtained by responding to the plaintext in the HTTP sampler.
- the value is parsed according to the method corresponding to the data to be tested, and the corresponding plaintext is obtained, that is, the parsing process includes decryption operation and/or decompression. operating.
- the Base64 algorithm is used to encrypt the test data and obtain the processed data to be tested, then the Base64 algorithm is used to decrypt the value, and the plaintext corresponding to the data to be tested is obtained, that is, the original data to be tested is obtained;
- the DES algorithm encrypts the test data and compresses the test data using the LZ77 code. At this time, the DES algorithm is used to decrypt the value, and the LZ77 code is used to decompress the value to obtain the plaintext corresponding to the value.
- step d includes:
- Step e parsing the value, obtaining a plaintext corresponding to the value, and sending the plaintext to the HTTP
- the result identifier of the HTTP interface test result to be tested is obtained by responding to the plaintext in the HTTP sampler.
- Step f If the result is identified as the first identifier, determine that the HTTP interface to be tested is in a normal state.
- Step g If the result is identified as the second identifier, it is determined that the HTTP interface to be tested is in an abnormal state.
- the interface testing method further includes:
- Step S41 Send the processed data to be tested to the HTTP by using the URL carrying the version number.
- the test result of the HTTP interface to be tested is obtained by responding to the data to be tested in the HTTP sampler.
- the processed data to be tested is sent to the HTTP by the URL carrying the version number.
- the test result of the HTTP interface to be tested is obtained by responding to the processed data to be tested in the HTTP sampler.
- the URL carrying the version number is obtained, and the URL carrying the version number is used to ensure that the data to be tested is successfully sent to the HTTP.
- the test success rate of the test HTTP interface is improved.
- setting a processing method corresponding to the version number smaller than the first preset version number according to the setting instruction is an encryption process.
- the setting instruction can be triggered by the user as needed.
- the first preset version number can be set according to specific needs, such as 2 or 3.
- an encryption method corresponding to the encryption process may also be set. If the user does not set the encryption algorithm and/or the compression algorithm corresponding to the processing mode, the encryption algorithm and/or the compression algorithm are randomly selected during the test of the HTTP interface process to be tested.
- Step S70 Set a processing mode corresponding to the version number greater than the first preset version number as an encryption process and a compression process according to the setting instruction.
- the processing manner corresponding to setting the version number to be larger than the first preset version number is encryption processing and compression processing. Further, the same or different encryption algorithms and/or compression algorithms may be set for different version numbers.
- the interface testing method further includes:
- the processing method corresponding to setting the version number to be less than or equal to the second preset version number according to the setting instruction is to perform encryption processing by using a symmetric encryption algorithm.
- setting a processing method corresponding to the version number less than or equal to the second preset version number according to the setting instruction is to perform encryption processing by using a symmetric encryption algorithm.
- the second preset version number may be the same as or different from the first preset version number.
- Symmetric encryption algorithms include but are not limited to DES, 3DES and TDEA (Triple Data Encryption Algorithm).
- the processing method that the version number is greater than the second preset version number and is less than or equal to the third preset version number is an encryption process using an asymmetric encryption algorithm.
- asymmetric encryption algorithms include, but are not limited to, RSA, Elgamal, and knapsack algorithms.
- the third preset version number is greater than the second preset version number.
- Step j Set a version number greater than a third preset version number according to the setting instruction, and a processing method corresponding to the fourth preset version number is an encryption process using an asymmetric encryption algorithm, and performing a lossy compression method. Compression processing.
- the processing method that the version number is greater than the third preset version number and is less than or equal to the fourth preset version number is that the encryption processing is performed by using an asymmetric encryption algorithm, and the compression processing is performed by using a lossy compression method.
- the fourth preset version number is greater than the third preset version number, and the second preset version, the third preset version number, and the fourth preset version number may be set by the user according to specific needs.
- step k the processing manner corresponding to setting the version number to be greater than the fourth preset version number according to the setting instruction is to perform encryption processing by using an asymmetric encryption algorithm, and performing compression processing by using a lossless compression method.
- mapping relationship between the interface version number and the processing mode may be set in other manners. In this embodiment, the setting is performed.
- the specific implementation manner of the mapping relationship between the interface version number and the processing mode is not limited.
- mapping relationship between the interface version number and the processing mode is set according to the setting instruction, so that the corresponding processing mode can be directly determined according to the interface version number in the process of testing the HTTP interface to be tested.
- the obtaining module 10 is configured to obtain the version number of the HTTP interface to be tested after the data to be tested of the HTTP interface of the hypertext transfer protocol to be tested is obtained.
- the determining module 20 is configured to determine, according to the mapping relationship between the version number of the HTTP interface to be tested and the processing manner of the data to be tested, the data to be tested according to the version number of the HTTP interface to be tested. Processing method
- the processing module 30 is configured to process the data to be tested according to the processing manner, and obtain the processed data to be tested;
- the sending module 40 is configured to send the processed data to be tested to the HTTP sampler sampler to be in the HTTP In the sampler, the test result of the HTTP interface to be tested is obtained by the processed data to be tested, and the front end processor and the back end processor of the stress test tool jmeter are integrated in the HTTP. Sampler.
- the obtaining module 10 obtains the version number of the HTTP interface to be tested, and the determining module 20 determines the processing mode of the data to be tested according to the version number of the HTTP interface to be tested, and the processing module 30 processes the to-be-tested according to the processing manner determined by the determining module 20.
- Data, the processed data to be tested is obtained, and the sending module 40 sends the processed data to be tested to the HTTP of the front-end processor and the back-end processor integrated with jmeter.
- Sampler in response to the processed data to be tested in the HTTP sampler, via HTTP The sampler obtains the original data to be tested to test the HTTP interface to be tested. It avoids the need to perform a series of operations on the front-end processor and the back-end processor of the beanshell during the test of the HTTP interface, which simplifies the testing process of testing the HTTP interface and improves the testing efficiency of the HTTP interface.
- the sending module 40 is further configured to send the processed data to be tested to the HTTP by using the URL carrying the version number.
- the test result of the HTTP interface to be tested is obtained by responding to the data to be tested in the HTTP sampler.
- the interface testing device further includes:
- the interface testing device further includes:
- a second setting module configured to: when the setting instruction for setting the mapping relationship is detected, set a processing mode corresponding to a version number less than or equal to a second preset version number according to the setting instruction to perform encryption processing by using a symmetric encryption algorithm And setting, according to the setting instruction, that the version number is greater than the second preset version number, and the processing manner corresponding to the third preset version number is: performing an encryption process by using an asymmetric encryption algorithm; setting a version according to the setting instruction;
- the processing method corresponding to the third preset version number and less than or equal to the fourth preset version number is that the encryption processing is performed by using an asymmetric encryption algorithm, and the compression processing is performed by using a lossy compression method; and the version is set according to the setting instruction.
- the processing method corresponding to the number greater than the fourth preset version number is an encryption process using an asymmetric encryption algorithm, and a compression process using a lossless compression method.
- the sending module 40 includes:
- a sending unit configured to send the processed data to be tested to an HTTP sampler
- a parsing unit configured to parse the numerical value to obtain a plaintext corresponding to the numerical value
- the sending unit is further configured to send the plaintext to the HTTP sampler to be in the HTTP
- the test result of the HTTP interface to be tested is obtained by responding to the plaintext in the sampler.
- the sending unit further includes:
- a sending subunit configured to send the plaintext to the HTTP sampler to be in the HTTP Responding to the plaintext in the sampler, and obtaining a result identifier of the test result of the HTTP interface to be tested;
- Determining the sub-unit if the result is identified as the first identifier, determining that the HTTP interface to be tested is in a normal state; if the result identifier is a second identifier, determining that the HTTP interface to be tested is in an abnormal state.
- the obtaining module 10 includes:
- a selection unit configured to display, on the display interface, a path of the HTTP interface to be tested that is to be tested after the data to be tested of the HTTP interface to be tested is obtained;
- a second obtaining unit configured to acquire a version number of the HTTP interface to be tested according to the selection instruction, after detecting a selection instruction for selecting the path.
- each embodiment of the interface testing device is substantially the same as the foregoing embodiments of the interface testing method, and details are not described herein again.
- FIG. 5 is a schematic structural diagram of a hardware operating environment involved in an embodiment of the present application.
- FIG. 5 can be a schematic structural diagram of a hardware operating environment of the interface test device.
- the interface test device in this embodiment of the present application may be a terminal device such as a PC or a portable computer.
- the interface test device can include a processor 1001, such as a CPU, a network interface 1004, a memory 1005, and a communication bus 1002.
- the communication bus 1002 is used to implement connection communication between these components.
- the memory 1005 may be a high speed RAM memory or a stable memory (non-volatile) Memory), such as disk storage.
- the memory 1005 can also optionally be a storage device independent of the aforementioned processor 1001.
- the interface test device structure shown in FIG. 5 does not constitute a limitation of the interface test device, and may include more or less components than those illustrated, or combine some components or different components. Arrangement.
- an operating system and an interface test program may be included in the memory 1005 as a computer storage medium.
- the operating system is a program that manages and controls the interface test device hardware and software resources, and supports the operation of the interface test program and other software or programs.
- the processor 1001 can be used to call an interface test program stored in the memory 1005 and perform the steps of the interface test method as described above.
- the embodiment of the present application further provides a computer readable storage medium, where the interface readable storage program is stored, and the interface test program is executed by the processor to implement the steps of the interface testing method as described above. .
- the foregoing embodiment method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be through hardware, but in many cases, the former is better.
- Implementation Based on such understanding, the technical solution of the present application, which is essential or contributes to the prior art, may be embodied in the form of a software product stored in a storage medium (such as ROM/RAM, disk,
- the optical disc includes a number of instructions for causing a terminal device (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the methods described in various embodiments of the present application.
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Environmental & Geological Engineering (AREA)
- Computer And Data Communications (AREA)
Abstract
Description
本申请要求于2018年4月12日提交中国专利局、申请号为201810330488.2、发明名称为“接口测试方法、装置、设备及计算机可读存储介质”的中国专利申请的优先权,其全部内容通过引用结合在申请中。This application claims the priority of the Chinese Patent Application filed on April 12, 2018, the Chinese Patent Office, Application No. 201 810 s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s The citation is incorporated in the application.
技术领域Technical field
本申请涉及区块链技术领域,尤其涉及一种接口测试方法、装置、设备及计算机可读存储介质。The present application relates to the field of blockchain technology, and in particular, to an interface test method, apparatus, device, and computer readable storage medium.
背景技术Background technique
现有的HTTP(Hyper Text Transfer Protocol,超文本传输协议)接口的测试方法为:beanshell的前置处理器将加密和/或压缩后的数据通过HTTP接口将数据传输给beanshell的后置处理器,后置处理器接收到加密和/或压缩后的数据后,对应解密和/或解压缩后该数据,得到对应的明文,并响应该明文。其中,beanshell是一个JAVA源码解释器,支持对象式的脚本语言特性,亦可嵌入到JAVA源代码中。当后置处理器响应明文后,将响应结果加密和/或压缩后通过HTTP接口返回给前置处理器。当前置处理器接收到响应结果后,需要进行对应的加密操作和/或解压缩操作才可以知道HTTP接口的测试结果。由此可知,现有的HTTP接口的测试方法操作流程繁琐。Existing HTTP (Hyper Text Transfer The Protocol, Hypertext Transfer Protocol) test method is: the bean front processor passes the encrypted and/or compressed data to the backdoor processor of the bean shell through the HTTP interface, and the post processor receives the encryption and After the compressed data, corresponding to the decrypted and/or decompressed data, the corresponding plaintext is obtained, and the plaintext is responded to. Among them, beanshell is a JAVA source interpreter that supports object-based scripting language features and can be embedded in JAVA source code. After the post processor responds to the plaintext, the response result is encrypted and/or compressed and returned to the preprocessor through the HTTP interface. After the current processor receives the response result, it needs to perform the corresponding encryption operation and/or decompression operation to know the test result of the HTTP interface. It can be seen that the existing HTTP interface test method operation process is cumbersome.
发明内容Summary of the invention
本申请的主要目的在于提供一种接口测试方法、装置、设备及计算机可读存储介质,旨在解决现有的HTTP接口测试流程繁琐的技术问题。The main purpose of the present application is to provide an interface testing method, apparatus, device, and computer readable storage medium, which are intended to solve the cumbersome technical problems of the existing HTTP interface testing process.
为实现上述目的,本申请提供一种接口测试方法,所述接口测试方法包括步骤:To achieve the above objective, the present application provides an interface testing method, where the interface testing method includes the following steps:
当获取到测试待测试超文本传输协议HTTP接口的待测试数据后,获取所述待测试HTTP接口的版本号;After obtaining the data to be tested for testing the HTTP interface of the hypertext transfer protocol to be tested, obtaining the version number of the HTTP interface to be tested;
基于所述待测试HTTP接口的版本号与针对所述待测试数据的处理方式之间的映射关系,根据所述待测试HTTP接口的版本号确定对所述待测试数据的处理方式;And determining, according to the version number of the HTTP interface to be tested, a processing manner of the data to be tested according to a mapping relationship between the version number of the HTTP interface to be tested and the processing manner of the data to be tested;
按照所述处理方式对所述待测试数据进行处理,得到处理后的所述待测试数据;Processing the data to be tested according to the processing manner, and obtaining the processed data to be tested;
将处理后的所述待测试数据发送至HTTP取样器sampler中,以在所述HTTP sampler中响应处理后的所述待测试数据,得到所述待测试HTTP接口的测试结果,压力测试工具jmeter的前端处理器和后端处理器集成在所述HTTP sampler中。Transmitting the processed data to be tested to an HTTP sampler sampler to be in the HTTP In the sampler, the test result of the HTTP interface to be tested is obtained by the processed data to be tested, and the front end processor and the back end processor of the stress test tool jmeter are integrated in the HTTP. Sampler.
此外,为实现上述目的,本申请还提供一种接口测试装置,所述接口测试装置包括:In addition, in order to achieve the above object, the present application further provides an interface testing device, where the interface testing device includes:
获取模块,用于当获取到测试待测试超文本传输协议HTTP接口的待测试数据后,获取所述待测试HTTP接口的版本号;An obtaining module, configured to obtain a version number of the HTTP interface to be tested after the data to be tested of the HTTP interface of the hypertext transfer protocol to be tested is obtained;
确定模块,用于基于所述待测试HTTP接口的版本号与针对所述待测试数据的处理方式之间的映射关系,根据所述待测试HTTP接口的版本号确定对所述待测试数据的处理方式;a determining module, configured to determine, according to the mapping relationship between the version number of the HTTP interface to be tested and the processing mode of the data to be tested, the processing of the data to be tested according to the version number of the HTTP interface to be tested the way;
处理模块,用于按照所述处理方式对所述待测试数据进行处理,得到处理后的所述待测试数据;a processing module, configured to process the data to be tested according to the processing manner, to obtain the processed data to be tested;
发送模块,用于将处理后的所述待测试数据发送至HTTP取样器sampler中,以在所述HTTP sampler中响应处理后的所述待测试数据,得到所述待测试HTTP接口的测试结果,压力测试工具jmeter的前端处理器和后端处理器集成在所述HTTP sampler中。a sending module, configured to send the processed data to be tested to an HTTP sampler sampler to be in the HTTP In the sampler, the test result of the HTTP interface to be tested is obtained by the processed data to be tested, and the front end processor and the back end processor of the stress test tool jmeter are integrated in the HTTP. Sampler.
此外,为实现上述目的,本申请还提供一种接口测试设备,所述接口测试设备包括存储器、微处理器和存储在所述存储器上并可在所述处理器上运行的接口测试程序,所述接口测试程序被所述微处理器执行时实现如上所述的接口测试方法的步骤。In addition, in order to achieve the above object, the present application further provides an interface testing device, including: a memory, a microprocessor, and an interface test program stored on the memory and operable on the processor, The steps of the interface test method as described above are implemented when the interface test program is executed by the microprocessor.
此外,为实现上述目的,本申请还提供一种计算机可读存储介质,所述计算机可读存储介质上存储有接口测试程序,所述接口测试程序被处理器执行时实现如上所述的接口测试方法的步骤。In addition, in order to achieve the above object, the present application further provides a computer readable storage medium, where the interface test program is stored, and the interface test program is implemented by the processor to implement the interface test as described above. The steps of the method.
本申请通过获取待测试HTTP接口的版本号,根据待测试HTTP接口的版本号确定处理待测试数据的处理方式,得到处理后的待测试数据,将处理后的待测试数据发送至集成了jmeter的前端处理器和后端处理器的HTTP sampler中,以在HTTP sampler中响应处理后的待测试数据,通过 HTTP sampler获取原始的待测试数据,以测试待测试HTTP接口。避免了在测试HTTP接口过程中,需要在beanshell的前端处理器和后端处理器分别进行一系列的操作,简化了测试HTTP接口的测试流程,提高了HTTP接口的测试效率。After obtaining the version number of the HTTP interface to be tested, the method determines the processing mode of the data to be tested according to the version number of the HTTP interface to be tested, obtains the processed data to be tested, and sends the processed data to be tested to the integrated jmeter. HTTP for front-end processor and back-end processor Sampler, in response to the processed data to be tested in the HTTP sampler, via HTTP The sampler obtains the original data to be tested to test the HTTP interface to be tested. It avoids the need to perform a series of operations on the front-end processor and the back-end processor of the beanshell during the test of the HTTP interface, which simplifies the testing process of testing the HTTP interface and improves the testing efficiency of the HTTP interface.
附图说明DRAWINGS
图1为本申请接口测试方法第一实施例的流程示意图;1 is a schematic flowchart of a first embodiment of an interface testing method according to the present application;
图2为本申请接口测试方法第二实施例的流程示意图;2 is a schematic flowchart of a second embodiment of an interface testing method according to the present application;
图3为本申请接口测试方法第三实施例的流程示意图;3 is a schematic flowchart of a third embodiment of an interface testing method according to the present application;
图4为本申请接口测试装置较佳实施例的功能示意图模块图;4 is a block diagram showing the function of a preferred embodiment of the interface testing device of the present application;
图5是本申请实施例方案涉及的硬件运行环境的结构示意图。FIG. 5 is a schematic structural diagram of a hardware operating environment involved in an embodiment of the present application.
本申请目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。The implementation, functional features and advantages of the present application will be further described with reference to the accompanying drawings.
具体实施方式detailed description
应当理解,此处所描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。It is understood that the specific embodiments described herein are merely illustrative of the application and are not intended to be limiting.
本申请提供一种接口测试方法,参照图1,图1为本申请接口测试方法第一实施例的流程示意图。The present application provides an interface test method. Referring to FIG. 1, FIG. 1 is a schematic flowchart of a first embodiment of an interface test method according to the present application.
本申请实施例提供了接口测试方法的实施例,需要说明的是,虽然在流程图中示出了逻辑顺序,但是在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤。The embodiments of the present application provide an embodiment of the interface testing method. It should be noted that although the logical order is shown in the flowchart, in some cases, the illustrated or described may be performed in an order different from the ones described herein. A step of.
接口测试方法可应用于接口测试设备,接口测试设备可为PC(personal computer,个人计算机),便携计算机等终端设备,以下以接口测试设备为执行主体描述本方案,为了简便,省略了接口测试设备这个执行主体。接口测试方法包括:The interface test method can be applied to the interface test device, and the interface test device can be a PC (personal The terminal device such as a computer, a personal computer, and a portable computer. The following describes the solution by using an interface test device as an execution subject. For the sake of simplicity, the execution body of the interface test device is omitted. Interface test methods include:
步骤S10,当获取到测试待测试超文本传输协议HTTP接口的待测试数据后,获取所述待测试HTTP接口的版本号。Step S10: After obtaining the data to be tested for testing the HTTP interface of the hypertext transfer protocol to be tested, obtain the version number of the HTTP interface to be tested.
当获取到测试待测试HTTP接口的待测试数据后,获取待测试HTTP接口的版本号。其中,待测试数据可为预先设置好的测试数据,或者在启动接口测试流程时由用户手动输入的。需要说明的是,用户在使用HTTP接口传输数据过程中,有些用户更新了HTTP接口,有的用户没有更新HTTP接口。因此,需要获取待测试HTTP接口的版本号来确定所测试的接口是哪个版本的HTTP接口。 After the test data of the HTTP interface to be tested is obtained, the version number of the HTTP interface to be tested is obtained. The data to be tested may be pre-set test data, or manually input by the user when the interface test process is started. It should be noted that some users update the HTTP interface during the process of transmitting data using the HTTP interface, and some users do not update the HTTP interface. Therefore, it is necessary to obtain the version number of the HTTP interface to be tested to determine which version of the HTTP interface the tested interface is.
进一步地,步骤S10包括:Further, step S10 includes:
步骤a,当获取到测试待测试HTTP接口的待测试数据后,在显示界面显示可供选择的所述待测试HTTP接口的路径。In the step a, after the data to be tested of the HTTP interface to be tested is obtained, the path of the HTTP interface to be tested that is available for selection is displayed on the display interface.
进一步地,当获取到测试待测试HTTP接口的待测试数据后,在显示界面显示可供用户选择的待测试HTTP接口的路径。如在显示界面显示不同路径的待测试HTTP接口,或者在显示界面显示下拉按钮,当用户点击与该待测试HTTP接口对应的下拉按钮时,在显示界面显示出与该待测试HTTP接口对应的不同路径,供用户选择。Further, after the data to be tested of the HTTP interface to be tested is obtained, the path of the HTTP interface to be tested that can be selected by the user is displayed on the display interface. If the HTTP interface to be tested is displayed on the display interface, or the drop-down button is displayed on the display interface, when the user clicks the pull-down button corresponding to the HTTP interface to be tested, the display interface displays the difference corresponding to the HTTP interface to be tested. Path for the user to choose.
步骤b,当侦测到选择所述路径的选择指令后,根据所述选择指令获取所述待测试HTTP接口的版本号。Step b: After detecting the selection instruction of the path, the version number of the HTTP interface to be tested is obtained according to the selection instruction.
实时检测是否侦测到选择待测试HTTP接口路径的选择指令。当侦测到选择路径的选择指令后,根据选择指令获取待测试HTTP接口的版本号。可以理解的是,一个待测试HTTP接口的路径对应一种版本的待测试HTTP接口。该选择指令可由用户点击待测试HTTP接口的路径而触发,或者由用户在特定的输入界面输入待测试HTTP接口的路径而触发。Real-time detection detects whether a selection command to select the HTTP interface path to be tested is detected. After detecting the selection instruction of the selected path, the version number of the HTTP interface to be tested is obtained according to the selection instruction. It can be understood that the path of an HTTP interface to be tested corresponds to a version of the HTTP interface to be tested. The selection instruction may be triggered by the user clicking on the path of the HTTP interface to be tested, or triggered by the user entering the path of the HTTP interface to be tested on a specific input interface.
步骤S20,基于所述待测试HTTP接口的版本号与针对所述待测试数据的处理方式之间的映射关系,根据所述待测试HTTP接口的版本号确定对所述待测试数据的处理方式。Step S20: Determine, according to the mapping relationship between the version number of the HTTP interface to be tested and the processing mode of the data to be tested, the processing manner of the data to be tested according to the version number of the HTTP interface to be tested.
当获取到待测试HTTP接口的版本号后,获取预先存储的待测试HTTP接口的版本号与针对待测试数据的处理方式之间的映射关系,根据所获取的版本号,在映射关系中查找到处理待测试数据的处理方式。在本实施例中,处理方式包括两种,一种为需要对待测试数据进行加密处理,一种为需要对待测试数据进行加密处理以及压缩处理。可以理解的是,也可将处理方式设置为包括四种,除了上述两种处理方式外,处理方式还可包括对待测试数据进行压缩处理,以及对待测试数据不进行压缩处理,以及不进行加密处理。After obtaining the version number of the HTTP interface to be tested, the mapping between the version number of the HTTP interface to be tested and the processing mode of the data to be tested is obtained, and the mapping relationship is found according to the obtained version number. Process the processing of the data to be tested. In this embodiment, the processing manner includes two types, one is to perform encryption processing on the data to be tested, and the other is to perform encryption processing and compression processing on the data to be tested. It can be understood that the processing manner can also be set to include four types. In addition to the above two processing manners, the processing manner may further include compressing the data to be tested, and not compressing the data to be tested, and not performing encryption processing. .
待测试HTTP接口的版本号与针对待测试数据的处理方式之间的映射关系可根据具体需要而设置。处理方式为加密操作和压缩操作。需要说明的是,在映射关系中,对应的处理方式还包括具体的加密算法和/或压缩算法。如可将映射关系设置为:当某个待测试HTTP接口的版本号为1时,对应的处理方式为采用Base64算法进行加密;当版本号为2时,对应的处理方式为采用DES(Data Encryption Standard,数据加密标准)算法进行加密,以及采用LZ77编码进行压缩。其中,Base64是网络上最常见的用于传输8Bit字节码的编码方式之一,Base64就是一种基于64个可打印字符来表示二进制数据的方法。LZ77编码是一种基于字典的、“滑动窗”的无损压缩算法。The mapping relationship between the version number of the HTTP interface to be tested and the processing mode of the data to be tested can be set according to specific needs. The processing methods are encryption operation and compression operation. It should be noted that, in the mapping relationship, the corresponding processing manner further includes a specific encryption algorithm and/or a compression algorithm. If the version number of the HTTP interface to be tested is 1, the corresponding processing mode is to use the Base64 algorithm for encryption. When the version number is 2, the corresponding processing mode is DES (Data). Encryption Standard, Data Encryption Standard) algorithm for encryption and compression with LZ77 encoding. Among them, Base64 is one of the most common encoding methods for transmitting 8Bit bytecode on the network. Base64 is a method for representing binary data based on 64 printable characters. LZ77 coding is a dictionary-based, "sliding window" lossless compression algorithm.
可以理解的是,除上述所提及的压缩算法和加密算法外,在本实施例中,加密算法包括但不限于RSA、AES(Advanced Encryption Standard,高级加密标准)、椭圆加密算法ECC、MD5(Message-Digest Algorithm 5,信息-摘要算法5)和SHA(Secure Hash Algorithm,安全散列算法),压缩算法包括但不限于gzip(GNUzip)和LZW(Lempel-Ziv-Welch Encoding,串表压缩算法)。It can be understood that, in addition to the compression algorithm and the encryption algorithm mentioned above, in this embodiment, the encryption algorithm includes but is not limited to RSA, AES (Advanced Encryption). Standard, Advanced Encryption Standard), Ellipse Encryption Algorithm ECC, MD5 (Message-Digest Algorithm 5, Information-Abstract Algorithm 5) and SHA (Secure Hash Algorithm, the compression algorithm includes but is not limited to gzip (GNUzip) and LZW (Lempel-Ziv-Welch Encoding, string table compression algorithm).
步骤S30,按照所述处理方式对所述待测试数据进行处理,得到处理后的所述待测试数据。Step S30: The data to be tested is processed according to the processing manner, and the processed data to be tested is obtained.
当确定处理待测试数据的处理方式后,按照所确定的处理方式处理待测试数据,得到处理后的待测试数据。如当确定的处理方式为加密操作和压缩操作,则采用通过映射关系确定的加密算法对待测试数据进行加密操作,以及采用通过映射关系确定的压缩算法对待测试数据进行压缩操作,得到加密加压后的待测试数据。After the processing mode of the data to be tested is determined, the data to be tested is processed according to the determined processing manner, and the processed data to be tested is obtained. For example, when the determined processing manner is an encryption operation and a compression operation, the encryption data to be used for the test data is encrypted by the encryption algorithm determined by the mapping relationship, and the compression data is compressed by the compression algorithm determined by the mapping relationship to obtain the compression and compression. Data to be tested.
步骤S40,将处理后的所述待测试数据发送至超文本传输协议取样器HTTP sampler中,以在所述HTTP sampler中响应处理后的所述待测试数据,得到所述待测试HTTP接口的测试结果,压力测试工具jmeter的前端处理器和后端处理器集成在所述HTTP sampler中。Step S40, the processed data to be tested is sent to the hypertext transfer protocol sampler HTTP sampler to be in the HTTP In the sampler, the test result of the HTTP interface to be tested is obtained by the processed data to be tested, and the front end processor and the back end processor of the stress test tool jmeter are integrated in the HTTP. Sampler.
当得到处理后的待测试数据后,将处理后的待测试数据发送至HTTP sampler中,以在HTTP sampler中响应处理后的待测试数据,得到待测试HTTP接口的测试结果。其中,jmeter的前端处理器和后端处理器集成在HTTP sampler中,jmeter(apache-jmeter)是基于java语言开发的主要用来做接口跟压力测试的一种开源测试工具。HTTP sampler是jmeter里面的一个元件,中文名译为HTTP请求,专门用于模拟HTTP接口的元件。After the processed data to be tested is obtained, the processed data to be tested is sent to the HTTP sampler to be in the HTTP The sampler responds to the processed data to be tested, and obtains the test result of the HTTP interface to be tested. Among them, jmeter's front-end processor and back-end processor are integrated in HTTP. In the sampler, jmeter (apache-jmeter) is an open source testing tool mainly developed for interface and stress testing based on the Java language. HTTP The sampler is a component in jmeter. The Chinese name is translated into an HTTP request, which is specifically used to simulate the components of the HTTP interface.
进一步地,步骤S40包括:Further, step S40 includes:
步骤c,将处理后的所述待测试数据发送至HTTP sampler中,以字节流的方式获取所述HTTP sampler中处理后的所述待测试数据对应的数值。In step c, the processed data to be tested is sent to the HTTP sampler, and the HTTP is obtained in a byte stream manner. The value corresponding to the data to be tested after processing in the sampler.
进一步地,当得到处理后的待测试数据后,将处理后的待测试数据发送至HTTP sampler中,并以字节流的方式获取述HTTP sampler中处理后的待测试数据。其中,当将处理后的待测试数据发送至HTTP sampler中后,HTTP sampler会响应该处理后的待测试数据,得到该待测试数据对应的数值。Further, after the processed data to be tested is obtained, the processed data to be tested is sent to the HTTP. In the sampler, the data to be tested processed in the HTTP sampler is obtained in a byte stream manner. Wherein, after the processed data to be tested is sent to the HTTP sampler, HTTP The sampler responds to the processed data to be tested, and obtains a value corresponding to the data to be tested.
可以理解的是,HTTP sampler是专门用于模拟HTTP协议接口的元件,因此,当将待测试数据发送至HTTP sampler中后,相当于待测试数据经过了待测试HTTP接口。由于字节流可用于任何类型的对象,包括二进制对象,因此,通过字节流可提取HTTP sampler中任何类型的待测试数据,使该接口测试方法可用于测试不同类型数据是否可以成功通过HTTP接口。Understandably, HTTP The sampler is a component that is specifically used to simulate the HTTP protocol interface, so when the data to be tested is sent to HTTP After the sampler, the data to be tested passes the HTTP interface to be tested. Since the byte stream can be used for any type of object, including binary objects, HTTP can be extracted through the byte stream. Any type of data to be tested in the sampler allows the interface test method to be used to test whether different types of data can successfully pass the HTTP interface.
步骤d,解析所述数值,得到所述数值对应的明文,并将所述明文发送至所述HTTP sampler中,以在所述HTTP sampler中响应所述明文,得到所述待测试HTTP接口的测试结果。Step d, parsing the value, obtaining a plaintext corresponding to the value, and sending the plaintext to the HTTP In the sampler, the test result of the HTTP interface to be tested is obtained by responding to the plaintext in the HTTP sampler.
在从HTTP sampler中获取到待测试数据对应的数值后,解析该数值,得到该数值对应的明文,并将该明文重新发送至HTTP sampler中,以在HTTP sampler中响应该明文,得到待测试HTTP接口的测试结果。In from HTTP After obtaining the value corresponding to the data to be tested in the sampler, parsing the value, obtaining the plaintext corresponding to the value, and resending the plaintext to the HTTP sampler to be in the HTTP The sampler responds to the plaintext and obtains the test result of the HTTP interface to be tested.
可以理解的是,在根据该数值得到待测试数据对应的明文的过程中,根据处理待测试数据对应的方法解析该数值,可得到对应的明文,即解析的过程包括解密操作和/或解压缩操作。如若之前采用Base64算法对待测试数据进行加密,得到处理后的待测试数据,则此时也采用Base64算法进行解密该数值,得到待测试数据对应的明文,即得到原始的待测试数据;若之前采用DES算法对待测试数据进行加密,以及采用LZ77编码对待测试数据进行压缩,则此时也采用DES算法解密该数值,以及采用LZ77编码解压缩该数值,得到该数值对应的明文。It can be understood that, in the process of obtaining the plaintext corresponding to the data to be tested according to the value, the value is parsed according to the method corresponding to the data to be tested, and the corresponding plaintext is obtained, that is, the parsing process includes decryption operation and/or decompression. operating. If the Base64 algorithm is used to encrypt the test data and obtain the processed data to be tested, then the Base64 algorithm is used to decrypt the value, and the plaintext corresponding to the data to be tested is obtained, that is, the original data to be tested is obtained; The DES algorithm encrypts the test data and compresses the test data using the LZ77 code. At this time, the DES algorithm is used to decrypt the value, and the LZ77 code is used to decompress the value to obtain the plaintext corresponding to the value.
进一步地,步骤d包括:Further, step d includes:
步骤e,解析所述数值,得到所述数值对应的明文,并将所述明文发送至所述HTTP sampler中,以在所述HTTP sampler中响应所述明文,得到所述待测试HTTP接口测试结果的结果标识。Step e, parsing the value, obtaining a plaintext corresponding to the value, and sending the plaintext to the HTTP In the sampler, the result identifier of the HTTP interface test result to be tested is obtained by responding to the plaintext in the HTTP sampler.
在从HTTP sampler中获取到待测试数据对应的数值后,解析该数值,得到该数值对应的明文,并将该明文重新发送至HTTP sampler中,以在HTTP sampler中响应该明文,得到待测试HTTP接口测试结果的结果标识。需要说明的是,结果标识包括两种,一种表示待测试结果处于正常状态,一种表示待测试HTTP接口处于异常状态。In from HTTP After obtaining the value corresponding to the data to be tested in the sampler, parsing the value, obtaining the plaintext corresponding to the value, and resending the plaintext to the HTTP sampler to be in the HTTP The sampler responds to the plaintext and obtains the result identifier of the HTTP interface test result to be tested. It should be noted that the result identifier includes two types, one indicates that the test result is in a normal state, and one indicates that the HTTP interface to be tested is in an abnormal state.
步骤f,若所述结果标识为第一标识,则确定所述待测试HTTP接口处于正常状态。Step f: If the result is identified as the first identifier, determine that the HTTP interface to be tested is in a normal state.
若结果标识为第一标识,则确定待测试HTTP接口处于正常状态。其中,第一标识可以根据需要而设置,只要可以区分出待测试HTTP接口处于正常状态还是处于异常状态即可。如可将第一标识设置为“1”或者“11”等。If the result identifier is the first identifier, it is determined that the HTTP interface to be tested is in a normal state. The first identifier can be set as needed, as long as the HTTP interface to be tested is in a normal state or an abnormal state. For example, the first flag can be set to "1" or "11" or the like.
步骤g,若所述结果标识为第二标识,则确定所述待测试HTTP接口处于异常状态。Step g: If the result is identified as the second identifier, it is determined that the HTTP interface to be tested is in an abnormal state.
若结果标识为第二标识,则确定待测试HTTP接口处于异常状态。其中,第二标识可以根据需要而设置,只要可以区分第一标识和第二标识即可。如第二标识可以设置为“0”或者“00”等。If the result identifier is the second identifier, it is determined that the HTTP interface to be tested is in an abnormal state. The second identifier may be set as needed, as long as the first identifier and the second identifier can be distinguished. For example, the second identifier can be set to “0” or “00” or the like.
在得到测试结果的结果标识后,可将该结果标识显示在GUI(Graphical User Interface,图形用户接口)中,以供用户查看。After the result of the test result is identified, the result identifier can be displayed in the GUI (Graphical User) Interface, graphical user interface) for users to view.
本实施例通过获取待测试HTTP接口的版本号,根据待测试HTTP接口的版本号确定处理待测试数据的处理方式,得到处理后的待测试数据,将处理后的待测试数据发送至集成了jmeter的前端处理器和后端处理器的HTTP sampler中,以在HTTP sampler中响应处理后的待测试数据,通过 HTTP sampler获取原始的待测试数据,以测试待测试HTTP接口,避免了在测试HTTP接口过程中,需要在beanshell的前端处理器和后端处理器分别进行一系列的操作,简化了测试HTTP接口的测试流程,提高了HTTP接口的测试效率。In this embodiment, the version of the HTTP interface to be tested is obtained, and the processing mode of the data to be tested is determined according to the version number of the HTTP interface to be tested, and the processed data to be tested is obtained, and the processed data to be tested is sent to the integrated jmeter. Front-end processor and back-end processor HTTP Sampler, in response to the processed data to be tested in the HTTP sampler, via HTTP The sampler obtains the original data to be tested to test the HTTP interface to be tested, and avoids the need to perform a series of operations on the front-end processor and the back-end processor of the beanshell during the test of the HTTP interface, simplifying the test of testing the HTTP interface. The process improves the testing efficiency of the HTTP interface.
进一步地,提出本申请接口测试方法第二实施例。Further, a second embodiment of the interface testing method of the present application is proposed.
所述接口测试方法第二实施例与所述接口测试方法第一实施例的区别在于,参照图2,接口测试方法还包括:The difference between the second embodiment of the interface testing method and the first embodiment of the interface testing method is that, referring to FIG. 2, the interface testing method further includes:
步骤S50,获取所述待测试HTTP接口的统一资源定位符URL,拼接所述URL和所述版本号,得到携带版本号的所述URL。In step S50, the uniform resource locator URL of the HTTP interface to be tested is obtained, and the URL and the version number are spliced to obtain the URL carrying the version number.
在获取到待测试HTTP接口的版本号后,获取待测试HTTP接口的URL(Uniform Resource Locator,统一资源定位符),拼接所获取的URL和所获取的版本号,得到携带待测试HTTP接口版本号的URL。在本实施例中,拼接URL与版本号的方式为:在URL后面增加版本号。如若待测试HTTP接口的URL为“www.baidu.com”,版本号为“?V=2”,则拼接URL与版本号后得到的携带版本号的URL为“www.baidu.com?V=2”。在本实施例中,不限制待测试HTTP接口URL与版本号之间的拼接方式。After obtaining the version number of the HTTP interface to be tested, obtain the URL of the HTTP interface to be tested (Uniform Resource). Locator, Uniform Resource Locator, splicing the obtained URL and the obtained version number, and obtaining the URL carrying the version number of the HTTP interface to be tested. In this embodiment, the method of splicing the URL and the version number is: adding a version number after the URL. If the URL of the HTTP interface to be tested is "www.baidu.com" and the version number is "?V=2", the URL carrying the version number obtained after splicing the URL and the version number is "www.baidu.com?V= 2". In this embodiment, the splicing manner between the URL of the HTTP interface to be tested and the version number is not limited.
步骤S40包括:Step S40 includes:
步骤S41,通过携带版本号的所述URL将处理后的所述待测试数据发送至HTTP sampler中,以在所述HTTP sampler中响应处理后的所述待测试数据,得到所述待测试HTTP接口的测试结果。Step S41: Send the processed data to be tested to the HTTP by using the URL carrying the version number. In the sampler, the test result of the HTTP interface to be tested is obtained by responding to the data to be tested in the HTTP sampler.
当得到待测试HTTP接口携带版本号的URL后,通过携带版本号的URL将处理后的待测试数据发送至HTTP sampler中,以在HTTP sampler中响应处理后的待测试数据,得到待测试HTTP接口的测试结果。After the URL of the HTTP interface carrying the version number is obtained, the processed data to be tested is sent to the HTTP by the URL carrying the version number. In the sampler, the test result of the HTTP interface to be tested is obtained by responding to the processed data to be tested in the HTTP sampler.
本实施例通过将待测试HTTP接口的版本号与待测试HTTP接口的URL拼接,得到携带版本号的URL,通过携带版本号的URL确保成功将待测试数据发送至HTTP sampler中,提高了测试HTTP接口的测试成功率。In this embodiment, by splicing the version number of the HTTP interface to be tested with the URL of the HTTP interface to be tested, the URL carrying the version number is obtained, and the URL carrying the version number is used to ensure that the data to be tested is successfully sent to the HTTP. In the sampler, the test success rate of the test HTTP interface is improved.
进一步地,提出本申请接口测试方法第三实施例。Further, a third embodiment of the interface testing method of the present application is proposed.
所述接口测试方法第三实施例与所述接口测试方法第一或第二实施例的区别在于,参照图3,接口测试方法还包括:The third embodiment of the interface testing method is different from the first or second embodiment of the interface testing method. Referring to FIG. 3, the interface testing method further includes:
步骤S60,当侦测到设置所述映射关系的设置指令后,根据所述设置指令设置版本号小于或者等于第一预设版本号对应的处理方式为加密处理。Step S60: After detecting the setting instruction of setting the mapping relationship, setting a processing mode corresponding to the version number less than or equal to the first preset version number according to the setting instruction is an encryption process.
检测是否侦测到设置接口版本号与处理方式之间的设置指令。当侦测到设置该映射关系的设置指令后,根据该设置指令设置版本号小于第一预设版本号对应的处理方式为加密处理。其中,该设置指令可由用户根据需要而触发。第一预设版本号可根据具体需要而设置,如可设置为2或者3。进一步地,还可设置加密处理对应的加密方法。若用户没有设置处理方式对应的加密算法和/或压缩算法,则在测试待测试HTTP接口过程,随机选择加密算法和/或压缩算法。Check if the setting command between setting the interface version number and processing mode is detected. After detecting the setting instruction for setting the mapping relationship, setting a processing method corresponding to the version number smaller than the first preset version number according to the setting instruction is an encryption process. Wherein, the setting instruction can be triggered by the user as needed. The first preset version number can be set according to specific needs, such as 2 or 3. Further, an encryption method corresponding to the encryption process may also be set. If the user does not set the encryption algorithm and/or the compression algorithm corresponding to the processing mode, the encryption algorithm and/or the compression algorithm are randomly selected during the test of the HTTP interface process to be tested.
步骤S70,根据所述设置指令设置版本号大于所述第一预设版本号对应的处理方式为加密处理和压缩处理。Step S70: Set a processing mode corresponding to the version number greater than the first preset version number as an encryption process and a compression process according to the setting instruction.
根据该设置指令设置版本号大于第一预设版本号对应的处理方式为加密处理和压缩处理。进一步地,还可为不同版本号设置相同或者不同的加密算法和/或压缩算法。According to the setting instruction, the processing manner corresponding to setting the version number to be larger than the first preset version number is encryption processing and compression processing. Further, the same or different encryption algorithms and/or compression algorithms may be set for different version numbers.
进一步地,接口测试方法还包括:Further, the interface testing method further includes:
步骤h,当侦测到设置所述映射关系的设置指令后,根据所述设置指令设置版本号小于或者等于第二预设版本号对应的处理方式为采用对称加密算法进行加密处理。In the step h, after the setting instruction for setting the mapping relationship is detected, the processing method corresponding to setting the version number to be less than or equal to the second preset version number according to the setting instruction is to perform encryption processing by using a symmetric encryption algorithm.
进一步地,当侦测到设置映射关系的设置指令后,根据该设置指令设置版本号小于或者等于第二预设版本号对应的处理方式为采用对称加密算法进行加密处理。其中,第二预设版本号可与第一预设版本号相同或者不同。对称加密算法包括但不限于DES,3DES和 TDEA(Triple Data Encryption Algorithm)。Further, after detecting the setting instruction of setting the mapping relationship, setting a processing method corresponding to the version number less than or equal to the second preset version number according to the setting instruction is to perform encryption processing by using a symmetric encryption algorithm. The second preset version number may be the same as or different from the first preset version number. Symmetric encryption algorithms include but are not limited to DES, 3DES and TDEA (Triple Data Encryption Algorithm).
步骤i,根据所述设置指令设置版本号大于所述第二预设版本号,且小于或者等于第三预设版本号对应的处理方式为采用非对称加密算法进行加密处理。Step i: Set, according to the setting instruction, that the version number is greater than the second preset version number, and the processing manner corresponding to the third preset version number is an encryption process using an asymmetric encryption algorithm.
根据设置指令设置版本号大于第二预设版本号,且小于或者等于第三预设版本号对应的处理方式为采用非对称加密算法进行加密处理。其中,非对称加密算法包括但不限于RSA、Elgamal和背包算法。第三预设版本号大于第二预设版本号。According to the setting instruction, the processing method that the version number is greater than the second preset version number and is less than or equal to the third preset version number is an encryption process using an asymmetric encryption algorithm. Among them, asymmetric encryption algorithms include, but are not limited to, RSA, Elgamal, and knapsack algorithms. The third preset version number is greater than the second preset version number.
步骤j,根据所述设置指令设置版本号大于第三预设版本号,且小于或者等于第四预设版本号对应的处理方式为采用非对称加密算法进行加密处理,以及采用有损压缩方式进行压缩处理。Step j: Set a version number greater than a third preset version number according to the setting instruction, and a processing method corresponding to the fourth preset version number is an encryption process using an asymmetric encryption algorithm, and performing a lossy compression method. Compression processing.
根据设置指令设置版本号大于第三预设版本号,且小于或者等于第四预设版本号对应的处理方式为采用非对称加密算法进行加密处理,以及采用有损压缩方式进行压缩处理。其中,第四预设版本号大于第三预设版本号,第二预设版本、第三预设版本号和第四预设版本号可由用户根据具体需要而设置。According to the setting instruction, the processing method that the version number is greater than the third preset version number and is less than or equal to the fourth preset version number is that the encryption processing is performed by using an asymmetric encryption algorithm, and the compression processing is performed by using a lossy compression method. The fourth preset version number is greater than the third preset version number, and the second preset version, the third preset version number, and the fourth preset version number may be set by the user according to specific needs.
步骤k,根据所述设置指令设置版本号大于第四预设版本号对应的处理方式为采用非对称加密算法进行加密处理,以及采用无损压缩方式进行压缩处理。In step k, the processing manner corresponding to setting the version number to be greater than the fourth preset version number according to the setting instruction is to perform encryption processing by using an asymmetric encryption algorithm, and performing compression processing by using a lossless compression method.
根据设置指令设置版本号大于第四预设版本号对应的处理方式为采用非对称加密算法进行加密处理,以及采用无损压缩方式进行压缩处理。在本实施例中,并不限制对称加密算法、非对称加密算法、有损压缩方式和无损压缩方式的具体算法,用户可根据具体需要选择对称加密算法、非对称加密算法、有损压缩方式和无损压缩方式的具体算法。The processing method corresponding to setting the version number to be larger than the fourth preset version number according to the setting instruction is to perform encryption processing by using an asymmetric encryption algorithm, and performing compression processing by using a lossless compression method. In this embodiment, the specific algorithms of the symmetric encryption algorithm, the asymmetric encryption algorithm, the lossy compression mode, and the lossless compression mode are not limited, and the user may select a symmetric encryption algorithm, an asymmetric encryption algorithm, a lossy compression method, and A specific algorithm for lossless compression.
需要说明的是,除了可以通过上述方式设置接口版本号与处理方式之间的映射关系以外,还可以通过其他方式来设置接口版本号与处理方式之间的映射关系,本实施例中,对于设置接口版本号与处理方式之间的映射关系的具体实现方式并不作限制。It should be noted that, in addition to the mapping relationship between the interface version number and the processing mode, the mapping relationship between the interface version number and the processing mode may be set in other manners. In this embodiment, the setting is performed. The specific implementation manner of the mapping relationship between the interface version number and the processing mode is not limited.
本实施例通过根据设置指令设置接口版本号与处理方式之间的映射关系,以便于在测试待测试HTTP接口过程中,可以直接根据接口版本号确定对应的处理方式。In this embodiment, the mapping relationship between the interface version number and the processing mode is set according to the setting instruction, so that the corresponding processing mode can be directly determined according to the interface version number in the process of testing the HTTP interface to be tested.
此外,参照图4,本申请还提供一种接口测试装置,接口测试装置包括:In addition, referring to FIG. 4, the present application further provides an interface testing device, where the interface testing device includes:
获取模块10,用于当获取到测试待测试超文本传输协议HTTP接口的待测试数据后,获取所述待测试HTTP接口的版本号;The obtaining module 10 is configured to obtain the version number of the HTTP interface to be tested after the data to be tested of the HTTP interface of the hypertext transfer protocol to be tested is obtained.
确定模块20,用于基于所述待测试HTTP接口的版本号与针对所述待测试数据的处理方式之间的映射关系,根据所述待测试HTTP接口的版本号确定对所述待测试数据的处理方式;The determining module 20 is configured to determine, according to the mapping relationship between the version number of the HTTP interface to be tested and the processing manner of the data to be tested, the data to be tested according to the version number of the HTTP interface to be tested. Processing method
处理模块30,用于按照所述处理方式对所述待测试数据进行处理,得到处理后的所述待测试数据;The processing module 30 is configured to process the data to be tested according to the processing manner, and obtain the processed data to be tested;
发送模块40,用于将处理后的所述待测试数据发送至HTTP取样器sampler中,以在所述HTTP sampler中响应处理后的所述待测试数据,得到所述待测试HTTP接口的测试结果,压力测试工具jmeter的前端处理器和后端处理器集成在所述HTTP sampler中。The sending module 40 is configured to send the processed data to be tested to the HTTP sampler sampler to be in the HTTP In the sampler, the test result of the HTTP interface to be tested is obtained by the processed data to be tested, and the front end processor and the back end processor of the stress test tool jmeter are integrated in the HTTP. Sampler.
本实施例通过获取模块10获取待测试HTTP接口的版本号,确定模块20根据待测试HTTP接口的版本号确定处理待测试数据的处理方式,处理模块30根据确定模块20确定的处理方式处理待测试数据,得到处理后的待测试数据,发送模块40将处理后的待测试数据发送至集成了jmeter的前端处理器和后端处理器的HTTP sampler中,以在HTTP sampler中响应处理后的待测试数据,通过 HTTP sampler获取原始的待测试数据,以测试待测试HTTP接口。避免了在测试HTTP接口过程中,需要在beanshell的前端处理器和后端处理器分别进行一系列的操作,简化了测试HTTP接口的测试流程,提高了HTTP接口的测试效率。In this embodiment, the obtaining module 10 obtains the version number of the HTTP interface to be tested, and the determining module 20 determines the processing mode of the data to be tested according to the version number of the HTTP interface to be tested, and the processing module 30 processes the to-be-tested according to the processing manner determined by the determining module 20. Data, the processed data to be tested is obtained, and the sending module 40 sends the processed data to be tested to the HTTP of the front-end processor and the back-end processor integrated with jmeter. Sampler, in response to the processed data to be tested in the HTTP sampler, via HTTP The sampler obtains the original data to be tested to test the HTTP interface to be tested. It avoids the need to perform a series of operations on the front-end processor and the back-end processor of the beanshell during the test of the HTTP interface, which simplifies the testing process of testing the HTTP interface and improves the testing efficiency of the HTTP interface.
进一步地,获取模块10还用于获取所述待测试HTTP接口的统一资源定位符URL;Further, the obtaining module 10 is further configured to obtain a uniform resource locator URL of the HTTP interface to be tested;
接口测试装置还包括:The interface test device also includes:
拼接模块,用于拼接所述URL和所述版本号,得到携带版本号的所述URL;a splicing module, configured to splicing the URL and the version number to obtain the URL carrying a version number;
发送模块40还用于通过携带版本号的所述URL将处理后的所述待测试数据发送至HTTP sampler中,以在所述HTTP sampler中响应处理后的所述待测试数据,得到所述待测试HTTP接口的测试结果。The sending module 40 is further configured to send the processed data to be tested to the HTTP by using the URL carrying the version number. In the sampler, the test result of the HTTP interface to be tested is obtained by responding to the data to be tested in the HTTP sampler.
进一步地,接口测试装置还包括:Further, the interface testing device further includes:
第一设置模块,用于当侦测到设置所述映射关系的设置指令后,根据所述设置指令设置版本号小于或者等于第一预设版本号对应的处理方式为加密处理;根据所述设置指令设置版本号大于所述第一预设版本号对应的处理方式为加密处理和压缩处理。a first setting module, configured to: when the setting instruction for setting the mapping relationship is detected, set a processing mode corresponding to a version number less than or equal to the first preset version number as an encryption process according to the setting instruction; The processing mode corresponding to the instruction setting version number being greater than the first preset version number is encryption processing and compression processing.
进一步地,接口测试装置还包括:Further, the interface testing device further includes:
第二设置模块,用于当侦测到设置所述映射关系的设置指令后,根据所述设置指令设置版本号小于或者等于第二预设版本号对应的处理方式为采用对称加密算法进行加密处理;根据所述设置指令设置版本号大于所述第二预设版本号,且小于或者等于第三预设版本号对应的处理方式为采用非对称加密算法进行加密处理;根据所述设置指令设置版本号大于第三预设版本号,且小于或者等于第四预设版本号对应的处理方式为采用非对称加密算法进行加密处理,以及采用有损压缩方式进行压缩处理;根据所述设置指令设置版本号大于第四预设版本号对应的处理方式为采用非对称加密算法进行加密处理,以及采用无损压缩方式进行压缩处理。a second setting module, configured to: when the setting instruction for setting the mapping relationship is detected, set a processing mode corresponding to a version number less than or equal to a second preset version number according to the setting instruction to perform encryption processing by using a symmetric encryption algorithm And setting, according to the setting instruction, that the version number is greater than the second preset version number, and the processing manner corresponding to the third preset version number is: performing an encryption process by using an asymmetric encryption algorithm; setting a version according to the setting instruction; The processing method corresponding to the third preset version number and less than or equal to the fourth preset version number is that the encryption processing is performed by using an asymmetric encryption algorithm, and the compression processing is performed by using a lossy compression method; and the version is set according to the setting instruction. The processing method corresponding to the number greater than the fourth preset version number is an encryption process using an asymmetric encryption algorithm, and a compression process using a lossless compression method.
进一步地,发送模块40包括:Further, the sending module 40 includes:
发送单元,用于将处理后的所述待测试数据发送至HTTP sampler中;a sending unit, configured to send the processed data to be tested to an HTTP sampler;
第一获取单元,用于以字节流的方式获取所述HTTP sampler中处理后的所述待测试数据对应的数值;a first obtaining unit, configured to acquire the HTTP in a byte stream manner a value corresponding to the data to be tested processed in the sampler;
解析单元,用于解析所述数值,得到所述数值对应的明文;a parsing unit, configured to parse the numerical value to obtain a plaintext corresponding to the numerical value;
所述发送单元还用于将所述明文发送至所述HTTP sampler中,以在所述HTTP sampler中响应所述明文,得到所述待测试HTTP接口的测试结果。The sending unit is further configured to send the plaintext to the HTTP sampler to be in the HTTP The test result of the HTTP interface to be tested is obtained by responding to the plaintext in the sampler.
进一步地,所述发送单元还包括:Further, the sending unit further includes:
发送子单元,用于将所述明文发送至所述HTTP sampler中,以在所述HTTP sampler中响应所述明文,得到所述待测试HTTP接口测试结果的结果标识;a sending subunit, configured to send the plaintext to the HTTP sampler to be in the HTTP Responding to the plaintext in the sampler, and obtaining a result identifier of the test result of the HTTP interface to be tested;
确定子单元,用于若所述结果标识为第一标识,则确定所述待测试HTTP接口处于正常状态;若所述结果标识为第二标识,则确定所述待测试HTTP接口处于异常状态。Determining the sub-unit, if the result is identified as the first identifier, determining that the HTTP interface to be tested is in a normal state; if the result identifier is a second identifier, determining that the HTTP interface to be tested is in an abnormal state.
进一步地,所述获取模块10包括:Further, the obtaining module 10 includes:
选择单元,用于当获取到测试待测试HTTP接口的待测试数据后,在显示界面显示可供选择的所述待测试HTTP接口的路径;a selection unit, configured to display, on the display interface, a path of the HTTP interface to be tested that is to be tested after the data to be tested of the HTTP interface to be tested is obtained;
第二获取单元,用于当侦测到选择所述路径的选择指令后,根据所述选择指令获取所述待测试HTTP接口的版本号。And a second obtaining unit, configured to acquire a version number of the HTTP interface to be tested according to the selection instruction, after detecting a selection instruction for selecting the path.
需要说明的是,接口测试装置的各个实施例与上述接口测试方法的各实施例基本相同,在此不再详细赘述。It should be noted that each embodiment of the interface testing device is substantially the same as the foregoing embodiments of the interface testing method, and details are not described herein again.
此外,本申请还提供一种接口测试设备。如图5所示,图5是本申请实施例方案涉及的硬件运行环境的结构示意图。In addition, the present application also provides an interface test device. As shown in FIG. 5, FIG. 5 is a schematic structural diagram of a hardware operating environment involved in an embodiment of the present application.
需要说明的是,图5即可为接口测试设备的硬件运行环境的结构示意图。本申请实施例接口测试设备可以是PC,便携计算机等终端设备。It should be noted that FIG. 5 can be a schematic structural diagram of a hardware operating environment of the interface test device. The interface test device in this embodiment of the present application may be a terminal device such as a PC or a portable computer.
如图5所示,该接口测试设备可以包括:处理器1001,例如CPU,网络接口1004,存储器1005,通信总线1002。其中,通信总线1002用于实现这些组件之间的连接通信。存储器1005可以是高速RAM存储器,也可以是稳定的存储器(non-volatile memory),例如磁盘存储器。存储器1005可选的还可以是独立于前述处理器1001的存储装置。As shown in FIG. 5, the interface test device can include a processor 1001, such as a CPU, a network interface 1004, a memory 1005, and a communication bus 1002. Among them, the communication bus 1002 is used to implement connection communication between these components. The memory 1005 may be a high speed RAM memory or a stable memory (non-volatile) Memory), such as disk storage. The memory 1005 can also optionally be a storage device independent of the aforementioned processor 1001.
本领域技术人员可以理解,图5中示出的接口测试设备结构并不构成对接口测试设备的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。It will be understood by those skilled in the art that the interface test device structure shown in FIG. 5 does not constitute a limitation of the interface test device, and may include more or less components than those illustrated, or combine some components or different components. Arrangement.
如图5所示,作为一种计算机存储介质的存储器1005中可以包括操作系统以及接口测试程序。其中,操作系统是管理和控制接口测试设备硬件和软件资源的程序,支持接口测试程序以及其它软件或程序的运行。As shown in FIG. 5, an operating system and an interface test program may be included in the memory 1005 as a computer storage medium. Among them, the operating system is a program that manages and controls the interface test device hardware and software resources, and supports the operation of the interface test program and other software or programs.
在图5所示的接口测试设备中,处理器1001可以用于调用存储器1005中存储的接口测试程序,并执行如上所述的接口测试方法的步骤。In the interface test device shown in FIG. 5, the processor 1001 can be used to call an interface test program stored in the memory 1005 and perform the steps of the interface test method as described above.
本申请接口测试设备具体实施方式与上述接口测试方法各实施例基本相同,在此不再赘述。The specific implementation manners of the interface test device of the present application are basically the same as the foregoing embodiments of the interface test method, and are not described herein again.
此外,本申请实施例还提出一种计算机可读存储介质,所述计算机可读存储介质上存储有接口测试程序,所述接口测试程序被处理器执行时实现如上所述的接口测试方法的步骤。In addition, the embodiment of the present application further provides a computer readable storage medium, where the interface readable storage program is stored, and the interface test program is executed by the processor to implement the steps of the interface testing method as described above. .
本申请计算机可读存储介质具体实施方式与上述接口测试方法各实施例基本相同,在此不再赘述。The specific embodiment of the computer readable storage medium of the present application is substantially the same as the embodiment of the foregoing interface testing method, and details are not described herein again.
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。It is to be understood that the term "comprises", "comprising", or any other variants thereof, is intended to encompass a non-exclusive inclusion, such that a process, method, article, or device comprising a series of elements includes those elements. It also includes other elements that are not explicitly listed, or elements that are inherent to such a process, method, article, or device. An element that is defined by the phrase "comprising a ..." does not exclude the presence of additional equivalent elements in the process, method, item, or device that comprises the element.
上述本申请实施例序号仅仅为了描述,不代表实施例的优劣。The serial numbers of the embodiments of the present application are merely for the description, and do not represent the advantages and disadvantages of the embodiments.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本申请各个实施例所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the foregoing embodiment method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be through hardware, but in many cases, the former is better. Implementation. Based on such understanding, the technical solution of the present application, which is essential or contributes to the prior art, may be embodied in the form of a software product stored in a storage medium (such as ROM/RAM, disk, The optical disc includes a number of instructions for causing a terminal device (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the methods described in various embodiments of the present application.
以上仅为本申请的优选实施例,并非因此限制本申请的专利范围,凡是利用本申请说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本申请的专利保护范围内。The above is only a preferred embodiment of the present application, and is not intended to limit the scope of the patent application, and the equivalent structure or equivalent process transformations made by the specification and the drawings of the present application, or directly or indirectly applied to other related technical fields. The same is included in the scope of patent protection of this application.
Claims (20)
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201810330488.2 | 2018-04-12 | ||
| CN201810330488.2A CN108600048B (en) | 2018-04-12 | 2018-04-12 | Interface testing method, device, equipment and computer readable storage medium |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2019196213A1 true WO2019196213A1 (en) | 2019-10-17 |
Family
ID=63622273
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2018/094104 Ceased WO2019196213A1 (en) | 2018-04-12 | 2018-07-02 | Interface test method, apparatus and device, and computer-readable storage medium |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN108600048B (en) |
| WO (1) | WO2019196213A1 (en) |
Cited By (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN110750457A (en) * | 2019-10-21 | 2020-02-04 | 中国民航信息网络股份有限公司 | Automatic unit testing method and device based on memory database |
| CN111078529A (en) * | 2019-11-15 | 2020-04-28 | 汉海信息技术(上海)有限公司 | Client write-in module testing method and device and electronic equipment |
| CN111782524A (en) * | 2020-06-29 | 2020-10-16 | 京东数字科技控股有限公司 | Application testing method and device, storage medium and electronic device |
| CN112069078A (en) * | 2020-09-15 | 2020-12-11 | 平安银行股份有限公司 | ESA interface pressure testing method, device, testing equipment and storage medium |
| CN115508686A (en) * | 2022-08-10 | 2022-12-23 | 深圳市恒天伟焱科技股份有限公司 | Test method and related equipment for ship engine drive board |
| CN117579531A (en) * | 2024-01-15 | 2024-02-20 | 云筑信息科技(成都)有限公司 | Pressure measurement method requiring dynamic signature adding and checking interface |
| CN120143795A (en) * | 2025-03-12 | 2025-06-13 | 重庆赛力斯凤凰智创科技有限公司 | Interface testing method, device and testing system for cockpit domain controller |
Families Citing this family (9)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN109491900A (en) * | 2018-10-31 | 2019-03-19 | 北京车和家信息技术有限公司 | Interface test method, device, electronic equipment and computer readable storage medium |
| CN109828908A (en) * | 2018-12-15 | 2019-05-31 | 中国平安人寿保险股份有限公司 | Interface testing parameter encryption method, device, electronic equipment and storage medium |
| CN110109826A (en) * | 2019-04-12 | 2019-08-09 | 平安普惠企业管理有限公司 | For method for early warning and relevant apparatus on the line of interface |
| CN111294359B (en) * | 2020-02-27 | 2023-09-05 | 平安养老保险股份有限公司 | Pressure testing method, pressure testing device, computer equipment and storage medium |
| CN111221743B (en) * | 2020-03-18 | 2023-07-14 | 时时同云科技(成都)有限责任公司 | Automatic test method and system |
| CN112667506B (en) * | 2020-12-26 | 2024-10-25 | 一城一家网络科技有限公司 | Interface testing method and related device |
| CN112783787A (en) * | 2021-02-04 | 2021-05-11 | 中国工商银行股份有限公司 | Interface test method, device and system and electronic equipment |
| CN113438083B (en) * | 2021-06-22 | 2023-04-07 | 中国工商银行股份有限公司 | Signature adding and checking method and device based on interface automatic test |
| CN114020319B (en) * | 2021-09-28 | 2024-09-17 | 深圳市潮流网络技术有限公司 | Interface calling method, device, server and computer readable storage medium |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US7028223B1 (en) * | 2001-08-13 | 2006-04-11 | Parasoft Corporation | System and method for testing of web services |
| CN105162646A (en) * | 2015-07-29 | 2015-12-16 | 北京京东尚科信息技术有限公司 | Multi-protocol interface test system and method |
| CN107797911A (en) * | 2016-09-02 | 2018-03-13 | 北京京东尚科信息技术有限公司 | Method and apparatus for testing HTTP interface |
| CN107872355A (en) * | 2016-09-26 | 2018-04-03 | 平安科技(深圳)有限公司 | The method and device of interface simulation test |
Family Cites Families (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101075312A (en) * | 2007-02-15 | 2007-11-21 | 东华大学 | Method for testing standard match condition in service information resource exchange system |
| US9396094B2 (en) * | 2011-07-21 | 2016-07-19 | International Business Machines Corporation | Software test automation systems and methods |
| CN105005532B (en) * | 2015-08-05 | 2017-11-24 | 广东欧珀移动通信有限公司 | A kind of system and method for automatic test application programming interfaces stability |
| CN106886494B (en) * | 2017-03-07 | 2020-03-24 | 深圳国泰安教育技术有限公司 | Automatic interface testing method and system |
| CN107171897A (en) * | 2017-07-14 | 2017-09-15 | 上海瀚银信息技术有限公司 | A kind of interface test method and data-interface test system |
-
2018
- 2018-04-12 CN CN201810330488.2A patent/CN108600048B/en active Active
- 2018-07-02 WO PCT/CN2018/094104 patent/WO2019196213A1/en not_active Ceased
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US7028223B1 (en) * | 2001-08-13 | 2006-04-11 | Parasoft Corporation | System and method for testing of web services |
| CN105162646A (en) * | 2015-07-29 | 2015-12-16 | 北京京东尚科信息技术有限公司 | Multi-protocol interface test system and method |
| CN107797911A (en) * | 2016-09-02 | 2018-03-13 | 北京京东尚科信息技术有限公司 | Method and apparatus for testing HTTP interface |
| CN107872355A (en) * | 2016-09-26 | 2018-04-03 | 平安科技(深圳)有限公司 | The method and device of interface simulation test |
Cited By (11)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN110750457A (en) * | 2019-10-21 | 2020-02-04 | 中国民航信息网络股份有限公司 | Automatic unit testing method and device based on memory database |
| CN110750457B (en) * | 2019-10-21 | 2023-11-10 | 中国民航信息网络股份有限公司 | Automatic unit testing method and device based on memory database |
| CN111078529A (en) * | 2019-11-15 | 2020-04-28 | 汉海信息技术(上海)有限公司 | Client write-in module testing method and device and electronic equipment |
| CN111078529B (en) * | 2019-11-15 | 2023-07-14 | 汉海信息技术(上海)有限公司 | Client writing module testing method and device and electronic equipment |
| CN111782524A (en) * | 2020-06-29 | 2020-10-16 | 京东数字科技控股有限公司 | Application testing method and device, storage medium and electronic device |
| CN112069078A (en) * | 2020-09-15 | 2020-12-11 | 平安银行股份有限公司 | ESA interface pressure testing method, device, testing equipment and storage medium |
| CN112069078B (en) * | 2020-09-15 | 2024-03-19 | 平安银行股份有限公司 | ESA interface pressure test method, ESA interface pressure test device, ESA interface pressure test equipment and storage medium |
| CN115508686A (en) * | 2022-08-10 | 2022-12-23 | 深圳市恒天伟焱科技股份有限公司 | Test method and related equipment for ship engine drive board |
| CN117579531A (en) * | 2024-01-15 | 2024-02-20 | 云筑信息科技(成都)有限公司 | Pressure measurement method requiring dynamic signature adding and checking interface |
| CN117579531B (en) * | 2024-01-15 | 2024-05-28 | 云筑信息科技(成都)有限公司 | Pressure measurement method requiring dynamic signature adding and checking interface |
| CN120143795A (en) * | 2025-03-12 | 2025-06-13 | 重庆赛力斯凤凰智创科技有限公司 | Interface testing method, device and testing system for cockpit domain controller |
Also Published As
| Publication number | Publication date |
|---|---|
| CN108600048A (en) | 2018-09-28 |
| CN108600048B (en) | 2021-10-08 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| WO2019196213A1 (en) | Interface test method, apparatus and device, and computer-readable storage medium | |
| WO2019205280A1 (en) | Server testing method, apparatus, and device, and computer readable storage medium | |
| WO2019192085A1 (en) | Method, apparatus and device for direct-connected communication between bank and enterprise, and computer-readable storage medium | |
| WO2018107610A1 (en) | Service data processing method, system and device, and computer-readable storage medium | |
| WO2018228050A1 (en) | Method and device for preventing leakage of sensitive information, and storage medium | |
| WO2019037396A1 (en) | Account settlement method, device, device and storage medium | |
| WO2019100531A1 (en) | Digital signature generation method and device thereof, verification method and device thereof, and storage medium | |
| WO2019104876A1 (en) | Insurance product pushing method and system, terminal, client terminal, and storage medium | |
| WO2015172684A1 (en) | Ap connection method, terminal, and server | |
| WO2016192270A1 (en) | Method and device for rapid opencast of media file | |
| WO2019051902A1 (en) | Terminal control method, air conditioner and computer-readable storage medium | |
| WO2018149300A1 (en) | Disease probability detection method, apparatus and device, and computer readable storage medium | |
| WO2017041538A1 (en) | Terminal user interface controlled display method and device | |
| WO2015196960A1 (en) | Method and system for checking security of url for mobile terminal | |
| WO2019161599A1 (en) | Im information protection method, apparatus and device, and computer storage medium | |
| WO2019161597A1 (en) | Information sending method, apparatus and device based on instant messaging, and storage medium | |
| WO2019041851A1 (en) | Home appliance after-sales consulting method, electronic device and computer-readable storage medium | |
| WO2014187158A1 (en) | Method, server, and terminal for controlling cloud sharing of terminal data | |
| WO2016000560A1 (en) | File transmission method, file transmission apparatus, and file transmission system | |
| WO2017071352A1 (en) | Password push method, push system, and terminal device | |
| WO2018076811A1 (en) | Data sharing method, device, system, storage medium and electronic device | |
| WO2018188342A1 (en) | Method, apparatus and device for generating script file, and computer-readable storage medium | |
| EP3472749A1 (en) | A primary device, an accessory device, and methods for processing operations on the primary device and the accessory device | |
| WO2018098879A1 (en) | Method and device for encrypting digital watermark | |
| WO2017188497A1 (en) | User authentication method having strengthened integrity and security |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 18914086 Country of ref document: EP Kind code of ref document: A1 |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| 32PN | Ep: public notification in the ep bulletin as address of the adressee cannot be established |
Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 21.01.2021) |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 18914086 Country of ref document: EP Kind code of ref document: A1 |