command-line interface to execute the test.
|
__init__(self,
teston,
stdin=sys.stdin)
Instantiate a line-oriented interpreter framework. |
source code
|
|
|
|
|
|
|
do_run(self,
args)
run command will execute the test with following optional command
line arguments logdir <directory to store logs in> testcases
<list of testcases separated by comma or range of testcases
separated by hypen> mail <mail-id or list of mail-ids seperated
by comma> example 1, to execute the examples specified in the
~/examples diretory. |
source code
|
|
|
|
|
do_nextstep(self,
line)
nextstep will execute the next-step of the paused test and it will
pause the test after finishing of step. |
source code
|
|
|
|
|
|
|
|
|
do_stop(self,
line)
Will stop the paused test, if any ! |
source code
|
|
|
do_gettest(self,
line)
gettest will return the test name which is under execution or
recently executed. |
source code
|
|
|
do_showlog(self,
line)
showlog will show the test's Log teston>showlog Last executed
test's log is :
//home/openflow/TestON/logs/PoxTest_07_Jan_2013_21_42_11/PoxTest_07_Jan_2013_21_42_11.log
..... |
source code
|
|
|
parseArgs(self,
args,
options)
This will parse the command line arguments. |
source code
|
|
|
initOptions(self,
options)
This will initialize the commandline options. |
source code
|
|
|
testcasesInRange(self,
index,
option,
args,
options)
This method will handle testcases list,specified in range [1-10]. |
source code
|
|
|
cmdloop(self,
intro=introduction)
Repeatedly issue a prompt, accept input, parse an initial prefix off
the received input, and dispatch to action methods, passing them the
remainder of the line as argument. |
source code
|
|
|
do_echo(self,
line)
Echoing of given input. |
source code
|
|
|
do_sh(self,
line)
Run an external shell command sh pwd sh ifconfig etc. |
source code
|
|
|
|
|
do_interpret(self,
line)
interpret will translate the single line openspeak statement to
equivalent python script. |
source code
|
|
|
do_do(self,
line)
Do will translate and execute the openspeak statement for the paused
test. |
source code
|
|
|
do_compile(self,
line)
compile will translate the openspeak (.ospk) file into TestON test
script (python). |
source code
|
|
|
|
|
|
|
|
|
|
|
do_source(self,
line)
Read shell commands from an input file and execute them sequentially. |
source code
|
|
|
|
|
do_time(self,
line)
Measure time taken for any command in TestON. |
source code
|
|
|
default(self,
line)
Called on an input line when the command prefix is not recognized. |
source code
|
|
Inherited from threading.Thread :
__repr__ ,
daemon ,
getName ,
ident ,
isAlive ,
isDaemon ,
is_alive ,
join ,
name ,
run ,
setDaemon ,
setName ,
start
Inherited from threading.Thread (private):
_set_daemon ,
_set_ident
Inherited from threading._Verbose (private):
_note
Inherited from cmd.Cmd :
columnize ,
complete ,
complete_help ,
completedefault ,
completenames ,
get_names ,
onecmd ,
parseline ,
postcmd ,
postloop ,
precmd ,
preloop ,
print_topics
Inherited from object :
__delattr__ ,
__format__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__setattr__ ,
__sizeof__ ,
__str__ ,
__subclasshook__
|