Added onos_cli function
diff --git a/TestON/tests/ONOSNextTest/ONOSNextTest.params b/TestON/tests/ONOSNextTest/ONOSNextTest.params
index 2b3dd0c..92727b5 100755
--- a/TestON/tests/ONOSNextTest/ONOSNextTest.params
+++ b/TestON/tests/ONOSNextTest/ONOSNextTest.params
@@ -1,6 +1,6 @@
<PARAMS>
- <testcases>1,2</testcases>
+ <testcases>1,3</testcases>
#Environment variables
<ENV>
diff --git a/TestON/tests/ONOSNextTest/ONOSNextTest.py b/TestON/tests/ONOSNextTest/ONOSNextTest.py
index fcc0bdd..c5df1ce 100755
--- a/TestON/tests/ONOSNextTest/ONOSNextTest.py
+++ b/TestON/tests/ONOSNextTest/ONOSNextTest.py
@@ -52,7 +52,7 @@
onpass="Test startup successful",
onfail="Test startup NOT successful")
- def CASE2(self, main):
+ def CASE11(self, main):
'''
Cleanup sequence:
onos-service <node_ip> stop
@@ -75,3 +75,16 @@
main.step("Uninstalling ONOS service")
uninstall_result = main.ONOSbench.onos_uninstall()
+ def CASE3(self, main):
+ '''
+ Test 'onos' command and its functionality in driver
+ '''
+
+ ONOS1_ip = main.params['CTRL']['ip1']
+ cmdstr = "system:name"
+
+ main.case("Testing 'onos' command")
+
+ main.step("Sending command 'onos -w <onos-ip> system:name")
+ cmd_result = main.ONOSbench.onos_cli(ONOS1_ip, cmdstr)
+ print cmd_result