Sha256: 35dc17ae9cbfd78b0e7922bc75132a240e434ae05203b0d74d2e52d69941fe33

Contents?: true

Size: 589 Bytes

Versions: 2

Compression:

Stored size: 589 Bytes

Contents

module TestdroidAPI
    class Projects < CloudListResource
    end

    class Project < CloudResource

         def	initialize(uri, client, params= {})
            super uri, client,"project", params
            @uri, @client = uri, client
            sub_items :runs, :files
        end
        #Start a new test run
        #run_parameters - example {:params =>  {'name' => 'test'}} 
        def run(run_parameters={:params => {}})
            resp = @client.post("#{@uri}/runs", run_parameters)
            Run.new("#{@uri}/runs/#{resp['id']}", @client, resp)
        end

    end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
testdroid-api-client-0.1.2 lib/testdroid_api/projects.rb
testdroid-api-client-0.1.1 lib/testdroid_api/projects.rb