CN105404543A - Simulation machine - Google Patents

Simulation machine Download PDF

Info

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
analog machine
module
defined file
information
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
Application number
CN201510679507.9A
Other languages
Chinese (zh)
Inventor
殷武烁
焦浩霖
张延枫
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Inspur Beijing Electronic Information Industry Co Ltd
Original Assignee
Inspur Beijing Electronic Information Industry Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Inspur Beijing Electronic Information Industry Co Ltd filed Critical Inspur Beijing Electronic Information Industry Co Ltd
Priority to CN201510679507.9A priority Critical patent/CN105404543A/en
Publication of CN105404543A publication Critical patent/CN105404543A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45504Abstract machines for programme code execution, e.g. Java virtual machine [JVM], interpreters, emulators
    • G06F9/45508Runtime interpretation or emulation, e g. emulator loops, bytecode interpretation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3684Test management for test design, e.g. generating new test cases

Abstract

The invention discloses a simulation machine. The simulation machine is used for simulating the functions and working environments of bottom-layer hardware equipment and a middle-layer agent by utilizing a personal define files, processing an information document sent by a client on the basis of the define file and feeding the processing result back to the client so as to indicate the client to complete development and test according to the processing result. Therefore, the client can realize the development and test by utilizing the define file which is used for simulating the functions and working environments of the bottom-layer hardware equipment and the middle-layer agent, does not need to complete the development and test on the basis of the middle-layer agent and the bottom-layer hardware equipment, and does not need to wait the middle-layer agent and the bottom-layer hardware equipment to complete the development and test and then carry out the development and test of the client, so that the consumption of the bottom-layer hardware equipment in the development and test process of the client is avoided, the time and cost of the client development and test are reduced, and the efficiency of the client development and test is improved.

Description

