CN114490337A - Commissioning method, commissioning platform, equipment and storage medium - Google Patents
Commissioning method, commissioning platform, equipment and storage medium Download PDFInfo
- Publication number
- CN114490337A CN114490337A CN202111654326.2A CN202111654326A CN114490337A CN 114490337 A CN114490337 A CN 114490337A CN 202111654326 A CN202111654326 A CN 202111654326A CN 114490337 A CN114490337 A CN 114490337A
- Authority
- CN
- China
- Prior art keywords
- execution
- instruction
- macro
- commissioning
- preset
- 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.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 57
- 230000004044 response Effects 0.000 claims abstract description 32
- 238000004458 analytical method Methods 0.000 claims abstract description 5
- 238000013515 script Methods 0.000 claims description 11
- 238000012545 processing Methods 0.000 claims description 7
- 238000004590 computer program Methods 0.000 claims description 5
- 230000000977 initiatory effect Effects 0.000 claims description 2
- 238000013507 mapping Methods 0.000 claims description 2
- 238000012827 research and development Methods 0.000 abstract description 15
- 238000012360 testing method Methods 0.000 description 23
- 235000000332 black box Nutrition 0.000 description 4
- 238000010586 diagram Methods 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 3
- 230000006870 function Effects 0.000 description 3
- 238000004891 communication Methods 0.000 description 2
- 238000011161 development Methods 0.000 description 2
- 230000010365 information processing Effects 0.000 description 2
- 230000008569 process Effects 0.000 description 2
- 238000003672 processing method Methods 0.000 description 2
- 238000004904 shortening Methods 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000001914 filtration Methods 0.000 description 1
- 238000000691 measurement method Methods 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 230000007723 transport mechanism Effects 0.000 description 1
- 230000001960 triggered effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR 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
-
- B—PERFORMING OPERATIONS; TRANSPORTING
- B25—HAND TOOLS; PORTABLE POWER-DRIVEN TOOLS; MANIPULATORS
- B25J—MANIPULATORS; CHAMBERS PROVIDED WITH MANIPULATION DEVICES
- B25J19/00—Accessories fitted to manipulators, e.g. for monitoring, for viewing; Safety devices combined with or specially adapted for use in connection with manipulators
- B25J19/0095—Means or methods for testing manipulators
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR 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/3684—Test management for test design, e.g. generating new test cases
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/30—Arrangements for executing machine instructions, e.g. instruction decode
- G06F9/3017—Runtime instruction translation, e.g. macros
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Software Systems (AREA)
- Robotics (AREA)
- Mechanical Engineering (AREA)
- Debugging And Monitoring (AREA)
Abstract
Description
技术领域technical field
本申请实施例涉及但不限于计算机技术领域,尤其涉及一种调测方法、调测平台、设备及存储介质。The embodiments of the present application relate to, but are not limited to, the field of computer technologies, and in particular, relate to a commissioning method, a commissioning platform, a device, and a storage medium.
背景技术Background technique
在对设备进行调测过程中,往往需要提前对设备的底层进行调测,以使上层应用搭建后能与底层正常的交互,进而缩短研发的周期。现有的对底层的测试往往通过白盒测试进行测试,即在代码中加入测试框架,并撰写测试用例进行测试,这种需要研发人员进行用例的研发,因此会导致整个应用研发的效率降低,虽然可以通过测试脚本让测试人员进行黑盒测试,从而研发测试同步进行,但是通过测试脚本进行黑盒测试对测试人员有一定的技术要求,因此,亟需一种简单的高效的调测平台对应用软件进行调测,从而提升研发的效率。In the process of device commissioning, it is often necessary to commission the bottom layer of the device in advance, so that the upper-layer application can interact with the bottom layer normally after it is built, thereby shortening the R&D cycle. The existing low-level tests are often tested through white-box testing, that is, adding a test framework to the code and writing test cases for testing. This requires developers to develop use cases, which will reduce the efficiency of the entire application development. Although it is possible to allow testers to conduct black-box testing through test scripts, so that R&D testing can be carried out simultaneously, but black-box testing through test scripts has certain technical requirements for testers. Therefore, a simple and efficient debugging platform is urgently needed. The application software is used for commissioning, thereby improving the efficiency of R&D.
发明内容SUMMARY OF THE INVENTION
以下是对本文详细描述的主题的概述。本概述并非是为了限制权利要求的保护范围。The following is an overview of the topics detailed in this article. This summary is not intended to limit the scope of protection of the claims.
本申请实施例提供了一种调测方法、调测平台、设备及存储介质,能够提供一种简单且高效的调测方法对待调测设备进行调测,进而提升研发效率。The embodiments of the present application provide a commissioning method, a commissioning platform, a device, and a storage medium, which can provide a simple and efficient commissioning method for commissioning a device to be commissioned, thereby improving R&D efficiency.
第一方面,本申请实施例提供了一种调测方法,所述调测方法应用于调测平台,所述调测平台设置有指令解析界面,所述调测方法包括:In a first aspect, an embodiment of the present application provides a commissioning method, the commissioning method is applied to a commissioning platform, the commissioning platform is provided with an instruction parsing interface, and the commissioning method includes:
根据预设的宏指令集合,对用户输入的第一宏指令解析得到若干操作指令以及对应的执行编号;其中,所述执行编号与所述第一宏指令在指令解析界面中的顺序一一对应;According to the preset macro instruction set, a number of operation instructions and corresponding execution numbers are obtained by parsing the first macro instruction input by the user; wherein, the execution numbers are in one-to-one correspondence with the order of the first macro instruction in the instruction parsing interface ;
根据所述操作指令以及对应的执行编号生成执行指令;Generate an execution instruction according to the operation instruction and the corresponding execution number;
根据预设的执行策略将所述执行指令发送给待调测设备;Send the execution instruction to the device to be debugged according to the preset execution strategy;
输出所述执行指令对应的所述待调测设备的响应数据,其中,所述响应数据包括所述执行编号。Response data of the device to be debugged corresponding to the execution instruction is output, wherein the response data includes the execution number.
第二方面,本申请实施例还提供了调测平台,包括解析器,所述解析器包括:In a second aspect, the embodiments of the present application further provide a commissioning platform, including a parser, where the parser includes:
处理模块,用于根据预设的宏指令集合,对用户输入的第一宏指令解析得到若干操作指令以及对应的执行编号;其中,所述执行编号与所述第一宏指令在指令解析界面中的顺序一一对应;A processing module, configured to parse the first macro instruction input by the user to obtain several operation instructions and corresponding execution numbers according to a preset macro instruction set; wherein, the execution numbers and the first macro instruction are in the instruction parsing interface The order of one-to-one correspondence;
生成模块,用于根据所述操作指令以及对应的执行编号生成执行指令;A generating module is used to generate an execution instruction according to the operation instruction and the corresponding execution number;
发送模块,用于根据预设的执行策略将所述执行指令发送给待调测设备;a sending module, configured to send the execution instruction to the device to be debugged according to a preset execution strategy;
响应模块,用于输出所述执行指令对应的所述待调测设备的响应数据。A response module, configured to output response data of the device to be debugged corresponding to the execution instruction.
第三方面,本申请实施例还提供了电子设备,包括:存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述计算机程序时如第一方面任意一项所述的调测方法。In a third aspect, embodiments of the present application further provide an electronic device, including: a memory, a processor, and a computer program stored in the memory and running on the processor, where the processor executes the computer program as in the first aspect Any one of the debugging methods described above.
第四方面,本申请实施例还提供了一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令用于执行第一方面任意一项所述的调测方法。In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium storing computer-executable instructions, where the computer-executable instructions are used to execute the debugging method described in any one of the first aspect.
根据本申请的上述实施例,至少具有如下有益效果:通过对用户输入的第一宏指令进行执行编号的设置以及设置执行策略对第一宏指令进行发送,使得调测者仅需关心具体的指令编号,调测平台根据第一宏指令的指令编号以及第一宏指令的内容生成具有业务逻辑的测试用例,当待调测设备不同时,仅需更换执行策略以及第一宏指令即可,相对于传统的需要对熟悉每个调测设备的操作指令以及脚本的指令下发逻辑,本申请的实施例可以降低对调测人员的要求,进而提升研发效率。According to the above-mentioned embodiments of the present application, at least the following beneficial effects are obtained: the first macro instruction is sent by setting the execution number of the first macro instruction input by the user and setting the execution strategy, so that the commissioner only needs to care about the specific instruction number, the commissioning platform generates a test case with business logic according to the instruction number of the first macro instruction and the content of the first macro instruction. When the devices to be tested are different, only the execution strategy and the first macro instruction need to be replaced. In view of the traditional need to be familiar with the operation instructions of each commissioning device and the instruction issuing logic of the script, the embodiment of the present application can reduce the requirements for commissioning personnel, thereby improving the research and development efficiency.
本申请的其它特征和优点将在随后的说明书中阐述,并且,部分地从说明书中变得显而易见,或者通过实施本申请而了解。本申请的目的和其他优点可通过在说明书、权利要求书以及附图中所特别指出的结构来实现和获得。Other features and advantages of the present application will be set forth in the description which follows, and in part will be apparent from the description, or may be learned by practice of the present application. The objectives and other advantages of the application may be realized and attained by the structure particularly pointed out in the description, claims and drawings.
附图说明Description of drawings
附图用来提供对本申请技术方案的进一步理解,并且构成说明书的一部分,与本申请的实施例一起用于解释本申请的技术方案,并不构成对本申请技术方案的限制。The accompanying drawings are used to provide a further understanding of the technical solutions of the present application, and constitute a part of the specification. They are used to explain the technical solutions of the present application together with the embodiments of the present application, and do not constitute a limitation on the technical solutions of the present application.
图1是本申请实施例的一种调测平台的模块示意图;FIG. 1 is a schematic diagram of a module of a commissioning platform according to an embodiment of the present application;
图2是本申请实施例的一种应用于调测平台的调测方法的流程示意图;FIG. 2 is a schematic flowchart of a commissioning method applied to a commissioning platform according to an embodiment of the present application;
图3是本申请实施例的一种应用于调测平台的调测方法的第一数据通道的创建流程示意图。FIG. 3 is a schematic flowchart of creating a first data channel of a commissioning method applied to a commissioning platform according to an embodiment of the present application.
具体实施方式Detailed ways
为了使本申请的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请进行进一步详细说明。应当理解,此处所描述的具体实施例仅用以解释本申请,并不用于限定本申请。In order to make the purpose, technical solutions and advantages of the present application more clearly understood, the present application will be described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application, but not to limit the present application.
需要说明的是,虽然在装置示意图中进行了功能模块划分,在流程图中示出了逻辑顺序,但是在某些情况下,可以以不同于装置中的模块划分,或流程图中的顺序执行所示出或描述的步骤。说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。It should be noted that although the functional modules are divided in the schematic diagram of the device, and the logical sequence is shown in the flowchart, in some cases, the modules may be divided differently from the device, or executed in the order in the flowchart. steps shown or described. The terms "first", "second" and the like in the description and claims and the above drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence.
在对设备进行调测过程中,往往需要提前对设备的底层进行调测,以使上层应用搭建后能与底层正常的交互,进而缩短研发的周期。现有的对底层的测试往往通过白盒测试进行测试,即在代码中加入测试框架,并撰写测试用例进行测试,这种需要研发人员进行用例的研发,因此会导致整个应用研发的效率降低,虽然可以通过测试脚本让测试人员进行黑盒测试,从而研发测试同步进行,但是通过测试脚本进行黑盒测试对测试人员有一定的技术要求,因此,亟需一种简单的高效的调测平台对应用软件进行调测,从而提升研发的效率。本申请实施例提供了一种调测平台、设备及存储介质,能够提供一种简单且高效的调测方法对待调测设备进行调测,进而提升研发效率。In the process of device commissioning, it is often necessary to commission the bottom layer of the device in advance, so that the upper-layer application can interact with the bottom layer normally after it is built, thereby shortening the R&D cycle. The existing low-level tests are often tested through white-box testing, that is, adding a test framework to the code and writing test cases for testing. This requires developers to develop use cases, which will reduce the efficiency of the entire application development. Although it is possible to allow testers to conduct black-box testing through test scripts, so that R&D testing can be carried out simultaneously, but black-box testing through test scripts has certain technical requirements for testers. Therefore, a simple and efficient debugging platform is urgently needed. The application software is used for commissioning, thereby improving the efficiency of R&D. Embodiments of the present application provide a commissioning platform, a device, and a storage medium, which can provide a simple and efficient commissioning method for commissioning a device to be commissioned, thereby improving R&D efficiency.
参照图1所示的实施例,本申请提出一种调测平台,包括解析器,解析器包括处理模块110、生成模块120、发送模块130、响应模块140,解析器设置有指令解析界面;处理模块110用于根据预设的宏指令集合,对用户输入的第一宏指令解析得到若干操作指令以及对应的执行编号;其中,执行编号与第一宏指令在指令解析界面中的顺序一一对应;生成模块120用于根据操作指令以及对应的执行编号生成执行指令;发送模块130用于根据预设的执行策略将执行指令发送给待调测设备200;响应模块140用于输出执行指令对应的待调测设备200的响应数据,其中,响应数据包括执行编号。Referring to the embodiment shown in FIG. 1, the present application proposes a debugging platform, including a parser, the parser includes a
需说明的是,第一宏指令从指令解析界面中输入,执行策略表示指令解析界面中的第一宏指令执行的顺序,执行的次数(如循环次数),或者相邻两个第一宏指令之间的执行时间间隔。需说明的是,由于执行指令中包含了执行编号,响应数据响应的也会携带第一宏指令对应的执行编号。通过执行编号与响应数据一一对应,当执行多次后,可以直接通过输出的响应数据中的执行编号快速确定是哪一个第一宏指令执行出问题,从而提升定位效率,进而提升研发效率。It should be noted that the first macro instruction is input from the instruction parsing interface, and the execution strategy indicates the order in which the first macro instruction in the instruction parsing interface is executed, the number of times of execution (such as the number of cycles), or two adjacent first macro instructions. time interval between executions. It should be noted that, since the execution instruction includes the execution number, the response data response also carries the execution number corresponding to the first macro instruction. Through the one-to-one correspondence between the execution number and the response data, after multiple executions, the execution number in the output response data can be used to quickly determine which first macro command has a problem in execution, thereby improving the positioning efficiency, thereby improving the R&D efficiency.
需说明的是,在一些实施例中,还包括显示模块150,显示模块150用于将响应数据显示在指令解析界面中。It should be noted that, in some embodiments, a
本领域技术人员可以理解的是,图1中示出的模块示意图并不构成对本申请实施例的限定,可以包括比图示更多或更少的模块,或者组合某些模块,或者不同的模块布置。It can be understood by those skilled in the art that the schematic diagram of the modules shown in FIG. 1 does not constitute a limitation to the embodiments of the present application, and may include more or less modules than the one shown, or combine some modules, or different modules layout.
下面结合附图,对本申请实施例的方法作进一步阐述。The methods of the embodiments of the present application are further described below with reference to the accompanying drawings.
参照图2所示,本申请提出一种调测方法,应用于调测平台,调测平台设置有指令解析界面,调测方法包括:Referring to FIG. 2 , the present application proposes a commissioning method, which is applied to a commissioning platform. The commissioning platform is provided with an instruction parsing interface. The commissioning method includes:
步骤S100、根据预设的宏指令集合,对用户输入的第一宏指令解析得到若干操作指令以及对应的执行编号;其中,执行编号与第一宏指令在指令解析界面中的顺序一一对应。Step S100: According to the preset macro instruction set, analyze the first macro instruction input by the user to obtain several operation instructions and corresponding execution numbers; wherein, the execution numbers correspond to the order of the first macro instructions in the instruction parsing interface one-to-one.
需说明的是,通过设置执行令编号,可以便于识别响应数据对应的操作指令。It should be noted that, by setting the execution command number, the operation command corresponding to the response data can be easily identified.
需说明的是,将对待调测设备下发的操作指令封装到第一宏指令中,可以模拟上层应用软件进行调测,示例性的,以待调测设备为机器人的底层驱动为例,通过将机器人的上位机的每一执行功能对应的操作指令封装到第一宏指令中,可以方便调测者进行调测,并反向测试上位机的功能,进而提升研发效率。而通常上层应用的功能是固定的,此时,可以将其封装到第一宏指令中,方便操作的同时可以提升效率。It should be noted that the operation command issued by the device to be tested is encapsulated into the first macro instruction, and the upper-layer application software can be simulated for debugging. The operation instructions corresponding to each execution function of the upper computer of the robot are encapsulated into the first macro instruction, which can facilitate the commissioner to perform debugging and reversely test the functions of the upper computer, thereby improving the efficiency of research and development. Usually, the function of the upper-layer application is fixed. In this case, it can be encapsulated into the first macro instruction, which can facilitate the operation and improve the efficiency.
步骤S200、根据操作指令以及对应的执行编号生成执行指令。Step S200, generating an execution instruction according to the operation instruction and the corresponding execution number.
步骤S300、根据预设的执行策略将执行指令发送给待调测设备。Step S300: Send an execution instruction to the device to be debugged according to a preset execution strategy.
需说明的是,执行策略表示对输入的第一宏指令需要怎么操作,在解析界面中预设有该执行策略,调测者可以根据需要选择对哪些第一宏指令执行该执行策略,以使至少一个第一宏指令按照预设的时间间隔、预设的循环次数执行。It should be noted that the execution strategy indicates how to operate the inputted first macro instruction. The execution strategy is preset in the parsing interface, and the debugger can choose which first macro instructions to execute the execution strategy as needed, so that the At least one first macro instruction is executed according to a preset time interval and a preset number of cycles.
步骤S400、输出执行指令对应的待调测设备的响应数据,其中,响应数据包括执行编号。Step S400, outputting response data of the device to be commissioned corresponding to the execution instruction, wherein the response data includes an execution number.
需说明的是,响应数据中有对应的执行编号,因此可以根据执行编号确定每个执行指令对应的响应数据。It should be noted that there is a corresponding execution number in the response data, so the response data corresponding to each execution instruction can be determined according to the execution number.
因此,通过对用户输入的第一宏指令进行执行编号的设置以及设置执行策略对第一宏指令进行发送,使得调测者仅需关心具体的指令编号,调测平台根据第一宏指令的指令编号以及第一宏指令的内容生成具有业务逻辑的测试用例,当待调测设备不同时,仅需更换执行策略以及第一宏指令即可,相对于传统的需要对熟悉每个调测设备的操作指令以及脚本的指令下发逻辑,本申请的实施例可以降低对调测人员的要求,进而提升研发效率。Therefore, the first macro instruction is sent by setting the execution number and setting the execution strategy of the first macro instruction input by the user, so that the commissioner only needs to care about the specific instruction number, and the commissioning platform is based on the instruction of the first macro instruction. The number and the content of the first macro command generate test cases with business logic. When the devices to be commissioned are different, only the execution strategy and the first macro command need to be replaced. As for the operation instruction and the instruction issuing logic of the script, the embodiments of the present application can reduce the requirements for commissioning personnel, thereby improving the R&D efficiency.
可理解的是,步骤S300、根据预设的执行策略将执行指令发送给待调测设备,包括:获取预设的执行频率;根据执行频率、执行编号,将已输入的第一宏指令对应的执行指令分别发送给待调测设备。It is understandable that, in step S300, sending the execution instruction to the device to be debugged according to the preset execution strategy includes: obtaining the preset execution frequency; The execution instructions are respectively sent to the device to be tested.
可理解的是,S300、根据预设的执行策略将执行指令发送给待调测设备,包括:获取预设的执行模式;根据执行模式,确定已输入的第一宏指令对应的执行指令的执行次数。It can be understood that, in S300, sending the execution instruction to the device to be debugged according to the preset execution strategy includes: acquiring a preset execution mode; and determining execution of the execution instruction corresponding to the inputted first macro instruction according to the execution mode. frequency.
需说明的是,在进行调测时需要对第一宏指令执行该执行次数次的指令下发。It should be noted that, during debugging, the first macro instruction needs to be executed for the number of times of executing the instruction.
可理解的是,执行策略通过脚本文件动态加载。Understandably, the execution strategy is loaded dynamically through a script file.
可理解的是,在步骤S300之前,方法还包括:将执行指令存储在指令缓存队列中。It can be understood that, before step S300, the method further includes: storing the execution instruction in the instruction cache queue.
需说明的是,通过将执行指令存储在指令缓存队列中,此时可以根据执行策略遍历指令缓存队列中的执行指令,进而进一步提升执行效率。示例性的,假设执行策略是间隔10S执行一个执行指令,则会每间隔10S从缓存队列中提取一个执行指令发送到待调测设备。It should be noted that, by storing the execution instructions in the instruction cache queue, the execution instructions in the instruction cache queue can be traversed according to the execution policy, thereby further improving the execution efficiency. Exemplarily, assuming that the execution strategy is to execute one execution instruction at intervals of 10s, one execution instruction is extracted from the cache queue every 10s and sent to the device to be debugged.
可理解的是,在步骤S100之前,方法还包括根据用户输入的关键数据信息,从预设的宏指令列表中匹配若干第二宏指令进行显示;响应用户对若干第二宏指令的选择请求,对关键数据信息自动补齐,得到至少一个第一宏指令。It is understandable that, before step S100, the method further includes matching a number of second macro instructions from a preset macro instruction list to display according to the key data information input by the user; in response to the user's selection request for several second macro instructions, The key data information is automatically completed to obtain at least one first macro instruction.
需说明的是,选择请求可以依次对输入的多个第二宏指令进行选中,从而得到多个第一宏指令,也可以对其中一个选中,得到一个第一宏指令。It should be noted that, the selection request may sequentially select a plurality of inputted second macro instructions to obtain a plurality of first macro instructions, or may select one of them to obtain a first macro instruction.
可理解的是,参照图3所示,方法还包括:It can be understood that, referring to FIG. 3, the method further includes:
步骤S510、向待调测设备发起通道连通请求;其中,通道连通请求用于根据第一数据类型创建第一数据通道。Step S510: Initiating a channel connection request to the device to be tested; wherein, the channel connection request is used to create a first data channel according to the first data type.
步骤S520、通过第一数据通道接收与第一数据类型匹配的响应数据。Step S520: Receive response data matching the first data type through the first data channel.
需说明的是,第一数据通道可以设置为接收来自于待调测设备主动上报的状态数据,进而可以实时检测待调测设备的状态,通过单独建立第一数据通道与其他数据隔离,从而可以互不影响,提升执行效率。It should be noted that the first data channel can be set to receive status data actively reported by the device to be tested, so that the status of the device to be tested can be detected in real time. They do not affect each other and improve the execution efficiency.
可理解的是,第一数据通道设置有多个,每个第一数据通道对应的第一数据类型均不相同;方法还包括:将每一第一数据通道接收的响应数据分别显示在对应的输出显示窗口中。It is understandable that there are multiple first data channels, and the first data types corresponding to each first data channel are different; the method further includes: displaying the response data received by each first data channel in the corresponding The output is displayed in the window.
当第一数据通道设置有多个,可以根据请求的内容分别设置,此时调测用户可以直接根据输出显示窗口查看具体的响应数据,进而可以提升定位分析的效率,从而快速找到问题提升研发的效率。When there are multiple first data channels, they can be set according to the content of the request. At this time, the commissioning user can directly view the specific response data according to the output display window, which can improve the efficiency of positioning analysis, so as to quickly find the problem and improve the research and development efficiency. efficiency.
可理解的是,方法还包括:为每一第一数据通道设置通道号;将通道号与输出显示窗口建立映射关系,以通过通道号识别第一数据通道显示的输出显示窗口。It is understandable that the method further includes: setting a channel number for each first data channel; establishing a mapping relationship between the channel number and the output display window, so as to identify the output display window displayed by the first data channel by the channel number.
需说明的是,通道号通常是数字,通过数字识别可以提升识别效率。It should be noted that the channel number is usually a number, and identification efficiency can be improved through digital identification.
可理解的是,方法还包括:接收来自于用户输入的IP地址;根据IP地址,通过FTP协议从IP地址对应的待调测设备的磁盘空间中读取日志数据库;将日志数据库进行分类筛选,得到若干分类好的第二日志以使用户根据若干分类好的第二日志进行分析处理。It is understandable that the method further includes: receiving an IP address input from a user; according to the IP address, reading a log database from the disk space of the device to be commissioned corresponding to the IP address through an FTP protocol; classifying and filtering the log database, Several classified second logs are obtained, so that the user can perform analysis processing according to the several classified second logs.
需说明的是,可以为日志的采集建立第一数据通道,并在第一数据通道对应的的输出显示窗口进行显示。It should be noted that a first data channel may be established for log collection and displayed in an output display window corresponding to the first data channel.
可理解的是,方法还包括:接收来自于用户的日志获取指令;日志获取指令包括日志目录;根据日志获取指令从对应的待调测设备的日志目录中读取日志信息。It is understandable that the method further includes: receiving a log acquisition instruction from a user; the log acquisition instruction includes a log directory; and reading log information from a log directory of a corresponding device to be commissioned according to the log acquisition instruction.
需说明的是,日志获取指令可以为用户发起的基于FTP协议的日志获取连接,以通过FTP协议从对应的待调测设备的日志目录中读取日志信息。It should be noted that the log acquisition instruction can be a log acquisition connection initiated by the user based on the FTP protocol, so as to read log information from the log directory of the corresponding device to be commissioned through the FTP protocol.
需说明的是,直接从指定的日志目录提取,效率更高,在调测者明确故障的位置的情况下,根据该日志获取指令直接获取对应的日志,进而提升定位效率,从而提升研发效率。It should be noted that it is more efficient to extract directly from the specified log directory. When the commissioner knows the location of the fault, the corresponding log can be directly obtained according to the log acquisition command, thereby improving the positioning efficiency, thereby improving the R&D efficiency.
可理解的是,方法还包括:接收宏指令添加请求,宏指令添加请求用于将待添加的第二宏指令添加到宏指令集合中。It is understandable that the method further includes: receiving a macro instruction addition request, where the macro instruction addition request is used to add the second macro instruction to be added to the macro instruction set.
需说明的是,随着待调测设备的系统的迭代,可以通过更新宏指令集合实现对同一待调测设备的不同版本的软件进行调测。当第二宏指令有多个时,可以通过设置脚本文件,通过加载脚本文件从而将待添加的第二宏指令添加到宏指令集合中。It should be noted that, with the iteration of the system of the device to be commissioned, the software of different versions of the same device to be commissioned can be debugged by updating the macro instruction set. When there are multiple second macro instructions, a script file can be set, and the script file can be loaded to add the second macro instruction to be added to the macro instruction set.
需说明的是,宏指令添加请求可以通过宏指令或者脚本执行语言触发。It should be noted that the macro instruction addition request may be triggered by a macro instruction or a script execution language.
可理解为,本申请还提出一种电子设备,包括:存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,处理器执行计算机程序时实现上述应用于调测平台的调测方法。It can be understood that the present application also proposes an electronic device, including: a memory, a processor, and a computer program stored in the memory and running on the processor. measurement method.
存储器作为一种非暂态计算机可读存储介质,可用于存储非暂态软件程序以及非暂态性计算机可执行程序。此外,存储器可以包括高速随机存取存储器,还可以包括非暂态存储器,例如至少一个磁盘存储器件、闪存器件、或其他非暂态固态存储器件。在一些实施方式中,存储器可选包括相对于处理器远程设置的存储器,这些远程存储器可以通过网络连接至该处理器。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。As a non-transitory computer-readable storage medium, the memory can be used to store non-transitory software programs and non-transitory computer-executable programs. Additionally, the memory may include high-speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid state storage device. In some embodiments, the memory may optionally include memory located remotely from the processor, which may be connected to the processor via a network. Examples of such networks include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
需要说明的是,本实施例中的传输设备,可以应用为如图1所示实施例的调测平台,本实施例中的电子设备和如图2所示应用于调测平台的调测方法具有相同的发明构思,因此这些实施例具有相同的实现原理以及技术效果,此处不再详述。It should be noted that the transmission device in this embodiment can be applied to the commissioning platform of the embodiment shown in FIG. 1 , the electronic device in this embodiment and the commissioning method applied to the commissioning platform shown in FIG. 2 Having the same inventive concept, these embodiments have the same realization principle and technical effect, and will not be described in detail here.
实现上述实施例的信息处理方法所需的非暂态软件程序以及指令存储在存储器中,当被处理器执行时,执行上述实施例中的信息处理方法,例如,执行以上描述的图2、图3对应的方法步骤。The non-transitory software programs and instructions required to realize the information processing method of the above-mentioned embodiment are stored in the memory, and when executed by the processor, the information processing method in the above-mentioned embodiment is executed, for example, the above-described FIG. 2 and FIG. 2 are executed. 3 corresponding method steps.
可理解为,本申请还提供一种计算机可读存储介质,存储有计算机可执行指令,计算机可执行指令用于执行上述调测平台。It can be understood that the present application further provides a computer-readable storage medium storing computer-executable instructions, where the computer-executable instructions are used to execute the above-mentioned commissioning platform.
本领域普通技术人员可以理解,上文中所公开方法中的全部或某些步骤、系统可以被实施为软件、固件、硬件及其适当的组合。某些物理组件或所有物理组件可以被实施为由处理器,如中央处理器、数字信号处理器或微处理器执行的软件,或者被实施为硬件,或者被实施为集成电路,如专用集成电路。这样的软件可以分布在计算机可读介质上,计算机可读介质可以包括计算机存储介质(或非暂时性介质)和通信介质(或暂时性介质)。如本领域普通技术人员公知的,术语计算机存储介质包括在用于存储信息(诸如计算机可读指令、数据结构、程序模块或其他数据)的任何方法或技术中实施的易失性和非易失性、可移除和不可移除介质。计算机存储介质包括但不限于RAM、ROM、EEPROM、闪存或其他存储器技术、CD-ROM、数字多功能盘(DVD)或其他光盘存储、磁盒、磁带、磁盘存储或其他磁存储装置、或者可以用于存储期望的信息并且可以被计算机访问的任何其他的介质。此外,本领域普通技术人员公知的是,通信介质通常包含计算机可读指令、数据结构、程序模块或者诸如载波或其他传输机制之类的调制数据信号中的其他数据,并且可包括任何信息递送介质。Those of ordinary skill in the art can understand that all or some of the steps and systems in the methods disclosed above can be implemented as software, firmware, hardware, and appropriate combinations thereof. Some or all physical components may be implemented as software executed by a processor, such as a central processing unit, digital signal processor or microprocessor, or as hardware, or as an integrated circuit, such as an application specific integrated circuit . Such software may be distributed on computer-readable media, which may include computer storage media (or non-transitory media) and communication media (or transitory media). As known to those of ordinary skill in the art, the term computer storage media includes both volatile and nonvolatile implemented in any method or technology for storage of information, such as computer readable instructions, data structures, program modules or other data flexible, removable and non-removable media. Computer storage media include, but are not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disk (DVD) or other optical disk storage, magnetic cartridges, magnetic tape, magnetic disk storage or other magnetic storage devices, or may Any other medium used to store desired information and which can be accessed by a computer. In addition, communication media typically embodies computer readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transport mechanism, and can include any information delivery media, as is well known to those of ordinary skill in the art .
以上是对本申请的较佳实施进行了具体说明,但本申请并不局限于上述实施方式,熟悉本领域的技术人员在不违背本申请精神的前提下还可作出种种的等同变形或替换,这些等同的变形或替换均包含在本申请权利要求所限定的范围内。The above is a specific description of the preferred implementation of the application, but the application is not limited to the above-mentioned embodiments. Those skilled in the art can also make various equivalent deformations or replacements on the premise of not violating the spirit of the application. These Equivalent modifications or substitutions are included within the scope defined by the claims of the present application.
Claims (15)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111654326.2A CN114490337A (en) | 2021-12-30 | 2021-12-30 | Commissioning method, commissioning platform, equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111654326.2A CN114490337A (en) | 2021-12-30 | 2021-12-30 | Commissioning method, commissioning platform, equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN114490337A true CN114490337A (en) | 2022-05-13 |
Family
ID=81509046
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111654326.2A Pending CN114490337A (en) | 2021-12-30 | 2021-12-30 | Commissioning method, commissioning platform, equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114490337A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20220197782A1 (en) * | 2019-09-16 | 2022-06-23 | Shanghai Ncatest Technologies Co., Ltd. | Offline debugging method |
CN115657637A (en) * | 2022-10-25 | 2023-01-31 | 深圳优地科技有限公司 | Robot electric door testing method, device and storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110837467A (en) * | 2019-10-30 | 2020-02-25 | 深圳开立生物医疗科技股份有限公司 | Software testing method, device and system |
CN111831544A (en) * | 2019-08-13 | 2020-10-27 | 北京嘀嘀无限科技发展有限公司 | Application program debugging method, device, equipment and storage medium |
CN113656321A (en) * | 2021-08-26 | 2021-11-16 | 中国电信股份有限公司 | Automated testing method, system, equipment and medium |
-
2021
- 2021-12-30 CN CN202111654326.2A patent/CN114490337A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111831544A (en) * | 2019-08-13 | 2020-10-27 | 北京嘀嘀无限科技发展有限公司 | Application program debugging method, device, equipment and storage medium |
CN110837467A (en) * | 2019-10-30 | 2020-02-25 | 深圳开立生物医疗科技股份有限公司 | Software testing method, device and system |
CN113656321A (en) * | 2021-08-26 | 2021-11-16 | 中国电信股份有限公司 | Automated testing method, system, equipment and medium |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20220197782A1 (en) * | 2019-09-16 | 2022-06-23 | Shanghai Ncatest Technologies Co., Ltd. | Offline debugging method |
US11789851B2 (en) * | 2019-09-16 | 2023-10-17 | Shanghai Ncatest Technologies Co., Ltd. | Offline debugging method |
CN115657637A (en) * | 2022-10-25 | 2023-01-31 | 深圳优地科技有限公司 | Robot electric door testing method, device and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10552301B2 (en) | Completing functional testing | |
CN109302522B (en) | Test method, test device, computer system, and computer medium | |
US11762717B2 (en) | Automatically generating testing code for a software application | |
CN110147317B (en) | Code testing method and device, electronic device and storage medium | |
US8875110B2 (en) | Code inspection executing system for performing a code inspection of ABAP source codes | |
US7917896B2 (en) | Extensible execution language | |
US7512933B1 (en) | Method and system for associating logs and traces to test cases | |
US20230273775A1 (en) | Remote application modernization | |
US20100115496A1 (en) | Filter generation for load testing managed environments | |
CN111124919A (en) | User interface testing method, device, equipment and storage medium | |
US11681511B2 (en) | Systems and methods for building and deploying machine learning applications | |
CN108628746A (en) | Automatic interface testing method and system | |
US10705949B2 (en) | Evaluation of library test suites using mutation testing | |
CN111897727A (en) | Software testing method and device, computer equipment and storage medium | |
CN112231213A (en) | Web automated testing method, system, storage medium and terminal equipment | |
CN103186463B (en) | Determine the method and system of the test specification of software | |
CN114490337A (en) | Commissioning method, commissioning platform, equipment and storage medium | |
CN113836014A (en) | An interface testing method, device, electronic device and storage medium | |
US9842044B2 (en) | Commit sensitive tests | |
CN113238968A (en) | System test method, apparatus, device, medium, and program product | |
CN112445692B (en) | A use case testing method and terminal | |
CN112988578A (en) | An automated testing method and device | |
CN110866492B (en) | Baseline branch identification method and device and computer system | |
CN115292178A (en) | Test data searching method, device, storage medium and terminal | |
CN114297055A (en) | An automated testing method for WebUI based on intelligent learning |
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 |