Sha256: 7b143faafa2df744393c554b84f55471ed95309ddec3ea837eb4fe60ff58b47e

Contents?: true

Size: 578 Bytes

Versions: 5

Compression:

Stored size: 578 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

5 entries across 5 versions & 1 rubygems

Version Path
testdroid-api-client-0.2.3 lib/testdroid_api/device_runs.rb
testdroid-api-client-0.2.2 lib/testdroid_api/device_runs.rb
testdroid-api-client-0.2.1 lib/testdroid_api/device_runs.rb
testdroid-api-client-0.2.0 lib/testdroid_api/device_runs.rb
testdroid-api-client-0.1.3 lib/testdroid_api/device_runs.rb