A kind of analog machine
Technical field
The present invention relates to development and testing technical field, more particularly, relate to a kind of analog machine.
Background technology
Along with the arriving of large data age, the demand of each enterprise to memory device constantly increases, and the handling cost of memory device also improves constantly, and can the system for unified management of memory device of each manufacturer of unified management also arise at the historic moment.And the development& testing that client, bottom hardware equipment (i.e. memory device) and middle layer in system for unified management are acted on behalf of just is seemed particularly important.
In actual development process, client wants based intermediate layer agency and bottom hardware equipment to carry out the development& testing of self, therefore, in order to make the exploitation of client and test more accurate, need after middle layer agency and bottom hardware equipment development have also tested, realize the exploitation for client and test again, but, exploitation and the test duration of client can be increased like this, reduce its exploitation and testing efficiency, and, utilizing in the process that middle layer is acted on behalf of and bottom hardware equipment to be developed client and tested and can cause certain consumption to bottom hardware equipment, thus increase exploitation and testing cost.
In sum, in prior art for the exploitation of client and test life period is longer, efficiency is lower, and the problem that cost is higher.
Summary of the invention
The object of this invention is to provide a kind of analog machine, to solve, the time existed for the exploitation of client and test in prior art is longer, efficiency is lower, and the problem that cost is higher.
To achieve these goals, the invention provides following technical scheme:
A kind of analog machine, the defined file that described analog machine utilizes self to comprise simulates function and the working environment of bottom hardware equipment and middle layer agency, based on described defined file, process is carried out and feedback processing result extremely described client to the information document that client sends, complete exploitation and test to indicate described client according to described result.
Preferably, described analog machine comprises total control module, requirement analysis module, definition process module, request correction verification module and feedback information generation module, wherein:
Described total control module, for receiving the information document of described client transmission and described feedback result being sent to described client, and completes corresponding work for controlling other modules;
Described request analysis module, the information document for described client being sent converts the information document of the form of the processing requirements meeting described analog machine to;
Described definition process module, for converting the defined file of the form of the processing requirements meeting described analog machine to by the defined file carrying the configuration information corresponding with the function that described bottom hardware equipment and described middle layer are acted on behalf of and working environment;
Described request correction verification module, carrying out contrast verification for the information document of the form of the processing requirements by meeting described analog machine and defined file, generating check results;
Described feedback information generation module, for converting described check results to legal feedback result.
Preferably, described analog machine also comprises control module, the identity information that described control module sends for receiving described client, judges whether the client of its correspondence is legitimate client according to described identity information, draw judged result, and described judged result is sent to described total control module.
Preferably, described total control module comprises file management unit, and described file management unit is used for being managed described defined file by this file management unit for external device.
Preferably, described request correction verification module comprises result generation unit, described result generation unit is for generating check results, and described check results comprises described information document and described defined file and contrasts verification succeeds or described information document and described defined file and contrast and cause described information document and described defined file to contrast when verifying unsuccessful verifying unsuccessful error reason code.
Preferably, described feedback information generation module comprises feedback information generation unit, described feedback information generation unit is used for determining the valid data corresponding with described check results in the information bank prestored, and described valid data and described check results are formed legal feedback result.
Preferably, described configuration information comprises hardware parameter and functional parameter.
Preferably, described analog machine is followed CIM standard interface and is communicated with described client in the mode of CIM-XML by http protocol race.
The defined file that a kind of analog machine provided by the invention utilizes self to comprise simulates function and the working environment of bottom hardware equipment and middle layer agency, based on described defined file, process is carried out and feedback processing result extremely described client to the information document that client sends, complete exploitation and test to indicate described client according to described result.Compared with prior art, a kind of analog machine that the application provides can make client only need to utilize the defined file of function and working environment for simulating bottom hardware equipment and middle layer agency to realize its exploitation and test, exploitation to client and test is completed without the need to based intermediate layer agency and bottom hardware equipment, more without the need to waiting for exploitation and the test of carrying out client after middle layer agency and bottom hardware equipment complete exploitation and test again, and the consumption avoided for bottom hardware equipment in the exploitation and test process of client, thus, reduce for client exploitation and test time and cost, improve the efficiency for client exploitation and test.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is only embodiments of the invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to the accompanying drawing provided.
The first structural representation of a kind of analog machine that Fig. 1 provides for the embodiment of the present invention;
The second structural representation of a kind of analog machine that Fig. 2 provides for the embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
Refer to Fig. 1, it illustrates the structural representation of a kind of analog machine 1 that the embodiment of the present invention provides, the defined file 11 that analog machine 1 utilizes self to comprise simulates function and the working environment of bottom hardware equipment and middle layer agency, the information document sent based on the defined file 11 pairs of clients carry out process and feedback processing result to client, complete exploitation to indicate client according to result and test.
It should be noted that, analog machine utilizes defined file to simulate function and the working environment of bottom hardware equipment and middle layer agency, namely above-mentioned analog functuion is realized by the method for software, thus, based on defined file, process feedback processing result are carried out to client to the information document that client sends, be the process being acted on behalf of the information document to client transmission by defined file simulation bottom hardware equipment and middle layer, thus without the need to using real bottom hardware equipment and middle layer agency, and the exploitation that only need be realized by the function and working environment simulating bottom hardware equipment and middle layer agency for client and test.
A kind of analog machine that the application provides can make client only need to utilize the defined file of function and working environment for simulating bottom hardware equipment and middle layer agency to realize its exploitation and test, exploitation to client and test is completed without the need to based intermediate layer agency and bottom hardware equipment, more without the need to waiting for exploitation and the test of carrying out client after middle layer agency and bottom hardware equipment complete exploitation and test again, and the consumption avoided for bottom hardware equipment in the exploitation and test process of client, thus, reduce for client exploitation and test time and cost, improve the efficiency for client exploitation and test.
In addition, because client needs based intermediate layer to act on behalf of and bottom hardware equipment realizes its exploitation and test in prior art, but for the restriction of various condition, often and be not easy to make bottom hardware equipment reach some particular states, as saturated and other abnormality, therefore, client cannot realize exploitation for these particular states and test, therefore, often can not reach the object of integration testing, and this can bury the hidden danger of client performance and stability aspect usually; Even bottom hardware equipment can be made to reach some particular states, be also larger to the loss of bottom hardware equipment, and then cause cost higher.And the function that the application utilizes the defined file simulation bottom hardware equipment in analog machine and middle layer to act on behalf of and working environment, therefore, when needing to develop for some particular state of bottom hardware equipment and test, only necessarily need revise defined file, and without the need to making bottom hardware equipment reach some particular states, therefore, a kind of analog machine that the application provides can be issued to the object of integration testing in lower-cost prerequisite, to ensure performance and the stability of client.
As shown in Figure 2, a kind of analog machine that above-described embodiment provides, can comprise total control module 12, requirement analysis module 13, definition process module 14, request correction verification module 15 and feedback information generation module 16, wherein:
Total control module 12, for receiving the information document of client transmission and feedback result being sent to client, and completes corresponding work for controlling other modules;
Requirement analysis module 13, the information document for client being sent converts the information document of the form of the processing requirements meeting analog machine to;
Definition process module 14, for converting the defined file of the form of the processing requirements meeting analog machine to by the defined file of configuration information corresponding for the function carried with bottom hardware equipment and middle layer are acted on behalf of;
Request correction verification module 15, carries out contrast verification for the information document of the form of the processing requirements by meeting analog machine and defined file, generation check results;
Feedback information generation module 16, for becoming legal feedback result by verification results conversion.
It should be noted that, analog machine, when processing information document and defined file, needs first to convert information document and defined file to analog machine manageable form, thus ensures the smooth process of analog machine for information document and defined file.And the file of defined file normally MOF form.
By above-mentioned module, to achieve based on defined file the exploitation of client and test, ensure that the smooth realization of the function of analog machine.
The workflow corresponding with above-mentioned module can be: total control module receives the information document that client sends, requirement analysis module obtaining information document, and convert thereof into the document of the form that analog machine can process, defined file is converted to the document of the form that analog machine can process by definition process module simultaneously, information document and defined file are carried out contrast verification by request correction verification module, obtain check results, verification results conversion is become legal feedback result by feedback information generation module, by total control module, feedback result is back to client.Wherein, the work of definition process module and requirement analysis module can be carried out simultaneously, also can be carry out in the different time respectively, and legal feedback result is the feedback result meeting predetermined requirement.
A kind of analog machine that above-described embodiment provides, also comprising can control module, the identity information that control module sends for receiving client, judges whether the client of its correspondence is legitimate client according to identity information, draw judged result, and judged result is sent to total control module.
Legitimate client can be that staff carries out determining according to actual needs, only has legitimate client could complete its exploitation and test based on analog machine.And the identity information of legitimate client can store in a storage module by analog machine, after receiving the identity information of client, whether the identity information of viewing client-side is present in memory module, if so, then proves that it is legitimate client.Thereby, it is possible to avoid the client be not allowed to complete exploitation and test based on analog machine, or analog machine is destroyed etc., ensure that the security of analog machine.
A kind of analog machine that above-described embodiment provides, total control module can comprise file management unit, and file management unit is used for being managed defined file by this file management unit for external device.
When external device or other modules need to conduct interviews to defined file, all can be realized by file management unit, file management unit can be specifically file interface, and access can comprise read operation and write operation etc., thus the access that can realize for defined file when needed smoothly at external device or other modules.
A kind of analog machine that above-described embodiment provides, request correction verification module can comprise result generation unit, result generation unit is for generating check results, and check results comprises information document and defined file and contrasts verification succeeds or information document and defined file and contrast and cause information document and defined file to contrast when verifying unsuccessful verifying unsuccessful error reason code.
When contrasting verification and being unsuccessful, will verify unsuccessful error reason code and be sent to client with contrast, after client obtains error reason code again, to know error reason in time, to adjust, complete its exploitation smoothly and test.And error reason and error reason code can be client and analog machine carries out in advance arranging, and be stored in respectively in client and analog machine.
A kind of analog machine that above-described embodiment provides, feedback information generation module can comprise feedback information generation unit, feedback information generation unit is used for determining the valid data corresponding with check results in the information bank prestored, and valid data and check results are formed legal feedback result.
By utilizing valid data to the process of check results, obtain legal feedback result, to ensure that the smooth transmission of feedback result and client are to the smooth identification of feedback result.
And, what store in defined file acts on behalf of corresponding configuration information with bottom hardware equipment and middle layer and can comprise hardware parameter and functional parameter, also can other parameters be set according to actual needs, better to simulate function and the working environment of bottom hardware equipment and middle layer agency.
A kind of analog machine that above-described embodiment provides, analog machine is followed CIM standard interface and is communicated with client in the mode of CIM-XML by http protocol race.
Because client of the prior art all adopts http protocol race to realize the communication with other equipment usually, therefore, analog machine is arranged to follow CIM standard interface communicated with client in the mode of CIM-XML by http protocol race, analog machine can be made to can be used in following exploitation and the test that http protocol carries out the client communicated equally with other, improve the versatility of analog machine.
To the above-mentioned explanation of the disclosed embodiments, those skilled in the art are realized or uses the present invention.To be apparent for a person skilled in the art to the multiple amendment of these embodiments, General Principle as defined herein can without departing from the spirit or scope of the present invention, realize in other embodiments.Therefore, the present invention can not be restricted to these embodiments shown in this article, but will meet the widest scope consistent with principle disclosed herein and features of novelty.

