ContinueUpload

continue_upload(public_api_client, uuid, file_path, file_name, artifact_type)

Description

To upload artifacts in chunks (greater than 10 MB), chunk size is a constant having value ~ 8 MB.

Arguments

  • public_api_client: QDC api client object.
  • uuid: uuid of the initiated start upload request.
  • file_path: Local path of the artifact to be uploaded.
  • file_name: Name of the artifact to be uploaded.
  • artifact_type: Type of the artifact (TESTPACKAGE, TESTSCRIPT).

Returns

  • uuid: uuid of the uploaded artifact.
  • None: In case of any failure.

Usages

file_path = "C:\\Temp\\test.apk"
file_name = get_filename(file_path)
artifact_type = ArtifactType.TESTPACKAGE
uuid = start_upload(public_api_client, file_name, artifact_type)
continue_upload(public_api_client, uuid, file_path, file_name, artifact_type)