CN1220940C - Mailbox communication apparatus simulation method and process for testing host machine and single board interface - Google Patents

Mailbox communication apparatus simulation method and process for testing host machine and single board interface Download PDF

Info

Publication number
CN1220940C
CN1220940C CN 02121143 CN02121143A CN1220940C CN 1220940 C CN1220940 C CN 1220940C CN 02121143 CN02121143 CN 02121143 CN 02121143 A CN02121143 A CN 02121143A CN 1220940 C CN1220940 C CN 1220940C
Authority
CN
China
Prior art keywords
host
main frame
mailbox
communication apparatus
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.)
Expired - Fee Related
Application number
CN 02121143
Other languages
Chinese (zh)
Other versions
CN1464388A (en
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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN 02121143 priority Critical patent/CN1220940C/en
Publication of CN1464388A publication Critical patent/CN1464388A/en
Application granted granted Critical
Publication of CN1220940C publication Critical patent/CN1220940C/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)
  • Maintenance And Management Of Digital Transmission (AREA)

Abstract

The present invention discloses a method for simulating a mail box communication device and a method for testing a host and a single board interface. The method for simulating the mail box communication device comprises the following steps that a simulation module which simulates the mail box communication device to send and receive the information and process the information is established in the host; a physical interface between the mail box communication device and the host communication module is modified into a software interface between the simulation module and the host communication module. The method for testing the host and the single board interface comprises the following steps that the simulation module of the mail box communication device simulates the single board on line, and the host uses the simulation single board as a physical single board in the corresponding board position; the host software carries out information interaction with the simulation module of the mail box communication device according to the test requirements for interfaces of the single board, and the actual measurement results are reported to test terminals; the actual measurement results and the expected results are compared at the test terminals to judge the states of the interfaces of the single board. The present invention can be free from the hardware restriction, and test the host and the interfaces of the single board at the integration testing stage.

Description

