Commit 167980fc authored by Hoang Tran's avatar Hoang Tran
Browse files

modified to run the test case with the eut controller

parent decf11c0
......@@ -122,6 +122,7 @@ class AutomatedIUT(threading.Thread):
logging.info('IUT %s pushing test case skip message for %s' % (self.component_id, event.testcase_id))
publish_message(self.channel, MsgTestCaseSkip(testcase_id=event.testcase_id))
else:
self._execute_configuration(event.testcase_id)
logging.info('IUT %s ready to execute testcase' % self.component_id)
elif isinstance(event, MsgStepStimuliExecute):
......
......@@ -31,25 +31,25 @@ class SixLoMoteController(AutomatedIUT):
# mapping message's stimuli id -> CoAPthon (coap client) commands
stimuli_cmd_dict = {
'TD_6LoWPAN_HC_01_step_01': ['hc_01'],
'TD_6LoWPAN_HC_03_step_01': ['hc_03'],
'TD_6LoWPAN_HC_05_step_01': ['hc_05'],
'TD_6LoWPAN_HC_07_step_01': ['hc_07'],
'TD_6LoWPAN_FORMAT_01_step_01': ['format_01'],
'TD_6LoWPAN_FORMAT_03_step_01': ['format_03'],
'TD_6LoWPAN_FORMAT_04_step_01': ['format_04'],
'TD_6LoWPAN_FORMAT_06_step_01': ['format_06'],
'TD_6LowPAN_HC_01_step_01': ['hc_01'],
'TD_6LowPAN_HC_03_step_01': ['hc_03'],
'TD_6LowPAN_HC_05_step_01': ['hc_05'],
'TD_6LowPAN_HC_07_step_01': ['hc_07'],
'TD_6LowPAN_FORMAT_01_step_01': ['format_01'],
'TD_6LowPAN_FORMAT_03_step_01': ['format_03'],
'TD_6LowPAN_FORMAT_04_step_01': ['format_04'],
'TD_6LowPAN_FORMAT_06_step_01': ['format_06'],
}
implemented_testcases_list = [
'TD_6LoWPAN_HC_01',
'TD_6LoWPAN_HC_03',
'TD_6LoWPAN_HC_05',
'TD_6LoWPAN_HC_07',
'TD_6LoWPAN_FORMAT_01',
'TD_6LoWPAN_FORMAT_03',
'TD_6LoWPAN_FORMAT_04',
'TD_6LoWPAN_FORMAT_06',
'TD_6LowPAN_HC_01',
'TD_6LowPAN_HC_03',
'TD_6LowPAN_HC_05',
'TD_6LowPAN_HC_07',
'TD_6LowPAN_FORMAT_01',
'TD_6LowPAN_FORMAT_03',
'TD_6LowPAN_FORMAT_04',
'TD_6LowPAN_FORMAT_06',
]
component_id = "SixLoMoteController"
......@@ -72,7 +72,8 @@ class SixLoMoteController(AutomatedIUT):
def _execute_verify(self, verify_step_id, ):
logging.warning('Ignoring: %s. No auto-iut mechanism for verify step implemented.' % verify_step_id)
def _execute_stimuli(self, stimuli_step_id, cmd, addr):
def _execute_stimuli(self, stimuli_step_id, cmd, addr="fe80::212:4b00:433:ed9c"):
global in_handler,timeout
if cmd[0] in support_hc_tests or cmd[0] in support_format_tests:
self.test_done = False
......@@ -94,7 +95,7 @@ class SixLoMoteController(AutomatedIUT):
"Stimuli %s couldnt be executed for node %s" % (stimuli_step_id, self.node))
return
def _execute_configuration(self, testcase_id, node):
def _execute_configuration(self, testcase_id, node=None):
global in_handler,timeout
testcase = None
try:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment