CN101159633B - Veneer software testing method and system for simulating network environment on computer - Google Patents

Veneer software testing method and system for simulating network environment on computer Download PDF

Info

Publication number
CN101159633B
CN101159633B CN2007101803197A CN200710180319A CN101159633B CN 101159633 B CN101159633 B CN 101159633B CN 2007101803197 A CN2007101803197 A CN 2007101803197A CN 200710180319 A CN200710180319 A CN 200710180319A CN 101159633 B CN101159633 B CN 101159633B
Authority
CN
China
Prior art keywords
information
software
board
board software
card
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
CN2007101803197A
Other languages
Chinese (zh)
Other versions
CN101159633A (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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN2007101803197A priority Critical patent/CN101159633B/en
Publication of CN101159633A publication Critical patent/CN101159633A/en
Application granted granted Critical
Publication of CN101159633B publication Critical patent/CN101159633B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Debugging And Monitoring (AREA)
  • Computer And Data Communications (AREA)

Abstract

The invention discloses a card software testing method based on simulation of networking environment on computer and a system thereof. The card software testing method comprises the following steps: a network composing unit generates a plurality of information transfer connected relation lists among card software based on the networking information inputted by user, and transmitting these information transfer connected relation lists to an information retransmission unit; an information simulation unit transmits its simulated network administration command or stimulation information to a card software A to allow the card software A to process the network administration command or stimulation information; and the information retransmission unit retransmits the information that the card software A needs to transmit outside to a card software B based on the information transfer connected relation lists, and retransmits the information that the card software B needs to transmit outside to a card software C, repeats this step, and storing the action results of each card software.

Description

The veneer software testing method of simulating network environment and system on computers
Technical field
The present invention relates to the communications field, relate more specifically to a kind of veneer software testing method and system of simulating network environment on computers.
Background technology
In communication equipment field, board software is meant the embedded software that operates in the communication equipment hardware single board.Because the mutual interdependency of embedded software and hardware device, often need depend on communications hardware devices for the test of board software and just can carry out, this test to board software brings many inconvenience.Analyze from the content of board software, can board software be divided into logical process and hardware operation two parts usually.Wherein, the logical process part is the chief component of board software often, and this part and communications hardware devices are irrelevant.At present; In the board software design; Usually with logical process part and the layering of hardware operation part, and hardware operation is partly done piling handle, let board software disengaging communications hardware devices and at PC (Personal Computer; Be called for short PC) go up operation, so just can utilize PC to go up abundant testing tool board software is carried out various tests.Say the behavior that the board software that on PC, moves can a hardware single board of approximate simulation from software angle.
Yet only realized that the operation board software still is far from being enough on separate unit PC.Because actual communication equipment is to operate in the network, the transmission that exists information between the communication equipment is with mutual, the transmission of this information and can influence the behavior of communication equipment alternately.And the board software that on separate unit PC, moves also is an isolated point, is difficult to the information interaction between the communication equipment under the analog network environment, also is difficult at the veneer software testing that carries out on the PC under the network environment.
At present, under network environment,, generally all be to build real physics network environment in the laboratory hardware device and board software are tested in the lump to the test of communication equipment.There is following defective in such test: 1) need the hardware device resources of labor usually, testing cost is high; 2) owing to the finiteness of hardware device resources, some approach the complex network situation of actual engineering to tend to test leakage again, cause the leakage of potential faults; 3) for the fault that tests out, needing to differentiate is the problem of hardware device or the problem of board software; 4) networking of board software test depends on hardware device, makes the exploitation of board software and hardware device become the serial exploitation, influences product development efficiency.
In sum, may operate at board software on the basis of PC, also need a kind of system or method, under the situation that breaks away from communications hardware devices, network environment that is virtually reality like reality is tested board software on PC.
Summary of the invention
One or more problems in view of the above the invention provides a kind of veneer software testing system and method for simulating network environment on computers.
According to veneer software testing method of the present invention; May further comprise the steps: the network construction unit is according to the networking information of user's input; The information that generates between a plurality of board softwares is transmitted connection relational table, and information is transmitted connection relational table is sent to the information retransmission unit; The information simulation unit sends the webmaster order or the excitation information of its simulation to card software A, for card software A webmaster order or excitation information is handled; And the information retransmission unit transmits connection relational table according to information; The information that card software A is needed outwards to send is forwarded to board software B; The information that board software B is needed outwards to send be forwarded to board software C, by that analogy, and the result of the action of each board software is stored.
Wherein, the network construction unit transmission information step of transmitting connection relational table further may further comprise the steps: the network construction unit is set up it and is connected with two-way communication between the information retransmission unit; The network construction unit transmits connection relational table according to networking information generation information; And the network construction unit is connected with two-way communication between the information retransmission unit through it and information is transmitted connection relational table is sent to the information retransmission unit.
Wherein, the information simulation unit sends webmaster order or excitation information to card software A and carries out processed steps for card software A and further may further comprise the steps: card software A is set up it and is connected with two-way communication between the information simulation unit; The information simulation unit is connected with two-way communication between the card software A through it webmaster order or excitation information is sent to card software A; And card software A is ordered webmaster or excitation information carries out the internal logic processing, and the information that card software A is needed outwards to send be sent to the information retransmission unit.
Wherein, card software A further may further comprise the steps to the step that the information retransmission unit sends its information that needs outwards to send: state card software A and set up it and be connected with two-way communication between the information retransmission unit; And card software A is connected the information of sending the outside transmission of its needs to the information retransmission unit through it with two-way communication between the information retransmission unit.
Wherein, The information retransmission unit may further comprise the steps the process that board software C needs the information of outwards transmission to be forwarded to board software D: state the information of information retransmission unit according to the relevant board software C that carries in the outside information of sending of board software C needs, transmit in the connection relational table in information and find out the board software D that is connected with board software C; The information retransmission unit is added on the information of relevant board software D in the information that board software C needs outwards to send, and the information that the board software C of the information of having added relevant board software D needs outwards to send is forwarded to board software D.
Wherein, the source point, the terminal point that through identification field information are transmitted in the connection relational table are described.Board software C needs outside information of sending to comprise one of following information at least: the information of relevant board software C, the length of sending information, the bar number that sends information and transmission imformosome.
Comprise according to veneer software testing of the present invention system: the network construction unit, be used for networking information according to user's input, the information that generates between a plurality of board softwares is transmitted connection relational table; The information simulation unit is used for webmaster order or excitation information to board software transmission its simulation corresponding with it; And the information retransmission unit, being used for transmitting connection relational table according to information, the information that certain board software is needed outwards to send is forwarded to the board software corresponding to it, and stores the result of the action of each board software.
The present invention can break away from communications hardware devices fully, comes board software is tested through network environment that is virtually reality like reality on PC.
Description of drawings
Accompanying drawing described herein is used to provide further understanding of the present invention, constitutes the application's a part, and illustrative examples of the present invention and explanation thereof are used to explain the present invention, do not constitute improper qualification of the present invention.In the accompanying drawings:
Fig. 1 is the block diagram according to the veneer software testing system of the embodiment of the invention; And
Fig. 2 is the flow chart according to the veneer software testing method of the embodiment of the invention.
Embodiment
The communication equipment network environment is made up of many communication equipments, and communication equipment is made up of some hardware single board, so the communication equipment network environment finally is made up of many veneers.Wanting the network environment of artificial traffic equipment, is exactly the information transmission of wanting between the analog veneer in essence.And this information transmission can be described as the annexation that a kind of source point is breasted the tape, that is: source point-terminal point.Simulate a network environment, what finally obtain is a connection relational table, as follows:
Source point Terminal point
X Y
In connection relational table, source point and terminal point all are end points, and its formal definition is:
Identification field 1 Identification field 2 Identification field n
Wherein, the size of the implication of each identification field and n value is opened to the user, and the user can define the implication of each identification field and the size of n value voluntarily.
Based on above analysis, the invention provides a kind of veneer software testing system based on PC, be used for network environment that is virtually reality like reality, board software is tested.As shown in Figure 1, this veneer software testing system is made up of graphical networking interface (that is network construction unit), forwarding server (that is information retransmission unit) and webmaster order/excitation information simulator (that is information simulation unit).Wherein, they both may operate on same the PC, also may operate on the different PC.
Wherein, graphical networking interface is responsible for providing the interface to carry out networking operation to the user; Forwarding server is the core according to veneer software testing of the present invention system; The information that certain the information transmission that belongs to certain board software connects source point will be needed outwards to send passes to forwarding server, by the forwarding server unification information is forwarded to certain corresponding informance that belongs to certain board software and transmits connection endpoint; Webmaster order/excitation information simulator is responsible for generating the webmaster order or the excitation information of simulation, sends to corresponding board software.
Fig. 2 is the detail flowchart according to the veneer software testing method of the embodiment of the invention.Be example with the SDH network environment below, describe in detail how to use and on PC, simulate the process that the SDH network environment is tested the SDH board software according to veneer software testing of the present invention system.As shown in Figure 2, this veneer software testing method specifically may further comprise the steps:
S202, graphical networking interface is set up two-way communication with forwarding server and is connected C1.
S204, the user carries out networking operation on graphical networking interface, and graphical networking interface generates connection relational table T1 according to user's networking information:
Source point Terminal point
X Y
Wherein, being defined as of end points (source point, terminal point):
NE ID Sub-frame address The veneer address Transmission information type coding
S206, graphical networking interface connects C1 through communication, and the connection relational table T1 that generates is sent to forwarding server, and forwarding server is preserved this connection relational table T1.
S208, board software Xa (1≤a≤n) set up two-way communication with forwarding server is connected C2, and connects C2 through communication and send logon message to forwarding server, and the form of logon message is:
The logon message sign Source point
S210 after forwarding server is received logon message, is connected C2 with the source point information in the message with communication and sets up mapping relations;
S212, repeating step S208~step S210 until all board softwares with forwarding server establishes a communications link and to forwarding server registration, can form an end points and the mapping table T2 that communicates by letter and be connected in that forwarding server is inner like this:
End points Communication connects
X ?C2
?…
S214, (1≤b≤n) set up two-way communication is connected C3 for webmaster order/excitation information simulator and board software Xb.
S216, webmaster order/excitation information simulator pass through communication and connect C3, to board software Xb (1≤b≤n) send the webmaster of simulating to order or excitation information.
S218, board software Xb (after 1≤b≤n) receives webmaster order or excitation information, handles through internal logic; Outwards transmit information if desired; The information that then will transmit sends to forwarding server, needs the source point information of representing self in the information header, and the infomational message form is following:
Sign E-Packets Source point Message length The information bar number Imformosome
S220, after forwarding server was received forwarding information, the source point information inquiry connection relational table T1 according in the information header found out terminal point, and endpoint information is added in the information header; Then according to endpoint information inquiry end points that finds out and the mapping table T2 that communicates by letter and be connected, the communication that finds out correspondence connects, and connects through this communication at last forwarding information is forwarded to terminal point, and the message format of forwarding information is:
Sign E-Packets Source point Terminal point Message length The information bar number Imformosome
S222, board software send to forwarding server with the exercises information that self produces in real time.
S224, forwarding server print and preserve these action messages after receiving the action message that board software sends.
S226; Within a certain period of time, if forwarding server is no longer received the action message that any forwarding information and board software send, then network environment is in stable state; Analyze the action message sequence of each board software of forwarding server preservation this moment, whether the operation of checking board software is correct.If run-time error then carry out fault feedback; The order of simulation webmaster or the excitation information that will issue if operation is correct save as test case; The merger of corresponding action information sequence is the standard testing result of this test case, and a test process is accomplished in regression test after being convenient to.
The above is merely embodiments of the invention, is not limited to the present invention, and for a person skilled in the art, the present invention can have various changes and variation.All within spirit of the present invention and principle, any modification of being done, be equal to replacement, improvement etc., all should be included within the claim scope of the present invention.

Claims (8)

1. the veneer software testing method of simulating network environment on computers is characterized in that, may further comprise the steps:
The network construction unit is according to the networking information of user's input, and the information that generates between a plurality of board softwares is transmitted connection relational table, and said information transmission connection relational table is sent to the information retransmission unit;
The information simulation unit sends the webmaster order or the excitation information of its simulation to card software A, for said card software A said webmaster order or said excitation information is handled; And
Said information retransmission unit transmits connection relational table according to said information; The information that said card software A is needed outwards to send is forwarded to board software B; The information that said board software B is needed outwards to send is forwarded to board software C; Store by that analogy, and to the result of the action of each said board software.
2. veneer software testing method according to claim 1 is characterized in that, the step that said network construction unit sends said information transmission connection relational table further may further comprise the steps:
Said network construction unit is set up it and is connected with two-way communication between the said information retransmission unit;
Said network construction unit generates said information according to said networking information and transmits connection relational table; And
Said network construction unit is connected with two-way communication between the said information retransmission unit through it and said information is transmitted connection relational table is sent to said information retransmission unit.
3. veneer software testing method according to claim 2; It is characterized in that said information simulation unit sends the order of said webmaster or said excitation information to said card software A to carry out processed steps for said card software A and further may further comprise the steps:
Said card software A is set up it and is connected with two-way communication between the said information simulation unit;
Said information simulation unit is connected with two-way communication between the said card software A through it said webmaster order or said excitation information is sent to said card software A; And
Said card software A is carried out the internal logic processing to said webmaster order or said excitation information, and the information that said card software A is needed outwards to send be sent to said information retransmission unit.
4. veneer software testing method according to claim 3 is characterized in that, said card software A is sent it to said information retransmission unit needs the step of outside information of sending further to may further comprise the steps:
Said card software A is set up it and is connected with two-way communication between the said information retransmission unit; And
Said card software A is connected the information of sending the outside transmission of its needs to said information retransmission unit through it with two-way communication between the said information retransmission unit.
5. veneer software testing method according to claim 4 is characterized in that, said information retransmission unit may further comprise the steps the process that said board software C needs the information of outwards transmission to be forwarded to board software D:
Said information retransmission unit is found out the said board software D that is connected with said board software C according to the information of the relevant said board software C that carries in the outside information of sending of said board software C needs in said information transmission connection relational table;
Said information retransmission unit is added on the information of relevant said board software D in the information that said board software C needs outwards to send, and needs the information of outwards transmission be forwarded to said board software D the said board software C of the information of having added relevant said board software D.
6. veneer software testing method according to claim 5 is characterized in that, describes through source point, terminal point that identification field is transmitted in the connection relational table said information.
7. veneer software testing method according to claim 6; It is characterized in that said board software C needs outside information of sending to comprise one of following information at least: the information of relevant said board software C, the length of sending information, the bar number that sends information and transmission imformosome.
8. a veneer software testing system is characterized in that, comprising:
The network construction unit is used for the networking information according to user's input, and the information that generates between a plurality of board softwares is transmitted connection relational table;
The information simulation unit is used for webmaster order or excitation information to board software transmission its simulation corresponding with it; And
The information retransmission unit is used for transmitting connection relational table according to said information, and the information that certain board software is needed outwards to send is forwarded to the board software corresponding to it, and stores the result of the action of each board software.
CN2007101803197A 2007-10-15 2007-10-15 Veneer software testing method and system for simulating network environment on computer Expired - Fee Related CN101159633B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2007101803197A CN101159633B (en) 2007-10-15 2007-10-15 Veneer software testing method and system for simulating network environment on computer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2007101803197A CN101159633B (en) 2007-10-15 2007-10-15 Veneer software testing method and system for simulating network environment on computer

Publications (2)

Publication Number Publication Date
CN101159633A CN101159633A (en) 2008-04-09
CN101159633B true CN101159633B (en) 2012-06-06

Family

ID=39307560

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2007101803197A Expired - Fee Related CN101159633B (en) 2007-10-15 2007-10-15 Veneer software testing method and system for simulating network environment on computer

Country Status (1)

Country Link
CN (1) CN101159633B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102567189A (en) * 2010-12-14 2012-07-11 中兴通讯股份有限公司 Automatic simulation method and automatic simulation system by means of daily build
CN102253884B (en) * 2011-05-12 2016-05-11 中兴通讯股份有限公司 The method of simulating operating environment of single-plate software and device

Also Published As

Publication number Publication date
CN101159633A (en) 2008-04-09

Similar Documents

Publication Publication Date Title
US7006963B1 (en) Intelligent workstation simulation-simulation at protocol stack level 2
CN101789889B (en) Method and system for automatic testing communication equipment
CN106095673A (en) Automated testing method based on WEB interface and system
CN102546266B (en) Method and platform for diagnosing network failures
CN108255730A (en) Software interface test approach, test equipment, storage medium and device
CN103873324A (en) Universal bus testing system
CN101179456A (en) Network appliance testing approach and device
US20060039538A1 (en) "Software only" tool for testing networks under high-capacity, real-world conditions
US20090307299A1 (en) System Analysis Modeling Apparatus and Method
CN106209503B (en) RPC interface test method and system
CN103023708A (en) Method and system for testing communication protocol interface
CN116028292B (en) Simulation verification system and method for remote direct memory access simulation verification
CN110618942A (en) Rapid test method for fine-grained control of industrial control protocol
CN110138617A (en) Data transmission quality test method, system, electronic equipment and storage medium
CN105871643A (en) Network operation simulating method based on routing protocol
Nayak et al. Computer Network simulation using NS2
CN101159633B (en) Veneer software testing method and system for simulating network environment on computer
CN111935767B (en) Network simulation system
CN106936658A (en) The method of testing and test platform of test case, simulation test equipment
CN106789449A (en) A kind of CAN exploitation and method of testing and system
CN110825538A (en) MQ-based method for dynamically interacting data by self-defining data types
KR102396923B1 (en) Performance verification method in data distribution service
CN107196860A (en) The method that network code carries out multicast transmission in SDN
CN106339307A (en) Futures exchange transaction front-end system simulator
Peake et al. A candidate architecture for cloud-based monitoring in industrial automation

Legal Events

Date Code Title Description
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
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20120606

Termination date: 20171015

CF01 Termination of patent right due to non-payment of annual fee