The method of the emulation mode of mailbox communication apparatus and Test Host and single board interface
Technical field
The present invention relates to the emulation mode of mailbox communication apparatus in the integration testing process, and by the emulation testing main frame of mailbox communication apparatus and the method for single board interface.
Background technology
In the integration testing process of prior art, mailbox communication apparatus (veneer) is realized by hardware, and is connected with main frame by physical interface.To the test of main frame and single board interface, can only give veneer configuration section function by main frame in the system testing stage, whether realize Test Host merchandiser plate interface by checking function then, its schematic diagram is as shown in Figure 1.There is following shortcoming in these class methods:
A, the test not directly perceived: the functional test indirect verification during by system testing, directly perceived inadequately.Find that this function does not realize because if test, must check at first whether the interface of main frame and veneer is correctly realized, whether follow interface document consistent.So easy dispersion tester's notice.
B, testing efficiency are low: when system testing, verify a function, certainly will will carry out some configurations or manual operation.And these are more time-consuming exactly.So the testing efficiency of the method is lower.
C, cost height: because test is to carry out in the system testing stage, so, in case there is problem to find, might be forced to total system and returns, and then cause irreparable damage.
Summary of the invention
One of purpose of the present invention is to provide a kind of emulation mode of mailbox communication apparatus; Another object of the present invention is to emulation, the method for a kind of Test Host and single board interface is provided by the mailbox communication apparatus.
The emulation mode of above-mentioned mailbox communication apparatus comprises the steps:
1) in main frame, sets up and have simulation mailbox communication apparatus and receive and send messages and process information function simulating module;
In emulation module, be provided with unpack submodule and packet of configuration submodule, communication submodule, packet at least and generate submodule; Wherein, described configuration submodule is finished the configuration of data according to configuration order; Described communication submodule is finished the communication with host software; The described packet submodule of unpacking is unpacked the packet that the communication submodule receives, and order is wherein responded processing; Described packet generates submodule and finishes the generation of replying with automatic reported data bag;
2) physical interface of mailbox communication apparatus and host communication module is revised as software interface between emulation module and the host communication module, step is: at first apply for an internal memory in main frame, revise the variable of preserving email address in the main frame then, make its internal memory that points to application, thereby be the physical memory addresses of main frame the physical communication map addresses of mailbox communication apparatus.
The communication of described communication submodule and host software comprises: the host communication module of communication submodule and host software is mutual, makes main frame think that mailbox communication apparatus physics is on the throne; And finish the response that other module of host software regularly is handed down to the order of mailbox equipment.
The host communication module of communication submodule and host software comprises alternately: at first, regularly read the read-write sign from the host communication module of host software, if read-write is designated the read-write of mailbox equipment, then read the packet that main frame is handed down to mailbox equipment; Secondly, if the response data packet of pair Host Command is arranged, then this packet is write mailbox; At last, revise check word, control word, read-write is set is designated the main frame read-write.
The method of a kind of Test Host and single board interface comprises step:
In main frame, set up mailbox communication apparatus emulation module, be used to simulate the mailbox communication apparatus and receive and send messages and process information;
The physical interface of mailbox communication apparatus and host communication module is revised as software interface between emulation module and the host communication module, comprises:
At first internal memory of application in main frame is revised in the main frame variable of preserving email address then, makes its internal memory that points to application, thereby is the physical memory addresses of main frame with the physical communication map addresses of mailbox communication apparatus;
By mailbox communication apparatus emulation module analog veneer, make main frame think that veneer physics is online;
Host software is according to the test request to single board interface, carry out information interaction with mailbox communication apparatus emulation module, and measured result reported the test terminal, wherein the test to single board interface comprises: main frame issues the test that the test of single board interface or test that veneer reports interface or veneer report interface automatically;
In the test terminal measured result and expected results are compared, whether correct with the realization of judging single board interface; When measured result and expected results do not match, judge that then main frame and single board interface are undesirable.
Wherein, the main frame test that issues single board interface comprises step: 1) certain order of issuing of configuration mailbox communication apparatus emulation module monitor host; 2) main frame is configured, makes main frame issue this order to described mailbox communication apparatus emulation module; 3), the response data of this order is reported the test terminal if mailbox communication apparatus emulation module receives this order.
Veneer reports the test of interface to comprise step: the 1) response data of certain order of issuing of configuration mailbox communication apparatus emulation module monitor host; 2) configuration network management interface monitor module monitor host software reports these command execution results data of webmaster; 3) carry out host configuration by network management interface, make main frame issue this order to described mailbox communication apparatus emulation module; 3), the response data of this order is reported host software if mailbox communication apparatus emulation module receives this order.
Veneer reports the test of interface to comprise step: 1) configuration mailbox communication apparatus emulation module reports certain order and data thereof automatically with a gap periods; 2) configuration network management interface monitor module monitor host software reports this order of webmaster and data thereof.
Since adopted above technical scheme, so the present invention has following beneficial effect:
A, owing to adopted software emulation mailbox communication apparatus, make test can break away from hardware constraints;
B, because test is directly at interface, therefore test is directly perceived;
C, test can be advanceed to phase of integration testing, reduce the cost of pinpointing the problems;
D, can adopt the TCL script to realize test automatically, improve testing efficiency.
Description of drawings
Fig. 1 is the schematic diagram of main frame and single board interface in the prior art;
Fig. 2 is the emulation schematic diagram of mailbox communication apparatus;
Fig. 3 is mailbox communication apparatus emulation module and data flow diagram.
Embodiment
The ultimate principle of mailbox communication apparatus emulation as shown in Figure 2.Promptly on the basis of original test model, replace mailbox communication apparatus hardware by the mailbox communication apparatus emulation module in the main frame (i.e. emulation veneer in the diagram), and, be revised as software interface the physical interface of main frame and mailbox communication apparatus.
Mailbox communication apparatus emulation module mainly is divided into four sub-function module by function: unpack submodule, packet of configuration submodule, communication submodule, packet generates submodule, as shown in Figure 3.
A), configuration submodule: major function is to finish the configuration of data according to the configuration order of test code configuration module, and the data of configuration mainly contain: the order that analog veneer reports automatically (alarm and performance), the main frame that need monitor send to the order (performance, configuration, alarm) of veneer, main frame are sent to the response of the order of veneer.
B), communication submodule: major function is that analog veneer is finished the communication with main frame, realizes the reception of main frame transmitting order to lower levels packet and the transmission that veneer reports command packet.
C), the packet submodule of unpacking: major function is that the packet that the communication submodule receives is unpacked, and the processing that the order in the packet is responded.If order needs to monitor, should order and parameter is packed and sent to the TCL message processing module; Carry out the response of order according to user configured command response data, and give packet generation submodule with the data of response and pack.
D), packet generates submodule: major function is to finish to reply and the generation of reported data bag automatically.The uniform data that each same time of piece veneer need be replied and report breaks into a packet, gives communication module then and sends to main frame.
With the address mapping of the mailbox of hardware, the address of being revised as the physical memory of main frame provides the physical medium of communication for emulation mailbox equipment and main frame.
In host software, the mailbox bus of each plate position is mapped as one section logical address.Main frame is finished the communication of merchandiser plate by to the read-write of this section logical address.Implementation step comprises: at first, apply for an enough big internal memory; Secondly, revise the variable that host software is preserved email address, make it point to the internal memory of application just now.
By the foundation of mailbox communication apparatus emulation module and the mapping of address, emulation module has the ability of carrying out interactive communicate with the mailbox module of host software, makes main frame think that veneer is an operate as normal.Wherein interactive communicate comprises the work of two aspects:
One, emulation module make main frame think that veneer physics is on the throne, and the communication module of veneer are working properly by mutual with the communication module of host software.Performing step comprises: at first, regularly read the read-write sign from the host communication module of host software, if read-write is designated the veneer read-write, then read the packet that main frame is handed down to veneer; Secondly, if the packet of the response of pair Host Command is arranged, then this packet is write mailbox; Once more, revise check word, control word, read-write is set is designated the main frame read-write.
They are two years old, emulation module is also finished the response that other module of host software regularly is handed down to the order of veneer, such as, alarm module is the alarm of Query Board periodically, veneer must be finished the response to this order, so that make other module think that also whole veneer is working properly.It can directly be disposed by the expansion of TCL script and give the mailbox emulation module.
By above-mentioned work, mailbox device emulation module can provide the Host Command acknowledgement mechanism, comprising:
Can resolve each order that main frame issues, that is: the packet that main frame is issued resolves to the order of a rule, then, monitors, replys processing again;
Can be packaged into the form that main frame can be discerned by reporting information, that is: will report the order of main frame, break into one or more packets;
Configuration that can the acceptance test terminal, and carry out work according to configuration;
Can monitor host be handed down to any order of veneer, and the result that will monitor reports the test terminal;
When the order that issues when main frame needs the veneer response, can respond according to configuration data;
Provide the mechanism that reports automatically, automatically report and alarm and performance event.
Test to main frame and single board interface is to finish by the mailbox communication apparatus of emulation, issues the test that the test of single board interface, test that veneer reports interface and veneer report interface automatically comprising main frame.With reference to figure 3.In test process,, mailbox communication apparatus emulation module is carried out test configurations by the TCL explosion command; The TCL configuration module mainly is the parsing of finishing explosion command, and the character string configuration information is converted into digital configuration information.TCL message processing module, major function are with the execution result of explosion command, the packet command format character string that main frame that submodule monitors issues of unpacking, and with its preservation.Then,, it is read and carries out the comparison of expected results, to realize automatic test by the TCL explosion command that reads the result.
The specific implementation method is as follows:
Main frame issues the test of single board interface:
1) analog veneer is online, main frame is thought physical boards has been installed on the current plate position.
2) dispose certain order that the emulation module monitor host issues.
3) carry out host configuration, make main frame issue this order to veneer.
4) at this moment,, the data that monitor this order are reported the test terminal if emulation module receives this order.
5) then, carry out expected results by script and actual result compares in the test terminal.If do not receive emulation module and report the channel monitoring data this moment, the monitoring data that perhaps receives (being actual result) does not match with expected results, thinks that then the main frame of this order and single board interface have problem.
Veneer reports the test of interface:
1) analog veneer is online, main frame is thought physical boards has been installed on the current plate position.
2) response data of certain order of issuing of configuration emulation module monitor host.
3) configuration network management interface monitor module (functional module of integration testing platform is used for monitoring the data that send by network management interface) monitor host software reports these command execution results data of webmaster.
4) carry out host configuration by network management interface, make main frame issue this order to veneer.
5) at this moment,, the response data of this order is reported host software if emulation module receives this order.
6), the result data that monitors this order is reported the test terminal if the network management interface monitor module receives this order.
7) then, carry out expected results by script and actual result compares in the test terminal.If do not receive the network management interface monitor module and report the channel monitoring data this moment, the monitoring data that perhaps receives (being actual result) does not match with expected results, thinks that then the main frame of this order and interface have problem (undesirable).
Veneer reports the test of interface automatically
This test and veneer report the test of interface similar substantially, just do not need to carry out host configuration.In addition, what emulation module was given in configuration is automatic reported data, rather than the command response data.
1) analog veneer is online, main frame is thought physical boards has been installed on the current plate position.
2) the configuration emulation module reports certain order and data thereof automatically with a gap periods.
3) configuration network management interface monitor module monitor host software reports this order of webmaster and data thereof.
All report this order and data thereof when 4) at this moment, each cycle of emulation module begins to main frame.If you only want to allow emulation module report once, two kinds of implementations are arranged then: one, with gap periods be provided with very long, such as 30000 seconds; Two, after having issued the configuration that reports automatically, more at once with its deletion to emulation module.Because emulation module is after receiving the configuration that reports automatically, can just it be reported in the very first time.
5), the result data that monitors this order is reported the test terminal if the network management interface monitor module receives this order.
6) then, carry out expected results by script and actual result compares in the test terminal.If do not receive the network management interface monitor module and report the channel monitoring data this moment, the monitoring data that perhaps receives (being actual result) does not match with expected results, thinks that then the main frame of this order and interface have problem.
Owing to adopted software emulation mailbox communication apparatus technology, make test can break away from hardware constraints, can finish test in phase of integration testing to main frame and single board interface.And, can utilize TCL (ToolCommand Language, Tool Command Language) script to realize the robotization of test process, improved testing efficiency.

