admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 1 | <?xml version="1.0" encoding="ascii"?> |
| 2 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" |
| 3 | "DTD/xhtml1-transitional.dtd"> |
| 4 | <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> |
| 5 | <head> |
| 6 | <title>TestON.examples.Topology.Topology.Topology</title> |
| 7 | <link rel="stylesheet" href="epydoc.css" type="text/css" /> |
| 8 | <script type="text/javascript" src="epydoc.js"></script> |
| 9 | </head> |
| 10 | |
| 11 | <body bgcolor="white" text="black" link="blue" vlink="#204080" |
| 12 | alink="#204080"> |
| 13 | <!-- ==================== NAVIGATION BAR ==================== --> |
| 14 | <table class="navbar" border="0" width="100%" cellpadding="0" |
| 15 | bgcolor="#a0c0ff" cellspacing="0"> |
| 16 | <tr valign="middle"> |
| 17 | <!-- Home link --> |
| 18 | <th> <a |
| 19 | href="TestON-module.html">Home</a> </th> |
| 20 | |
| 21 | <!-- Tree link --> |
| 22 | <th> <a |
| 23 | href="module-tree.html">Trees</a> </th> |
| 24 | |
| 25 | <!-- Index link --> |
| 26 | <th> <a |
| 27 | href="identifier-index.html">Indices</a> </th> |
| 28 | |
| 29 | <!-- Help link --> |
| 30 | <th> <a |
| 31 | href="help.html">Help</a> </th> |
| 32 | |
| 33 | <th class="navbar" width="100%"></th> |
| 34 | </tr> |
| 35 | </table> |
| 36 | <table width="100%" cellpadding="0" cellspacing="0"> |
| 37 | <tr valign="top"> |
| 38 | <td width="100%"> |
| 39 | <span class="breadcrumbs"> |
| 40 | <a href="TestON-module.html">Package TestON</a> :: |
| 41 | <a href="TestON.examples-module.html">Package examples</a> :: |
| 42 | <a href="TestON.examples.Topology-module.html">Package Topology</a> :: |
| 43 | <a href="TestON.examples.Topology.Topology-module.html">Module Topology</a> :: |
| 44 | Class Topology |
| 45 | </span> |
| 46 | </td> |
| 47 | <td> |
| 48 | <table cellpadding="0" cellspacing="0"> |
| 49 | <!-- hide/show private --> |
| 50 | <tr><td align="right"><span class="options">[<a href="javascript:void(0);" class="privatelink" |
| 51 | onclick="toggle_private();">hide private</a>]</span></td></tr> |
| 52 | <tr><td align="right"><span class="options" |
| 53 | >[<a href="frames.html" target="_top">frames</a |
| 54 | >] | <a href="TestON.examples.Topology.Topology.Topology-class.html" |
| 55 | target="_top">no frames</a>]</span></td></tr> |
| 56 | </table> |
| 57 | </td> |
| 58 | </tr> |
| 59 | </table> |
| 60 | <!-- ==================== CLASS DESCRIPTION ==================== --> |
| 61 | <h1 class="epydoc">Class Topology</h1><p class="nomargin-top"><span class="codelink"><a href="TestON.examples.Topology.Topology-pysrc.html#Topology">source code</a></span></p> |
| 62 | <pre class="literalblock"> |
| 63 | |
| 64 | |
| 65 | This example shows, how we can use the topology file: |
| 66 | |
| 67 | In topo file we can specify the component like below: |
| 68 | [TOPOLOGY] |
| 69 | |
| 70 | [[COMPONENT]] |
| 71 | [[["Mininet1"]]] |
| 72 | |
| 73 | The usage of this component in the test script like below: |
| 74 | |
| 75 | main.Mininet1.checkIP(main.params['CASE1']['destination']) |
| 76 | |
| 77 | Here we are using the Mininet1 which of type Mininet |
| 78 | |
| 79 | |
| 80 | |
| 81 | ofautomation>run Topology example 1 |
| 82 | will execute this example. |
| 83 | |
| 84 | </pre> |
| 85 | |
| 86 | <!-- ==================== INSTANCE METHODS ==================== --> |
| 87 | <a name="section-InstanceMethods"></a> |
| 88 | <table class="summary" border="1" cellpadding="3" |
| 89 | cellspacing="0" width="100%" bgcolor="white"> |
| 90 | <tr bgcolor="#70b0f0" class="table-header"> |
| 91 | <td colspan="2" class="table-header"> |
| 92 | <table border="0" cellpadding="0" cellspacing="0" width="100%"> |
| 93 | <tr valign="top"> |
| 94 | <td align="left"><span class="table-header">Instance Methods</span></td> |
| 95 | <td align="right" valign="top" |
| 96 | ><span class="options">[<a href="#section-InstanceMethods" |
| 97 | class="privatelink" onclick="toggle_private();" |
| 98 | >hide private</a>]</span></td> |
| 99 | </tr> |
| 100 | </table> |
| 101 | </td> |
| 102 | </tr> |
| 103 | <tr> |
| 104 | <td width="15%" align="right" valign="top" class="summary"> |
| 105 | <span class="summary-type"> </span> |
| 106 | </td><td class="summary"> |
| 107 | <table width="100%" cellpadding="0" cellspacing="0" border="0"> |
| 108 | <tr> |
| 109 | <td><span class="summary-sig"><a name="__init__"></a><span class="summary-sig-name">__init__</span>(<span class="summary-sig-arg">self</span>)</span></td> |
| 110 | <td align="right" valign="top"> |
| 111 | <span class="codelink"><a href="TestON.examples.Topology.Topology-pysrc.html#Topology.__init__">source code</a></span> |
| 112 | |
| 113 | </td> |
| 114 | </tr> |
| 115 | </table> |
| 116 | |
| 117 | </td> |
| 118 | </tr> |
| 119 | <tr> |
| 120 | <td width="15%" align="right" valign="top" class="summary"> |
| 121 | <span class="summary-type"> </span> |
| 122 | </td><td class="summary"> |
| 123 | <table width="100%" cellpadding="0" cellspacing="0" border="0"> |
| 124 | <tr> |
| 125 | <td><span class="summary-sig"><a name="CASE1"></a><span class="summary-sig-name">CASE1</span>(<span class="summary-sig-arg">self</span>, |
| 126 | <span class="summary-sig-arg">main</span>)</span><br /> |
| 127 | This will showcase the usage of Topology</td> |
| 128 | <td align="right" valign="top"> |
| 129 | <span class="codelink"><a href="TestON.examples.Topology.Topology-pysrc.html#Topology.CASE1">source code</a></span> |
| 130 | |
| 131 | </td> |
| 132 | </tr> |
| 133 | </table> |
| 134 | |
| 135 | </td> |
| 136 | </tr> |
| 137 | </table> |
| 138 | <!-- ==================== NAVIGATION BAR ==================== --> |
| 139 | <table class="navbar" border="0" width="100%" cellpadding="0" |
| 140 | bgcolor="#a0c0ff" cellspacing="0"> |
| 141 | <tr valign="middle"> |
| 142 | <!-- Home link --> |
| 143 | <th> <a |
| 144 | href="TestON-module.html">Home</a> </th> |
| 145 | |
| 146 | <!-- Tree link --> |
| 147 | <th> <a |
| 148 | href="module-tree.html">Trees</a> </th> |
| 149 | |
| 150 | <!-- Index link --> |
| 151 | <th> <a |
| 152 | href="identifier-index.html">Indices</a> </th> |
| 153 | |
| 154 | <!-- Help link --> |
| 155 | <th> <a |
| 156 | href="help.html">Help</a> </th> |
| 157 | |
| 158 | <th class="navbar" width="100%"></th> |
| 159 | </tr> |
| 160 | </table> |
| 161 | <table border="0" cellpadding="0" cellspacing="0" width="100%%"> |
| 162 | <tr> |
| 163 | <td align="left" class="footer"> |
| 164 | Generated by Epydoc 3.0.1 on Mon Mar 11 12:56:26 2013 |
| 165 | </td> |
| 166 | <td align="right" class="footer"> |
| 167 | <a target="mainFrame" href="http://epydoc.sourceforge.net" |
| 168 | >http://epydoc.sourceforge.net</a> |
| 169 | </td> |
| 170 | </tr> |
| 171 | </table> |
| 172 | |
| 173 | <script type="text/javascript"> |
| 174 | <!-- |
| 175 | // Private objects are initially displayed (because if |
| 176 | // javascript is turned off then we want them to be |
| 177 | // visible); but by default, we want to hide them. So hide |
| 178 | // them unless we have a cookie that says to show them. |
| 179 | checkCookie(); |
| 180 | // --> |
| 181 | </script> |
| 182 | </body> |
| 183 | </html> |