Sunday, June 2, 2013

calabash-android Assertion Steps

Assertion steps

To assert that specified text can be found use any of the following steps.
Then /^I see the text "([^\"]*)"$/
Then /^I see "([^\"]*)"$/
Then /^I should see "([^\"]*)"$/
Then /^I should see text containing "([^\"]*)"$/

To assert that specified text cannot be found use any of the following steps.
Then /^I should not see "([^\"]*)"$/
Then /^I don't see the text "([^\"]*)"$/
Then /^I don't see "([^\"]*)"$/ 
 
Scenario 1:
===========
Given a App
After the App Launch - You need to Verify the text "HelloWorld" Appears
 
Sample Code :
============= 
Feature: Demo feature
Scenario : Verify after App Launch - The text "HelloWorld" appears
And I should see "HelloWorld"

No comments:

Post a Comment