title: Writing cucumber test cases
body: <p>I am trying to lear how to write test scripts for frank ( cucumber test scripts).</p>
  
  <p>This is what I have written</p>
  
  <pre><code>When I navigate to "aaa"
  Then I should be on the aaa screen
  Then I navigate to "bob"
  Then I should be on the bob screen 
  
  When /^I navigate to "(.*?)"$/ do |aaa|
    touch "view:'UITabBarButton' marked:'aaa'"
  END
  
  Then /^I should be on the aaa screen$/ do
    check_element_exists "view:'UIImageView' marked:'xxx'"
  END
  
  Then /^navigating to "(.*?)"$/ do |bbb|
    touch "view:'UITabBarButton' marked:'bbb'"
  end
  
  Then /^I SHould be on the bbb screen$/ do
     check_element_exists "view:'UIImageView' marked:'zzz'"
  end
  </code></pre>
  
  <p>where the letters are written instead of the view/picture names</p>
  
  <p>This is what i get while running the script</p>
  
  <p>/Users/janogrodowczyk/SMHI/ios/ios/Frank/features/step_definitions/test_steps.rb:14: syntax error, unexpected $end, expecting kEND (SyntaxError)</p>
  
  <p>And i have no idea what i am doing wrong since the first 2 rows</p>
  
  <pre><code>When I navigate to "aaa"
  Then I should be on the aaa screen
  </code></pre>
  
  <p>are working fine when only they are run without the rest.</p>
  
  <p>Best Regards </p>