Index: tst_cloud_sync - treatment_screen/test.py =================================================================== diff -u -r8656366bd3aa42457b9ff6f96f09e22a8e6bc7df -r21c0a7a1f8a705cc9bf9d7e4c904ce9694b5f623 --- tst_cloud_sync - treatment_screen/test.py (.../test.py) (revision 8656366bd3aa42457b9ff6f96f09e22a8e6bc7df) +++ tst_cloud_sync - treatment_screen/test.py (.../test.py) (revision 21c0a7a1f8a705cc9bf9d7e4c904ce9694b5f623) @@ -35,7 +35,7 @@ DEVICE_STATE_REQUEST = '1639391827,1,0,2006,0' DEVICE_STATE_RESPONSE = '1639391827,1,0, 1006, 2, Op-Mode, Sub-Mode' DEVICE_CREDENTIALS_REQUEST = '1639391827,1,0,2004,0' -DEVICE_CREDENTIALS_RESPONSE = '1639391827,1,0,1004,/tmp/credentials/' +DEVICE_CREDENTIALS_RESPONSE = '1639391827,1,0,1004,1,/tmp/credentials/' DEVICE_FACTORY_RESET_REQUEST = '1639391827,1,0,2005,0' DEVICE_FACTORY_RESET_CONFIRM = '1639391827,1,0,1005,1,0' DEVICE_INFO_REQUEST = '1639391827,1,9,2002,0' @@ -74,17 +74,13 @@ def verify_log_response(actual_cloudsync_data, expected_cloudsync_data): + test.startSection("Verification of cloud response for code %s" %actual_cloudsync_data[3]) expected_cloudsync_data = expected_cloudsync_data.split(',') - for count, input_log_data in enumerate(actual_cloudsync_data): - test.compare(expected_cloudsync_data[count], input_log_data, "cloud sync data %s is verified" %expected_cloudsync_data[count]) + for index in (0, 2, 3, 4, 5): + test.compare(expected_cloudsync_data[index], actual_cloudsync_data[index], "cloud sync data %s is verified" %expected_cloudsync_data[index]) + test.endSection() - epoc_time = actual_cloudsync_data[INDEX_ZERO] - - - - - def main():