Skip to content

Commit 40452d0

Browse files
author
Alisa Yamanaka
committed
Fix for download_test_screenshots method to work with version 2.39
1 parent 64fed5b commit 40452d0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

testdroid/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -602,11 +602,11 @@ def download_test_screenshots(self, project_id, test_run_id):
602602
device_runs = self.get_device_runs(project_id, test_run_id)
603603
logger.info("Test run %s: \"%s\" has %s device runs:" % (test_run['id'], test_run['displayName'], len(device_runs['data'])))
604604
for device_run in device_runs['data']:
605-
logger.info("%s \"%s\" %s" % (device_run['id'], device_run['device']['displayName'], device_run['runStatus']))
605+
logger.info("%s \"%s\" %s" % (device_run['id'], device_run['device']['displayName'], device_run['state']))
606606

607607
logger.info("");
608608
for device_run in device_runs['data']:
609-
if device_run['runStatus'] == "SUCCEEDED":
609+
if device_run['state'] == "SUCCEEDED":
610610
directory = "%s-%s/%d-%s/screenshots" % (test_run['id'], test_run['displayName'], device_run['id'], device_run['device']['displayName'])
611611
screenshots = self.get_device_run_screenshots_list(project_id, test_run_id, device_run['id'])
612612
no_screenshots = True

0 commit comments

Comments
 (0)