You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
print"Unable to set used device group to %s for project %s"% (device_group_id, project_id)
454
-
sys.exit(1)
455
-
print"Starting test run on project %s \"%s\" using device group %s \"%s\""% (project['id'], project['name'], device_group['id'], device_group['displayName'])
438
+
ifnameisnotNone:
439
+
payload['name'] =name
456
440
441
+
ifdevice_group_idisnotNone:
442
+
payload['usedDeviceGroupId'] =device_group_id
443
+
print"Starting test run on project %s \"%s\" using device group %s"% (project['id'], project['name'], device_group_id)
444
+
elifdevice_model_idsisnotNone:
445
+
payload['usedDeviceIds[]'] =device_model_ids
446
+
print"Starting test run on project %s \"%s\" using device models ids %s"% (project['id'], project['name'], device_model_ids)
457
447
else:
458
-
payload={'usedDeviceIds[]': device_model_ids}
459
-
print"Starting test run on project %s \"%s\" using device models ids %s "% (project['id'], project['name'], device_model_ids)
448
+
print"Either device group or device models must be defined"
0 commit comments