Created
February 9, 2021 00:59
-
-
Save cjeon/ca3e7b84c1ba7d73b7f329a8d268e894 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
HISTORY_ID = testMatrix["testExecutions"][0]["toolResultsStep"]["historyId"] | |
EXECUTION_ID = testMatrix["testExecutions"][0]["toolResultsStep"]["executionId"] | |
steps = [] | |
pageToken = None | |
while True: | |
response = results.projects().histories().executions().steps().list( | |
projectId=PROJECT_ID, | |
historyId=HISTORY_ID, | |
executionId=EXECUTION_ID, | |
pageToken=pageToken | |
).execute() | |
steps.extend(response['steps']) | |
if "nextPageToken" in response: | |
pageToken = response["nextPageToken"] | |
else: | |
break |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment