CN105404543A - Simulation machine - Google Patents
Simulation machine Download PDFInfo
- Publication number
- CN105404543A CN105404543A CN201510679507.9A CN201510679507A CN105404543A CN 105404543 A CN105404543 A CN 105404543A CN 201510679507 A CN201510679507 A CN 201510679507A CN 105404543 A CN105404543 A CN 105404543A
- Authority
- CN
- China
- Prior art keywords
- client
- simulator
- file
- information
- module
- 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
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; 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/44—Arrangements for executing specific programs
- G06F9/455—Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
- G06F9/45504—Abstract machines for programme code execution, e.g. Java virtual machine [JVM], interpreters, emulators
- G06F9/45508—Runtime interpretation or emulation, e g. emulator loops, bytecode interpretation
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Prevention of errors by analysis, debugging or testing of software
- G06F11/3668—Testing of software
- G06F11/3672—Test management
- G06F11/3684—Test management for test design, e.g. generating new test cases
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Debugging And Monitoring (AREA)
Abstract
本发明公开的一种模拟机利用自身包括的定义文件模拟底层硬件设备和中间层代理的功能及工作环境,基于定义文件对客户端发送的信息文档进行处理并反馈处理结果至客户端,以指示客户端根据处理结果完成开发及测试。由此,客户端仅需利用用于模拟底层硬件设备及中间层代理的功能及工作环境的定义文件实现其开发及测试,而无需基于中间层代理及底层硬件设备完成对客户端的开发及测试,更无需等待中间层代理及底层硬件设备完成开发及测试后再进行客户端的开发及测试,且避免了在客户端的开发及测试过程中对于底层硬件设备的消耗,由此,降低了对于客户端开发及测试的时间及成本,提高了对于客户端开发及测试的效率。
A simulator disclosed by the present invention simulates the functions and working environment of the underlying hardware device and the middle layer agent by using the definition file included in itself, processes the information document sent by the client based on the definition file and feeds back the processing result to the client to indicate The client completes development and testing based on the processing results. Therefore, the client only needs to use the definition files used to simulate the functions and working environment of the underlying hardware device and the middle-level agent to realize its development and testing, without the need to complete the development and testing of the client based on the middle-level agent and the underlying hardware device. There is no need to wait for the development and testing of the middle-level agent and the underlying hardware equipment before developing and testing the client, and avoiding the consumption of the underlying hardware during the development and testing of the client, thereby reducing the need for client development. and testing time and cost, improving the efficiency of client development and testing.
Description
技术领域technical field
本发明涉及开发测试技术领域,更具体地说,涉及一种模拟机。The invention relates to the technical field of development and testing, and more specifically relates to a simulator.
背景技术Background technique
随着大数据时代的来临,各企业对存储设备的需求不断增加,存储设备的管理成本也不断提高,可以统一管理各个厂商的存储设备的统一管理系统也应运而生。而对于统一管理系统中客户端、底层硬件设备(即存储设备)及中间层代理的开发和测试就显得尤为重要。With the advent of the big data era, the demand for storage devices of various enterprises continues to increase, and the management cost of storage devices also continues to increase. A unified management system that can uniformly manage storage devices of various manufacturers has also emerged as the times require. It is particularly important to develop and test the client, the underlying hardware device (ie storage device) and the middle layer agent in the unified management system.
在实际开发过程中,客户端要基于中间层代理和底层硬件设备进行自身的开发和测试,因此,为了使得客户端的开发及测试更加准确,需要在中间层代理及底层硬件设备开发并测试完成后,再实现对于客户端的开发及测试,但是,这样会增长客户端的开发及测试时间,降低其开发及测试效率,并且,在利用中间层代理及底层硬件设备对客户端进行开发及测试的过程中会对底层硬件设备造成一定的消耗,从而增加开发及测试成本。In the actual development process, the client needs to develop and test itself based on the middle-level agent and the underlying hardware device. Therefore, in order to make the development and testing of the client more accurate, it is necessary to develop and test the middle-level agent and the underlying hardware device. , and then realize the development and testing of the client, but this will increase the development and testing time of the client, reduce its development and testing efficiency, and, in the process of developing and testing the client by using the middle layer agent and the underlying hardware device It will cause a certain consumption of the underlying hardware equipment, thereby increasing the cost of development and testing.
综上所述,现有技术中对于客户端的开发及测试存在时间较长、效率较低,且成本较高的问题。To sum up, the development and testing of the client in the prior art has the problems of long time, low efficiency, and high cost.
发明内容Contents of the invention
本发明的目的是提供一种模拟机,以解决现有技术中对于客户端的开发及测试存在的时间较长、效率较低,且成本较高的问题。The purpose of the present invention is to provide a simulator to solve the problems of long time, low efficiency and high cost in the development and testing of the client in the prior art.
为了实现上述目的,本发明提供如下技术方案:In order to achieve the above object, the present invention provides the following technical solutions:
一种模拟机,所述模拟机利用自身包括的定义文件模拟底层硬件设备和中间层代理的功能及工作环境,基于所述定义文件对客户端发送的信息文档进行处理并反馈处理结果至所述客户端,以指示所述客户端根据所述处理结果完成开发及测试。A simulator, which simulates the functions and working environment of the underlying hardware device and the middle layer agent by using the definition file included in the simulator, processes the information document sent by the client based on the definition file and feeds back the processing result to the the client, to instruct the client to complete development and testing according to the processing result.
优选的,所述模拟机包括总控制模块、请求分析模块、定义处理模块、请求校验模块及反馈信息生成模块,其中:Preferably, the simulator includes a general control module, a request analysis module, a definition processing module, a request verification module and a feedback information generation module, wherein:
所述总控制模块,用于接收所述客户端发送的信息文档并将所述反馈结果发送至所述客户端,以及用于控制其他模块完成相应的工作;The general control module is used to receive the information document sent by the client and send the feedback result to the client, and to control other modules to complete corresponding work;
所述请求分析模块,用于将所述客户端发送的信息文档转换成符合所述模拟机的处理要求的格式的信息文档;The request analysis module is configured to convert the information file sent by the client into an information file in a format that meets the processing requirements of the simulator;
所述定义处理模块,用于将携带有与所述底层硬件设备及所述中间层代理的功能及工作环境相对应的配置信息的定义文件转换成符合所述模拟机的处理要求的格式的定义文件;The definition processing module is used to convert the definition file carrying the configuration information corresponding to the function and working environment of the underlying hardware device and the middle layer agent into a definition in a format that meets the processing requirements of the simulator document;
所述请求校验模块,用于将符合所述模拟机的处理要求的格式的信息文档及定义文件进行对比校验,生成校验结果;The request verification module is used to compare and verify the information file and the definition file in a format that meets the processing requirements of the simulator, and generate a verification result;
所述反馈信息生成模块,用于将所述校验结果转换成合法的反馈结果。The feedback information generation module is used to convert the verification result into a legal feedback result.
优选的,所述模拟机还包括控制模块,所述控制模块用于接收所述客户端发送的身份信息,根据所述身份信息判断其对应的客户端是否为合法客户端,得出判断结果,并将所述判断结果传送至所述总控制模块。Preferably, the simulator further includes a control module, the control module is used to receive the identity information sent by the client, judge whether the corresponding client is a legitimate client according to the identity information, and obtain a judgment result, And transmit the judgment result to the general control module.
优选的,所述总控制模块包括文件管理单元,所述文件管理单元用于供外界设备通过该文件管理单元对所述定义文件进行管理。Preferably, the general control module includes a file management unit, and the file management unit is used for external devices to manage the definition file through the file management unit.
优选的,所述请求校验模块包括结果生成单元,所述结果生成单元用于生成校验结果,所述校验结果包括所述信息文档与所述定义文件对比校验成功或者所述信息文档与所述定义文件对比校验不成功时导致所述信息文档与所述定义文件对比校验不成功的错误原因代码。Preferably, the request verification module includes a result generation unit, the result generation unit is used to generate a verification result, and the verification result includes that the information file is compared with the definition file and the verification is successful or the information file An error reason code that causes the information document to fail the comparison and verification with the definition file when the comparison and verification with the definition file is unsuccessful.
优选的,所述反馈信息生成模块包括反馈信息生成单元,所述反馈信息生成单元用于在预先存储的信息库中确定与所述校验结果对应的合法数据,并将所述合法数据与所述校验结果组成合法的反馈结果。Preferably, the feedback information generation module includes a feedback information generation unit, the feedback information generation unit is used to determine legal data corresponding to the verification result in a pre-stored information base, and combine the legal data with the The above verification results form a legal feedback result.
优选的,所述配置信息包括硬件参数及功能参数。Preferably, the configuration information includes hardware parameters and function parameters.
优选的,所述模拟机遵循CIM标准接口通过HTTP协议族以CIM-XML的方式与所述客户端进行通信。Preferably, the simulator communicates with the client in the form of CIM-XML through the HTTP protocol suite following the CIM standard interface.
本发明提供的一种模拟机利用自身包括的定义文件模拟底层硬件设备和中间层代理的功能及工作环境,基于所述定义文件对客户端发送的信息文档进行处理并反馈处理结果至所述客户端,以指示所述客户端根据所述处理结果完成开发及测试。与现有技术相比,本申请提供的一种模拟机能够使得客户端仅需利用用于模拟底层硬件设备及中间层代理的功能及工作环境的定义文件实现其开发及测试,无需基于中间层代理及底层硬件设备完成对客户端的开发及测试,更无需等待中间层代理及底层硬件设备完成开发及测试后再进行客户端的开发及测试,且避免了在客户端的开发及测试过程中对于底层硬件设备的消耗,由此,降低了对于客户端开发及测试的时间及成本,提高了对于客户端开发及测试的效率。A simulator provided by the present invention simulates the function and working environment of the underlying hardware device and the middle layer agent by using the definition file included in itself, processes the information document sent by the client based on the definition file, and feeds back the processing result to the client terminal, to instruct the client to complete development and testing according to the processing result. Compared with the prior art, the simulator provided by this application can make the client only need to use the definition file used to simulate the function and working environment of the underlying hardware device and the middle layer agent to realize its development and testing, without the need to rely on the middle layer The agent and the underlying hardware device complete the development and testing of the client, and there is no need to wait for the middle layer agent and the underlying hardware device to complete the development and testing before developing and testing the client. The consumption of equipment, thus, reduces the time and cost for client development and testing, and improves the efficiency of client development and testing.
附图说明Description of drawings
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据提供的附图获得其他的附图。In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only It is an embodiment of the present invention, and those skilled in the art can also obtain other drawings according to the provided drawings on the premise of not paying creative efforts.
图1为本发明实施例提供的一种模拟机的第一种结构示意图;Fig. 1 is the first kind of structural schematic diagram of a kind of simulator provided by the embodiment of the present invention;
图2为本发明实施例提供的一种模拟机的第二种结构示意图。Fig. 2 is a second structural schematic diagram of a simulator provided by an embodiment of the present invention.
具体实施方式detailed description
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.
请参阅图1,其示出了本发明实施例提供的一种模拟机1的结构示意图,模拟机1利用自身包括的定义文件11模拟底层硬件设备和中间层代理的功能及工作环境,基于定义文件11对客户端发送的信息文档进行处理并反馈处理结果至客户端,以指示客户端根据处理结果完成开发及测试。Please refer to Fig. 1, which shows a schematic structural diagram of a simulator 1 provided by the embodiment of the present invention, the simulator 1 uses the definition file 11 included in itself to simulate the functions and working environment of the underlying hardware device and the middle layer agent, based on the definition The file 11 processes the information document sent by the client and feeds back the processing result to the client to instruct the client to complete development and testing according to the processing result.
需要说明的是,模拟机利用定义文件模拟底层硬件设备及中间层代理的功能及工作环境,即通过软件的方法来实现上述模拟功能,由此,基于定义文件对客户端发送的信息文档进行处理并反馈处理结果至客户端,即为通过定义文件模拟底层硬件设备及中间层代理对客户端发送的信息文档的处理,从而无需使用真实的底层硬件设备及中间层代理,而只需通过模拟底层硬件设备及中间层代理的功能及工作环境来实现对于客户端的开发及测试。It should be noted that the simulator uses the definition file to simulate the function and working environment of the underlying hardware device and the middle layer agent, that is, realizes the above-mentioned simulation function through the method of software, thereby processing the information document sent by the client based on the definition file And feed back the processing result to the client, that is, to simulate the processing of the information document sent by the client by simulating the underlying hardware device and the middle-level agent through the definition file, so that there is no need to use the real underlying hardware device and the middle-level agent, but only by simulating the bottom-level The function and working environment of the hardware device and the middle layer agent are used to realize the development and testing of the client.
本申请提供的一种模拟机能够使得客户端仅需利用用于模拟底层硬件设备及中间层代理的功能及工作环境的定义文件实现其开发及测试,无需基于中间层代理及底层硬件设备完成对客户端的开发及测试,更无需等待中间层代理及底层硬件设备完成开发及测试后再进行客户端的开发及测试,且避免了在客户端的开发及测试过程中对于底层硬件设备的消耗,由此,降低了对于客户端开发及测试的时间及成本,提高了对于客户端开发及测试的效率。The simulator provided by this application can enable the client to realize its development and testing only by using the definition files used to simulate the functions and working environment of the underlying hardware device and the middle-level agent, without the need to complete the simulation based on the middle-level agent and the underlying hardware device. The development and testing of the client does not need to wait for the middle layer agent and the underlying hardware device to complete the development and testing before the development and testing of the client, and avoids the consumption of the underlying hardware device during the development and testing of the client. Therefore, The time and cost of client development and testing are reduced, and the efficiency of client development and testing is improved.
另外,现有技术中由于客户端需要基于中间层代理及底层硬件设备实现其开发及测试,但是用于各种条件的限制,往往并不容易使底层硬件设备达到一些特定状态,如饱和及其他异常状态,因此,客户端无法实现针对这些特定状态的开发及测试,因此,往往不能达到整合测试的目的,而这通常会埋下客户端性能和稳定性方面的隐患;即使是能够使底层硬件设备达到一些特定状态,对底层硬件设备的损耗也是比较大的,进而导致成本较高。而本申请利用模拟机中的定义文件模拟底层硬件设备及中间层代理的功能及工作环境,因此,当需要针对底层硬件设备的某些特定状态进行开发及测试时,只需对定义文件进行一定修改,而无需使底层硬件设备达到一些特定状态,因此,本申请提供的一种模拟机能够在成本较低的前提下达到整合测试的目的,以保证客户端的性能及稳定性。In addition, in the prior art, because the client needs to realize its development and testing based on the middle-level agent and the underlying hardware device, but due to the limitations of various conditions, it is often not easy to make the underlying hardware device reach some specific state, such as saturation and other Abnormal state, therefore, the client cannot achieve the development and testing for these specific states, therefore, the purpose of integration testing is often not achieved, and this usually bury hidden dangers in the performance and stability of the client; even if the underlying hardware can When the equipment reaches some specific states, the loss of the underlying hardware equipment is relatively large, which leads to higher costs. However, this application utilizes the definition file in the simulator to simulate the function and working environment of the underlying hardware device and the middle layer agent. It is not necessary to make the underlying hardware device reach some specific state. Therefore, a simulator provided by this application can achieve the purpose of integration testing under the premise of low cost, so as to ensure the performance and stability of the client.
如图2所示,上述实施例提供的一种模拟机,可以包括总控制模块12、请求分析模块13、定义处理模块14、请求校验模块15及反馈信息生成模块16,其中:As shown in FIG. 2, the simulator provided by the above-mentioned embodiment may include a general control module 12, a request analysis module 13, a definition processing module 14, a request verification module 15 and a feedback information generation module 16, wherein:
总控制模块12,用于接收客户端发送的信息文档并将反馈结果发送至客户端,以及用于控制其他模块完成相应的工作;The overall control module 12 is used to receive the information document sent by the client and send the feedback result to the client, and to control other modules to complete the corresponding work;
请求分析模块13,用于将客户端发送的信息文档转换成符合模拟机的处理要求的格式的信息文档;The request analysis module 13 is used to convert the information file sent by the client into an information file in a format that meets the processing requirements of the simulator;
定义处理模块14,用于将携带有与底层硬件设备及中间层代理的功能相对应的配置信息的定义文件转换成符合模拟机的处理要求的格式的定义文件;The definition processing module 14 is used to convert the definition file carrying the configuration information corresponding to the function of the underlying hardware device and the middle layer agent into a definition file in a format that meets the processing requirements of the simulator;
请求校验模块15,用于将符合模拟机的处理要求的格式的信息文档及定义文件进行对比校验,生成校验结果;The request verification module 15 is used to compare and verify the information files and definition files in the format that meet the processing requirements of the simulator, and generate verification results;
反馈信息生成模块16,用于将校验结果转换成合法的反馈结果。The feedback information generating module 16 is configured to convert the verification result into a legal feedback result.
需要说明的是,模拟机在对信息文档及定义文件进行处理时,需要先将信息文档及定义文件转换成模拟机可以处理的格式,从而保证模拟机对于信息文档及定义文件的顺利处理。而定义文件通常是MOF格式的文件。It should be noted that when the simulator processes the information files and definition files, it needs to convert the information files and definition files into a format that the simulator can handle, so as to ensure the smooth processing of the information files and definition files by the simulator. The definition file is usually a file in MOF format.
通过上述模块,实现了基于定义文件对客户端的开发及测试,保证了模拟机的功能的顺利实现。Through the above modules, the development and testing of the client based on the definition file is realized, which ensures the smooth realization of the functions of the simulator.
与上述模块对应的工作流程可以为:总控制模块接收客户端发送的信息文档,请求分析模块获取信息文档,并将其转换成模拟机能够处理的格式的文档,同时定义处理模块将定义文件转换成模拟机能够处理的格式的文档,请求校验模块将信息文档及定义文件进行对比校验,得到校验结果,反馈信息生成模块将校验结果转换成合法的反馈结果,由总控制模块将反馈结果返回至客户端。其中,定义处理模块及请求分析模块的工作可以是同时进行的,也可以是分别在不同的时间进行的,而合法的反馈结果即为符合预先确定的要求的反馈结果。The workflow corresponding to the above modules can be as follows: the general control module receives the information document sent by the client, requests the analysis module to obtain the information document, and converts it into a document in a format that the simulator can handle, and at the same time, the definition processing module converts the definition file file in a format that can be processed by the simulator, request the verification module to compare and verify the information file and the definition file, and obtain the verification result, the feedback information generation module converts the verification result into a legal feedback result, and the general control module converts the verification result into a legal feedback result. Feedback results are returned to the client. Wherein, the work of the definition processing module and the request analysis module can be carried out at the same time, or can be carried out at different times, and the legal feedback result is the feedback result that meets the predetermined requirements.
上述实施例提供的一种模拟机,还包括可以控制模块,控制模块用于接收客户端发送的身份信息,根据身份信息判断其对应的客户端是否为合法客户端,得出判断结果,并将判断结果传送至总控制模块。The simulator provided by the above embodiment also includes a control module, the control module is used to receive the identity information sent by the client, judge whether the corresponding client is a legal client according to the identity information, obtain the judgment result, and send The judgment result is sent to the general control module.
合法客户端可以是工作人员根据实际需要进行确定的,只有合法客户端才能基于模拟机完成其开发及测试。而模拟机可以将合法客户端的身份信息存储在存储模块中,接收到客户端的身份信息后,查看客户端的身份信息是否存在于存储模块中,如果是,则证明其为合法客户端。由此,能够避免不被允许的客户端基于模拟机完成开发及测试,或者对模拟机进行破坏等,保证了模拟机的安全性。The legal client can be determined by the staff according to actual needs, and only the legal client can complete its development and testing based on the simulator. The simulator can store the identity information of the legal client in the storage module, after receiving the identity information of the client, check whether the identity information of the client exists in the storage module, and if so, prove that it is a legitimate client. In this way, it is possible to prevent unallowed clients from completing development and testing based on the simulator, or destroying the simulator, thereby ensuring the security of the simulator.
上述实施例提供的一种模拟机,总控制模块可以包括文件管理单元,文件管理单元用于供外界设备通过该文件管理单元对定义文件进行管理。In the simulator provided by the above embodiment, the general control module may include a file management unit, which is used for external devices to manage definition files through the file management unit.
当外界设备或者其他模块需要对定义文件进行访问时,均可以通过文件管理单元实现,文件管理单元具体可以是文件接口,而访问可以包括读操作及写操作等,从而可以在外界设备或者其他模块在需要时顺利实现对于定义文件的访问。When the external device or other modules need to access the definition file, it can be realized through the file management unit. The file management unit can specifically be a file interface, and the access can include read operations and write operations, etc., so that external devices or other modules can Smooth access to definition files when needed.
上述实施例提供的一种模拟机,请求校验模块可以包括结果生成单元,结果生成单元用于生成校验结果,校验结果包括信息文档与定义文件对比校验成功或者信息文档与定义文件对比校验不成功时导致信息文档与定义文件对比校验不成功的错误原因代码。In the simulator provided by the above-mentioned embodiment, the request verification module may include a result generating unit, and the result generating unit is used to generate a verification result, and the verification result includes a successful comparison of the information document and the definition file or a comparison of the information document and the definition file When the verification is unsuccessful, it is the error reason code that causes the verification of the information file and the definition file to fail.
当对比校验不成功时,将与对比校验不成功的错误原因代码发送至客户端,以便客户端再获取错误原因代码后,及时获知错误原因,以做出调整,顺利完成其开发及测试。而错误原因与错误原因代码可以是客户端与模拟机提前进行约定的,并分别存储在客户端与模拟机中。When the comparison verification is unsuccessful, send the error reason code of the comparison verification failure to the client, so that the client can obtain the error reason code and know the cause of the error in time to make adjustments and successfully complete its development and testing . The error reason and the error reason code may be agreed upon by the client and the simulation machine in advance, and stored in the client and the simulation machine respectively.
上述实施例提供的一种模拟机,反馈信息生成模块可以包括反馈信息生成单元,反馈信息生成单元用于在预先存储的信息库中确定与校验结果对应的合法数据,并将合法数据与校验结果组成合法的反馈结果。In the simulator provided by the above embodiment, the feedback information generation module may include a feedback information generation unit, the feedback information generation unit is used to determine the legal data corresponding to the verification result in the pre-stored information base, and compare the legal data with the verification result. The test results form a legal feedback result.
通过利用合法数据对校验结果的处理,得到合法的反馈结果,以保证反馈结果的顺利传送及客户端对反馈结果的顺利识别。By using legal data to process the verification result, a legal feedback result is obtained, so as to ensure the smooth transmission of the feedback result and the smooth identification of the feedback result by the client.
并且,定义文件中存储的与底层硬件设备及中间层代理对应的配置信息可以包括硬件参数及功能参数,也可以根据实际需要设置其他参数,以更好的模拟底层硬件设备及中间层代理的功能及工作环境。Moreover, the configuration information stored in the definition file corresponding to the underlying hardware device and the middle-level agent may include hardware parameters and function parameters, and other parameters may be set according to actual needs to better simulate the functions of the underlying hardware device and the middle-level agent and working environment.
上述实施例提供的一种模拟机,模拟机遵循CIM标准接口通过HTTP协议族以CIM-XML的方式与客户端进行通信。In the simulator provided in the above embodiment, the simulator follows the CIM standard interface and communicates with the client in the CIM-XML manner through the HTTP protocol suite.
由于现有技术中的客户端通常均采用HTTP协议族实现与其他设备的通信,因此,将模拟机设置成遵循CIM标准接口通过HTTP协议族以CIM-XML的方式与客户端进行通信,能够使得模拟机能够用于与其他同样遵循HTTP协议进行通信的客户端的开发及测试,提高了模拟机的通用性。Since the clients in the prior art usually use the HTTP protocol suite to communicate with other devices, setting the simulator to follow the CIM standard interface to communicate with the client in the form of CIM-XML through the HTTP protocol suite can make The simulator can be used for development and testing with other clients that also follow the HTTP protocol for communication, which improves the versatility of the simulator.
对所公开的实施例的上述说明,使本领域技术人员能够实现或使用本发明。对这些实施例的多种修改对本领域技术人员来说将是显而易见的,本文中所定义的一般原理可以在不脱离本发明的精神或范围的情况下,在其它实施例中实现。因此,本发明将不会被限制于本文所示的这些实施例,而是要符合与本文所公开的原理和新颖特点相一致的最宽的范围。The above description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the invention. Therefore, the present invention will not be limited to the embodiments shown herein, but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
Claims (8)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510679507.9A CN105404543A (en) | 2015-10-19 | 2015-10-19 | Simulation machine |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510679507.9A CN105404543A (en) | 2015-10-19 | 2015-10-19 | Simulation machine |
Publications (1)
Publication Number | Publication Date |
---|---|
CN105404543A true CN105404543A (en) | 2016-03-16 |
Family
ID=55470043
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510679507.9A Pending CN105404543A (en) | 2015-10-19 | 2015-10-19 | Simulation machine |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105404543A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108153660A (en) * | 2016-12-05 | 2018-06-12 | 深圳壹账通智能科技有限公司 | The simulation process method and apparatus of sequence information |
CN109446103A (en) * | 2018-11-14 | 2019-03-08 | 郑州云海信息技术有限公司 | A kind of CIM Provider test method and device |
CN110515825A (en) * | 2018-05-22 | 2019-11-29 | 株洲中车时代电气股份有限公司 | A kind of test method and system for graphical programming language |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101576848A (en) * | 2008-05-09 | 2009-11-11 | 北京世纪拓远软件科技发展有限公司 | Simulation system |
US20100262900A1 (en) * | 2009-04-13 | 2010-10-14 | Honeywell International Inc. | Utilizing spreadsheet user interfaces with flowsheets of a cpi simulation system |
US20110191676A1 (en) * | 2010-01-29 | 2011-08-04 | Microsoft Corporation | Cross-Browser Interactivity Recording, Playback, and Editing |
CN104978263A (en) * | 2014-04-09 | 2015-10-14 | 腾讯科技(深圳)有限公司 | Mobile terminal application program test method and mobile terminal application program test system |
-
2015
- 2015-10-19 CN CN201510679507.9A patent/CN105404543A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101576848A (en) * | 2008-05-09 | 2009-11-11 | 北京世纪拓远软件科技发展有限公司 | Simulation system |
US20100262900A1 (en) * | 2009-04-13 | 2010-10-14 | Honeywell International Inc. | Utilizing spreadsheet user interfaces with flowsheets of a cpi simulation system |
US20110191676A1 (en) * | 2010-01-29 | 2011-08-04 | Microsoft Corporation | Cross-Browser Interactivity Recording, Playback, and Editing |
CN104978263A (en) * | 2014-04-09 | 2015-10-14 | 腾讯科技(深圳)有限公司 | Mobile terminal application program test method and mobile terminal application program test system |
Non-Patent Citations (1)
Title |
---|
高智闻: "基于SMI-S标准的通用存储设备CIM Agent模拟机", 《中国优秀硕士学位论文全文数据库》 * |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108153660A (en) * | 2016-12-05 | 2018-06-12 | 深圳壹账通智能科技有限公司 | The simulation process method and apparatus of sequence information |
CN110515825A (en) * | 2018-05-22 | 2019-11-29 | 株洲中车时代电气股份有限公司 | A kind of test method and system for graphical programming language |
CN110515825B (en) * | 2018-05-22 | 2021-08-20 | 株洲中车时代电气股份有限公司 | Testing method and system for graphical programming language |
CN109446103A (en) * | 2018-11-14 | 2019-03-08 | 郑州云海信息技术有限公司 | A kind of CIM Provider test method and device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110442524B (en) | Method and device for testing web service interface with authentication authorization | |
WO2020177385A1 (en) | Virtual machine function detection method and apparatus, electronic device and storage medium | |
WO2016202139A1 (en) | Method, device and system for realizing cross-platform account resource sharing | |
CN108933713B (en) | Method and device for realizing sandbox debugging based on shadow link and business server | |
CN110221948B (en) | Test script generation method, test script generation device, computer device and storage medium | |
CN110784450A (en) | Single sign-on method and device based on browser | |
CN109857404B (en) | SDK interface packaging method and device, storage medium and electronic equipment | |
CN111367821B (en) | A software testing method and system | |
CN113268336B (en) | Service acquisition method, device, equipment and readable medium | |
CN106936772A (en) | A kind of access method, the apparatus and system of cloud platform resource | |
US10904238B2 (en) | Access token management for state preservation and reuse | |
CN111241523B (en) | Authentication processing method, apparatus, device and storage medium | |
CN105373417A (en) | Method and system for virtual machine management in cloud computing | |
CN107807869A (en) | A kind of test system and method for testing | |
CN106603721A (en) | Remote control method and system and remote control client | |
CN108875368A (en) | A kind of safety detection method, apparatus and system | |
CN105404543A (en) | Simulation machine | |
CN114978675B (en) | Access authentication method and device, electronic equipment and storage medium | |
CN110896489B (en) | Authentication method, device, equipment and storage medium | |
CN110022327B (en) | Short message authentication test method and device | |
CN114189553B (en) | Flow playback method, system and computing device | |
CN107526580A (en) | Terminal applies recognition methods and device | |
US20240146735A1 (en) | Method and apparatus for processing multi-cloud service, electronic device and storage medium | |
CN107172082B (en) | File sharing method and system | |
CN116684489A (en) | Remote testing method, system, device and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20160316 |
|
RJ01 | Rejection of invention patent application after publication |