follow me icons

Tuesday, June 12, 2012

Using 'Given/When/Then' in step definitions is deprecated, use 'step' to call other steps

If you are getting this warning "Using 'Given/When/Then' in step definitions is deprecated, use 'step' to call other steps" then just change this line in your steps definitions:
Given /^the user logs in$/ do
 And 'the user visits the main page'
 And 'the user clicks on the login button' 
 .
 .
end
To:
Given /^the user logs in$/ do
 step('the user visits the main page')
 step('the user clicks on the login button')
 .
 .
end

No comments:

Post a Comment