Claims (7)

1, a kind of emulation mode of mailbox communication apparatus is characterized in that may further comprise the steps:
1) in main frame, sets up and have simulation mailbox communication apparatus and receive and send messages and process information function simulating module;
In emulation module, be provided with unpack submodule and packet of configuration submodule, communication submodule, packet at least and generate submodule; Wherein, described configuration submodule is finished the configuration of data according to configuration order, described communication submodule is finished the communication with host software, the described packet submodule of unpacking is unpacked the packet that the communication submodule receives, and the order in the described packet responded processing, described packet generates submodule and finishes and reply and the generation of reported data bag automatically;
2) physical interface of mailbox communication apparatus and host communication module is revised as software interface between emulation module and the host communication module, step is:
At first internal memory of application in main frame is revised in the main frame variable of preserving email address then, makes its internal memory that points to application, thereby is the physical memory addresses of main frame with the physical communication map addresses of mailbox communication apparatus.
2, the method for claim 1, it is characterized in that the communication of described communication submodule and host software comprises: the host communication module of communication submodule and host software is mutual, makes main frame think that mailbox communication apparatus physics is on the throne; And finish the response that other module of host software regularly is handed down to the order of mailbox equipment.
3, method according to claim 2, the host communication module that it is characterized in that communication submodule and host software comprises alternately: at first, regularly read the read-write sign from the host communication module of host software, if read-write is designated the read-write of mailbox equipment, then read the packet that main frame is handed down to mailbox equipment; Secondly, if the response data packet of pair Host Command is arranged, then this packet is write mailbox; At last, revise check word, control word, read-write is set is designated the main frame read-write.
4, the method for a kind of Test Host and single board interface is characterized in that, this method comprises the steps:
In main frame, set up mailbox communication apparatus emulation module, be used to simulate the mailbox communication apparatus and receive and send messages and process information;
The physical interface of mailbox communication apparatus and host communication module is revised as software interface between mailbox communication apparatus emulation module and the host communication module, comprises:
At first internal memory of application in main frame is revised in the main frame variable of preserving email address then, makes its internal memory that points to application, thereby is the physical memory addresses of main frame with the physical communication map addresses of mailbox communication apparatus;
By mailbox communication apparatus emulation module analog veneer, make main frame think that veneer physics is online;
Host software is according to the test request to single board interface, carry out information interaction with mailbox communication apparatus emulation module, and measured result reported the test terminal, wherein the test to single board interface comprises: main frame issues the test that the test of single board interface or test that veneer reports interface or veneer report interface automatically;
In the test terminal measured result and expected results are compared, whether correct with the realization of judging single board interface, when measured result and expected results do not match, judge that then main frame and single board interface are undesirable.
5, method according to claim 4 is characterized in that the test that described main frame issues single board interface comprises step: 1) certain order of issuing of configuration mailbox communication apparatus emulation module monitor host; 2) main frame is configured, makes main frame issue this order to described mailbox communication apparatus emulation module; 3), the response data of this order is reported the test terminal if mailbox communication apparatus emulation module receives this order.
6, method according to claim 4 is characterized in that veneer reports the test of interface to comprise step:
1) response data of certain order of issuing of configuration mailbox communication apparatus emulation module monitor host;
2) configuration network management interface monitor module monitor host software reports these command execution results data of webmaster;
3) carry out host configuration by network management interface, make main frame issue this order to described mailbox communication apparatus emulation module;
4), the response data of this order is reported host software if mailbox communication apparatus emulation module receives this order.
7, method according to claim 4 is characterized in that veneer reports the test of interface to comprise step automatically: 1) configuration mailbox communication apparatus emulation module reports certain order and data thereof automatically with a gap periods; 2) configuration network management interface monitor module monitor host software reports this order of webmaster and data thereof.
CN 02121143 2002-06-10 2002-06-10 Mailbox communication apparatus simulation method and process for testing host machine and single board interface Expired - Fee Related CN1220940C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 02121143 CN1220940C (en) 2002-06-10 2002-06-10 Mailbox communication apparatus simulation method and process for testing host machine and single board interface

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 02121143 CN1220940C (en) 2002-06-10 2002-06-10 Mailbox communication apparatus simulation method and process for testing host machine and single board interface

