Skip to content

Instantly share code, notes, and snippets.

@cjeon
Created February 9, 2021 00:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cjeon/ca3e7b84c1ba7d73b7f329a8d268e894 to your computer and use it in GitHub Desktop.
Save cjeon/ca3e7b84c1ba7d73b7f329a8d268e894 to your computer and use it in GitHub Desktop.
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