CN100364282C - Method and system for testing stimulant user board function - Google Patents
Method and system for testing stimulant user board function Download PDFInfo
- Publication number
- CN100364282C CN100364282C CNB2004100561924A CN200410056192A CN100364282C CN 100364282 C CN100364282 C CN 100364282C CN B2004100561924 A CNB2004100561924 A CN B2004100561924A CN 200410056192 A CN200410056192 A CN 200410056192A CN 100364282 C CN100364282 C CN 100364282C
- Authority
- CN
- China
- Prior art keywords
- user
- plate
- test
- message
- test case
- 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
Links
Images
Landscapes
- Monitoring And Testing Of Exchanges (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The present invention discloses a method and a system for testing functions of a simulated user board, which aims to improve test efficiency and reduce workload. The system comprises a user frame born and loaded with a user circuit board, a speech card connected with the user frame, a protocol test card connected with the user frame, and a computer device connected with the speech card and the protocol test card.
Description
Technical field
The present invention relates to the measuring technology of the communications field, relate in particular to the method and system of test simulation user plate function.
Background technology
The face that Analog Subscriber Line Board (ASL) functional test relates to is than broad, the situation complexity, and the tester is too tired to deal with, and does not have time enough to design better test case.Present test master uses by the people and carries out by hand, after the tester configures the data of main frame, connect the wiring of user's plate and terminal, carry out off-hook by hand then, listen dialing tone, dialing, Waiting for Call success, wait for the checking that also will do the normal and improper situation of operation flows such as hooking, calling transfer after busy tone, the conversation.And these tests once just can not finish, and as new user's plate upgrading, or all need to test again when new host version upgrading is arranged, so the test job amount both repeat, and are a large amount of again.
Summary of the invention
The invention provides a kind of method and system of test simulation user plate function, to improve testing efficiency and to reduce workload.
Realize that technical scheme of the present invention is as follows:
A kind of system of test simulation user plate function comprises the subscriber frame that carries user circuit board; Wherein also comprise:
Sound card is connected with described subscriber frame, is used for the analog station function;
The protocol test card is connected with described subscriber frame, is used to follow the tracks of the content that the subscriber frame interface sends and receives;
Computer installation, with described sound card and protocol test card connection, be used to write down the phone action of sound card simulation and the content that the protocol test card is followed the tracks of, utilize the information of record to generate test case, carrying out described test case communicates user's plate, obtain the message of described sound card and described protocol test card, and analyze described message and whether conform to the test case expected result.
A kind of method of test simulation user plate function comprises the steps:
A, analog station and analog subscriber board communications, and the phone action and the time of record simulation;
Communication information between B, trace simulation user plate and the exchanger host, and write down this communication information and time;
C, the information of utilizing steps A, B to write down generate test case;
D, carry out described test case, the control messages of taking out user's plate from this test case replaces exchanger host that the message that subscriber frame sends is issued to Analog Subscriber Line Board, perhaps the message that the corresponding message of taking-up user plate replaces user's plate to complain to main frame from this test case;
E, obtain the response message that Analog Subscriber Line Board returns, perhaps obtain the response message that main frame returns to user's plate, and analyze it and whether conform to the test case expected result.
A kind of method of test simulation user plate function, this method comprises the steps:
(1) call function of pseudo-terminal produces corresponding message flow to encourage described user's plate and described user's plate control unit;
(2) follow the tracks of and write down master and slave messages between nodes stream, this message flow is the message flow that user's plate and user's plate control unit produce;
(3) utilize the message flow of record to generate test case;
(4) simulation host node or a node from node, and carry out described test case to the host node that not have to simulate or another node communication from node;
(5) obtain master and slave internodal message, and analyze it and whether conform to the test case expected result.
Adopt the present invention, can greatly improve testing efficiency, reduce the version testing time, the tester is freed from the rudimentary duplication of labour, and can also improve the consistency that test result is judged.
Adopt the present invention also can make the workload of user's plate compatibility test reduce significantly, as increase a kind of user's plate newly at every turn, or board software is once upgraded, a kind of host software of new change, just can carry out a compatibility test in this way, test is by just guaranteeing new user's plate, new board software and the new correctness of host software on compatibility.
Description of drawings
Fig. 1 is a test system structure schematic diagram of the present invention;
Fig. 2, Fig. 3 are the flow chart of method of testing of the present invention.
Embodiment
Consult shown in Figure 1ly, test macro comprises the subscriber frame that carries user circuit board, sound card that is connected with described subscriber frame and protocol test card (PTC), and with the computer installation of sound card and protocol test card connection.Sound card is used for the analog station function, as the action of off-hook, detection dialing tone, detection busy tone, group called number, phone sides such as detection ring, conversation and maintenance.Test card is used to follow the tracks of the content that subscriber frame mouth serial ports sends and receives, and also can send the Host Command of simulation by same serial ports to subscriber frame.Computer installation is used to test the phone action of control and the simulation of record sound card and the content that the protocol test card is followed the tracks of.Subscriber frame provides test bus, serial bus and user's plate power supply etc. as the equipment of carrying measurand user plate.
Sound card can provide 45 parameters can supply to adjust, and wherein a part is that sound card is distinctive, as reports the ringing number that detects before the ring incident, reports and listens the preceding ring-back tone number of times that detects of ring-back tone incident etc.A part is exactly some general calling parameters in addition, as duty ratio, pulse dialing speed etc.
Analog subscriber circuit board (ASL) functional test situation complexity, use-case are extremely many, for the purpose of simple, convenient, the back-stage management of test case data adopts database to realize, consider the needs of transplanting in the future and software repeated usage, will be independent in the time of realization the management of the foreground of data, make the form of API (API), use with convenient the transplanting.
Functional test procedures of the present invention comprises follows the tracks of and emulation two parts.
Consult shown in Figure 2, tracing process (step 1, step 2) is the pattern that agreement card (PTC) is in tracking fully, action by the sound card analog station, the agreement tracking card is monitoring the message process between each veneer of subscriber frame and the main frame simultaneously, action of on the one hand the sound card analog station being carried out by computer and the time that produces these actions are noted, main frame and communication information between user's plate that the agreement tracking card is traced into and the time that traces into these message are noted on the other hand, this two aspect comprehensively to together, is deposited in the correctness that supplies tester's checking process and message in the database.
Process of simulation is based upon on the basis of tracing process.For the above-mentioned result that tracing process produced, by analysis and eliminate the false and retain the true, make above-mentioned test record become the test case of standard, this process is called use-caseization, and the result of formation is called standard use-case (step 3).Computer takes out the standard use-case from database, and again user's plate is tested (step 4) according to the standard use-case.Be with the difference of tracing process, must bypass Main Processor Unit (MPU), host node plate switch control sections such as (NOD) this moment, only keep subscriber frame, and the former control messages of from the standard use-case, taking out user's plate by computer that should change by the message that exchanger host sends subscriber frame, after being issued to PTC, send control messages by PTC, control user plate is finished the test process of standard use-case.Simultaneously, PTC also will intercept the various response messages that user's plate returns to the control messages of PTC, these all information are analyzed test result by software after being gathered by the testing software of computer again, judge that by computer software whether test result still meets (step 5) with original test case.Just can be successful if meet by the test of this standard use-case of background printing, otherwise, can stop and analyze incongruent reason, it may be exactly that agreement realizes incorrect showing that these reasons have part.
Use said method, can carry out the functional test of user's plate and host protocol aspect with comparalive ease.
Also the be to use sound card and the cooperation of protocol test card of functional compatibility test are tested.The main and subordinate node communication line is disconnected, receive respectively on the PTC, by message between PTC transparent transmission main and subordinate node, and supervision is communicated by letter with the emulation main and subordinate node; Sound card is used for the emulation user terminal.Detailed process is as shown in Figure 3:
The call function of simulating various terminals by the computer control sound card, and encourage user's plate and user's plate control unit to produce corresponding message flow (step 20) with this; In the process of carrying out function, the agreement tracking card is reported to the control computer to preserve (step 21) message flow that monitors; Utilize the corresponding message formation of the various callings of preserving test case one by one, this test case carries out the analysis integrated standard use-case (step 22) that makes it to be standardized as then.Intend host node and control sound card pseudo-terminal situation by the protocol test snap gauge, to communicating from node, wherein the pseudo-terminal situation is meant that modular terminal is made corresponding action so that user's plate detects the message (step 23) that these action generations report to host node accordingly according to each standard use-case that forms; By the protocol test card with the message between the main and subordinate node that monitors output, and judge whether to conform to (step 24) with the test case expected result.
In step 23, also can intend according to each standard use-case that forms host node being communicated by the protocol test snap gauge from node, host node is tested.
The Analog Subscriber Line Board function automatic detection makes the workload of compatibility test reduce significantly, and has improved the consistency that test result is judged.
Claims (6)
1. the system of a test simulation user plate function comprises the subscriber frame that carries user circuit board; It is characterized in that, also comprise:
Sound card is connected with described subscriber frame, is used for the analog station function;
The protocol test card is connected with described subscriber frame, is used to follow the tracks of the content that the subscriber frame interface sends and receives;
Computer installation, with described sound card and protocol test card connection, be used to write down the phone action of sound card simulation and the content that the protocol test card is followed the tracks of, utilize the information of record to generate test case, carrying out described test case communicates user's plate, obtain the message of described sound card and described protocol test card, and analyze described message and whether conform to the test case expected result.
2. the system as claimed in claim 1 is characterized in that, also comprises hub, and described protocol test cartoon is crossed this hub and is connected with computer installation.
3. the method for a test simulation user plate function is characterized in that, comprises the steps:
A, analog station and analog subscriber board communications, and the phone action and the time of record simulation;
Communication information between B, trace simulation user plate and the exchanger host, and write down this communication information and time;
C, the information of utilizing steps A, B to write down generate test case;
D, carry out described test case, the control messages of taking out user's plate from this test case replaces exchanger host that the message that subscriber frame sends is issued to Analog Subscriber Line Board, perhaps the message that the corresponding message of taking-up user plate replaces user's plate to complain to main frame from this test case;
E, obtain the response message that Analog Subscriber Line Board returns, perhaps obtain the response message that main frame returns to user's plate, and analyze it and whether conform to the test case expected result.
4. method as claimed in claim 3 is characterized in that, gathers response message in the step e earlier, again the analytical test result.
5. the method for a test simulation user plate function is characterized in that this method comprises the steps:
(1) call function of pseudo-terminal produces corresponding message flow to encourage described user's plate and described user's plate control unit;
(2) follow the tracks of and write down master and slave messages between nodes stream, this message flow is the message flow that user's plate and user's plate control unit produce;
(3) utilize the message flow of record to generate test case;
(4) simulation host node or a node from node, and carry out described test case to the host node that not have to simulate or another node communication from node;
(5) obtain master and slave internodal message, and analyze it and whether conform to the test case expected result.
6. method as claimed in claim 5 is characterized in that, in the step (4), the simulation host node goes back that pseudo-terminal is made corresponding action produces the message that reports to host node accordingly so that user's plate detects these actions to from node communication the time.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB2004100561924A CN100364282C (en) | 2004-08-18 | 2004-08-18 | Method and system for testing stimulant user board function |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB2004100561924A CN100364282C (en) | 2004-08-18 | 2004-08-18 | Method and system for testing stimulant user board function |
Publications (2)
Publication Number | Publication Date |
---|---|
CN1738262A CN1738262A (en) | 2006-02-22 |
CN100364282C true CN100364282C (en) | 2008-01-23 |
Family
ID=36080928
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CNB2004100561924A Expired - Fee Related CN100364282C (en) | 2004-08-18 | 2004-08-18 | Method and system for testing stimulant user board function |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN100364282C (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105005295A (en) * | 2015-07-15 | 2015-10-28 | 上海核工程研究设计院 | Test system and test method for control logic |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP0958708A2 (en) * | 1997-02-04 | 1999-11-24 | Next Level Communications | Method and apparatus for reliable operation of universal voice grade cards |
CN1262573A (en) * | 1999-01-28 | 2000-08-09 | 深圳市中兴通讯股份有限公司 | Tester and test system for user card of program controlled switch |
CN1503136A (en) * | 2002-11-21 | 2004-06-09 | 深圳市中兴通讯股份有限公司 | Embedded software test method |
-
2004
- 2004-08-18 CN CNB2004100561924A patent/CN100364282C/en not_active Expired - Fee Related
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP0958708A2 (en) * | 1997-02-04 | 1999-11-24 | Next Level Communications | Method and apparatus for reliable operation of universal voice grade cards |
CN1262573A (en) * | 1999-01-28 | 2000-08-09 | 深圳市中兴通讯股份有限公司 | Tester and test system for user card of program controlled switch |
CN1503136A (en) * | 2002-11-21 | 2004-06-09 | 深圳市中兴通讯股份有限公司 | Embedded software test method |
Also Published As
Publication number | Publication date |
---|---|
CN1738262A (en) | 2006-02-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US6011830A (en) | Operational test device and method of performing an operational test for a system under test | |
CN103560829A (en) | Method and system for automatic testing of UNI ports | |
CN101136790A (en) | Cluster managerial automatization test system and method of ethernet switchboard | |
CN109857095A (en) | A kind of off-line detection system and method for domain controller | |
CN102333163B (en) | External auxiliary testing apparatus, and testing system thereof and method thereof | |
CN102967815A (en) | Chip testing method, automated testing equipment and system | |
CN101072047B (en) | DSLAN port fast detecting device | |
CN103905659B (en) | The method for testing the intelligent traffic queuing system function in call center | |
CN106411637A (en) | Internet-of-things device scenario testing method | |
CN102413484A (en) | System and method for testing network link performance of terminal equipment | |
CN100426812C (en) | Simulationi realizing method based on grouping data business process and system | |
CN104301926A (en) | Distributed automatic dial testing system and method used for communication network testing | |
CN106712295A (en) | Logical power distribution terminal based on distributed power distribution automation system and communication method thereof | |
CN111831553A (en) | Multifunctional integrated automatic test system and test method | |
CN113612654A (en) | Vehicle-mounted gateway function testing method based on database | |
CN108847869A (en) | Portable multifunctional electric power analog channel test device and its test method | |
WO2005055574A1 (en) | Simulate usercalling's test system and method which built-in digital spc-exchange | |
CN100364282C (en) | Method and system for testing stimulant user board function | |
CN106973139B (en) | Test tool and test method for detecting functions of circuit switching board card | |
CN101562547B (en) | ATCA-framework-based method for testing single plate hardware circuit | |
CN112491653A (en) | Automatic test system and test method for communication equipment | |
CN110138691B (en) | Switch spanning tree protocol anti-loop stability test method and tool | |
CN201075873Y (en) | Network appliance hardware indicators automatization testing system and equipment | |
CN109063333A (en) | A kind of integrated emulation method and system based on IBIS model | |
CN100584052C (en) | Active/standby single board changeover testing method |
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 | ||
C17 | Cessation of patent right | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20080123 Termination date: 20100818 |