Sha256: c80ba1af15d54c17ae669afe180c55d8de2fe5ad3f7f6b795800a6b4f80a2340

Contents?: true

Size: 581 Bytes

Versions: 1

Compression:

Stored size: 581 Bytes

Contents

module TestdroidAPI
  class DeviceRuns < CloudListResource
  end
  class DeviceRun < CloudResource
    def initialize(uri, client, params= {})
      super uri, client, "deviceRun", params
      @uri, @client = uri, client
    end

    def download_performance(file_name="performance_data.txt")
      @client.download("#{@uri}/performance", file_name)
    end

    def download_junit(file_name="junit.xml")
      @client.download("#{@uri}/junit.xml", file_name)
    end

    def download_logs(file_name="log.txt")
      @client.download("#{@uri}/logs", file_name)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
testdroid-api-client-0.3.0 lib/testdroid_api/device_runs.rb