Claims (8)

1. an analog machine, it is characterized in that, the defined file that described analog machine utilizes self to comprise simulates function and the working environment of bottom hardware equipment and middle layer agency, based on described defined file, process is carried out and feedback processing result extremely described client to the information document that client sends, complete exploitation and test to indicate described client according to described result.
2. analog machine according to claim 1, is characterized in that, described analog machine comprises total control module, requirement analysis module, definition process module, request correction verification module and feedback information generation module, wherein:
Described total control module, for receiving the information document of described client transmission and described feedback result being sent to described client, and completes corresponding work for controlling other modules;
Described request analysis module, the information document for described client being sent converts the information document of the form of the processing requirements meeting described analog machine to;
Described definition process module, for converting the defined file of the form of the processing requirements meeting described analog machine to by the defined file carrying the configuration information corresponding with the function that described bottom hardware equipment and described middle layer are acted on behalf of and working environment;
Described request correction verification module, carrying out contrast verification for the information document of the form of the processing requirements by meeting described analog machine and defined file, generating check results;
Described feedback information generation module, for converting described check results to legal feedback result.
3. analog machine according to claim 2, it is characterized in that, described analog machine also comprises control module, the identity information that described control module sends for receiving described client, whether the client judging its correspondence according to described identity information is legitimate client, draw judged result, and described judged result is sent to described total control module.
4. analog machine according to claim 2, is characterized in that, described total control module comprises file management unit, and described file management unit is used for being managed described defined file by this file management unit for external device.
5. analog machine according to claim 2, it is characterized in that, described request correction verification module comprises result generation unit, described result generation unit is for generating check results, and described check results comprises described information document and described defined file and contrasts verification succeeds or described information document and described defined file and contrast and cause described information document and described defined file to contrast when verifying unsuccessful verifying unsuccessful error reason code.
6. analog machine according to claim 2, it is characterized in that, described feedback information generation module comprises feedback information generation unit, described feedback information generation unit is used for determining the valid data corresponding with described check results in the information bank prestored, and described valid data and described check results are formed legal feedback result.
7. analog machine according to claim 2, is characterized in that, described configuration information comprises hardware parameter and functional parameter.
8. the analog machine according to any one of claim 1 to 7, is characterized in that, described analog machine is followed CIM standard interface and communicated with described client in the mode of CIM-XML by http protocol race.
CN201510679507.9A 2015-10-19 2015-10-19 Simulation machine Pending CN105404543A (en)

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)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
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

