Sha256: f3f3bb41bf6ec1291350fa52ba384bd9bd9e17046f2234fca893f16c3085a1dc
Contents?: true
Size: 1.32 KB
Versions: 1
Compression:
Stored size: 1.32 KB
Contents
When /^the adb server is started$/ do start_server end Then /^the adb server should be running$/ do last_stdout.should include "daemon started successfully" end Then /^I should be able to connect to a local device$/ do connect('localhost') last_stdout.should include "connected to localhost" disconnect('localhost') end Given /^I am connected to the local device$/ do connect end Then /^I should see the device "(.*?)"$/ do |device| devices.should include device end Then /^I should be able to install the sample application$/ do sn = devices[0] wait_for_device({:serial => sn}, 60) install 'features/support/ApiDemos.apk', {:serial => sn}, 60 last_stdout.should include 'Success' end Then /^I should be able to uninstall the sample application$/ do sn = devices[0] uninstall 'com.example.android.apis', {:serial => sn} last_stdout.should include 'Success' end When /^I change the devices date and time to (.*?)$/ do |date_arg| sn = devices[0] date = DateTime.strptime(date_arg, '%m/%d/%C%y %I:%M') shell("date -s #{format_date_for_adb(date)}", {:serial => sn}, 60) end Then /^the device time should be Aug (.*?)$/ do |date_str| last_stdout.should include date_str end Then /^I should be able to forward "(.*?)" to "(.*?)"$/ do |source, target| sn = devices[0] forward(source, target, {:serial => sn}) end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ADB-0.2 | features/step_definitions/adb_steps.rb |