Skip to content

ujappelbe/testdroidhelper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Testdroidhelper

Helper for queuing devices for testdroid remote control session. If you do not know what testdroid is, this is of no value for you.

Installation

Add this line to your application's Gemfile:

gem 'testdroidhelper'

And then execute:

$ bundle

Or install it yourself as:

$ gem install testdroidhelper

Expected usage (simplified):

USERNAME = "username"
PASSWORD = "password"
PROJECT_NAME = "testdroid_project"
TEST_APP_PATH = "/tmp/testapp.apk"
CONCURRENCY = 5 # target_concurrency should be smaller than thread count
THREAD_COUNT = 10

td_provider = TestdroidHelper::RemoteConnectionProvider.new(USERNAME, PASSWORD)
device_ids = td_provider.get_devices_array.map {|dev| dev.first}
td_provider.setup_test(PROJECT_NAME, TEST_APP_PATH, device_ids, CONCURRENCY)
1.upto(THREAD_COUNT) do
  device_id = device_ids.pop
  remote = td_provider.get_device(device_id)
  # Do remote stuff here
  remote.get_screenshot
end

Contributing

  1. Fork it ( http://github.com/jappelbe/testdroidhelper/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

Unit tests can be run: rake spec

About

Ruby Gem to extend functionality of Testdroid remote control.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages