Created
October 1, 2011 23:07
-
-
Save camiloribeiro/1256785 to your computer and use it in GitHub Desktop.
Exemplo de cenário de teste automatizado
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "rubygems" | |
require "pages" | |
module SearchTestHelper | |
def classic_search(configuration,text_to_search, expected_result) | |
home = Search::HomePage.new(configuration) | |
home.visit | |
home.input_search(text_to_search) | |
home.run_search | |
sleep 2 | |
result = Search::ResultPage.new(home.browser) | |
assert result.should_have_text_present(expected_result) | |
(home.browser).close | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment