Artifact

class Artifact
Clone()

Call this method if you want to use API-objects in multiple contexts, e.g. if you want to insert a specific test step in multiple blocks.

Returns:

A copy of this object

Return type:

Artifact

GetContext()

Returns the artifact’s context.

Returns:

the artifact’s context

Return type:

str

GetFileHash()

Returns the md5 hashsum if the file was stored on local file system.

Returns:

the md5 hashsum or empty string

Return type:

str

GetFileName()

Returns the name of the artifact.

Returns:

the artifact’s file name

Return type:

str

GetFilePath()

Returns the path to the artifact. This can be a path on the local file system or an url.

Returns:

the file path

Return type:

str

GetMainPackageReportItemId()

Returns the report item Id of the main package where the artifact was created.

Returns:

the report item Id of the main package

Return type:

int