Publications (2)

Publication Number Publication Date
CN1464388A CN1464388A (en) 2003-12-31
CN1220940C true CN1220940C (en) 2005-09-28

Family

ID=29742806

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 02121143 Expired - Fee Related CN1220940C (en) 2002-06-10 2002-06-10 Mailbox communication apparatus simulation method and process for testing host machine and single board interface

Country Status (1)

Country Link
CN (1) CN1220940C (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100340986C (en) * 2004-09-08 2007-10-03 华为技术有限公司 Method and apparatus for analog satellite card
CN101159585B (en) * 2007-08-18 2011-08-10 中兴通讯股份有限公司 Method and system of constructing analog veneer
CN102541615B (en) * 2010-12-07 2016-08-03 北京广利核系统工程有限公司 C++Test sofeware simulation method under without operating system
CN103699017A (en) * 2013-12-24 2014-04-02 中广核核电运营有限公司 Simulation test system and simulation test method for interface equipment of simulator in nuclear power station

Also Published As

Publication number Publication date
CN1464388A (en) 2003-12-31

Similar Documents

Publication Publication Date Title
CN107659455B (en) Method, storage medium, device and system for Mock data of iOS (internet operating system) end
CN1151449C (en) System and method allowing server remote access to assets information in computer system
CN106326088B (en) Method and device for realizing construction of test object and device for realizing service configuration test
CN100337212C (en) Logic verification system and method
CN101043384A (en) System and method for network test
US11893331B2 (en) Device verification method, UVM verification platform, electronic apparatus and storage medium
CN105095367B (en) A kind of acquisition method and device of client data
CN104348578B (en) The method and device of data processing
CN1805381A (en) Multi-network element emulation test system and implementation method
CN101056220A (en) Central monitoring method of the data service system without network management interface
CN102981949A (en) Method for on-line automatic tests of server
CN1220940C (en) Mailbox communication apparatus simulation method and process for testing host machine and single board interface
CN110730112A (en) Method, system, equipment and storage medium for testing network running speed
CN113961465A (en) Method, device and program product for processing reproduction of program crash scene
WO2024108940A1 (en) Performance supervision method, apparatus and system, and device and medium
CN1946035A (en) Method for managing net element data configuration and net element
CN114003293B (en) Interface management method, device, electronic equipment and readable storage medium
CN1818879A (en) Disk mirroring method based on IP network
CN104504000A (en) Remote transmission method, device and system for mirror image file
CN114510398A (en) Anomaly monitoring method, apparatus, device, system and medium
CN111224844B (en) Internet of things testing system and working process thereof
CN1564529A (en) Simple detection method for GGSN facilities
CN106506268A (en) A kind of access method of server and system
CN1661596A (en) Management system and method for archives of equipment
CN116089517B (en) Automatic construction method and system for API (application program interface) for cloud platform

Legal Events

Date Code Title Description
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
C17 Cessation of patent right
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20050928

Termination date: 20110610