CN105306294B - A kind of Test cases technology system and method for interchanger - Google Patents
A kind of Test cases technology system and method for interchanger Download PDFInfo
- Publication number
- CN105306294B CN105306294B CN201510685165.1A CN201510685165A CN105306294B CN 105306294 B CN105306294 B CN 105306294B CN 201510685165 A CN201510685165 A CN 201510685165A CN 105306294 B CN105306294 B CN 105306294B
- Authority
- CN
- China
- Prior art keywords
- application scenarios
- user
- test
- preset condition
- port
- 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.)
- Active
Links
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
Description
Claims (2)
- A kind of 1. Test cases technology system of interchanger, applied in Multiple Spanning Tree Protocol, it is characterised in that including:One receiving unit, to receive user's application scenarios of Spanning-Tree Protocol;One storage unit, connects the receiving unit, to store user's application scenarios;One processing unit, connects the storage unit, according to user's application scenarios and preset strategy, to obtain the use The basic flow of family application scenarios and at least one alternative flows;One test scene unit, connects the processing unit, to generate corresponding test scene, and root according to the basic flow Corresponding test scene is generated according to the alternative flows;One generation unit, connects the test scene unit, to generate corresponding test case according to the test scene;One review unit, connects the generation unit, to according to each test of the user's application scenarios to generation Use-case carries out review examination respectively, to filter out the test case for not meeting user's application scenarios, and to meeting the user The test case setting test data values of application scenarios;The preset strategy is calculated in paths for user's application scenarios are successfully all from starting finally calculating, will be most short The calculating path as the basic flow, a plurality of preset conditions are included according to computation sequence successively in the basic flow, When not meeting the preset condition, the corresponding alternative flows are generated;The scene type of user's application scenarios is respectively:The spanning tree of Multiple Spanning Tree Protocol calculates type, Spanning-Tree Protocol Single Spanning Tree calculate more embodiment spanning trees of type and VLAN agreements and calculate type;When the scene type of user's application scenarios calculates type, user's applied field for the spanning tree of Multiple Spanning Tree Protocol When scape is to determine the application scenarios of Designated Bridge protocol data port, the processing unit is obtained according to the preset strategy The detailed process in the calculating path of the basic flow is accordingly:S21. the Spanning-Tree Protocol of a plurality of interchangers is opened;S22. root bridge is obtained;S23. a plurality of interchangers are powered;S24. the port that election receives optimal bridge protocol data is root port;S25. port status does not change;S26. the bridge protocol data port is determined as designated port;S27. spanning tree calculates successfully;Further included before the step S22 is performed:Judge whether to meet the first preset condition,If so, perform the step S23:If it is not, the alternative flows for then corresponding to first preset condition are, it is more a plurality of described The tree root address of interchanger, using the minimum corresponding tree root in tree root address as root bridge, and returns and performs the step S21:Institute The first preset condition is stated to judge whether to obtain root bridge;Further included before the step S24 is performed:Judge whether to meet the second preset condition, if it is not, performing the step S24:If so, the alternative flows for then corresponding to second preset condition are to return to the step S21:Second preset condition is Determine whether at least one interchanger power down;Further included before the step S26 is performed:Judge whether to meet the 3rd preset condition, if it is not, performing the step S26:If so, the alternative flows for then corresponding to the 3rd preset condition are, updating Multiple Spanning Tree Protocol according to the state of port calculates Port list, and return and perform the step S24;3rd preset condition is to judge whether port status changes.
- 2. a kind of method for generating test case of interchanger, applied in Multiple Spanning Tree Protocol, it is characterised in that including following steps Suddenly:S1. user's application scenarios of Spanning-Tree Protocol are received;S2. according to user's application scenarios and preset strategy, the basic flow of user's application scenarios and at least one is obtained Alternative flows;S3. corresponding test scene is generated according to the basic flow, and corresponding test scene is generated according to the alternative flows;S4. corresponding test case is generated according to the test scene;S5. review examination is carried out respectively to each test case of generation according to user's application scenarios, to filter out not Meet the test case of user's application scenarios, and the test case to meeting user's application scenarios sets test Data value;The preset strategy is calculated in paths for user's application scenarios are successfully all from starting finally calculating, will be most short The calculating path as the basic flow, a plurality of preset conditions are included according to computation sequence successively in the basic flow, When not meeting the preset condition, the corresponding alternative flows are generated;The scene type of user's application scenarios is respectively:The spanning tree of Multiple Spanning Tree Protocol calculates type, Spanning-Tree Protocol Single Spanning Tree calculate more embodiment spanning trees of type and VLAN agreements and calculate type;When the scene type of user's application scenarios calculates type, user's applied field for the spanning tree of Multiple Spanning Tree Protocol When scape is to determine the application scenarios of Designated Bridge protocol data port, obtained in the step S2 according to the preset strategy The detailed process in the calculating path of the corresponding basic flow taken is:S21. the Spanning-Tree Protocol of a plurality of interchangers is opened;S22. root bridge is obtained;S23. a plurality of interchangers are powered;S24. the port that election receives optimal bridge protocol data is root port;S25. port status does not change;S26. the bridge protocol data port is determined as designated port;S27. spanning tree calculates successfully;Further included before the step S22 is performed:Judge whether to meet the first preset condition, if so, performing the step S23:If it is not, the alternative flows for then corresponding to first preset condition are, the tree root address of more a plurality of interchangers will most The small corresponding tree root in tree root address returns as root bridge and performs the step S21:First preset condition is for judgement No acquisition root bridge;Further included before the step S24 is performed:Judge whether to meet the second preset condition, if it is not, performing the step S24:If so, the alternative flows for then corresponding to second preset condition are to return to the step S21:Second preset condition is Determine whether at least one interchanger power down;Further included before the step S26 is performed:Judge whether to meet the 3rd preset condition, if it is not, performing the step S26:If so, the alternative flows for then corresponding to the 3rd preset condition are, updating Multiple Spanning Tree Protocol according to the state of port calculates Port list, and return and perform the step S24;3rd preset condition is to judge whether port status changes.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510685165.1A CN105306294B (en) | 2015-10-20 | 2015-10-20 | A kind of Test cases technology system and method for interchanger |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510685165.1A CN105306294B (en) | 2015-10-20 | 2015-10-20 | A kind of Test cases technology system and method for interchanger |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105306294A CN105306294A (en) | 2016-02-03 |
CN105306294B true CN105306294B (en) | 2018-04-27 |
Family
ID=55203074
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510685165.1A Active CN105306294B (en) | 2015-10-20 | 2015-10-20 | A kind of Test cases technology system and method for interchanger |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105306294B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109582830A (en) * | 2018-12-20 | 2019-04-05 | 郑州云海信息技术有限公司 | A kind of generation method and device of port list |
CN112511385B (en) * | 2020-12-02 | 2022-04-08 | 北京邮电大学 | Test flow data generation method and device and electronic equipment |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101136843A (en) * | 2006-08-30 | 2008-03-05 | 华为技术有限公司 | Method of generating symmetrical tree in the shortest path bridge |
CN103139080A (en) * | 2013-03-06 | 2013-06-05 | 杭州华三通信技术有限公司 | Network topology computing method and network topology computing device |
CN104866424A (en) * | 2015-05-22 | 2015-08-26 | 国云科技股份有限公司 | Method for designing software test cases based on scenario analysis |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7916668B2 (en) * | 2004-12-30 | 2011-03-29 | Alcatel Lucent | Spanning tree protocol with burst avoidance |
-
2015
- 2015-10-20 CN CN201510685165.1A patent/CN105306294B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101136843A (en) * | 2006-08-30 | 2008-03-05 | 华为技术有限公司 | Method of generating symmetrical tree in the shortest path bridge |
CN103139080A (en) * | 2013-03-06 | 2013-06-05 | 杭州华三通信技术有限公司 | Network topology computing method and network topology computing device |
CN104866424A (en) * | 2015-05-22 | 2015-08-26 | 国云科技股份有限公司 | Method for designing software test cases based on scenario analysis |
Non-Patent Citations (1)
Title |
---|
《一种有效的测试用例生成策略及其实现方法》;马骏;《中国科技纵横》;20100228(第04期);正文第59-60页 * |
Also Published As
Publication number | Publication date |
---|---|
CN105306294A (en) | 2016-02-03 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7443800B2 (en) | Method and apparatus for designing a spanning tree virtual network | |
CN104579810B (en) | Software defined network traffic sampling method and system | |
CN103426042A (en) | Method and system for grouping in social network | |
CN110708178A (en) | Network deployment method and device | |
CN107402927A (en) | A kind of enterprise's incidence relation topology method for building up and querying method based on graph model | |
CN104539502B (en) | A kind of method of self-defined addition modbus equipment | |
CN104320341B (en) | Adaptive and asynchronous routing network system on 2D-Torus chip and design method thereof | |
CN104486236B (en) | The method and routing device of load balancing | |
CN105306294B (en) | A kind of Test cases technology system and method for interchanger | |
US20180048560A1 (en) | Method And Apparatus For Identifying Different Routing Paths Between Networks | |
CN107113191A (en) | Inline data bag in data center's structural network is followed the trail of | |
CN109995580A (en) | VN mapping method based on GA_PSO hybrid algorithm in 5G network slice | |
CN109039959A (en) | A kind of the consistency judgment method and relevant apparatus of SDN network rule | |
CN106022937A (en) | Deduction method of social network topological structure | |
CN107124365A (en) | A kind of acquisition system of the routing policy based on machine learning | |
CN106230737B (en) | A kind of software definition network-building method of state aware | |
CN104346380B (en) | Data reordering method and system based on MapReduce model | |
CN107528731B (en) | Network segmentation optimization algorithm applied to NS3 parallel simulation | |
CN109861869A (en) | A kind of generation method and device of configuration file | |
CN109446146B (en) | State transition sequence generation method of application layer communication protocol | |
CN110493058A (en) | The construction method and device of network topology structure, storage medium, terminal | |
CN107835127B (en) | Intra-domain routing energy-saving method based on network entropy | |
CN107404440A (en) | A kind of forwarding-table item sending method, message forwarding method and device | |
CN105959141B (en) | A kind of virtual network topology construction method and device | |
CN109150717A (en) | A kind of combination method for routing optimizing network-on-chip power consumption |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right |
Effective date of registration: 20201130 Address after: Room 10242, No. 260, Jiangshu Road, Xixing street, Binjiang District, Hangzhou City, Zhejiang Province Patentee after: Hangzhou Jiji Intellectual Property Operation Co., Ltd Address before: 201616 Shanghai city Songjiang District Sixian Road No. 3666 Patentee before: Phicomm (Shanghai) Co.,Ltd. |
|
TR01 | Transfer of patent right | ||
TR01 | Transfer of patent right |
Effective date of registration: 20201217 Address after: 8319 Yanshan Road, Bengbu City, Anhui Province Patentee after: Bengbu Lichao Information Technology Co.,Ltd. Address before: Room 10242, No. 260, Jiangshu Road, Xixing street, Binjiang District, Hangzhou City, Zhejiang Province Patentee before: Hangzhou Jiji Intellectual Property Operation Co., Ltd |
|
TR01 | Transfer of patent right | ||
TR01 | Transfer of patent right |
Effective date of registration: 20210309 Address after: 313000 room 1019, Xintiandi commercial office, Yishan street, Wuxing District, Huzhou, Zhejiang, China Patentee after: Huzhou YingLie Intellectual Property Operation Co.,Ltd. Address before: 8319 Yanshan Road, Bengbu City, Anhui Province Patentee before: Bengbu Lichao Information Technology Co.,Ltd. |
|
TR01 | Transfer of patent right |