CN105391598A - Block-box testing case design method based on combination with basic path method - Google Patents
Block-box testing case design method based on combination with basic path method Download PDFInfo
- Publication number
- CN105391598A CN105391598A CN201510758467.7A CN201510758467A CN105391598A CN 105391598 A CN105391598 A CN 105391598A CN 201510758467 A CN201510758467 A CN 201510758467A CN 105391598 A CN105391598 A CN 105391598A
- Authority
- CN
- China
- Prior art keywords
- instrument
- independent pathway
- data
- path
- box testing
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/08—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
- H04L43/0805—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
- H04L43/0817—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking functioning
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/74—Address processing for routing
- H04L45/745—Address table lookup; Address filtering
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L49/00—Packet switching elements
- H04L49/25—Routing or path finding in a switch fabric
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Environmental & Geological Engineering (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention discloses a block-box testing case design method based on combination with a basic path method. The method comprises the following steps: S1, according to a chip manual, an internal process flow of a private VIAN of the chip is found out; S2, an internal process flow chart of the private VIAN is drawn; S3, with a basic path method of a white-box testing method, independent path branches of the internal process flow chart of the private VIAN are listed, all independent path branches and a main path form N independent paths, and each independent path in the flow chart is executed at least once; and S4, according to the N independent paths, parameters of a data sending instrument and a data forwarding instrument are set one path by one path, the data sending instrument sends data to the data forwarding instrument successively, and a result of data processing by the data forwarding instruction when the corresponding independent path is executed is obtained. According to the method, the obtained case is close to internal implementation of the product; and the minimized testing efficiency can be realized by using minimal cases.
Description
Technical field
The present invention relates to communication test technical field, particularly relate to a kind of Black-box testing Cases method for designing in conjunction with elementary path method.
Background technology
Along with the extensive use of switch, switch is in all strict test of development, should with the inside reaching product, realize the function of product, but, the a lot of method for test examples design of current switch is all according to protocol function, full black box design, as equivalence class partition, boundary values etc., the use-case input of such design is a lot, and actual a lot of product problem is all hidden very darker, closely bound up with the process of switch inside chip, so comprehensively cannot test switch, not in place to the test of function, but likely can miss much important input.
Therefore, those skilled in the art is devoted to study a kind of use-case designed always and more can presses close to interiors of products and realize, reach the Black-box testing Cases method for designing in conjunction with elementary path method of maximized testing efficiency with minimum use-case.
Summary of the invention
The technical problem to be solved in the present invention is to provide a kind of Black-box testing Cases method for designing in conjunction with elementary path method, and this can more be pressed close in conjunction with the use-case that the Black-box testing Cases method for designing of elementary path method designs, and interiors of products realizes, available minimum use-case reaches maximized testing efficiency.
For solving the problems of the technologies described above, a kind of Black-box testing Cases method for designing in conjunction with elementary path method provided by the invention: provide data to send instrument and data retransmission instrument, the described Black-box testing Cases method for designing in conjunction with elementary path method comprises the following steps:
S1: according to chip handbook, finds out the internal processes of the privately owned VlAN of chip;
S2: draw described privately owned VLAN internal processes figure;
S3: the elementary path method adopting white-box testing method, list the trunk path of described privately owned VLAN internal processes figure and all independent pathway branches, described independent pathway branch and trunk path form N bar independent pathway, and in flow chart, every bar independent pathway at least performs once;
S4: the independent pathway according to N bar, then setting data sends the parameter of instrument and data retransmission instrument one by one, and when showing that described data send instrument successively to described data retransmission instrument transmission data, perform data retransmission instrument described in corresponding described independent pathway to the expected results of data processing;
S5: the parameter arranged according to step S4 and expected results, writes out the test case that every bar independent pathway is corresponding.
Preferably, the performing step of described step S3 comprises:
S301: the sequence number marking each execution step in described privately owned VLAN internal processes figure;
S302: find out the decision node in trunk path, finds out new independent pathway branch at decision node place;
S303: each independent pathway branch is formed an independent pathway, trunk path and independent pathway branch form N bar independent pathway;
S304: all listed by independent pathway described in N bar, in flow chart, every bar independent pathway at least performs once.
Preferably, the performing step of described step S4 comprises:
S401: according to Article 1 independent pathway, setting data sends the parameter of instrument and data retransmission instrument;
S402: when showing that described data send instrument to described data retransmission instrument transmission data, perform data retransmission instrument described in corresponding described independent pathway to the expected results of data processing;
S403: make the independent pathway of basis into next independent pathway, repeats step S401 and step S402;
S404: repeat step S403N-1 time, draw the expected results of data retransmission instrument to data processing.
Preferably, described data retransmission instrument is switch.
After adopting said method, according to chip handbook, understand the internal processes of the privately owned VlAN of chip; Draw described privately owned VLAN internal processes figure; Adopt the elementary path method of white-box testing method, list the independent pathway branch of described privately owned VLAN internal processes figure, described independent pathway branch and trunk path form N bar independent pathway, and in flow chart, every bar independent pathway at least performs once; Independent pathway according to N bar, then setting data sends the parameter of instrument and data retransmission instrument one by one, described data send instrument and successively send data to described data retransmission instrument, show that described data retransmission instrument is to the result of data processing when performing corresponding described independent pathway, this can more be pressed close in conjunction with the use-case that the Black-box testing Cases method for designing of elementary path method designs, and interiors of products realizes, available minimum use-case reaches maximized testing efficiency.
Accompanying drawing explanation
Fig. 1 is a kind of Black-box testing Cases method for designing workflow diagram in conjunction with elementary path method of the present invention;
Fig. 2 is the realization flow figure of the step S3 of workflow diagram as shown in Figure 1;
Fig. 3 is the realization flow figure of the step S4 of workflow diagram as shown in Figure 1;
Fig. 4 is the privately owned VLAN internal processes figure of switch in the embodiment of the present invention.
Embodiment
In order to make object of the present invention, technical scheme and advantage clearly understand, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein only for explaining the present invention, being not intended to limit the present invention.
Refer to Fig. 1, Fig. 1 is a kind of Black-box testing Cases method for designing workflow diagram in conjunction with elementary path method of the present invention;
In the present embodiment, a kind of Black-box testing Cases method for designing in conjunction with elementary path method: provide data to send instrument and data retransmission instrument, the described Black-box testing Cases method for designing in conjunction with elementary path method comprises the following steps:
S1: according to chip handbook, finds out the internal processes of the privately owned VlAN of chip;
S2: draw described privately owned VLAN internal processes figure;
S3: the elementary path method adopting white-box testing method, list the trunk path of described privately owned VLAN internal processes figure and all independent pathway branches, described independent pathway branch and trunk path form N bar independent pathway, and in flow chart, every bar independent pathway at least performs once;
S4: the independent pathway according to N bar, then setting data sends the parameter of instrument and data retransmission instrument one by one, and when showing that described data send instrument successively to described data retransmission instrument transmission data, perform data retransmission instrument described in corresponding described independent pathway to the expected results of data processing;
S5: the parameter arranged according to step S4 and expected results, writes out the test case that every bar independent pathway is corresponding.
Refer to Fig. 2, Fig. 2 is the realization flow figure of the step S3 of workflow diagram as shown in Figure 1;
The performing step of described step S3 comprises:
S301: the sequence number marking each execution step in described privately owned VLAN internal processes figure;
S302: find out the decision node in trunk path, finds out new independent pathway branch at decision node place;
S303: each independent pathway branch is formed an independent pathway, trunk path and independent pathway branch form N bar independent pathway;
S304: all listed by independent pathway described in N bar, in flow chart, every bar independent pathway at least performs once.
Refer to Fig. 3, Fig. 3 is the realization flow figure of the step S4 of workflow diagram as shown in Figure 1;
The performing step of described step S4 comprises:
S401: according to Article 1 independent pathway, setting data sends the parameter of instrument and data retransmission instrument;
S402: when showing that described data send instrument to described data retransmission instrument transmission data, perform data retransmission instrument described in corresponding described independent pathway to the expected results of data processing;
S403: make the independent pathway of basis into next independent pathway, repeats step S401 and step S402;
S404: repeat step S403N-1 time, draw the expected results of data retransmission instrument to data processing.
Preferably, described data retransmission instrument is switch.
In the present embodiment, with switch as testing picture, the privately owned VLAN internal processes figure of switch as shown in Figure 4, lists all independent pathways according to step S3:
Path 1:1->2->3
Path 2:1->2->4->5
Path 3:1->2->4->6-G reatT.GreaT.GT7->8->9-GreatT .GreaT.GT10
Path 4:1->2->4->6-G reatT.GreaT.GT7->10->11-Grea tT.GreaT.GT12->13
Path 5:1->2->4->6-G reatT.GreaT.GT7->10->11-Grea tT.GreaT.GT13->14
According to step S4, then setting data sends the parameter of instrument and switch, described data send instrument and successively send data to described data retransmission instrument, show that described data retransmission instrument is to the result of data processing when performing corresponding described independent pathway, test case and result as follows:
Use-case 1:
Input: switch does not configure privately owned VLAN, data send instrument transmit band VLAN message;
Expected results: switch normally forwards this message according to two layers of forwarding process.
Use-case 2:
Input: the privately owned VLAN of switch configuration, data send instrument transmit band VLAN message, and message and port allow the VLAN passed through not identical;
Expected results: switch abandons this message.
Use-case 3:
Input: the privately owned VLAN of switch configuration, removes switch dynamic MAC address, and data send instrument and send a band VLAN message to group's port, and message and port allow the VLAN passed through identical;
Expected results: inquire about on switches, has learnt the source MAC of this message, and message floods at hybrid port and group's port.
Use-case 4:
Input: the privately owned VLAN of switch configuration, removes switch dynamic MAC address, and data send instrument and send a band VLAN message to isolated port, and message and port allow the VLAN passed through identical;
Expected results: inquire about on switches, learnt the source MAC of this message, message floods at hybrid port.
Use-case 5:
Input: the privately owned VLAN of switch configuration, removes switch dynamic MAC address, and data send instrument and send a band VLAN message to hybrid port, and message and port allow the VLAN passed through identical;
Expected results: inquire about on switches, has learnt the source MAC of this message, and message floods at all privately owned vlan ports.
Use-case 6:
Input: port one and port 2 all configure privately owned VLAN, data send instrument transmission source MAC1 to port one, source MAC2 is to port 2, port one is isolated port, port 2 is group's port, and data send instrument transmit band VLAN message to port one, and source MAC is MAC1, object MAC is MAC2, VLAN is isolated vlan;
Expected results: switch abandons this message.
Use-case 7:
Input: port one and port 2 all configure privately owned VLAN, data send instrument transmission source MAC1 to port one, and source MAC2 is to port 2, and port one and port 2 are all group's port;
Data send instrument transmit band VLAN message to port one, and source MAC is MAC1, object MAC be MAC2, VLAN is group VLAN;
Expected results: switch forwards this message, only can catch this message at port 2.
After adopting said method, according to chip handbook, understand the internal processes of the privately owned VlAN of chip; Draw described privately owned VLAN internal processes figure; Adopt the elementary path method of white-box testing method, list the independent pathway branch of described privately owned VLAN internal processes figure, described independent pathway branch and trunk path form N bar independent pathway, and in flow chart, every bar independent pathway at least performs once; Independent pathway according to N bar, then setting data sends the parameter of instrument and data retransmission instrument one by one, described data send instrument and successively send data to described data retransmission instrument, show that described data retransmission instrument is to the result of data processing when performing corresponding described independent pathway, this can more be pressed close in conjunction with the use-case that the Black-box testing Cases method for designing of elementary path method designs, and interiors of products realizes, available minimum use-case reaches maximized testing efficiency.
Should be understood that; these are only the preferred embodiments of the present invention; can not therefore limit the scope of the claims of the present invention; every utilize specification of the present invention and accompanying drawing content to do equivalent structure or equivalent flow process conversion; or be directly or indirectly used in other relevant technical fields, be all in like manner included in scope of patent protection of the present invention.
Claims (4)
1. in conjunction with a Black-box testing Cases method for designing for elementary path method, it is characterized in that: provide data to send instrument and data retransmission instrument, the described Black-box testing Cases method for designing in conjunction with elementary path method comprises the following steps:
S1: according to chip handbook, finds out the internal processes of the privately owned VlAN of chip;
S2: draw described privately owned VLAN internal processes figure;
S3: the elementary path method adopting white-box testing method, list the trunk path of described privately owned VLAN internal processes figure and all independent pathway branches, described independent pathway branch and trunk path form N bar independent pathway, and in flow chart, every bar independent pathway at least performs once;
S4: the independent pathway according to N bar, then setting data sends the parameter of instrument and data retransmission instrument one by one, and when showing that described data send instrument successively to described data retransmission instrument transmission data, perform data retransmission instrument described in corresponding described independent pathway to the expected results of data processing;
S5: the parameter arranged according to step S4 and expected results, writes out the test case that every bar independent pathway is corresponding.
2. the Black-box testing Cases method for designing in conjunction with elementary path method according to claim 1, is characterized in that: the performing step of described step S3 comprises:
S301: the sequence number marking each execution step in described privately owned VLAN internal processes figure;
S302: find out the decision node in trunk path, finds out new independent pathway branch at decision node place;
S303: each independent pathway branch is formed an independent pathway, trunk path and independent pathway branch form N bar independent pathway;
S304: all listed by independent pathway described in N bar, in flow chart, every bar independent pathway at least performs once.
3. the Black-box testing Cases method for designing in conjunction with elementary path method according to claim 1, is characterized in that: the performing step of described step S4 comprises:
S401: according to Article 1 independent pathway, setting data sends the parameter of instrument and data retransmission instrument;
S402: when showing that described data send instrument to described data retransmission instrument transmission data, perform data retransmission instrument described in corresponding described independent pathway to the expected results of data processing;
S403: make the independent pathway of basis into next independent pathway, repeats step S401 and step S402;
S404: repeat step S403N-1 time, draw the expected results of data retransmission instrument to data processing.
4. the Black-box testing Cases method for designing in conjunction with elementary path method according to claim 1, is characterized in that: described data retransmission instrument is switch.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510758467.7A CN105391598A (en) | 2015-11-10 | 2015-11-10 | Block-box testing case design method based on combination with basic path method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510758467.7A CN105391598A (en) | 2015-11-10 | 2015-11-10 | Block-box testing case design method based on combination with basic path method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN105391598A true CN105391598A (en) | 2016-03-09 |
Family
ID=55423450
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510758467.7A Pending CN105391598A (en) | 2015-11-10 | 2015-11-10 | Block-box testing case design method based on combination with basic path method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105391598A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115225557A (en) * | 2022-07-07 | 2022-10-21 | 上海东土致远智能科技发展有限公司 | Method and device for generating device test case, device test method and device |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN201226523Y (en) * | 2008-05-26 | 2009-04-22 | 北京星网锐捷网络技术有限公司 | System for testing switch stability |
CN101656637A (en) * | 2009-09-11 | 2010-02-24 | 中国科学院计算技术研究所 | Virtual trunk measuring device and method for network protocol |
US20110154108A1 (en) * | 2009-12-16 | 2011-06-23 | Airbus Operations (Sas) | System and process for simulation or test exploiting data from monitoring ports |
US20110191088A1 (en) * | 2010-02-01 | 2011-08-04 | Yar-Sun Hsu | Object-oriented network-on-chip modeling |
CN104579855A (en) * | 2015-02-16 | 2015-04-29 | 太仓市同维电子有限公司 | Testing method of interchanger product MINI LTT |
-
2015
- 2015-11-10 CN CN201510758467.7A patent/CN105391598A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN201226523Y (en) * | 2008-05-26 | 2009-04-22 | 北京星网锐捷网络技术有限公司 | System for testing switch stability |
CN101656637A (en) * | 2009-09-11 | 2010-02-24 | 中国科学院计算技术研究所 | Virtual trunk measuring device and method for network protocol |
US20110154108A1 (en) * | 2009-12-16 | 2011-06-23 | Airbus Operations (Sas) | System and process for simulation or test exploiting data from monitoring ports |
US20110191088A1 (en) * | 2010-02-01 | 2011-08-04 | Yar-Sun Hsu | Object-oriented network-on-chip modeling |
CN104579855A (en) * | 2015-02-16 | 2015-04-29 | 太仓市同维电子有限公司 | Testing method of interchanger product MINI LTT |
Non-Patent Citations (1)
Title |
---|
曹烽燕: "基于基本路径测试的测试用例自动生成应用研究", 《中国优秀硕士学位论文全文数据库 信息科技辑》 * |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115225557A (en) * | 2022-07-07 | 2022-10-21 | 上海东土致远智能科技发展有限公司 | Method and device for generating device test case, device test method and device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP3020164B1 (en) | Support for virtual extensible local area network segments across multiple data center sites | |
WO2010054471A8 (en) | Method and apparatus for network port and network address translation | |
CN105577548A (en) | Software definition network message processing method and device | |
US20160142301A1 (en) | Method and system for virtualizing flow tables in a software-defined networking (sdn) system | |
CN111294281B (en) | Communication method and device based on Service Function Chain (SFC) | |
CN105591868B (en) | A kind of cut-in method and device of Virtual Private Network VPN | |
EP2083535A3 (en) | Method for enhancement of multicasting forwarding protocol in a wireless network | |
CN103338161A (en) | Method and equipment for realizing cross-equipment aggregation | |
CN105187311B (en) | A kind of message forwarding method and device | |
CN108075969A (en) | Message forwarding method and device | |
CN105262638A (en) | Method for simultaneously testing plurality of electronic products | |
CN103475583A (en) | Method and equipment for removing media access control forwarding table entries | |
US9860160B2 (en) | Multipath switching using per-hop virtual local area network classification | |
CN106789533A (en) | Method and its system that service channel with management passage separate | |
CN104283782A (en) | Method and device for determining message forwarding paths in multi-protocol label switching network | |
CN105337801B (en) | A kind of method for test examples design based on state machine suitable for switch protocol | |
CN104506396A (en) | Device all-port Full Mesh performance testing method and system | |
CN105591897B (en) | The MAC Address synchronous method and device of TRILL network | |
CN105338127B (en) | MAC address table updating method, interchanger and system | |
EP3694158B1 (en) | Active-active access to transparent interconnection of lots of links (trill) edges | |
CN105391598A (en) | Block-box testing case design method based on combination with basic path method | |
CN106130865A (en) | The communication means of a kind of terminal room and device | |
CN103354567B (en) | A kind of method and apparatus of synchronized multimedia accessing to control address | |
CN106330783A (en) | Method and device for reporting OpenFlow switch capabilities | |
CN104883325A (en) | PVLAN switch and method of connecting the PVLAN switch to non-PVLAN apparatus |
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: 20160309 |