SingleUpload

single_upload(public_api_client, file_path, file_name, artifact_type)

Description

To upload artifact smaller in one go (less than 10 MB).

Arguments

  • public_api_client: QDC api client object.
  • 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 = single_upload(public_api_client, file_path, file_name, artifact_type)