Patent Citations (4)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
Title
高智闻: "基于SMI-S标准的通用存储设备CIM Agent模拟机", 《中国优秀硕士学位论文全文数据库》 *

Cited By (4)

* Cited by examiner, † Cited by third party
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
US9563544B2 (en) Framework for automated testing of mobile apps
ES2951835T3 (en) System and method for establishing common request processing
CN101882105A (en) Method for testing response time of Web page under concurrent environment
CN103246606B (en) The performance test methods of ESB platform and system
CN106127872A (en) Work attendance method based on mobile terminal, client and equipment
CN106341233A (en) Authentication method for client to log into server, device, system and electronic device
CN102567172A (en) Concurrent workload simulation for application performance testing
CN113672441B (en) Method and device for testing intelligent equipment
CN110471853A (en) APP test method, device, computer equipment and storage medium
CN105915529A (en) Message generation method and device
CN105404543A (en) Simulation machine
CN110955724A (en) Data processing method and device based on block chain, node equipment and storage medium
CN104917794A (en) Data sharing method, device and system
CN103677814A (en) Procedure acquiring method, procedure acquiring device and procedure acquiring system
CN106603721A (en) Remote control method and system and remote control client
CN113726890A (en) Block chain data service-oriented federal prediction method and system
CN106375334A (en) Authentication method for distributed system
CN104252413A (en) Automatic script generation method, device and system
CN110022327B (en) Short message authentication test method and device
CN104113418A (en) Rule-configuration-based compound identity authentication method in ERP (enterprise resource planning) system
CN110233842A (en) A kind of method of calibration and relevant apparatus of request
TW201407503A (en) System and method for work schedule of cloud platform
CN105339928B (en) Website server request re-routes
CN105471582A (en) Resource obtaining method and system and related device
CN103701799A (en) Parameter acquiring method, server and terminal

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20160316