Guest User

Untitled

a guest
Jan 23rd, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.96 KB | None | 0 0
  1. When /^I start up my sheep counter$/ do
  2. @counter_app, @counter_window = Bewildr::Application.start_app_and_wait_for_window("c:\\wpfbdd\\SheepCounter\\SheepCounter\\bin\\Debug\\SheepCounter.exe", "Sheep Counter")
  3. @counter_app.should be_running
  4. @counter_window.should be_open
  5. end
  6.  
  7. Then /^it tells me that no sheep have moved field yet$/ do
  8. @counter_window.get(:id => "sheep_count").text.should == "0"
  9. end
  10.  
  11. Given /^I have started my sheep counter$/ do
  12. Given 'I start up my sheep counter'
  13. end
  14.  
  15. When /^I move one sheep$/ do
  16. @counter_window.get(:id => "increment_sheep").click
  17. end
  18.  
  19. Then /^it tells me that (\d+) sheep ha(?:s|ve) moved$/ do |expected|
  20. @counter_window.get(:id => "sheep_count").text.should == expected
  21. end
  22.  
  23. Given /^I have moved (\d+) sheep already$/ do |target|
  24. while @counter_window.get(:id => "sheep_count").text != target do
  25. @counter_window.get(:id => "increment_sheep").click
  26. end
  27. end
  28.  
  29. When /^I move another sheep$/ do
  30. When 'I move one sheep'
  31. end
Add Comment
Please, Sign In to add comment