1
2 """
3 Created on 26-Oct-2012
4
5 author:: Anil Kumar ( anilkumar.s@paxterrasolutions.com )
6
7 TestON is free software: you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation, either version 2 of the License, or
10 ( at your option ) any later version.
11
12 TestON is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
16
17 You should have received a copy of the GNU General Public License
18 along with TestON. If not, see <http://www.gnu.org/licenses/>.
19
20
21 """
22 from drivers.common.clidriver import CLI
23
24
26
27
30
31 - def connect( self, **connectargs ):
32 for key in connectargs:
33 vars( self )[ key ] = connectargs[ key ]
34
35 self.name = self.options[ 'name' ]
36
37 self.handle = super(
38 RemoteSysDriver,
39 self ).connect(
40 user_name=self.user_name,
41 ip_address=self.ip_address,
42 port=self.port,
43 pwd=self.pwd )
44 """
45 if self.handle:
46 self.execute( cmd= "\n",prompt= "\$|>|#",timeout= 10 )
47 self.execute( cmd= "ssh -l paxterra 10.128.4.1",prompt= "paxterra@10.128.4.1's password:",timeout= 10 )
48 self.execute( cmd= "\n",prompt= "paxterra@10.128.4.1's password:",timeout= 10 )
49 self.execute( cmd="0nLab_gu3st",prompt="\$",timeout=10 )
50 self.execute( cmd="cd TestON/bin/",prompt="\$",timeout=10 )
51 self.execute( cmd="./cli.py run Assert example 1",prompt="\$",timeout=10 )
52 self.execute( cmd= "\n",prompt= "$",timeout= 10 )
53 #self.execute( cmd="help",prompt=">",timeout=10 )
54
55 #self.execute( cmd="~.",prompt= ".*",timeout= 10 )
56 return main.TRUE
57 """
58