I am new to ruby and would like to add a step in my ruby/capybara test where "if test failed, log this message in the console: "Microservice A is currently down."
Should this be done in the after hook or inside the test. Also, what would the commands be?
after (:each) do
logout
if test = fail do
console.log ("Error: Microservice A is currently down")
end
end
Thank you
Aucun commentaire:
Enregistrer un commentaire